Back to Parent

Outcome


Overview

A little fiscal prudence goes a long way in keeping your gold fish comfy. Spend too much and the water level goes down (gasp). Yeah, life is cruel.


Fish tank concept.thumb
Show Advanced Options

The Device

The device consists of a fish bowl, and a balancing tank. The water flows between the two tanks through a pump, connected to the particle photon. An H-bridge controller allows operation of the pump in both directions. The device is powered by a battery pack. We hacked a water level meter, using an insulated wire, connected to a series of 100k ohm resistors. The change in water level, changes the resistance of the array, and in turn the current that flows into the particle photon pin.

See it in action here: https://youtu.be/hfg41aO6DAY



You will need:

1 Breadboard with USB cable

1 Photon

2 – 6V DC power supply/battery pack

1 Peristaltic pump with silicone tubing

2 – Containers for water Fish tank and Balancing Tank

1 - H-bridge controller

2 – Insulated wire

2 - Alligator clip test leads

10 – Jumper wires

11 - 100kΩ Resistor

1 - Potentiometer

The Design Process

The idea was floated as part of the brainstorming session in the IoT class. We liked the idea of connecting spending data to the water level in a fishbowl. The mix of playfulness and severity of the consequences, is a persuasive tool for influencing people.

Initially discussions centered around the nature of data that the fish tank would react to. Two clear alternatives emerged. The first idea was to display water level as a function of remaining balance, in a mentally accounted monthly/weekly budget. The second alternative was to collect aggregate data, and display a trailing average weekly/monthly spending. We decided that having a "reversible" water level, was more persuasive and positive than a constantly falling water level.

Iterations

In our first iteration, we weren't confident about making the pump flow in both directions. We planned using a servo/solenoid valve to operate a latch within the balancing tank. This design imposed constraints on the form and design of the device.


Challenges

Finding the right amount of resistance to offer, to input a value into Photon was challenging. After much experimentation, with the number and type of resistors, we were able to create a functional sensor.

A lot of time was also spent linking the photon to google sheets, via RSS+IFTTTT, since this was our first attempt in downloading information from the web.

Another challenge, was to identify the right hardware to operate the pump in both directions, we eventually stumbled upon the dual H-bridge controller in the ideate lab, a quickly figured out how to wire it up.


Fritzing fishtank bb copy.thumb
Show Advanced Options
Img 9885 copy.thumb
Show Advanced Options
Show Advanced Options

The Logic behind the water level.

We use google sheets to aggregate the daily spending data. A running average column, computes the average spending of the previous 7 days.

Every daily avg spending value is rated on a 10 point scale. IF statements are used to cap the max and min values of the rating.

=IF((DailySpending!A9-10)>10,10,IF((DailySpending!A9-10)<0,0,DailySpending!A9-10))

The resultant values on the 10 point scale, are inverted to correspond to the water level. A high spending rating of 9, will result in a water level of 1.

=10-AvgSpendingScaled!A8

Googlesheets data.png.thumb
Show Advanced Options

Connecting to the Cloud

An RSS feed links the google spreadsheet to the photon. Everyday, a new cell will be added to the sheet, prompting a new feed. The feed triggers the Particle function "newData"/handledata .

Daragh Byrne's tutorial for RSS feeds was used this.

Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.