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

Arduino UNO-Based Automated Rain Detection and Motor Control System

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Automated Rain Detection and Motor Control System

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, a DC motor driver, a hobby motor, a rain sensor, LEDs, limit switches, pushbuttons, and resistors. The circuit is designed to control a motor and respond to environmental inputs such as rain and button presses, with visual feedback provided by LEDs.

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. 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
  3. Motor (Hobby)

    • Description: Yellow geared DC motor.
    • Pins: vcc, GND
  4. Rain Sensor

    • Description: Sensor to detect rain.
    • Pins: AO, DO, GRD, VCC
  5. LED: Two Pin (Red)

    • Description: Red LED.
    • Pins: cathode, anode
  6. Limit Switch

    • Description: Mechanical switch to detect physical limits.
    • Pins: C, NO, NC
  7. Pushbutton

    • Description: Simple pushbutton switch.
    • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
  8. Resistor

    • Description: 200 Ohm resistor.
    • Pins: pin1, pin2
    • Properties: Resistance: 200 Ohms

Wiring Details

Arduino UNO

L298N DC Motor Driver

LED: Two Pin (Red)

Resistor

Documented Code

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, with setup and loop functions defined but not yet implemented. The setup function runs once when the microcontroller is powered on or reset, and the loop function runs continuously after the setup function completes.