Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Based Water Quality Monitoring System with Relay-Controlled Pump

Image of Arduino UNO Based Water Quality Monitoring System with Relay-Controlled Pump

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.3V connected to DHT11 VCC
  • 5V connected to PH Meter VCC, Turbidity Module VCC, and Relay Module V+
  • GND connected to PH Meter GND, DHT11 GND, Turbidity Module GND, and Relay Module V-
  • A1 connected to PH Meter Signal
  • A2 connected to Turbidity Module OUT
  • D6 connected to DHT11 DATA
  • D7 connected to Relay Module trigger

Relay Module 5V-30V

  • common contact connected to Battery 12V positive
  • normally closed connected to Water Pump positive
  • V- connected to Arduino UNO GND
  • V+ connected to Arduino UNO 5V
  • trigger connected to Arduino UNO D7

Battery 12V

  • + connected to Relay Module common contact
  • - connected to Water Pump negative

DHT11

  • DATA connected to Arduino UNO D6
  • GND connected to Arduino UNO GND
  • VCC connected to Arduino UNO 3.3V

PH Meter

  • Signal connected to Arduino UNO A1
  • VCC connected to Arduino UNO 5V
  • GND connected to Arduino UNO GND

Turbidity Module

  • OUT connected to Arduino UNO A2
  • VCC connected to Arduino UNO 5V
  • GND connected to Arduino UNO GND

Water Pump

  • positive connected to Relay Module normally closed
  • negative connected 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.