Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Wi-Fi Controlled Air Quality Monitor with Automated Fan and Alert System

View and Edit Project In Cirkit DesignerImage of Wi-Fi Controlled Air Quality Monitor with Automated Fan and Alert System

Circuit Documentation

Summary

This circuit is designed to interface an MQ-2 gas sensor with an ESP8266 NodeMCU microcontroller for gas detection purposes. The circuit includes a voltage regulator to step down the voltage from a 9V battery to a level suitable for the ESP8266 and the MQ-2 sensor. It also features a red LED indicator and a fan, which can be controlled by the microcontroller. A pMOS transistor is used to switch the fan on and off, and resistors are included for current limiting and pull-up configurations.

Component List

LED: Two Pin (red)

9V Battery

MQ-2 Sensor

Fan

pMOS Transistor (MOSFET)

Resistor (1k Ohms)

ESP8266 NodeMCU

Resistor (220 Ohms)

Voltage Regulator

Wiring Details

LED: Two Pin (red)

9V Battery

MQ-2 Sensor

Fan

pMOS Transistor (MOSFET)

Resistor (1k Ohms)

ESP8266 NodeMCU

Resistor (220 Ohms)

Voltage Regulator

Documented Code

There is no code provided for the microcontroller in this circuit. The code would typically include initialization of the GPIO pins, reading from the MQ-2 sensor, controlling the LED and fan based on sensor readings, and possibly communicating data over Wi-Fi using the ESP8266's capabilities.