Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO-Based Smart Irrigation System with Motion Detection and Bluetooth Connectivity

Image of Arduino UNO-Based Smart Irrigation System with Motion Detection and Bluetooth Connectivity

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to interface various components with an Arduino UNO microcontroller. The circuit includes sensors, actuators, a display, and communication modules, which are interconnected to perform specific tasks. The Arduino UNO serves as the central processing unit, controlling the components based on the inputs from sensors and executing the embedded code.

Component List

HC-SR501 Motion Sensor

  • Pins: GND, OUT, VCC
  • Description: A sensor that detects motion based on infrared signals.

Mini Diaphragm Water Pump

  • Pins: Positive (+), Negative (-)
  • Description: A pump used for moving water.

Relay 4 Channel 5v

  • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  • Description: A 4-channel relay module for controlling high power devices.

DHT22

  • Pins: +, Out, -
  • Description: A sensor for measuring temperature and humidity.

LCD Screen 16x2 I2C

  • Pins: SCL, SDA, VCC, GND
  • Description: A 16x2 character LCD display with an I2C interface.

DC Motor

  • Pins: Pin 1, Pin 2
  • Description: An electric motor for converting electrical energy into mechanical motion.

HC-05 Bluetooth Module

  • Pins: Key, VCC, TXD, RXD, State, GND
  • Description: A Bluetooth module for wireless communication.

Arduino UNO

  • Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
  • Description: A microcontroller board based on the ATmega328P.

LED: Two Pin (Red)

  • Pins: Cathode, Anode
  • Description: A red light-emitting diode.

Resistor (200 Ohms)

  • Pins: Pin1, Pin2
  • Description: A resistor with a resistance of 200 Ohms.

Wiring Details

HC-SR501 Motion Sensor

  • GND connected to common ground.
  • OUT connected to Arduino UNO pin D2.
  • VCC connected to common 5V supply.

Mini Diaphragm Water Pump

  • Positive (+) connected to Relay 4 Channel 5v NO4.
  • Negative (-) connected to common ground.

Relay 4 Channel 5v

  • GND connected to common ground.
  • IN1-IN4 connected to Arduino UNO pins D4-D7 respectively.
  • VCC connected to common 5V supply.
  • COM1-COM3 interconnected.
  • NO4 connected to Mini Diaphragm Water Pump Positive (+).

DHT22

  • + connected to common 5V supply.
  • Out connected to Arduino UNO pin D3.
  • - connected to common ground.

LCD Screen 16x2 I2C

  • SCL connected to Arduino UNO pin A5.
  • SDA connected to Arduino UNO pin A4.
  • VCC connected to common 5V supply.
  • GND connected to common ground.

HC-05 Bluetooth Module

  • VCC connected to common 5V supply.
  • TXD connected to Arduino UNO pin D0.
  • RXD connected to Arduino UNO pin D1.
  • State connected to LED: Two Pin (Red) Anode.
  • GND connected to common ground.

LED: Two Pin (Red)

  • Cathode connected to Resistor (200 Ohms) pin1.
  • Anode connected to HC-05 Bluetooth Module State.

Resistor (200 Ohms)

  • Pin1 connected to LED: Two Pin (Red) Cathode.
  • Pin2 connected to common ground.

Documented Code

The code for the Arduino UNO microcontroller is not provided in the input. However, the code would typically include setup and loop functions, initializing the pins and setting up the serial communication for the HC-05 Bluetooth module, reading from the DHT22 sensor, controlling the relay to power the water pump, and updating the LCD display based on sensor inputs and system status.

// Placeholder for actual code
void setup() {
  // Initialize pins, serial communication, etc.
}

void loop() {
  // Main logic for reading sensors, controlling actuators, etc.
}

Please note that the actual code must be written and uploaded to the Arduino UNO to control the circuit as per the design requirements.