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 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 via one of its digital pins and from the MQ6 sensor via one of its analog pins. The circuit is designed for monitoring environmental parameters such as temperature, humidity, and gas levels, which can be used for home automation, weather stations, or safety systems.
Component List
ESP8266 NodeMCU
- Description: A Wi-Fi enabled microcontroller module with GPIO pins.
- 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 switch to control the power supply.
- Pins: output, input
DHT11
- Description: A basic, ultra low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
MQ6
- Description: A gas sensor for LPG, butane, propane, methane, alcohol, hydrogen, and smoke.
- Pins: VCC, GND, A0, DO
18650 Li-Ion Battery
- Description: A rechargeable battery providing power to the circuit.
- 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 Rocker Switch output
Rocker Switch
- Output connected to ESP8266 NodeMCU VIN and MQ6 VCC
- Input connected to 18650 Li-Ion Positive
DHT11
- DATA connected to ESP8266 NodeMCU D2
- GND connected to ESP8266 NodeMCU GND
- VCC connected to ESP8266 NodeMCU 3V3
MQ6
- A0 connected to ESP8266 NodeMCU A0
- GND connected to ESP8266 NodeMCU GND
- VCC connected to Rocker Switch output
18650 Li-Ion Battery
- Negative connected to ESP8266 NodeMCU GND
- Positive connected to Rocker Switch input
Code Documentation
No code has been provided for the microcontroller. The ESP8266 NodeMCU would typically be programmed to read data from the DHT11 and MQ6 sensors, process this data, and possibly send it to a server or display it on a user interface. Since no code is available, this section cannot be documented further. If code becomes available, it should be included here with appropriate comments and explanations of its functionality.