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

ESP32-Based Smart Home Automation System with PIR Motion Sensor and Relay Control

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Home Automation System with PIR Motion Sensor and Relay Control

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an ESP32 Devkit V1 microcontroller, a 4-channel relay module, multiple pushbuttons, a PIR motion sensor, an LED, bulbs, an AC source, and sockets. The circuit is designed to control various devices through the ESP32, with inputs from pushbuttons and a PIR motion sensor, and outputs to relays and an LED.

Component List

  1. ESP32 Devkit V1

    • Description: A microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
  2. Relay 4 Channel 5v

    • Description: A relay module that allows control of high voltage devices.
    • Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
  3. Pushbutton

    • Description: A simple pushbutton switch.
    • Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
  4. PIR Motion Sensor (Wokwi Compatible)

    • Description: A motion sensor that detects infrared radiation.
    • Pins: VCC, OUT, GND
  5. GND

    • Description: Ground connection.
    • Pins: GND
  6. LED: Two Pin (green)

    • Description: A green LED.
    • Pins: cathode, anode
  7. Bulb

    • Description: A standard light bulb.
    • Pins: GND, power
  8. AC Source

    • Description: An AC power source.
    • Pins: +, -
  9. Socket

    • Description: A standard electrical socket.
    • Pins: earth, life, neutral

Wiring Details

ESP32 Devkit V1

Relay 4 Channel 5v

Pushbutton

PIR Motion Sensor (Wokwi Compatible)

LED: Two Pin (green)

Bulb

AC Source

Socket

Documented Code

No code is provided for this circuit.