Augmented Water

by tamberg in Circuits > Arduino

40016 Views, 210 Favorites, 0 Comments

Augmented Water

augmented_water.jpg

The Augmented Water device helps you save water by turning red after one Liter. The device, built by @tamberg during a water hackathon, is made from an Arduino, a flow sensor and coloured LED pixels.

Video

https://www.flickr.com/photos/tamberg/14346321456/ (thanks kiilo)

In case you want to build your own, read on...

Material

Tools

  • Soldering iron
  • Hot-glue gun
  • Saw

Preparing and Testing the Neopixel LEDs

14198889367_bbb0e3347c_z.jpg

If you use Neopixels by the meter, cut off a piece of ~7 pixels and solder jumper wires as follows:

  • Black wire to GND
  • Yellow wire to DI
  • Red wire to +5V

Take care to solder them to the right end of the strip. Compare the little arrows printed on the strip with the picture.

Read Adafruit's Neopixel best practices before connecting the pixels.

Download and install Adafruit's Neopixel Arduino library from

https://github.com/adafruit/Adafruit_NeoPixel

Open File > Examples > Adafruit_NeopPixel > strandtest

Change the number of pixels to fit your short strip.

Upload the code to make sure the pixels work.

(This code was the starting point of the hack.)

Testing the Flow Sensor

11329927134_cfd72cf347_z.jpg

(Image by Adafruit, CC BY-NC-SA)

Download the flow meter example code from

https://github.com/adafruit/Adafruit-Flow-Meter

Connect the flow meter as indicated in the source code.

Rename .pde to .ino, open it and upload the code to the Arduino.

Testing works fine without water by blowing some air through the sensor.

Connecting and Testing the Hardware

Screen Shot 2014-06-10 at 00.08.11.png

Download the Augmented Water source code from https://bitbucket.org/tamberg/waterhack/raw/tip/20...

(Re-)connect the hardware as indicated in the source code:

  • Red flow sensor wire to +5V
  • Red Neopixel wire to +3.3V
  • Black wires to common ground
  • Yellow flow sensor wire to pin #3
  • Yellow Neopixel wire to pin #2

Upload the code to the Arduino and test it.

Your lung volume is hopefully larger than 1 Liter.

Use the serial monitor of the Arduino IDE to see numbers.

(Note that the code is a simple mash-up of the previous examples.)

Creating a Tap Adapter

14182871249_539e552180_z.jpg
14369501185_f99e294d00_z.jpg
14182868839_db3f8d5682_z.jpg
14346403426_52960b9dd8_z.jpg
14368586894_9dd58d5f8a_z.jpg

Cut a 6 cm piece of the (green) tube.

And another 4.5 cm piece (for later).

Now cut off the tip of the lab test tube.

Then cut it again, to get a piece of about 2.5 cm.

Push the 6 cm tube into it and make sure it fits tight.

To make it water tight, add some hot-glue inside the joint.

Then add a lot more hot-glue to "rubberize" the adapter piece.

Test the adapter by closing one end of the tube and blowing air through it.

(Wait for the hot-glue to cool down before doing this. I didn't and hurt my lips.)

Putting Everything Together

14368010122_1da34829e4_z.jpg
14406063953_b7d5f96d97_z.jpg
14406063413_89e1374d21_z.jpg
14199258099_35788b038d_z.jpg
14199281788_1ce979861e_z.jpg

Attach the two (green) tubes to the flow sensor, with the adapter at the top.

Use zip ties to attach the Neopixel strip to the above assembly.

Make sure the wires are at the upper end (with the adapter).

Use an additional zip tie to hold the flow sensor wire.

Then mount the Arduino on top of all this.

The Arduino's upper side should point inwards.

Make sure the USB port remains accessible for updates.

(All pictures taken after assembly.)

Using the Augmented Water Device

14183046307_e956798524_z (1).jpg
14346395116_e33f7c6706_z.jpg
14389668193_561df66efe_z.jpg
14182923530_021e730818_z.jpg

Make sure the LiPo battery is fully loaded.

Connect the LiPo to the Arduino.

  • Black wire to GND
  • Red wire to VIN

Stow LiPo "inside" Arduino.

Attach the device to the tap.

Turn on the tap (not too hard).

After ca. 1 Liter, LEDs turn red.

Turn the tap off again.

Save water.

Thanks! @tamberg