ESP8266-Based Environmental Monitoring System with Air Quality and Dust Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various sensors and modules to interface with an ESP8266 microcontroller. The primary components include air quality and dust sensors (MQ-135 and GP2Y1010AU0F), a temperature and humidity sensor (DHT11), a 16-channel analog multiplexer, and two display modules (LCD Display 16x2 and LCM1602 IIC). The ESP8266 serves as the central processing unit, reading sensor data and controlling the displays. The multiplexer is used to manage multiple analog inputs, while the displays provide a user interface for data output.
Component List
MQ-135 Sensor Air Quality
- Pins: VCC, GND, A0, D0
- Description: A sensor for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke, and CO2.
DHT11 Sensor V2
- Pins: GND, DAT, VCC
- Description: A digital temperature and humidity sensor that provides calibrated digital output.
ESP8266
- Pins: 3V, G, D8, D7, D6, D5, D4, D3, D2, D1, D0, A0, S3, S2, S1, SC, S0, SK, EN, VIN, RST, VU
- Description: A Wi-Fi capable microcontroller with a wide range of GPIO pins for interfacing with various sensors and modules.
16 Channel Analog Multiplexer Bob
- Pins: GND, VCC, EN, S0, S1, S2, S3, SIG, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15
- Description: A multiplexer that allows multiple analog signals to be sampled by a single analog-to-digital converter (ADC) pin on a microcontroller.
LCD Display 16x2
- Pins: LEDK, LEDA, DB7, DB6, DB5, DB4, DB3, DB2, DB1, DB0, E, RW, RS, VO, VDD, VSS
- Description: A standard 16x2 character LCD display for showing text information.
LCM1602 IIC
- Pins: GND, VCC, SDA, SCL, D6, D7, A, K, VSS, VDD, V0, RS, D2, D3, D4, D5, RW, E, D0, D1, LED_A, LED_B
- Description: An I2C interface module for the 16x2 LCD display, simplifying the connection to a microcontroller using only two data lines.
GP2Y1010AU0F
- Pins: VCC, Vout, S-GND, LED, LED-GND, V-LED
- Description: An optical air quality sensor designed to sense dust particles.
Wiring Details
MQ-135 Sensor Air Quality
- VCC: Connected to 3V on ESP8266
- GND: Connected to G on ESP8266
- A0: Connected to C0 on 16 Channel Analog Multiplexer Bob
DHT11 Sensor V2
- VCC: Connected to 3V on ESP8266
- GND: Connected to G on ESP8266
- DAT: Connected to D4 on ESP8266
ESP8266
- VU: Connected to VCC on LCM1602 IIC
- D2: Connected to SDA on LCM1602 IIC
- G: Common ground, connected to multiple components
- D7: Connected to S3 on 16 Channel Analog Multiplexer Bob
- D6: Connected to V-LED on GP2Y1010AU0F
- D5: Connected to S2 on 16 Channel Analog Multiplexer Bob
- D4: Connected to DAT on DHT11 Sensor V2
- D3: Connected to S1 on 16 Channel Analog Multiplexer Bob
- D1: Connected to SCL on LCM1602 IIC
- D0: Connected to S0 on 16 Channel Analog Multiplexer Bob
- A0: Connected to SIG on 16 Channel Analog Multiplexer Bob
- 3V: Connected to VCC on MQ-135 Sensor Air Quality and DHT11 Sensor V2
- VIN: Connected to VCC on 16 Channel Analog Multiplexer Bob and GP2Y1010AU0F
16 Channel Analog Multiplexer Bob
- VCC: Connected to VIN on ESP8266
- GND: Connected to G on ESP8266
- EN: Not connected (assumed to be enabled by default or controlled by other means)
- S0-S3: Connected to D0-D7 on ESP8266 respectively
- SIG: Connected to A0 on ESP8266
- C0: Connected to A0 on MQ-135 Sensor Air Quality
- C1: Connected to Vout on GP2Y1010AU0F
LCD Display 16x2
- LEDK: Connected to D7 on LCM1602 IIC
- DB2: Connected to D1 on LCM1602 IIC
- DB1: Connected to D0 on LCM1602 IIC
- VSS: Connected to VSS on LCM1602 IIC
LCM1602 IIC
- VCC: Connected to VU on ESP8266
- SDA: Connected to D2 on ESP8266
- SCL: Connected to D1 on ESP8266
- GND: Connected to G on ESP8266
- D7, D1, D0: Connected to LEDK, DB2, DB1 on LCD Display 16x2 respectively
- VSS: Connected to VSS on LCD Display 16x2
GP2Y1010AU0F
- VCC: Connected to VIN on ESP8266
- Vout: Connected to C1 on 16 Channel Analog Multiplexer Bob
- S-GND: Connected to G on ESP8266
- LED: Connected to LED-GND on GP2Y1010AU0F
- LED-GND: Connected to G on ESP8266
- V-LED: Connected to D6 on ESP8266
Documented Code
No code was provided for the microcontrollers in the circuit. Therefore, this section is left blank until the relevant code is supplied.