Arduino-Based Water Quality Monitoring System with TDS and Water Level Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to monitor water quality and control a water pump based on sensor inputs. It uses an Arduino UNO microcontroller to interface with various sensors and actuators, including a water level sensor, TDS sensor, LEDs, a piezo buzzer, a relay, and a water pump. The Arduino UNO processes the sensor data and controls the water pump and indicators accordingly.
Component List
Water Level Sensor
- Pins: SIG, VCC, GND
- Description: Measures the water level in a container.
- Purpose in Circuit: Provides water level data to the Arduino UNO.
TDS Sensor
- Pins: AI, GND, 5V
- Description: Measures the Total Dissolved Solids (TDS) in water.
- Purpose in Circuit: Provides water quality data to the Arduino UNO.
5V Relay
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
- Description: A relay module that allows the Arduino to control high-power devices.
- Purpose in Circuit: Controls the water pump based on signals from the Arduino UNO.
LED: Two Pin (red)
- Pins: Cathode, Anode
- Description: A red LED indicator.
- Purpose in Circuit: Indicates the status of the water quality.
LED: Two Pin (green)
- Pins: Cathode, Anode
- Description: A green LED indicator.
- Purpose in Circuit: Indicates the status of the water quality.
Arduino UNO
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
- Description: A microcontroller board based on the ATmega328P.
- Purpose in Circuit: Central processing unit that reads sensor data and controls actuators.
Piezo Buzzer
- Pins: Pin 1, Pin 2
- Description: A piezoelectric buzzer.
- Purpose in Circuit: Provides audible alerts.
Water Pump
- Pins: VCC, GND
- Description: A small water pump.
- Purpose in Circuit: Pumps water based on signals from the Arduino UNO.
9V Battery
- Pins: +, -
- Description: A 9V battery.
- Purpose in Circuit: Provides power to the water pump.
Wiring Details
Water Level Sensor
- SIG connected to A1 on Arduino UNO
- VCC connected to 5V on Arduino UNO
- GND connected to GND on Arduino UNO
TDS Sensor
- AI connected to A0 on Arduino UNO
- GND connected to GND on Arduino UNO
- 5V connected to 5V on Arduino UNO
5V Relay
- Normally Open connected to VCC on Water Pump
- Common terminal connected to + on 9V Battery
- Normally Closed not used
- In connected to D7 on Arduino UNO
- GND connected to GND on Arduino UNO
- VCC connected to 5V on Arduino UNO
LED: Two Pin (red)
- Anode connected to D6 on Arduino UNO
- Cathode connected to GND on Arduino UNO
LED: Two Pin (green)
- Anode connected to D5 on Arduino UNO
- Cathode connected to GND on Arduino UNO
Piezo Buzzer
- Pin 1 connected to GND on Arduino UNO
- Pin 2 connected to D8 on Arduino UNO
Water Pump
- VCC connected to Normally Open on 5V Relay
- GND connected to - on 9V Battery
9V Battery
- + connected to Common terminal on 5V Relay
- - connected to GND on Water Pump
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO.