Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 Devkit V1 microcontroller, an MQ-4 gas sensor, an MH-Z19B CO2 sensor, and three red LEDs with associated resistors. The circuit is designed to interface with these sensors and provide visual feedback using the LEDs.
Component List
ESP32 Devkit V1
- Description: A versatile microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: 3V3, GND, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, VIN
MQ-4
- Description: A gas sensor used for detecting methane (CH4).
- Pins: A0, D0, GND, VCC
MH-Z19B
- Description: A CO2 sensor used for measuring carbon dioxide concentration.
- Pins: HD, TX, RX, V0, PWM, GND, Vin
LED: Two Pin (red)
- Description: A standard red LED.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 220 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 220 Ohms
Wiring Details
ESP32 Devkit V1
GND is connected to:
- Cathode of LED (red)
- Cathode of LED (red)
- Cathode of LED (red)
- GND of MH-Z19B
- GND of MQ-4
D34 is connected to:
- D0 of MQ-4
D32 is connected to:
- TX of MH-Z19B
D33 is connected to:
- RX of MH-Z19B
D14 is connected to:
- Pin1 of Resistor (220 Ohms)
D12 is connected to:
- Pin1 of Resistor (220 Ohms)
D13 is connected to:
- Pin1 of Resistor (220 Ohms)
VIN is connected to:
- Vin of MH-Z19B
- VCC of MQ-4
MQ-4
D0 is connected to:
- D34 of ESP32 Devkit V1
GND is connected to:
- GND of ESP32 Devkit V1
- GND of MH-Z19B
VCC is connected to:
- VIN of ESP32 Devkit V1
MH-Z19B
TX is connected to:
- D32 of ESP32 Devkit V1
RX is connected to:
- D33 of ESP32 Devkit V1
GND is connected to:
- GND of ESP32 Devkit V1
- GND of MQ-4
Vin is connected to:
- VIN of ESP32 Devkit V1
LED: Two Pin (red)
Cathode is connected to:
- GND of ESP32 Devkit V1
Anode of first LED is connected to:
- Pin2 of Resistor (220 Ohms)
Anode of second LED is connected to:
- Pin2 of Resistor (220 Ohms)
Anode of third LED is connected to:
- Pin2 of Resistor (220 Ohms)
Resistor
Pin1 of first resistor is connected to:
- D14 of ESP32 Devkit V1
Pin1 of second resistor is connected to:
- D12 of ESP32 Devkit V1
Pin1 of third resistor is connected to:
- D13 of ESP32 Devkit V1
Pin2 of first resistor is connected to:
- Anode of first LED (red)
Pin2 of second resistor is connected to:
- Anode of second LED (red)
Pin2 of third resistor is connected to:
- Anode of third LED (red)
Code
There is no code provided for the microcontrollers in this circuit.
