ESP32-Based Wi-Fi Weather Station with DHT11 and BH1750 Sensors and I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed using an ESP32 microcontroller to interface with a DHT11 temperature and humidity sensor, a BH1750 light sensor, and a 16x2 I2C LCD display. The ESP32 collects data from the sensors and displays the information on the LCD screen. The communication between the ESP32 and the sensors is facilitated through I2C and GPIO connections.
Component List
ESP32 38 PINS
- Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- Pins: GND, 23, 22/SCL, 1, 2, 21/SDA, 19, 18, 5, 17/TX2, 16/RX2, 4, 0, 15, D1, D0, CLK, 3V3, EN, VP, VN, 34, 35, 32, 33, 25, 26, 27, 14, 12, 13, D2, D3, 11, 5V/VIN
DHT11
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
BH1750
- Description: A digital light sensor that communicates via I2C.
- Pins: VCC, GND, SCL, SDA, ADDR
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
Wiring Details
ESP32 38 PINS
- GND: Connected to GND of BH1750, DHT11, and 16x2 I2C LCD.
- 22/SCL: Connected to SCL of BH1750 and 16x2 I2C LCD.
- 21/SDA: Connected to SDA of BH1750 and 16x2 I2C LCD.
- 18: Connected to DATA of DHT11.
- 5V/VIN: Connected to VCC of BH1750, DHT11, and 16x2 I2C LCD.
DHT11
- DATA: Connected to pin 18 of ESP32.
- GND: Connected to GND of ESP32.
- VCC: Connected to 5V/VIN of ESP32.
BH1750
- VCC: Connected to 5V/VIN of ESP32.
- GND: Connected to GND of ESP32.
- SCL: Connected to 22/SCL of ESP32.
- SDA: Connected to 21/SDA of ESP32.
- ADDR: Not connected.
16x2 I2C LCD
- GND: Connected to GND of ESP32.
- VCC: Connected to 5V/VIN of ESP32.
- SDA: Connected to 21/SDA of ESP32.
- SCL: Connected to 22/SCL of ESP32.
Code
No code is provided for this circuit.