Arduino UNO Based Water Detection and GSM Notification System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit integrates an Arduino UNO microcontroller with a water sensor, a SIM800L GSM module, and an LCD screen (16x2 with I2C interface). The Arduino UNO serves as the central processing unit, interfacing with the water sensor to detect water levels, communicating with the GSM module for cellular connectivity, and displaying information on the LCD screen. The water sensor is powered by the 3.3V output from the Arduino, while the GSM module and the LCD screen are powered by the 5V output. Ground connections are shared among all components to complete the circuit. The GSM module is connected to the Arduino via digital pins for serial communication and control. The LCD screen communicates with the Arduino using the I2C protocol through analog pins A4 and A5.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
Water Sensor
- Description: A sensor for detecting water levels.
- Pins: Signal, VCC, GND.
SIM800L GSM Module
- Description: A GSM/GPRS module for cellular communication.
- Pins: 5V, GND, VDD, SIM_TXD, SIM_RXD, RST.
LCD Screen 16x2 I2C
- Description: An alphanumeric liquid crystal display with an I2C interface.
- Pins: SCL, SDA, VCC, GND.
Wiring Details
Arduino UNO
- 3.3V to Water Sensor VCC
- 5V to SIM800L GSM Module 5V and LCD Screen VCC
- GND to Water Sensor GND, SIM800L GSM Module GND, and LCD Screen GND
- A3 to Water Sensor Signal
- A4 to LCD Screen SDA
- A5 to LCD Screen SCL
- D2 to SIM800L GSM Module SIM_RXD
- D3 to SIM800L GSM Module SIM_TXD
- D4 to SIM800L GSM Module RST
Water Sensor
- Signal to Arduino UNO A3
- VCC to Arduino UNO 3.3V
- GND to Arduino UNO GND
SIM800L GSM Module
- 5V to Arduino UNO 5V
- GND to Arduino UNO GND
- SIM_TXD to Arduino UNO D3
- SIM_RXD to Arduino UNO D2
- RST to Arduino UNO D4
LCD Screen 16x2 I2C
- SCL to Arduino UNO A5
- SDA to Arduino UNO A4
- VCC to Arduino UNO 5V
- GND to Arduino UNO GND
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:
}
Additional Notes
- The provided code is a template and does not include specific functionality. It needs to be populated with the logic for interacting with the water sensor, GSM module, and LCD screen.
- The
setup()function is intended for initialization code that runs once, such as setting pin modes or initializing libraries. - The
loop()function contains the main logic of the program, which runs repeatedly aftersetup()is complete.