ESP32-Based Environmental Monitoring System with OLED Display and Alerting Buzzer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface various sensors and output devices with an ESP32 microcontroller. The sensors include an MQ135 air quality sensor and a DHT11 temperature and humidity sensor. The output devices consist of a buzzer and an OLED display. A pushbutton and an LED with a current-limiting resistor are also included in the design. The ESP32 serves as the central processing unit, reading sensor data, controlling the buzzer, and displaying information on the OLED screen. The circuit is powered by a 3.3V supply from the ESP32, and ground connections are distributed across the components.
Component List
MQ135 Air Quality Sensor
- Pins: VCC, GND, A0, D0
- Description: Sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke, and CO2.
DHT11 Temperature and Humidity Sensor
- Pins: DATA, GND, VCC
- Description: Sensor for measuring ambient temperature and humidity.
Buzzer
- Pins: PIN, GND
- Description: An electromechanical component that emits sound when energized.
OLED 1.3" Display
- Pins: GND, VCC, SCL, SDA
- Description: A small display for showing text and graphics.
Pushbutton
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
- Description: A momentary switch that can be used to trigger actions in the circuit.
LED: Two Pin (red)
- Pins: cathode, anode
- Description: A red light-emitting diode that emits light when a current flows through it.
Resistor
- Pins: pin1, pin2
- Value: 220 Ohms
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
ESP32 38 PINS
- Pins: GND, G23, G22, TXD, RXD, G21, G19, G18, G5, G17, G16, G4, G0, G2, G15, SDI, SD0, CLK, 3V3, EN, SP, SN, G34, G35, G32, 33, G25, G26, G27, G14, G12, G13, SD2, SD3, 5V
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various peripherals.
Wiring Details
MQ135 Air Quality Sensor
- VCC connected to 3V3 of ESP32
- GND connected to common ground
- A0 connected to G34 of ESP32
DHT11 Temperature and Humidity Sensor
- DATA connected to G26 of ESP32
- GND connected to common ground
- VCC connected to 3V3 of ESP32
Buzzer
- PIN connected to G2 of ESP32
- GND connected to common ground
OLED 1.3" Display
- SCL connected to G22 of ESP32
- SDA connected to G21 of ESP32
- VCC connected to 3V3 of ESP32
- GND connected to common ground
Pushbutton
- Pin 4 connected to G14 of ESP32
- Pin 2 connected to common ground
LED: Two Pin (red)
- cathode connected to common ground
- anode connected to pin1 of Resistor
Resistor
- pin1 connected to anode of LED
- pin2 connected to G13 of ESP32
Documented Code
No code has been provided for the microcontroller. The documentation of the code would typically include a description of the functionality implemented, setup and loop functions for an Arduino-based microcontroller, and any functions or libraries used to interface with the components. Since no code is available, this section cannot be completed.