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

Arduino-Controlled Relay System with PIR and IR Sensors for Automated Lighting and Fan Operation

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Relay System with PIR and IR Sensors for Automated Lighting and Fan Operation

Circuit Documentation

Summary

The circuit in question is a complex system that integrates various components including relays, sensors, a microcontroller, a stepper motor, and an LED strip. The primary control unit is an Arduino UNO microcontroller, which interfaces with a ULN2003 driver to control a 28BYJ-48 stepper motor. The circuit also includes PIR sensors for motion detection and IR sensors for object detection. A relay module is used to switch higher power loads, such as a fan and an LED strip. The system is designed to operate on a 5V supply for logic components and may require a 12V supply for the LED strip.

Component List

Relay 4 Channel 5v

LED Strip

Fan

Arduino UNO

ULN 2003

PIR Sensor

ESP32 (30 pin)

28BYJ-48 Stepper Motor

IR Sensor

Wiring Details

Relay 4 Channel 5v

LED Strip

Fan

Arduino UNO

ULN 2003

PIR Sensor

IR Sensor

28BYJ-48 Stepper Motor

Documented Code

Arduino UNO (Instance 1)

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

}

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

}

Arduino UNO (Instance 2)

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

}

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

}

(Note: The code provided for both instances of the Arduino UNO is a template and does not contain any functional code specific to the circuit's operation. Additional code would be required to control the components as per the circuit design.)