Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO-Based Solar-Powered Smart Irrigation System with Ultrasonic and IR Sensors

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Solar-Powered Smart Irrigation System with Ultrasonic and IR Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, multiple DC motors, an ultrasonic sensor, an IR receiver, a water pump, a solar panel, a rocker switch, a motor driver, a relay module, a voltage regulator, and batteries. The circuit is designed to control various components using the Arduino UNO, with power supplied by batteries and a solar panel.

Component List

  1. 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
  2. DC Motor

    • Description: Standard DC motor.
    • Pins: pin 1, pin 2
  3. HC-SR04 Ultrasonic Sensor

    • Description: Ultrasonic distance sensor.
    • Pins: VCC, TRIG, ECHO, GND
  4. IR Receiver

    • Description: Infrared receiver module.
    • Pins: DATA, VCC, GND
  5. Water Pump

    • Description: Small water pump.
    • Pins: positive, negative
  6. Solar Panel

    • Description: Solar panel for power generation.
    • Pins: +, -
  7. Rocker Switch (SPST)

    • Description: Single Pole Single Throw rocker switch.
    • Pins: 1, 2
  8. Motor Driver (L298N)

    • Description: Dual H-Bridge motor driver.
    • Pins: OUT 1, OUT 2, OUT 3, OUT 4, +12V INPUT, GND, +5V OUTPUT, ENA, IN 1, IN 2, IN 3, IN 4, ENB
  9. Relay 4 Channel 5v

    • Description: 4-channel relay module.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  10. Voltage Regulator

    • Description: Voltage regulator for power management.
    • Pins: GND, IN, OUT
  11. 5v Battery

    • Description: 5V battery for power supply.
    • Pins: +, -

Wiring Details

Arduino UNO

DC Motor

HC-SR04 Ultrasonic Sensor

IR Receiver

Water Pump

Solar Panel

Rocker Switch (SPST)

Motor Driver (L298N)

Relay 4 Channel 5v

Voltage Regulator

5v Battery

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:

}

Documentation (documentation.txt)

This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code. Each component is described, and its connections are detailed to ensure clarity and ease of understanding.