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

ESP32-Based Smart Home Sensor System with PIR Motion Detection and Environmental Monitoring

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Home Sensor System with PIR Motion Detection and Environmental Monitoring

Circuit Documentation

Summary

This circuit is designed to interface an ESP32 microcontroller with various sensors and indicators. The ESP32 reads data from a PIR motion sensor, a DHT22 temperature and humidity sensor, and a photocell (LDR). It also controls two LEDs (one red and one blue) to indicate different states. The circuit includes resistors to limit current and ensure proper operation of the components.

Component List

  1. HC-SR501 PIR Motion Sensor

    • Pins: Output, Ground, Power Supply
    • Description: Detects motion and outputs a signal when motion is detected.
  2. ESP32

    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
    • Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
  3. LED: Two Pin (red)

    • Pins: Cathode, Anode
    • Description: A red LED used for visual indication.
  4. LED: Two Pin (blue)

    • Pins: Cathode, Anode
    • Description: A blue LED used for visual indication.
  5. Resistor (10k Ohms)

    • Pins: Pin1, Pin2
    • Description: Limits current to protect components.
  6. Resistor (220 Ohms)

    • Pins: Pin1, Pin2
    • Description: Limits current to protect components.
  7. DHT22

    • Pins: +, Out, -
    • Description: Measures temperature and humidity.
  8. Photocell (LDR)

    • Pins: Pin 0, Pin 1
    • Description: Measures light intensity.

Wiring Details

HC-SR501 PIR Motion Sensor

ESP32

LED: Two Pin (red)

LED: Two Pin (blue)

Resistor (10k Ohms)

Resistor (220 Ohms)

DHT22

Photocell (LDR)

Code

No code provided for this circuit.