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

ESP32-Controlled Smart Relay System with Motion Detection and Manual Override

View and Edit Project In Cirkit DesignerImage of ESP32-Controlled Smart Relay System with Motion Detection and Manual Override

Circuit Documentation

Summary

The circuit in question is designed to control various devices, including relays, LEDs, and bulbs, using an ESP32 Devkit V1 microcontroller. The circuit includes pushbuttons for user input, a PIR motion sensor for detecting movement, and a 4-channel relay module for controlling AC-powered devices. The ESP32 Devkit V1 is the central processing unit that receives inputs from the pushbuttons and the PIR sensor to control the state of the LEDs and the relay channels, which in turn control the power to the bulbs and sockets.

Component List

ESP32 Devkit V1

Relay 4 Channel 5v

Pushbutton (4 instances)

PIR Motion Sensor (Wokwi Compatible)

LED: Two Pin (green)

Bulb (2 instances)

AC source

Socket (2 instances)

GND

Wiring Details

ESP32 Devkit V1

Relay 4 Channel 5v

Pushbutton (4 instances)

PIR Motion Sensor (Wokwi Compatible)

LED: Two Pin (green)

Bulb (2 instances)

AC source

Socket (2 instances)

Documented Code

There is no code provided for the microcontroller. The expected behavior would be for the ESP32 to read inputs from the pushbuttons and the PIR sensor and control the state of the LED and relay channels accordingly. The code would likely involve setting up GPIO pins as inputs or outputs, reading digital inputs, and writing digital outputs to control the relays and LED. Without the actual code, we cannot provide further documentation on the software part of this circuit.