Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP32-Based Smart Environmental Monitoring System with BH1750 and DHT22 Sensors

Image of ESP32-Based Smart Environmental Monitoring System with BH1750 and DHT22 Sensors

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, a BH1750 light sensor, a DHT22 temperature and humidity sensor, and two LD2410C radar sensors. The document includes a list of components, wiring details, and code documentation.

Component List

  1. ESP32 (30 pin)

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

    • Description: A digital light sensor that communicates over I2C.
    • Pins: VCC, GND, SCL, SDA, ADDR
  3. DHT22 (Wokwi Compatible)

    • Description: A digital temperature and humidity sensor.
    • Pins: VCC, SDA, NC, GND
  4. LD2410C (Instance 1)

    • Description: A radar sensor for motion detection.
    • Pins: RX, OUT, GND, VCC, TX
  5. LD2410C (Instance 2)

    • Description: A radar sensor for motion detection.
    • Pins: RX, OUT, GND, VCC, TX

Wiring Details

ESP32 (30 pin)

  • D27 is connected to SDA of DHT22 (Wokwi Compatible)
  • GND is connected to GND of BH1750, DHT22 (Wokwi Compatible), LD2410C (Instance 1), and LD2410C (Instance 2)
  • Vin is connected to VCC of LD2410C (Instance 1) and LD2410C (Instance 2)
  • D22 is connected to SDA of BH1750
  • TX0 is connected to RX of LD2410C (Instance 2)
  • RX0 is connected to TX of LD2410C (Instance 2)
  • D21 is connected to ADDR of BH1750
  • TX2 is connected to RX of LD2410C (Instance 1)
  • RX2 is connected to TX of LD2410C (Instance 1)
  • 3V3 is connected to VCC of BH1750 and DHT22 (Wokwi Compatible)

BH1750

  • GND is connected to GND of ESP32 (30 pin)
  • VCC is connected to 3V3 of ESP32 (30 pin)
  • SDA is connected to D22 of ESP32 (30 pin)
  • ADDR is connected to D21 of ESP32 (30 pin)

DHT22 (Wokwi Compatible)

  • GND is connected to GND of ESP32 (30 pin)
  • VCC is connected to 3V3 of ESP32 (30 pin)
  • SDA is connected to D27 of ESP32 (30 pin)

LD2410C (Instance 1)

  • GND is connected to GND of ESP32 (30 pin)
  • VCC is connected to Vin of ESP32 (30 pin)
  • RX is connected to TX2 of ESP32 (30 pin)
  • TX is connected to RX2 of ESP32 (30 pin)

LD2410C (Instance 2)

  • GND is connected to GND of ESP32 (30 pin)
  • VCC is connected to Vin of ESP32 (30 pin)
  • RX is connected to TX0 of ESP32 (30 pin)
  • TX is connected to RX0 of ESP32 (30 pin)

Code Documentation

No code is provided for this circuit.


This document provides a comprehensive overview of the circuit, including the components used and their wiring details. This should serve as a useful reference for understanding and replicating the circuit.