ESP32-Based Environmental Monitoring System with Motion Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface an ESP32 microcontroller with a set of sensors including a PIR (Passive Infrared) sensor for motion detection, a DHT22 sensor for measuring temperature and humidity, and a BH1750 sensor for measuring ambient light intensity. The ESP32 serves as the central processing unit, collecting data from the sensors and potentially using it for further processing or communication.
Component List
ESP32 on Baseboard
- Description: A microcontroller development board based on the ESP32 chip, which is a powerful Wi-Fi and Bluetooth enabled MCU.
- Purpose: Acts as the central processing unit of the circuit, reading sensor data and controlling the flow of information.
- Pins: GPIO23, GPIO22, GPIO1/TX, GPIO3/RX, GPIO21, GPIO19, GPIO18, GPIO5, GPIO17, GPIO16, GPIO4, GPIO0, GPIO2, GPIO15, SD1, SD0, CLK, V, G, GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO12, GPIO13, SD2, SD3, GND, 5V, 3V, TX, RX, VCC, D22, D21
PIR Sensor
- Description: A sensor that detects motion by measuring changes in the infrared levels emitted by surrounding objects.
- Purpose: To detect the presence of motion or an object in its field of view.
- Pins: VDD, SIG, GND
DHT22
- Description: A sensor for measuring temperature and humidity in the environment.
- Purpose: To provide environmental data to the ESP32 for monitoring or control purposes.
- Pins: +, Out, -
BH1750
- Description: A digital ambient light sensor that provides a digital signal output proportional to the ambient light intensity.
- Purpose: To measure the intensity of ambient light for applications such as adjusting screen brightness or for environmental monitoring.
- Pins: VCC, GND, SCL, SDA, ADDR
Wiring Details
ESP32 on Baseboard
- GPIO22 connected to BH1750 SCL
- GPIO21 connected to BH1750 SDA
- GPIO15 connected to PIR Sensor SIG
- GPIO13 connected to DHT22 Out
- 5V connected to PIR Sensor VDD and DHT22 +
- GND connected to BH1750 GND, PIR Sensor GND, and DHT22 -
- 3V connected to BH1750 VCC
PIR Sensor
- SIG connected to ESP32 GPIO15
- VDD connected to ESP32 5V
- GND connected to ESP32 GND
DHT22
- Out connected to ESP32 GPIO13
-
- connected to ESP32 5V
-
- connected to ESP32 GND
BH1750
- SCL connected to ESP32 GPIO22
- SDA connected to ESP32 GPIO21
- VCC connected to ESP32 3V
- GND connected to ESP32 GND
Code Documentation
No code has been provided for the microcontrollers in the circuit. The ESP32 would typically be programmed to initialize and read data from the connected sensors, process this data, and perform actions or communications based on the sensor readings. The code would include setup routines for each sensor, main loop code to periodically read each sensor, and possibly communication routines to send sensor data to a remote server or other devices.