For this project, we were tasked with using a turbidity sensor to test different water turbidites. We tested the water turbidites of water from the dirty and "clean" parts of Lake Latin and we compared the turbidity of clean drinking water and muddy dirty water.
Turbidity is the cloudiness or haziness of a liquid. This is determined by the number of individual particles that are present in the liquid.
A Turbidity sensor measures the amount of light that can pass through a liquid. It works by a small laser between the two lips of the sensor and the more light that passes to the other side the higher the output value and the more particles lower the value because the light is blocked. Other groups had inverted data. For them the high value was associated with dirty water and the low value was associated with the clearer water. To connect it to the computer we used a USB cord and connected it to the computer and then we uploaded the code onto the Arduino.
This was the code that was given to us to set up our sensor. Serial.begin(9600) is the rate that which the sensor communicates with the serial monitor. This action only repeats itself once because it is under void setup (). On the other hand, void loop() goes on forever. analogRead(A0) is the pin that the sensor is connected to the Arduino. senorValue * (3.3 / 1024.0) is the conversion of the binary code to volts. 3.3 Is the maximum value. delay(1000) is the 1000 milliseconds delay per output value.
On the first day, we tested the difference between clean drinking water and dirty muddy water. The value that we got from the clean eater was about 1.25 and the value that we got from the dirty water was about .12. This was strange because usually the lower the output value the cleaner the water. Many groups faced this issue.
On day 2 we tested the lake Latin waters alongside the dirty and clean water. At the end was clean drinking water, next to it was the "ok" water from Lake Latin, and next to that was the "bad" water from Lake Latin, and finally the last on was the dirty water from the previous day.
The values changed a bit from the previous day. When we put the senor in clean water we got an ouput of 1.09-1.11. Then we tested the "ok" water and we got an output of 1.19-1.21. Then for the "bad" water we got a 0.99-1.00. Finally for the bad water we got 0.40-0.43. The value from the "ok" water was higher than the drinking water this result might be from a faulty sensor or the lake latin water might be cleaner than we thought.