ESP32-Based Air Quality and Temperature Monitoring System with RGB LED and Buzzer Alerts
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an MQ135 gas sensor, a DHT22 temperature and humidity sensor, an RGB LED, and a buzzer. The document includes a list of components, wiring details, and code for the microcontroller.
Component List
ESP32
- 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
MQ135
- Description: A gas sensor used to detect various gases including CO2.
- Pins: VCC, GND, A0, D0
DHT22
- Description: A sensor used to measure temperature and humidity.
- Pins: +, Out, -
RGB LED (Wokwi compatible)
- Description: An RGB LED that can emit different colors by adjusting the voltage on its pins.
- Pins: R, COM, G, B
Buzzer
- Description: A simple buzzer used to produce sound.
- Pins: PIN, GND
Wiring Details
ESP32
- D35 is connected to A0 of the MQ135.
- VIN is connected to + of the DHT22.
- 3V3 is connected to VCC of the MQ135.
- GND is connected to:
- COM of the RGB LED
- - of the DHT22
- GND of the Buzzer
- GND of the MQ135
- D18 is connected to Out of the DHT22.
- D19 is connected to G of the RGB LED.
- D21 is connected to B of the RGB LED.
- D22 is connected to PIN of the Buzzer.
- D23 is connected to R of the RGB LED.
MQ135
- A0 is connected to D35 of the ESP32.
- VCC is connected to 3V3 of the ESP32.
- GND is connected to GND of the ESP32.
DHT22
- + is connected to VIN of the ESP32.
- Out is connected to D18 of the ESP32.
- - is connected to GND of the ESP32.
RGB LED (Wokwi compatible)
- R is connected to D23 of the ESP32.
- COM is connected to GND of the ESP32.
- G is connected to D19 of the ESP32.
- B is connected to D21 of the ESP32.
Buzzer
- PIN is connected to D22 of the ESP32.
- GND is connected to GND of the ESP32.
Code
There is no code provided for the microcontroller in this documentation.
This document provides a comprehensive overview of the circuit, including the components used and their wiring details. This should serve as a useful reference for understanding and replicating the circuit.