TDS Water Quality Sensor by Group 1

by Dorairaj in Circuits > Microcontrollers

156 Views, 0 Favorites, 0 Comments

TDS Water Quality Sensor by Group 1

Circuit.jpg
TDS Water Quality Level By Group 1

In the quest for safeguarding the pristine waters of Tasik Kenyir, an advanced water quality monitoring system has been deployed, integrating the capabilities of the ESP32 microcontroller and a Total Dissolved Solids (TDS) sensor. This IoT-driven solution not only detects anomalies in real-time but also enhances user accessibility through a Node-RED dashboard, fostering environmental awareness and contributing to the preservation of a balanced ecosystem for marine creatures. In this system, we use ESP32 microcontroller, TDS sensor, powerbank, LED, breadboard, usb to micro usb cable. As a result, the monitoring on the water quality level is monitored from time to time and any drastic changes will require user to have a visit too the actual site.




Supplies

1.png
2.png
3.png
4.png
5.png
6a.png
7.png
8.png
9.png
10.png
  1. ESP32 Microcontroller
  2. Small Breadboard
  3. Male to female jumper wire
  4. Male to male jumper wire
  5. Female to female jumper wire
  6. USB to Micro USB cable
  7. Powerbank
  8. Total Dissolved Solids (TDS) sensor
  9. LED
  10. Resistor

Setup Circuit

Circuit.jpg
  1. One male to male jumper wire from TDS sensor connects to female to female jumper wire that connects to D33 (ESP32).
  2. One male to male jumper wire from TDS sensor connects to female to female jumper wire that connects to 3V3 (ESP32).
  3. One male to male jumper wire from TDS sensor connects to female to female jumper wire that connects to GND (ESP32).
  4. Connect LED to breadboard using (ESP32).
  5. Connect cathode from LED with male to female jumper wire and connect to GND (ESP32).
  6. Connect anode from LED to resistor then connect male to male jumper wire with female to female jumper wire that connect to D13 (ESP32).
  7. Connect the ESP32 to powerbank using USB to MicroUSB cable.

*Note please set up the circuit according to the project requirement based on the environment.

Setup MyMQTT

mqtt dashboard.jpg
Dashboard.jpg
  1. Install MyMQTT app in playstore or appstore.
  2. Click on the MyMQTT app.
  3. Select MQTT V3.
  4. Then click connect.
  5. Click on subscribe section.
  6. Type csm3313_umt/group01/Tds at the topic box and click subscribe.
  7. Repeat step 6 with this topic csm3313_umt/group01/led01







Setup Node Red Dashboard

NR.jpg
NR2.jpg

For Total Dissolved Solids(TDS) dashboard

1. Open node red

2. Add MQTT In node and double click to change the name.

3. Add debug node, chart node and gauge node.

4. You can double click and change the name at the edit node. 

5.After that, click button Done.

6. Connect the debug node, chart node and gauge node to MQTT In


For LED

1. Add Switch node

2. Add Function node

   * this is the code for LED

3. Add MQTT Out node

4. After that, connect the switch node to the function node.

5. Then, connect the function node to the MQTT Out.

6. After that, click button Deploy at the right above.

Coding for TDS Water Quality Sensor

Downloads

Prepare & Deploy the Circuit

WhatsApp Image 2024-01-24 at 18.36.30_7bc39cfb.jpg
7d17fc60-2378-4b50-b243-37fd585c945b.jpg
WhatsApp Image 2024-01-24 at 18.36.30_3c316f86.jpg

Monitoring the Sensor

Screenshot 2024-01-24 184421.png