ESP32-Based Weather Station with Multiple Sensors and Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various sensors and an ESP32 microcontroller. The circuit is designed to collect environmental data such as light intensity, temperature, humidity, atmospheric pressure, and gas concentration. The data is processed by the ESP32 microcontroller.
Component List
LDR Module 3 pin
- Description: Light Dependent Resistor (LDR) module used to measure light intensity.
- Pins: VCC, GND, DO
DHT11
- Description: Digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
BMP180
- Description: Barometric pressure sensor.
- Pins: 3.3, SDA, SCL, GND, VCC
ESP32 (30 pin)
- Description: A powerful microcontroller with built-in 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
RAIN SENSOR
- Description: Sensor used to detect the presence of rain.
- Pins: AO, DO, GRD, VCC
MQ6
- Description: Gas sensor used to detect the presence of LPG, isobutane, and propane.
- Pins: VCC, GND, A0, DO
Power Jack
- Description: Power input jack for supplying power to the circuit.
- Pins: POSITIF, NEGATIF
Wiring Details
LDR Module 3 pin
- VCC connected to ESP32 (30 pin) 3V3
- GND connected to ESP32 (30 pin) GND
- DO connected to ESP32 (30 pin) D2
DHT11
- DATA connected to ESP32 (30 pin) D4
- GND connected to ESP32 (30 pin) GND
- VCC connected to ESP32 (30 pin) 3V3
BMP180
- SDA connected to ESP32 (30 pin) D22
- SCL connected to ESP32 (30 pin) D21
- GND connected to ESP32 (30 pin) GND
- VCC connected to ESP32 (30 pin) 3V3
ESP32 (30 pin)
- D34 connected to MQ6 A0
- D32 connected to RAIN SENSOR AO
- GND connected to Power Jack NEGATIF
- Vin connected to Power Jack POSITIF
- D22 connected to BMP180 SDA
- D21 connected to BMP180 SCL
- D4 connected to DHT11 DATA
- D2 connected to LDR Module 3 pin DO
- 3V3 connected to RAIN SENSOR VCC, DHT11 VCC, LDR Module 3 pin VCC, MQ6 VCC, BMP180 VCC
RAIN SENSOR
- AO connected to ESP32 (30 pin) D32
- GRD connected to ESP32 (30 pin) GND
- VCC connected to ESP32 (30 pin) 3V3
MQ6
- A0 connected to ESP32 (30 pin) D34
- GND connected to ESP32 (30 pin) GND
- VCC connected to ESP32 (30 pin) 3V3
Power Jack
- POSITIF connected to ESP32 (30 pin) Vin
- NEGATIF connected to ESP32 (30 pin) GND
Documented Code
ESP32 (30 pin) Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the ESP32 microcontroller. The setup function is called once when the microcontroller starts, and the loop function runs continuously. You can add your sensor initialization and data processing code within these functions.