Arduino and ESP8266-Based Environmental Monitoring System with Wi-Fi Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an Arduino UNO, an ESP8266 ESP-12E WiFi Module, an MQ135 gas sensor, an Adafruit TCS34725 RGB Color Sensor, and a DHT22 temperature and humidity sensor. The circuit is designed to collect environmental data and transmit it wirelessly.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
ESP8266 ESP-12E WiFi Module
- Description: A self-contained WiFi networking solution offering a complete and self-contained WiFi networking solution.
- Pins: GND, GPIO_15, GPIO_2, GPIO_0, GPIO_4, GPIO_5, RXD, TXD, REST, ADC_0, CH_PD, GPIO_16, GPIO_14, GPIO_12, GPIO_13, VCC, SCLK, MOSI, GPIO_10, GPIO_9, MISO, CS0
MQ135
- Description: A gas sensor used for detecting a wide range of gases, including NH3, NOx, alcohol, benzene, smoke, and CO2.
- Pins: VCC, GND, A0, D0
Adafruit TCS34725 RGB Color Sensor
- Description: A color sensor with an integrated IR blocking filter, providing accurate color measurements.
- Pins: LED_EN, INT, SDA, SCL, +3V3, GND, VIN
DHT22
- Description: A temperature and humidity sensor.
- Pins: GND, VCC, DAT
Wiring Details
Arduino UNO
- A4: Connected to SDA of Adafruit TCS34725 RGB Color Sensor
- A5: Connected to SCL of Adafruit TCS34725 RGB Color Sensor
- 3.3V: Connected to VCC of ESP8266 ESP-12E WiFi Module and +3V3 of Adafruit TCS34725 RGB Color Sensor
- GND: Connected to GND of ESP8266 ESP-12E WiFi Module, Adafruit TCS34725 RGB Color Sensor, MQ135, and DHT22
- 5V: Connected to VCC of MQ135 and DHT22
- A0: Connected to A0 of MQ135
- D3: Connected to DAT of DHT22
- D1: Connected to RXD of ESP8266 ESP-12E WiFi Module
- D0: Connected to TXD of ESP8266 ESP-12E WiFi Module
ESP8266 ESP-12E WiFi Module
- VCC: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- RXD: Connected to D1 of Arduino UNO
- TXD: Connected to D0 of Arduino UNO
MQ135
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- A0: Connected to A0 of Arduino UNO
Adafruit TCS34725 RGB Color Sensor
- SDA: Connected to A4 of Arduino UNO
- SCL: Connected to A5 of Arduino UNO
- +3V3: Connected to 3.3V of Arduino UNO
- GND: Connected to GND of Arduino UNO
DHT22
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- DAT: Connected to D3 of Arduino UNO
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO, with setup and loop functions defined but not yet implemented. The setup function runs once when the microcontroller is powered on or reset, and the loop function runs continuously after the setup function has completed.