Water conservation and quality assessment are critical for sustainable development. AquaTrack is an IoT-powered water management system that enables real-time monitoring of water levels and purity. It integrates NodeMCU ESP8266, Ultrasonic Sensor, and TDS Sensor to automate water management.
By utilizing Blynk App, users can remotely monitor and control water levels and receive instant alerts on water purity. This system is beneficial for domestic, industrial, and agricultural water management.
- 📡 Real-time water level monitoring using an Ultrasonic Sensor.
- 💧 Water purity assessment using a TDS (Total Dissolved Solids) Sensor.
- ⚡ Automatic water pump activation based on threshold levels.
- 📲 Remote monitoring & control via the Blynk App.
- 🔔 Instant alerts & notifications for critical water conditions.
- 🌱 Energy-efficient automation for water conservation.
- 📈 Data visualization with IoT cloud integration.
- NodeMCU ESP8266 – WiFi-enabled microcontroller
- Ultrasonic Sensor (HC-SR04) – Water level detection
- TDS Sensor – Water purity measurement
- Motor Pump & Relay Module – Automatic water control
- Power Supply (5V/12V)
- Jumper Wires & Breadboard
- Arduino IDE – Programming the NodeMCU
- Blynk App – Remote control & monitoring
- ESP8266 Library – WiFi communication
- ThingSpeak (Optional) – Data storage & visualization
- Connect the Ultrasonic Sensor to measure water levels.
- Integrate the TDS Sensor for water quality monitoring.
- Connect the Relay Module & Motor Pump for automated water control.
- Power the NodeMCU ESP8266 and ensure WiFi connectivity.
-
Install Arduino IDE and add the ESP8266 Board:
- Open Arduino IDE > Go to Preferences > Add this URL:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Open Boards Manager and install ESP8266.
- Install the required libraries:
ESP8266WiFi BlynkSimpleEsp8266 Ultrasonic
- Open Arduino IDE > Go to Preferences > Add this URL:
-
Upload the Code
- Open
final_cp.ino
in Arduino IDE. - Update WiFi credentials and Blynk authentication key in the code.
- Select NodeMCU 1.0 (ESP8266) as the board.
- Upload the code to the NodeMCU.
- Open
Download the Blynk App from:
- Open Blynk App and create a new account (or log in).
- Tap "New Project", give it a name (e.g., AquaTrack).
- Select NodeMCU as the device.
- Choose WiFi as the connection type.
- Tap "Create" – You will receive an Auth Token via email.
-
Water Level Display:
- Tap “+” to add a Gauge Widget.
- Set V1 (Virtual Pin 1) as the data source.
- Label it as "Water Level" and set the range (e.g., 0-100%).
-
Water Purity Display (TDS Sensor):
- Tap “+” to add another Gauge Widget.
- Set V2 (Virtual Pin 2) as the data source.
- Label it as "Water Purity (TDS)" and set the range (e.g., 0-1000 ppm).
-
Pump Control (Manual Mode):
- Tap “+” to add a Button Widget.
- Set it to V3 (Virtual Pin 3).
- Change the mode to Switch (ON/OFF).
- Label it as "Pump Control".
-
Notifications & Alerts:
- Tap “+” to add a Notification Widget.
- This will be triggered when water level is low or water quality is poor.
-
Real-Time Data Chart (Optional):
- Tap “+” to add a SuperChart Widget.
- Set V1 (Water Level) and V2 (Water Purity) as data sources.
- Enable real-time graphing to visualize trends.
- Copy the Auth Token from your email.
- Paste the token in your Arduino Code under:
#define BLYNK_AUTH_TOKEN "Your_Auth_Token_Here"