ESP32-Based Environmental Sensing Station with Wi-Fi and Light Intensity Measurement
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP 32 Wroom Dev Kit microcontroller interfaced with a BME/BMP280 environmental sensor, a BH1750 light intensity sensor, and an LD2410C communication module. The circuit is designed to collect environmental data and light intensity measurements, which are then transmitted via the LD2410C module. The ESP 32 Wroom Dev Kit serves as the central processing unit, managing data collection, processing, and communication.
Component List
ESP 32 Wroom Dev Kit
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities, suitable for a wide range of IoT applications.
- Pins: 3V3, EN, VP, VN, GPIO 34, GPIO 35, GPIO 32, GPIO 33, GPIO 25, GPIO 26, GPIO 27, GPIO 14, GND, GPIO 13, SD2, SD3, CMD, V5, GPIO 23, GPIO 22, TXD, RXD, GPIO 21, GPIO 19, GPIO 18, GPIO 5, GPIO 17, GPIO 16, GPIO 4, GPIO 0, GPIO 2, GPIO 15, SD1, SD0, CLK
BME/BMP280
- Description: A compact sensor module that measures atmospheric pressure, temperature, and humidity.
- Pins: GND, SCL, SDA, VIN
BH1750
- Description: A digital light sensor that provides ambient light intensity measurements.
- Pins: VCC, GND, SCL, SDA, ADDR
LD2410C
- Description: A communication module that facilitates wireless data transmission.
- Pins: RX, OUT, GND, VCC, TX
Wiring Details
ESP 32 Wroom Dev Kit
- 3V3: Connected to BME/BMP280 VIN and BH1750 VCC
- V5: Connected to LD2410C VCC
- GND: Common ground with BME/BMP280 GND, BH1750 GND, and LD2410C GND
- GPIO 22: Connected to BME/BMP280 SCL and BH1750 SCL
- GPIO 21: Connected to BME/BMP280 SDA and BH1750 SDA
- GPIO 17: Connected to LD2410C RX
- GPIO 16: Connected to LD2410C TX
- GPIO 4: Connected to LD2410C OUT
BME/BMP280
- VIN: Connected to ESP 32 Wroom Dev Kit 3V3
- GND: Common ground with ESP 32 Wroom Dev Kit GND
- SCL: Connected to ESP 32 Wroom Dev Kit GPIO 22
- SDA: Connected to ESP 32 Wroom Dev Kit GPIO 21
BH1750
- VCC: Connected to ESP 32 Wroom Dev Kit 3V3
- GND: Common ground with ESP 32 Wroom Dev Kit GND
- SCL: Connected to ESP 32 Wroom Dev Kit GPIO 22
- SDA: Connected to ESP 32 Wroom Dev Kit GPIO 21
LD2410C
- VCC: Connected to ESP 32 Wroom Dev Kit V5
- GND: Common ground with ESP 32 Wroom Dev Kit GND
- RX: Connected to ESP 32 Wroom Dev Kit GPIO 17
- TX: Connected to ESP 32 Wroom Dev Kit GPIO 16
- OUT: Connected to ESP 32 Wroom Dev Kit GPIO 4
Documented Code
ESP 32 Wroom Dev Kit Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
BH1750 Microcontroller Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The code provided for the microcontrollers is a template and does not include specific functionality. It is expected that the user will add the necessary code to initialize the sensors, read data, and handle communication via the LD2410C module.