Arduino UNO-Based Smart Irrigation System with Bluetooth Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfaced with various sensors and actuators through an Arduino Sensor Shield v5.0. The components include an ultrasonic sensor, a Bluetooth module, a DC motor driver, a relay module, an IR sensor, a servo motor, a water pump, and a 4xAA battery pack. The circuit is designed to perform various sensing and actuation tasks, controlled by the Arduino UNO.
Component List
Arduino UNO
- Description: 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
HC-SR04 Ultrasonic Sensor
- Description: Ultrasonic distance sensor.
- Pins: VCC, TRIG, ECHO, GND
Arduino Sensor Shield v5.0
- Description: Expansion shield for Arduino UNO to simplify sensor and actuator connections.
- Pins: VCC, SD-VCC, SD-GND, SD-D11, SD-D10, SD-D13, SD-D12, URF01-VCC, URF01-A0, URF01-A1, URF01-GND, GND, SEL1, SEL2, A0-SIG, A0-VCC, A0-GND, A1-SIG, A1-VCC, A1-GND, A2-SIG, A2-VCC, A2-GND, A3-SIG, A3-VCC, A3-GND, A4-SIG, A4-VCC, A4-GND, A5-SIG, A5-VCC, A5-GND, IIC-SCL, IIC-SDA, IIC-GND, IIC-VCC, COM-TX, COM-RX, COM-GND, COM-VCC, APC220-, APC220-D0, APC220-D1, APC220-VCC, APC220-GND, BLUETOOTH-3V3, BLUETOOTH-GND, BLUETOOTH-D0, BLUETOOTH-D1, BLUETOOTH-VCC, AREF-S, AREF-V, AREF-G, GND-S, GND-V, GND-G, 13-S, 13-V, 13-G, 12-S, 12-V, 12-G, 11-S, 11-V, 11-G, 10-S, 10-V, 10-G, 9-S, 9-V, 9-G, 8-S, 8-V, 8-G, 7-S, 7-V, 7-G, 6-S, 6-V, 6-G, 5-S, 5-V, 5-G, 4-S, 4-V, 4-G, 3-S, 3-V, 3-G, 2-S, 2-V, 2-G, 1-S, 1-V, 1-G, 0-S, 0-V, 0-G, ParallelLCD-VCC, ParallelLCD-D13, ParallelLCD-GND, ParallelLCD-D12, ParallelLCD-D2, ParallelLCD-D11, ParallelLCD-D3, ParallelLCD-D10, ParallelLCD-D4, ParallelLCD-D9, ParallelLCD-D5, ParallelLCD-D8, ParallelLCD-D6, ParallelLCD-D7, SerialLCD-D4, SerialLCD-VCC, SerialLCD-D3, SerialLCD-, SerialLCD-D2, SerialLCD-GND
Servo
- Description: Actuator for precise control of angular position.
- Pins: GND, VCC, PWM
Water Pump
- Description: Pump for moving water.
- Pins: positive, negative
Relay Module 5V-30V
- Description: Relay module for switching high voltage devices.
- Pins: common contact, normally open, normally closed, trigger, V-, V+
4 Channel IR Sensor
- Description: Infrared sensor module with four channels.
- Pins: VSV, GND, In1, In2, In3, In4
4xAA Battery Pack
- Description: Battery pack providing power from four AA batteries.
- Pins: POS, NEG
L298N DC Motor Driver
- Description: Dual H-Bridge motor driver.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
HC-05 Bluetooth Module
- Description: Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Wiring Details
HC-SR04 Ultrasonic Sensor
- VCC connected to Arduino Sensor Shield v5.0 pin 4-V
- TRIG connected to Arduino Sensor Shield v5.0 pin 4-S
- ECHO connected to Arduino Sensor Shield v5.0 pin 5-S
- GND connected to Arduino Sensor Shield v5.0 pin 4-G
HC-05 Bluetooth Module
- TXD connected to Arduino Sensor Shield v5.0 pin BLUETOOTH-D0
- RXD connected to Arduino Sensor Shield v5.0 pin BLUETOOTH-D1
- GND connected to Arduino Sensor Shield v5.0 pin BLUETOOTH-GND
- VCC connected to Arduino Sensor Shield v5.0 pin BLUETOOTH-VCC
L298N DC Motor Driver
- 5V connected to Arduino Sensor Shield v5.0 pin AREF-V
- IN4 connected to Arduino Sensor Shield v5.0 pin 12-S
- IN3 connected to Arduino Sensor Shield v5.0 pin 11-S
- IN2 connected to Arduino Sensor Shield v5.0 pin 10-S
- IN1 connected to Arduino Sensor Shield v5.0 pin 9-S
- 12V connected to 4xAA Battery Pack pin POS
- GND connected to 4xAA Battery Pack pin NEG
Relay Module 5V-30V
- common contact connected to Arduino Sensor Shield v5.0 pin 8-S
- V+ connected to Arduino Sensor Shield v5.0 pin 8-V
- V- connected to Arduino Sensor Shield v5.0 pin 8-G
- normally open connected to Water Pump pin positive
- normally closed connected to Water Pump pin negative
4 Channel IR Sensor
- VSV connected to Arduino Sensor Shield v5.0 pin 12-V
- GND connected to Arduino Sensor Shield v5.0 pin 12-G
- In3 connected to Arduino Sensor Shield v5.0 pin 7-S
- In2 connected to Arduino Sensor Shield v5.0 pin 3-S
- In1 connected to Arduino Sensor Shield v5.0 pin 2-S
Servo
- PWM connected to Arduino Sensor Shield v5.0 pin 6-S
- VCC connected to Arduino Sensor Shield v5.0 pin 6-V
- GND connected to Arduino Sensor Shield v5.0 pin 6-G
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where the main logic of your program runs continuously.