Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Based Automated Water Management System with Ultrasonic and Turbidity Sensors

View and Edit Project In Cirkit DesignerImage of Arduino-Based Automated Water Management System with Ultrasonic and Turbidity Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit involving an Arduino UNO, an Arduino Mega 2560, various sensors, relays, and other components. The circuit is designed to interface with multiple sensors and actuators, including ultrasonic sensors, turbidity sensors, solenoid valves, and pumps. The microcontrollers are programmed to control these components based on sensor inputs.

Component List

  1. Arduino UNO

    • Description: A microcontroller board based on the ATmega328P.
    • 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
  2. HC-SR04 Ultrasonic Sensor

    • Description: A sensor used to measure distance using ultrasonic waves.
    • Pins: VCC, TRIG, ECHO, GND
  3. 5V Relay

    • Description: A relay module used to control high voltage devices.
    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
  4. POWER SUPPLY 12V 5AMP

    • Description: A power supply providing 12V DC at 5A.
    • Pins: 220V Positive Pole (AC), 220V Negative Pole (AC), GND, GND (DC), 12V-24V Output (DC)
  5. Arduino Mega 2560

    • Description: A microcontroller board based on the ATmega2560.
    • Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, D21/SCL, D20/SDA, D19/RX1, D18/TX1, D17 PWM/RX2, D16 PWM/TX2, D15/RX3, D14/TX3, D0 RX0, D1 TX0, D2 PWM, D3 PWM, D4 PWM, D5 PWM, D6 PWM, D7 PWM, D8 PWM, D9 PWM, D10 PWM, D11 PWM, D12 PWM, D13 PWM, AREF, SDA, SCL, D52, D50, D48, D46, D44, D42, D40, D38, D36, D34, D32, D30, D28, D26, D24, D22, D53, D51, D49, D47, D45, D43, D41, D39, D37, D35, D33, D31, D29, D27, D25, D23
  6. 5V 2-Relay JD-VCC

    • Description: A relay module with two relays.
    • Pins: JD-VCC, VCC, GND, IN1, IN2, NO, COM, NC
  7. 16x2 I2C LCD

    • Description: A 16x2 character LCD with I2C interface.
    • Pins: GND, VCC, SDA, SCL
  8. 24/12V Buck Converter

    • Description: A buck converter to step down voltage.
    • Pins: VIN+, VIN-, 5V, GND
  9. Plastic Solenoid Valve

    • Description: A valve controlled by an electric current.
    • Pins: pin1, pin2
  10. Turbidity Sensor

    • Description: A sensor used to measure the turbidity of water.
    • Pins: OUT, VCC, GND
  11. Pump

    • Description: A device used to move fluids.
    • Pins: Pin 2, Pin 1

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

5V Relay

POWER SUPPLY 12V 5AMP

Arduino Mega 2560

5V 2-Relay JD-VCC

16x2 I2C LCD

24/12V Buck Converter

Plastic Solenoid Valve

Turbidity Sensor

Pump

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Arduino Mega 2560 Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

This documentation provides a comprehensive