ESP8266 NodeMCU Based Environmental Monitoring System with DHT11 and MQ6 Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface an ESP8266 NodeMCU microcontroller with a DHT11 temperature and humidity sensor and an MQ6 gas sensor. The circuit is powered by a single 18650 Li-Ion battery, and a rocker switch is used to control the power supply to the circuit. The ESP8266 NodeMCU reads data from the DHT11 sensor and the analog output from the MQ6 sensor. The circuit does not include any embedded code as none was provided.
Component List
ESP8266 NodeMCU
- Description: A Wi-Fi capable microcontroller module based on the ESP8266 chip.
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
Rocker Switch
- Description: A simple on/off rocker switch to control the power supply.
- Pins: output, input
DHT11
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
MQ6
- Description: A gas sensor used for detecting LPG, butane, propane, methane, alcohol, hydrogen, and smoke.
- Pins: VCC, GND, A0, DO
18650 Li-Ion Battery
- Description: A rechargeable lithium-ion battery cell.
- Pins: Positive, Negative
Wiring Details
ESP8266 NodeMCU
- D2 connected to DHT11 DATA
- 3V3 connected to DHT11 VCC
- GND connected to DHT11 GND, MQ6 GND, and 18650 Li-Ion Negative
- A0 connected to MQ6 A0
- VIN connected to MQ6 VCC through rocker switch output
Rocker Switch
- Input connected to 18650 Li-Ion Positive
- Output connected to ESP8266 NodeMCU VIN and MQ6 VCC
DHT11
- DATA connected to ESP8266 NodeMCU D2
- VCC connected to ESP8266 NodeMCU 3V3
- GND connected to ESP8266 NodeMCU GND
MQ6
- A0 connected to ESP8266 NodeMCU A0
- GND connected to ESP8266 NodeMCU GND
- VCC connected to ESP8266 NodeMCU VIN through rocker switch output
18650 Li-Ion Battery
- Positive connected to rocker switch input
- Negative connected to ESP8266 NodeMCU GND
Documented Code
No code was provided for the microcontroller in this circuit. Therefore, there is no code documentation available. If code becomes available, it should be documented here with details on the functionality, setup, and main loop, along with any functions or libraries used.