Arduino-Based Soil Moisture Monitoring System with LCD Display and Buzzer Alert
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to monitor soil moisture levels and control a relay based on the moisture readings. It uses an Arduino UNO microcontroller to read data from a soil moisture sensor and display the readings on an LCD screen. Additionally, a relay is used to control a buzzer, which can be activated based on the moisture levels.
Component List
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
5V Relay
- Description: A relay module that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
SparkFun Soil Moisture Sensor
- Description: A sensor to measure the moisture content in the soil.
- Pins: VCC, GND, SIG
Soil Moisture Module
- Description: A module to interface with the soil moisture sensor.
- Pins: positive, negative, Analog, Digital, Ground, VCC
LCD Screen 16x2 I2C
- Description: A 16x2 character LCD display with I2C interface.
- Pins: SCL, SDA, VCC, GND
5V Battery
- Description: A 5V power source.
- Pins: +, -
Buzzer
- Description: A simple buzzer for audio alerts.
- Pins: PIN, GND
Wiring Details
Arduino UNO
- A0: Connected to Soil Moisture Module (Analog)
- A4: Connected to LCD Screen 16x2 I2C (SDA)
- A5: Connected to LCD Screen 16x2 I2C (SCL)
- D2: Connected to 5V Relay (In)
5V Relay
- In: Connected to Arduino UNO (D2)
- Normally Open: Connected to 5V Relay (VCC), Soil Moisture Module (VCC), LCD Screen 16x2 I2C (VCC), 5V Battery (+)
- Common terminal: Connected to Buzzer (PIN)
- GND: Connected to Soil Moisture Module (Ground), LCD Screen 16x2 I2C (GND), Buzzer (GND), 5V Battery (-)
SparkFun Soil Moisture Sensor
- VCC: Connected to Soil Moisture Module (positive)
- GND: Connected to Soil Moisture Module (negative)
Soil Moisture Module
- Analog: Connected to Arduino UNO (A0)
- positive: Connected to SparkFun Soil Moisture Sensor (VCC)
- negative: Connected to SparkFun Soil Moisture Sensor (GND)
- Ground: Connected to 5V Relay (GND)
- VCC: Connected to 5V Relay (Normally Open)
LCD Screen 16x2 I2C
- SDA: Connected to Arduino UNO (A4)
- SCL: Connected to Arduino UNO (A5)
- VCC: Connected to 5V Relay (Normally Open)
- GND: Connected to 5V Relay (GND)
5V Battery
- +: Connected to 5V Relay (Normally Open)
- -: Connected to 5V Relay (GND)
Buzzer
- PIN: Connected to 5V Relay (Common terminal)
- GND: Connected to 5V Relay (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 Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.