Arduino UNO Based Water Quality Monitoring System with Relay-Controlled Pump
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller, which serves as the central processing unit. The circuit includes a DHT11 temperature and humidity sensor, a PH Meter for measuring the acidity or alkalinity of a solution, and a Turbidity Module for assessing water clarity. A Relay module is used to control a water pump, and a 12V battery provides power to the pump through the relay. The Arduino UNO is responsible for interfacing with the sensors and controlling the relay based on sensor inputs.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
Relay Module 5V-30V
- An electrically operated switch that allows you to turn on or off a circuit using voltage and/or current much higher than a microcontroller can handle.
- It has a trigger pin controlled by the Arduino to activate the relay.
Battery 12V
- A 12V power source used to power the water pump through the relay.
DHT11
- A basic, ultra low-cost digital temperature and humidity sensor.
- It uses a capacitive humidity sensor and a thermistor to measure the surrounding air and outputs a digital signal on the data pin.
PH Meter
- An electronic device used for measuring the pH (acidity or alkalinity) of a liquid.
- It has a signal output which is connected to an analog input on the Arduino.
Turbidity Module
- A sensor for measuring water clarity, with an output that can be read by an analog input on the Arduino.
Water Pump
- A device that moves water through mechanical action, powered by the 12V battery.
Wiring Details
Arduino UNO
3.3Vconnected to DHT11 VCC5Vconnected to PH Meter VCC, Turbidity Module VCC, and Relay Module V+GNDconnected to PH Meter GND, DHT11 GND, Turbidity Module GND, and Relay Module V-A1connected to PH Meter SignalA2connected to Turbidity Module OUTD6connected to DHT11 DATAD7connected to Relay Module trigger
Relay Module 5V-30V
common contactconnected to Battery 12V positivenormally closedconnected to Water Pump positiveV-connected to Arduino UNO GNDV+connected to Arduino UNO 5Vtriggerconnected to Arduino UNO D7
Battery 12V
+connected to Relay Module common contact-connected to Water Pump negative
DHT11
DATAconnected to Arduino UNO D6GNDconnected to Arduino UNO GNDVCCconnected to Arduino UNO 3.3V
PH Meter
Signalconnected to Arduino UNO A1VCCconnected to Arduino UNO 5VGNDconnected to Arduino UNO GND
Turbidity Module
OUTconnected to Arduino UNO A2VCCconnected to Arduino UNO 5VGNDconnected to Arduino UNO GND
Water Pump
positiveconnected to Relay Module normally closednegativeconnected to Battery 12V negative
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:
}
Note: The provided code is a template and does not include specific functionality. It should be populated with the necessary setup and loop code to interact with the connected sensors and relay.