Introduction: PHloat2 DIY Acidic Water Testing Sculpture & Kit With Arduino
pHloat is a DIY kit that is made for use in conjunction with a pre-owned / pre-existing arduino microcontroller. Its purpose is to test the pH levels in local rivers, lakes, and streams due to the influx of air and water pollution often caused by acid rain. It is specifically designed to be used in areas that are home to refineries, chemical plants, and manufacturing industries that are causing environmental damage. However, it can be used in any body of water to test acidity levels.
pHloat has the option to be made from several recycled materials including but not limited to, styrofoam, paper, and plastic food containers. If these materials cannot be found they can be purchased along with the necessary electrical components for approximately $25. pHloat functions through the modification of a simple garden moisture and pH sensor that can be purchased at any home improvement store. It acts as both an environmental measurement tool and a floating sculpture, borrowing inspiration from Japanese floating paper. As the pHloat navigates down a stream it is taking a constant pH reading that is being translated by the arduino to produce a variation of colored light (produced by a low energy and cost superbright RGB LED). The different colors of light indicate the level of acidity in the body of water. For example, a normal pH reading would result in the emission of green light while a high pH reading would result in the emission of red light. Blue light emission indicates a semi-acidic body of water. The lights are housed on the top of the pHloat and are illuminated under a paper origami shade. As to not further contribute to environmental pollution, a rope (not pictured in the 3d models) should be attached to each pHloat so it can easily be retrieved from the water (this allows for the pHloats to also be affixed to a particular area measuring passing water).
pHloat is designed to create a social awareness of pollution in local rivers, streams, and lakes. It also functions as visual expression of concern for the emission of dangerous chemicals into our atmosphere. pHloats are designed to be released together to ultimately create floating mobile sculptures. Thus initiating a social space that engages locals living in the midst of these manufacturing industries to begin a dialogue about their environmental conditions.
Check out the youtube video below that talks about the pHloat
Step 1: Gather the Materials
(ALL MATERIALS ARE PICTURED IN THE ATTACHED PDF IF THE DESCRIPTIONS ARE NOT CLEAR :: ALL PRICES AND PURCHASE LOCATIONS ARE ALSO INCLUDED IN THE PDF)
1. Arduino Microcontroller (available to purchase at a myriad of online places, sparkfun, allelectronics etc). Approximately 30.00$
2. Moisture and pH Garden sensor, Home Depot 7.58
3. Small Round Plastic Food Container, capable of holding the arduino, a 9V battery, and the top of the pH sensor
4. 9V battery
5. 9V battery attachment with black and red leads, Can buy at radioshack, any electronics supplier
6. Electrical Tape
7. 22-24 gage (suggested) hook up wire available at radioshack, multiple colors work best
8. Duct Tape (white preferred), but choose any interesting color to dress up your pHloat
9. 3 Wide Angle square bodied 4pin LEDs. You could also use one superbright RGB LED, however, you would have to compile your own code (if you are familiar with arduino)
10. Two 1/2" diameter dowel rods, available at craft and home improvement stores
11. Small piece of insulation foam to make an 8" circle, can find or purchase from home improvement store
12. 1 pack of 10k ohm 1/4 watt resistors, 1 pack of 1k ohm 1/4th watt resistors
13. 1 small PCB board
14. Rope (approximately 1/2" diameter or smaller. The length is up to your discretion, I used 8'
15. Transistor variety pack, available at radioshack.
16. 8 pieces of 8 1/2" x 11" vellum from local craft or scrapbooking store
Suggested Tools:
-Cordless Drill and various bits
-Hot Glue Gun
-Soldering Iron and Solder
-Small hand saw to cut dowel rods
-Exacto Knife or razor blade for cutting foam
Step 2: Initial Construction
2. Cut a small piece of string approximately 9 inches long. Tie one end of the string to the top of the pushpin and the other end of the string to the marker. Push the pin into the Styrofoam. Pull the string taught with the pen and draw a circle. Follow the images in this step
3. 3. Cut out the circle using a razor blade or small hacksaw. You will want the edges to be nice and clean so bits of the Styrofoam do not flake off. Next divide the circle into eight equal sections. After you have divided the circle into eight equal parts, at the end of each line, measure along the side and make a dot at 1.5” down. Repeat this eight times.
Step 3: Drilling Holes and Securing the Foam
5. Next, use the duct tape (preferably white for aesthetic reasons) to cover the exterior of the foam. This helps to waterproof the base and to prevent any pieces of loose foam to become loose and pollute the water. Be careful and do NOT cover the holes that you made in the previous step.
6. 6. After you cover the circle form with duct tape, affix a 6” dowel rod into each hole. They stay in best if you put a small bit of glue in the hole. Hot glue works best. I spray painted my dowels so that the pHloat was all one color and could be seen easily in the dark. Spray painting is not necessary.
Step 4: Attach Dowels and Drill Holes in the Body of the PHloat
7. Next take your plastic container and drill two holes in the bottom of the container spread about 1” apart. The holes should be about the same diameter as the legs of the pH sensor found in the kit.
Step 5: Attaching the Arduino's & Sensor's Container
9. Place the pH sensor leads through the two holes that you just made.
10. Take the lid of the container and drill holes for the wiring in the top. You will need between 4-6 holes depending on the thickness of the wire.
Step 6: Building the Circuit
12. First solder a black wire (for ground) and a red wire (for power) as shown. Use the 22 gauge stranded wire for all
wiring done on the breadboard.
13. Next attach the transistor and 10k resistor as shown.
14. Attach a wire in the same line with the 10k resistor. See the photo below.
Step 7: Circuit Building Continued
16. Attach a 1k resistor from the Positive (right) leg of the LED to the power ‘rail’ as seen below.
17. Repeat steps 12 through 16 two more times to put the blue and red Led’s in place. The board should look like this when you are done.
18. We will now work on making the pH sensor, which will be the mechanism that tells us the pH level of the water. Open the pH sensor; the best way to do this is using a pair of side cut pliers. Be careful, there are wires inside that you will need to keep in tact for the sensor to work properly. It should look like this when you open it up. Attach a black wire to the lead as shown below and the red wire (coming from the bottom right), to the other lead as pictured.
Step 8: Circuit Building Continued
20. Attach the black wire and the red wire coming from the pH sensor (that you attached in step to the pH sensor in step 18) to the bottom of the resistor. On the other side of the resistor, solder in two red and black lead wires. See below and follow:
Step 9: Continuing the Circuit and Attaching It to the Structure
21. Place the circuit board on the top of the lid and run the wires through it.
22. Download the following code to your arduino microcontroller. After you download the code the light on the board should turn green. When the pHloat detects moderately high acidity levels in water the light will turn blue. When the pHloat turns red it has detected dangerously acidic. This code should achieve these results.
int LED = 13;//output pin is #13 for normal acidity level
int LED1 = 12;//output pin is #12 for middle acidity level
int LED2 = 8;//output pin is #8 for high acidity level
int sensorValue = 0;//"place" to store the incoming analog values to be read
int sensor = 1;//sensor input attached pin #1
void setup() {
pinMode(LED,OUTPUT);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(sensor, INPUT);//you don't have to declare "INPUT" since arduino seta all pins as input. I do it for remembering...
Serial.begin(9600);//get ready for serial communication
}
void loop() {
sensorValue =analogRead(sensor);//read the sensor and put the value in the sensorValue "place"
Serial.println(sensorValue);//pint out on the serial monitor...
if(sensorValue >= 15)//should turn on the red LED because the pH sensor reading is greater than or equal to 15 meaning that the acidity level
is dangerously high.
digitalWrite(LED2, HIGH);//turn on the red LED
else
digitalWrite(8,LOW);//should turn on the red LED because the pH sensor reading is greater than or equal to 15 meaning that the acidity level is
dangerously high.
if(sensorValue >= 4 && sensorValue <=14)//should turn on the blue LED because the pH sensor reading is greater than or equal to 4 and less
than or equal to 14 meaning that the acidity level is dangerously high.
digitalWrite(LED1, HIGH);//turn on the blue LED
else
digitalWrite(12,LOW);//should turn on the blue LED because the pH sensor reading is greater than or equal to 4 or less than or equal to 14
meaning that the acidity level is higher than normal.
if(sensorValue <= 3)//should turn on the green LED because the pH sensor reading is less than or equal to 3 meaning that the acidity level is
normal.
digitalWrite(LED, HIGH);//turn on the green LED
else
digitalWrite(13,LOW);//the green LED will continuously stay on because it includes the value of 0 (less than or equal to 3
}
Step 10: Construction Continued
Step 11: Continuing Construction & Assembly
While you are making the shade I suggest unplugging your battery from your arduino, It is simply just draining power at this point. Do not replug in the battery until you are almost ready to use your pHloat.
Step 12: Finishing the Shade and Attaching It
This is not recommended to be used in the rain because the electronics exposed underneath the lid could become damaged. If you make a water right top, it would be suitable for any weather conditions.
Please send me your phloats or questions to brittany@brittanyransom.com and I will upload your images, designs, adaptations to the blog phloatkit.tumblr.com
Enjoy!