Arduino Mega 2560-Based Water Level Monitoring System with LCD Display and Servo Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an LCD Display, a Rotary Potentiometer, a Water Level Sensor, a Servo, and an Arduino Mega 2560. The circuit is designed to interface these components with the Arduino Mega 2560, which controls the operation and reads data from the sensors.
Component List
LCD Display (16 pin)
- Description: A 16-pin LCD display used for visual output.
- Pins: VSS, VDD, VO, RS, R_W, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, A, K
Rotary Potentiometer
- Description: A variable resistor used to adjust voltage levels.
- Pins: leg1, wiper, leg2
- Properties:
- Resistance: 10000 Ohms
Water Level Sensor
- Description: A sensor used to detect water levels.
- Pins: SIG, VCC, GND
Servo
- Description: A servo motor used for precise control of angular position.
- Pins: GND, VCC, PWM
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, AREF, SDA, SCL
Wiring Details
LCD Display (16 pin)
- VSS: Connected to Arduino Mega 2560 GND
- VDD: Connected to Arduino Mega 2560 5V
- VO: Connected to Rotary Potentiometer wiper
- RS: Connected to Arduino Mega 2560 D7 PWM
- R_W: Connected to Arduino Mega 2560 GND
- E: Connected to Arduino Mega 2560 D8 PWM
- DB4: Connected to Arduino Mega 2560 D9 PWM
- DB5: Connected to Arduino Mega 2560 D10 PWM
- DB6: Connected to Arduino Mega 2560 D11 PWM
- DB7: Connected to Arduino Mega 2560 D12 PWM
- A: Connected to Arduino Mega 2560 5V
- K: Connected to Arduino Mega 2560 GND
Rotary Potentiometer
- leg1: Connected to Arduino Mega 2560 5V
- wiper: Connected to LCD Display VO
- leg2: Connected to Arduino Mega 2560 GND
Water Level Sensor
- SIG: Connected to Arduino Mega 2560 A0
- VCC: Connected to Arduino Mega 2560 5V
- GND: Connected to Arduino Mega 2560 GND
Servo
- GND: Connected to Arduino Mega 2560 GND
- VCC: Connected to Arduino Mega 2560 5V
- PWM: Connected to Arduino Mega 2560 D6 PWM
Arduino Mega 2560
- 5V: Connected to Water Level Sensor VCC, LCD Display VDD, LCD Display A, Rotary Potentiometer leg1, Servo VCC
- GND: Connected to Water Level Sensor GND, LCD Display VSS, LCD Display R_W, LCD Display K, Rotary Potentiometer leg2, Servo GND
- A0: Connected to Water Level Sensor SIG
- D6 PWM: Connected to Servo PWM
- D7 PWM: Connected to LCD Display RS
- D8 PWM: Connected to LCD Display E
- D9 PWM: Connected to LCD Display DB4
- D10 PWM: Connected to LCD Display DB5
- D11 PWM: Connected to LCD Display DB6
- D12 PWM: Connected to LCD Display DB7
Documented Code
Arduino Mega 2560 Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt