Arduino UNO Controlled Smart Garden System with LCD Display and Soil Moisture Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface various sensors and actuators with an Arduino UNO microcontroller. The components include an LCD display for user interface, an HC-SR04 ultrasonic sensor for distance measurement, a soil moisture module and sensor for detecting soil humidity, and an SG90 servo motor for actuation based on sensor inputs. The Arduino UNO serves as the central processing unit, reading sensor data, controlling the servo motor, and displaying information on the LCD. Power distribution is managed through common VCC and GND connections to the Arduino's 5V and GND pins.
Component List
LCD Display 16x4 I2C
- Description: A 16x4 character LCD display with an I2C interface for displaying text and numbers.
- Pins: SCL, SDA, VCC, GND
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic ranging module to measure distances using sonar.
- Pins: VCC, TRIG, ECHO, GND
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, with digital and analog I/O pins.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
Soil Moisture Module
- Description: An electronic module used to measure the moisture level in soil.
- Pins: positive, negative, Analog, Digital, Ground, VCC
Soil Moisture Sensor
- Description: A sensor that measures the volumetric content of water in soil.
- Pins: VCC, GND, SIG
SG90 Servo Motor
- Description: A small and lightweight servo motor capable of precise control.
- Pins: PWM, 5V, GND
Wiring Details
LCD Display 16x4 I2C
- SCL: Connected to Arduino UNO A5 (SCL)
- SDA: Connected to Arduino UNO A4 (SDA)
- VCC: Connected to Arduino UNO 5V
- GND: Connected to Arduino UNO GND
HC-SR04 Ultrasonic Sensor
- VCC: Connected to Arduino UNO 5V
- TRIG: Connected to Arduino UNO D9
- ECHO: Connected to Arduino UNO D10
- GND: Connected to Arduino UNO GND
Arduino UNO
- 5V: Power supply to LCD, HC-SR04, Soil Moisture Module, and SG90 servo motor
- GND: Common ground for all components
- A4 (SDA): Connected to LCD SDA
- A5 (SCL): Connected to LCD SCL
- D9: Connected to HC-SR04 TRIG
- D10: Connected to HC-SR04 ECHO
- A0: Connected to Soil Moisture Module Analog
- D6: Connected to SG90 servo motor PWM
Soil Moisture Module
- VCC: Connected to Arduino UNO 5V
- Ground: Connected to Arduino UNO GND
- Analog: Connected to Arduino UNO A0
- positive: Connected to Soil Moisture Sensor VCC
- negative: Connected to Soil Moisture Sensor GND
Soil Moisture Sensor
- VCC: Connected to Soil Moisture Module positive
- GND: Connected to Soil Moisture Module negative
- SIG: Not connected in the provided net list
SG90 Servo Motor
- PWM: Connected to Arduino UNO D6
- 5V: Connected to Arduino UNO 5V
- GND: Connected 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:
}
Note: The provided code is a template and does not include specific functionality. It should be populated with initialization code in setup() and operational code in loop() to interact with the connected components.