ESP8266 and Arduino UNO-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 various sensors and microcontrollers. The circuit includes an ESP8266 NodeMCU, an Arduino UNO, and several sensors such as the MQ-9 gas sensor, BME/BMP280, BH1750 light sensor, and a water level sensor. The ESP8266 NodeMCU and Arduino UNO are interconnected and communicate with the sensors to collect and process data.
Component List
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microcontroller with GPIO, ADC, and other features.
- 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
Arduino UNO
- Description: A popular 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
MQ-9 Breakout
- Description: A gas sensor module that detects carbon monoxide and other gases.
- Pins: VCC, GND, DO, AO
BME/BMP280
- Description: A sensor module that measures temperature, humidity, and pressure.
- Pins: GND, SCL, SDA, VIN
BH1750
- Description: A digital light sensor module.
- Pins: VCC, GND, SCL, SDA, ADDR
Water Level Sensor
- Description: A sensor module that detects water levels.
- Pins: SIG, VCC, GND
Resistor
- Description: A 10k Ohm resistor.
- Pins: pin1, pin2
- Properties: Resistance: 10k Ohms
Wiring Details
ESP8266 NodeMCU
- D1 connected to BH1750 SCL and BME/BMP280 SCL
- D2 connected to BH1750 SDA and BME/BMP280 SDA
- D6 connected to Resistor pin2
- D7 connected to Arduino UNO D0
- GND connected to BH1750 GND, BME/BMP280 GND, MQ-9 Breakout GND, Arduino UNO GND, and Water Level Sensor GND
- 3V3 connected to BH1750 VCC and BME/BMP280 VIN
- VIN connected to Arduino UNO 5V
Arduino UNO
- D0 connected to ESP8266 NodeMCU D7
- GND connected to ESP8266 NodeMCU GND, MQ-9 Breakout GND, and Water Level Sensor GND
- 5V connected to ESP8266 NodeMCU VIN
- A0 connected to Water Level Sensor SIG
- A1 connected to MQ-9 Breakout AO
- D3 connected to MQ-9 Breakout VCC
- D2 connected to Water Level Sensor VCC
- D1 connected to Resistor pin1
MQ-9 Breakout
- GND connected to ESP8266 NodeMCU GND and Arduino UNO GND
- AO connected to Arduino UNO A1
- VCC connected to Arduino UNO D3
BME/BMP280
- GND connected to ESP8266 NodeMCU GND
- SCL connected to ESP8266 NodeMCU D1
- SDA connected to ESP8266 NodeMCU D2
- VIN connected to ESP8266 NodeMCU 3V3
BH1750
- GND connected to ESP8266 NodeMCU GND
- SCL connected to ESP8266 NodeMCU D1
- SDA connected to ESP8266 NodeMCU D2
- VCC connected to ESP8266 NodeMCU 3V3
Water Level Sensor
- GND connected to ESP8266 NodeMCU GND and Arduino UNO GND
- SIG connected to Arduino UNO A0
- VCC connected to Arduino UNO D2
Resistor
- pin1 connected to Arduino UNO D1
- pin2 connected to ESP8266 NodeMCU D6
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the microcontrollers.