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

Arduino Uno-Based Automated Motor Control System with Rain Sensor and Relay

View and Edit Project In Cirkit DesignerImage of Arduino Uno-Based Automated Motor Control System with Rain Sensor and Relay

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an Arduino Uno R3, a 1 Channel Relay, a 12V Battery, a Universal Barrel Jack Male, a DCDC 12V/5V converter, an L298N DC motor driver, a Rain Sensor, Micro Switches, an RS 775 DC Motor, a DC Worm Gear Motor, and a Terminal PCB. The circuit is designed to control motors and respond to environmental conditions such as rain.

Component List

Arduino Uno R3

1 Channel Relay 5V

12V Battery

Universal Barrel Jack Male

DCDC 12V/5V 3A

L298N DC Motor Driver

Rain Sensor

Micro Switch

RS 775 DC Motor

DC Worm Gear Motor

Terminal PCB 2 Pin

Wiring Details

Arduino Uno R3

1 Channel Relay 5V

12V Battery

Universal Barrel Jack Male

DCDC 12V/5V 3A

L298N DC Motor Driver

Rain Sensor

Micro Switch

RS 775 DC Motor

Terminal PCB 2 Pin

Documented Code

Arduino Uno R3 Code

const int relayPin = 11;  // Relay control pin

void setup() {
  pinMode(relayPin, OUTPUT);
}

void loop() {
  // Turn the motor ON for 2 seconds
  digitalWrite(relayPin, HIGH);
  delay(2000);
  // Turn the motor OFF for 10 seconds
  digitalWrite(relayPin, LOW);
  delay(10000);
}

1 Channel Relay 5V Code

void setup() {
  // put your setup code here, to run once:
}

void loop() {
  // put your main code here, to run repeatedly:
}

This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the microcontrollers.