Arduino UNO-Based Smart Irrigation System with Soil Moisture Sensor and OLED Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to interface an Arduino UNO with various sensors, actuators, and modules. The components include a DHT22 temperature and humidity sensor, a buzzer module, an OLED display, a capacitive soil moisture sensor, two Tower Pro SG90 servos, a mini diaphragm water pump, a buck converter, a two-channel relay, two fans, a DC barrel jack, an ultrasonic sensor, and an LED strip. The Arduino UNO serves as the central microcontroller, managing inputs from sensors and controlling outputs to actuators and displays.
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
DHT22
- Description: A temperature and humidity sensor.
- Pins: GND, VCC, DAT
Buzzer Module
- Description: A module that produces sound.
- Pins: GND, Vcc, I/O
OLED Display 128x32
- Description: A 128x32 pixel OLED display.
- Pins: SDA, SCL, VCC, GND
DFRobot Capacitive Soil Moisture Sensor (V1.0)
- Description: A sensor to measure soil moisture.
- Pins: A, VCC, GND
Tower Pro SG90 Servo
- Description: A small servo motor.
- Pins: Signal, +5V, GND
Mini Diaphragm Water Pump
- Description: A small water pump.
- Pins: Positive (+), Negative (-)
Buck Converter
- Description: A DC-DC converter to step down voltage.
- Pins: IN+, IN-, OUT+, OUT-
Two Channel Relay 5V
- Description: A relay module to control high voltage devices.
- Pins: VCC, IN2, IN1, GND, NC2, C2, NO2, NC1, C1, NO1
Fan
- Description: A small fan for cooling.
- Pins: GND, 5V
2.1mm DC Barrel Jack
- Description: A barrel jack for DC power input.
- Pins: switch, sleeve, center
Ultrasonic Sensor
- Description: A sensor to measure distance using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
LED Strip
- Description: An LED strip with RGB LEDs.
- Pins: B, +12V, R, G
12V Relay
- Description: A relay module to control high voltage devices.
- Pins: NO, COM, NC, IN, DC-, DC+
Wiring Details
Arduino UNO
5V connected to:
- DFRobot Capacitive Soil Moisture Sensor (VCC)
- OLED Display (VCC)
- Tower Pro SG90 Servo (x2) (+5V)
- DHT22 (VCC)
- Two Channel Relay 5V (VCC)
- Ultrasonic Sensor (+VCC)
- Buzzer Module (Vcc)
GND connected to:
- DFRobot Capacitive Soil Moisture Sensor (GND)
- OLED Display (GND)
- Tower Pro SG90 Servo (x2) (GND)
- DHT22 (GND)
- Two Channel Relay 5V (GND)
- Ultrasonic Sensor (GND)
- Buzzer Module (GND)
- Buck Converter (OUT-)
Vin connected to:
- Buck Converter (OUT+)
A0 connected to:
- DFRobot Capacitive Soil Moisture Sensor (A)
A1 connected to:
- OLED Display (SCL)
A2 connected to:
- OLED Display (SDA)
D13 connected to:
- Buzzer Module (I/O)
D12 connected to:
- DHT22 (DAT)
D11 connected to:
- Tower Pro SG90 Servo (Signal)
D10 connected to:
- Tower Pro SG90 Servo (Signal)
D9 connected to:
- Ultrasonic Sensor (Trigger)
D8 connected to:
- Ultrasonic Sensor (Echo)
D7 connected to:
- Two Channel Relay 5V (IN1)
D6 connected to:
- Two Channel Relay 5V (IN2)
DHT22
GND connected to:
- Arduino UNO (GND)
VCC connected to:
- Arduino UNO (5V)
DAT connected to:
- Arduino UNO (D12)
Buzzer Module
GND connected to:
- Arduino UNO (GND)
Vcc connected to:
- Arduino UNO (5V)
I/O connected to:
- Arduino UNO (D13)
OLED Display 128x32
SDA connected to:
- Arduino UNO (A2)
SCL connected to:
- Arduino UNO (A1)
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
DFRobot Capacitive Soil Moisture Sensor (V1.0)
A connected to:
- Arduino UNO (A0)
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
Tower Pro SG90 Servo
Signal connected to:
- Arduino UNO (D11) (Servo 1)
- Arduino UNO (D10) (Servo 2)
+5V connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
Mini Diaphragm Water Pump
Positive (+) connected to:
- Two Channel Relay 5V (NC2)
Negative (-) connected to:
- Buck Converter (IN-)
Buck Converter
IN+ connected to:
- Two Channel Relay 5V (C2)
- 2.1mm DC Barrel Jack (center)
IN- connected to:
- Mini Diaphragm Water Pump (Negative (-))
- Fan (GND) (x2)
- 2.1mm DC Barrel Jack (switch, sleeve)
OUT+ connected to:
- Arduino UNO (Vin)
OUT- connected to:
- Arduino UNO (GND)
Two Channel Relay 5V
VCC connected to:
- Arduino UNO (5V)
IN2 connected to:
- Arduino UNO (D6)
IN1 connected to:
- Arduino UNO (D7)
GND connected to:
- Arduino UNO (GND)
NC2 connected to:
- Mini Diaphragm Water Pump (Positive (+))
C2 connected to:
- Two Channel Relay 5V (NO1)
- Buck Converter (IN+)
C1 connected to:
- Fan (5V) (x2)
Fan
GND connected to:
- Buck Converter (IN-)
5V connected to:
- Two Channel Relay 5V (C1)
2.1mm DC Barrel Jack
switch connected to:
- Buck Converter (IN-)
sleeve connected to:
- Buck Converter (IN-)
center connected to:
- Buck Converter (IN+)
Ultrasonic Sensor
+VCC connected to:
- Arduino UNO (5V)
Trigger connected to:
- Arduino UNO (D9)
Echo connected to:
- Arduino UNO (D8)
GND connected to:
- Arduino UNO (GND)
LED Strip
- B not connected
- +12V not connected
- R not connected
- G not connected
12V Relay
- NO not connected
- COM not connected
- NC not connected
- IN not connected
- DC- not connected
- DC+ not connected
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,