ESP32-Based Air Quality Monitoring System with Multiple Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to monitor air quality using various sensors and an ESP32 microcontroller. The circuit includes the following components:
- MQ135 Gas Sensor
- MQ-2 Gas Sensor
- ESP32 Microcontroller
- DHT 11 Temperature and Humidity Sensor
- PM2.5 Air Quality Sensor and Breadboard Adapter Kit (PMS5003)
The sensors are connected to the ESP32 microcontroller, which processes the data and can be used for further applications such as data logging or real-time monitoring.
Component List
MQ135 Gas Sensor
- Description: Air quality sensor for detecting various gases.
- Pins: VCC, GND, A0, D0
MQ-2 Gas Sensor
- Description: Gas sensor for detecting LPG, i-butane, propane, methane, alcohol, hydrogen, and smoke.
- Pins: GND, VCC, ANALOG, Digital
ESP32 Microcontroller
- 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, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
DHT 11 Temperature and Humidity Sensor
- Description: Sensor for measuring temperature and humidity.
- Pins: VCC, GND, DATA
PM2.5 Air Quality Sensor and Breadboard Adapter Kit (PMS5003)
- Description: Sensor for measuring particulate matter (PM2.5) in the air.
- Pins: VCC, GND, SET, RX, TX, RST
Wiring Details
MQ135 Gas Sensor
- VCC: Connected to VCC (shared power rail)
- GND: Connected to GND (shared ground rail)
- A0: Connected to ESP32 VN
- D0: Connected to ESP32 D22 (shared data line)
MQ-2 Gas Sensor
- VCC: Connected to VCC (shared power rail)
- GND: Connected to GND (shared ground rail)
- ANALOG: Connected to ESP32 VP
- Digital: Connected to ESP32 D22 (shared data line)
ESP32 Microcontroller
- VIN: Connected to VCC (shared power rail)
- GND: Connected to GND (shared ground rail)
- VN: Connected to MQ135 A0
- VP: Connected to MQ-2 ANALOG
- D22: Connected to DHT 11 DATA, MQ135 D0, MQ-2 Digital (shared data line)
- RX2: Connected to PMS5003 TX
- TX2: Connected to PMS5003 RX
DHT 11 Temperature and Humidity Sensor
- VCC: Connected to VCC (shared power rail)
- GND: Connected to GND (shared ground rail)
- DATA: Connected to ESP32 D22 (shared data line)
PM2.5 Air Quality Sensor and Breadboard Adapter Kit (PMS5003)
- VCC: Connected to VCC (shared power rail)
- GND: Connected to GND (shared ground rail)
- TX: Connected to ESP32 RX2
- RX: Connected to ESP32 TX2
Documented Code
There is no code provided for this circuit. If code is added in the future, it should be documented here with detailed explanations of its functionality and how it interacts with the hardware components.