Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, a 5V battery, a DHT22 temperature and humidity sensor, an MQ6 gas sensor, an MQ-9 gas sensor, and a piezo buzzer. The circuit is designed to monitor environmental conditions and provide alerts through the buzzer.
Component List
ESP32
- Description: A powerful microcontroller with 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
5V Battery
- Description: A power source providing 5V.
- Pins: +, -
DHT22
- Description: A temperature and humidity sensor.
- Pins: VCC, OUT, GND
MQ6
- Description: A gas sensor for detecting LPG, butane, and methane.
- Pins: VCC, GND, A0, DO
MQ-9 Breakout
- Description: A gas sensor for detecting carbon monoxide and methane.
- Pins: VCC, GND, DO, AO
Piezo Buzzer
- Description: An electronic device that produces a tone, alarm, or sound.
- Pins: pin 1, pin 2
Wiring Details
ESP32
- GND is connected to the GND of the DHT22, MQ6, MQ-9 Breakout, Piezo Buzzer, and the negative terminal of the 5V Battery.
- VIN is connected to the positive terminal of the 5V Battery.
- D21 is connected to the OUT pin of the DHT22.
- D18 is connected to the A0 pin of the MQ6.
- D4 is connected to the AO pin of the MQ-9 Breakout.
- D15 is connected to pin 1 of the Piezo Buzzer.
5V Battery
- + is connected to the VIN pin of the ESP32, VCC pin of the DHT22, VCC pin of the MQ6, and VCC pin of the MQ-9 Breakout.
- - is connected to the GND pin of the ESP32, GND pin of the DHT22, GND pin of the MQ6, GND pin of the MQ-9 Breakout, and pin 2 of the Piezo Buzzer.
DHT22
- VCC is connected to the positive terminal of the 5V Battery.
- OUT is connected to the D21 pin of the ESP32.
- GND is connected to the GND pin of the ESP32 and the negative terminal of the 5V Battery.
MQ6
- VCC is connected to the positive terminal of the 5V Battery.
- GND is connected to the GND pin of the ESP32 and the negative terminal of the 5V Battery.
- A0 is connected to the D18 pin of the ESP32.
- DO is not connected.
MQ-9 Breakout
- VCC is connected to the positive terminal of the 5V Battery.
- GND is connected to the GND pin of the ESP32 and the negative terminal of the 5V Battery.
- AO is connected to the D4 pin of the ESP32.
- DO is not connected.
Piezo Buzzer
- pin 1 is connected to the D15 pin of the ESP32.
- pin 2 is connected to the GND pin of the ESP32 and the negative terminal of the 5V Battery.
Code
There is no code provided for the microcontrollers in this circuit.
