Arduino-Based Automated Water Level Monitoring and Control System with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as resistors, pushbuttons, an ultrasonic sensor, a water pump, a power jack, a potentiometer, an LCD display, water level float switch sensors, a fuse holder, a relay module, and two Arduino UNO microcontrollers. The circuit is designed to perform specific functions, which are controlled by the microcontrollers.
Component List
Resistor
- Description: A passive electrical component that implements electrical resistance as a circuit element.
- Pins: pin1, pin2
- Properties:
- Resistance: 220 Ohms
- Resistance: 10000 Ohms
Pushbutton
- Description: A simple switch mechanism for controlling some aspect of a machine or a process.
- Pins: Pin 1 (in), Pin 2 (in), Pin 3 (out), Pin 4 (out)
HC-SR04 Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Water Pump
- Description: A device used to move fluids, such as water.
- Pins: VCC, GND
Power Jack
- Description: A connector used to supply power to the circuit.
- Pins: POSITIF, NEGATIF
Potentiometer
- Description: A three-terminal resistor with a sliding or rotating contact that forms an adjustable voltage divider.
- Pins: GND, Output, VCC
LCD 16x2 (Wokwi Compatible)
- Description: A 16x2 character LCD display.
- Pins: VSS, VDD, V0, RS, RW, E, D0, D1, D2, D3, D4, D5, D6, D7, A, K
Water Level Float Switch Sensor
- Description: A sensor used to detect the level of liquid within a tank.
- Pins: Wire1, Wire2
Fuse Holder
- Description: A holder for a fuse, which is a safety device that protects an electrical circuit from overcurrent.
- Pins: wire 1, wire 2
1 Channel 5V Relay Module
- Description: A relay module used to control high voltage devices with a low voltage signal.
- Pins: VCC+, VCC- (GND), IN, N.O., COM, N.C.
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
Wiring Details
Resistor
220 Ohms Resistor:
- pin1: Connected to LCD 16x2 (Wokwi Compatible) A
- pin2: Connected to LCD 16x2 (Wokwi Compatible) VDD
10000 Ohms Resistor:
- pin1: Connected to Pushbutton Pin 3 (out)
- pin2: Connected to GND
Pushbutton
Pushbutton 1:
- Pin 1 (in): Connected to 5V
- Pin 2 (in): Connected to Arduino UNO D8
- Pin 3 (out): Connected to Resistor pin1
- Pin 4 (out): Not connected
Pushbutton 2:
- Pin 1 (in): Connected to 5V
- Pin 2 (in): Connected to Arduino UNO D9
- Pin 3 (out): Connected to Resistor pin1
- Pin 4 (out): Not connected
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V
- TRIG: Connected to Arduino UNO D12
- ECHO: Connected to Arduino UNO D13
- GND: Connected to GND
Water Pump
- VCC: Connected to 1 Channel 5V Relay Module COM
- GND: Connected to Power Jack NEGATIF
Power Jack
- POSITIF: Connected to Fuse Holder wire 2
- NEGATIF: Connected to Water Pump GND
Potentiometer
- GND: Connected to LCD 16x2 (Wokwi Compatible) V0
- Output: Connected to LCD 16x2 (Wokwi Compatible) VDD
- VCC: Connected to GND
LCD 16x2 (Wokwi Compatible)
- VSS: Connected to GND
- VDD: Connected to Potentiometer Output
- V0: Connected to Potentiometer GND
- RS: Connected to Arduino UNO D2
- RW: Connected to GND
- E: Connected to Arduino UNO D3
- D4: Connected to Arduino UNO D4
- D5: Connected to Arduino UNO D5
- D6: Connected to Arduino UNO D6
- D7: Connected to Arduino UNO D7
- A: Connected to Resistor pin1
- K: Connected to GND
Water Level Float Switch Sensor
Sensor 1:
- Wire1: Connected to GND
- Wire2: Connected to Arduino UNO A0
Sensor 2:
- Wire1: Connected to GND
- Wire2: Connected to Arduino UNO A1
Fuse Holder
- wire 1: Connected to 1 Channel 5V Relay Module N.C.
- wire 2: Connected to Power Jack POSITIF
1 Channel 5V Relay Module
- VCC+: Connected to 5V
- VCC- (GND): Connected to GND
- IN: Connected to Arduino UNO D11
- N.O.: Not connected
- COM: Connected to Water Pump VCC
- N.C.: Connected to Fuse Holder wire 1
Arduino UNO
Arduino UNO 1:
- GND: Connected to GND
- 5V: Connected to 5V
- D2: Connected to LCD 16x2 (Wokwi Compatible) RS
- D3: Connected to LCD 16x2 (Wokwi Compatible) E
- D4: Connected to LCD 16x2 (Wokwi Compatible) D4
- D5: Connected to LCD 16x2 (Wokwi Compatible) D5
- D6: Connected to LCD 16x2 (Wokwi Compatible) D6
- D7: Connected to LCD 16x2 (Wokwi Compatible) D7
- D8: Connected to Pushbutton Pin 2 (in)
- D9: Connected to Pushbutton Pin 2 (in)
- D11: Connected to 1 Channel 5V Relay Module IN
- D12: Connected to HC-SR04 Ultrasonic Sensor TRIG
- D13: Connected to HC-SR04 Ultrasonic Sensor ECHO
- A0: Connected to Water Level Float Switch Sensor Wire2
- A1: Connected to Water Level Float Switch Sensor Wire1
Arduino UNO 2:
- GND: Connected to GND
- 5V: Connected to 5V
- D11: Connected to 1 Channel 5V Relay Module IN
- A0: Connected to Water Level Float Switch Sensor Wire2
- A1: Connected to Water Level Float Switch Sensor Wire1
Documented Code
Arduino UNO 1
File Name: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
File Name: documentation.txt
Arduino UNO 2
File Name: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
File Name: documentation.txt
This concludes the documentation for the circuit.