ESP32-Based Smart Environmental Monitoring System with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various sensors and modules with an ESP32 microcontroller to create a comprehensive monitoring system. The system includes a gas sensor (MQ135), a vibration sensor (SW-420), a temperature and humidity sensor (DHT22), a weighing sensor module (HX711) connected to a load cell, a buzzer module for alerts, and a TP4056 module for battery management. The ESP32 serves as the central processing unit, interfacing with all the sensors and modules.
Component List
MQ135
- Description: Gas Sensor
- Pins: VCC, GND, A0, D0
- Purpose: Used to detect various gases including CO2, NH3, NOx, alcohol, benzene, smoke, and others.
TP4056
- Description: Lithium Battery Charger Module
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
- Purpose: Used for charging and managing a 18650 Li-ion battery.
18650 Li-ion Battery
- Description: Rechargeable Lithium-Ion Battery
- Pins: -, +
- Purpose: Provides power to the circuit.
Load Cell - Red/white/black/green
- Description: Load Cell
- Pins: E+, A-, E-, A+
- Purpose: Measures weight and force.
SW-420 Vibration Sensor
- Description: Vibration Sensor
- Pins: vcc, Ground, Digital output
- Purpose: Detects vibrations and shocks.
HX711 Weighing Sensor Module
- Description: Weighing Sensor Module
- Pins: B-, B+, A-, A+, E-, E+, VCC, CK/TX, DO/RX, GND
- Purpose: Amplifies the signal from the load cell and interfaces with the microcontroller.
DHT22
- Description: Temperature and Humidity Sensor
- Pins: GND, VCC, DAT
- Purpose: Measures temperature and humidity.
ESP32 (30 pin)
- Description: Microcontroller
- 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
- Purpose: Central processing unit that interfaces with all sensors and modules.
Buzzer Module
- Description: Buzzer
- Pins: GND, Vcc, I/O
- Purpose: Provides audible alerts.
Wiring Details
MQ135
- VCC: Connected to ESP32 (3V3)
- GND: Connected to ESP32 (GND)
- A0: Connected to ESP32 (D32)
TP4056
- OUT-: Connected to ESP32 (VN)
- B-: Connected to 18650 Li-ion Battery (+)
- B+: Connected to 18650 Li-ion Battery (-)
- OUT+: Connected to ESP32 (GND)
18650 Li-ion Battery
- +: Connected to TP4056 (B-)
- -: Connected to TP4056 (B+)
Load Cell - Red/white/black/green
- E+: Not connected
- A-: Not connected
- E-: Not connected
- A+: Not connected
SW-420 Vibration Sensor
- vcc: Connected to ESP32 (3V3)
- Ground: Connected to ESP32 (GND)
- Digital output: Connected to ESP32 (D5)
HX711 Weighing Sensor Module
- VCC: Connected to ESP32 (3V3)
- GND: Connected to ESP32 (GND)
- CK/TX: Connected to ESP32 (D22)
- DO/RX: Connected to ESP32 (D21)
DHT22
- VCC: Connected to ESP32 (3V3)
- GND: Connected to ESP32 (GND)
- DAT: Connected to ESP32 (D4)
ESP32 (30 pin)
- 3V3: Connected to VCC of MQ135, HX711, DHT22, SW-420, Buzzer Module
- GND: Connected to GND of MQ135, HX711, DHT22, SW-420, Buzzer Module, TP4056 (OUT+)
- D32: Connected to MQ135 (A0)
- VN: Connected to TP4056 (OUT-)
- D5: Connected to SW-420 (Digital output)
- D22: Connected to HX711 (CK/TX)
- D21: Connected to HX711 (DO/RX)
- D4: Connected to DHT22 (DAT)
- D23: Connected to Buzzer Module (I/O)
Buzzer Module
- Vcc: Connected to ESP32 (3V3)
- GND: Connected to ESP32 (GND)
- I/O: Connected to ESP32 (D23)
Code
No code provided.