ESP8266 NodeMCU Weather Station with Multiple Sensors and Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This project is an advanced weather station using an ESP8266 NodeMCU microcontroller. It integrates multiple sensors and modules for data acquisition, storage on an SD card, display on an OLED screen, and a web server to display and graph all collected data. The system also includes power management components to ensure reliable operation.
Component List
ESP8266 NodeMCU
- Description: A microcontroller with built-in WiFi capabilities.
- 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
Adafruit BMP388
- Description: A high-precision barometric pressure and temperature sensor.
- Pins: VCC, 3.3V, GND, SCK/SCL, SDO/ADR, SDI/SDA, CS, INT
Adafruit TSL2591 High Dynamic Range Digital Light Sensor
- Description: A high dynamic range digital light sensor.
- Pins: VCC, 3.3V, GND, SCL, SDA, INT
DHT22
- Description: A temperature and humidity sensor.
- Pins: VCC, OUT, GND
DS3231 RTC
- Description: A real-time clock module.
- Pins: 32K, SQW, SCL, SDA, VCC, GND
Adafruit PCF8591
- Description: An analog-to-digital converter.
- Pins: VCC, GND, SCL, SDA, OSC, AOUT, AIN3, AIN2, AIN1, AIN0
0.96" OLED
- Description: A small OLED display.
- Pins: GND, VDD, SCK, SDA
Micro SD Card Module
- Description: A module for interfacing with a micro SD card.
- Pins: cs, sck, mosi, miso, vcc, gnd
YL-83 Rain Sensor - Control Board
- Description: A control board for the YL-83 rain sensor.
- Pins: VCC, GND, DO, AO, POS, NEG
YL-83 Rain Sensor - Detection Board
- Description: A detection board for the YL-83 rain sensor.
- Pins: POS, NEG
DFRobot Capacitive Soil Moisture Sensor (V1.0)
- Description: A capacitive soil moisture sensor.
- Pins: A, VCC, GND
TP4056
- Description: A lithium battery charger module.
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
PowerBoost 1000 Basic Pad Terminal
- Description: A power supply module to boost battery voltage to 5V.
- Pins: VBAT, GND, ENABLE, LBO, 5.0V
18650 in holder
- Description: A holder for a 18650 lithium-ion battery.
- Pins: GND, VCC
Resistors
- Description: Various resistors used for different purposes in the circuit.
- Pins: pin1, pin2
- Values: 330 Ohms, 4700 Ohms, 10000 Ohms
Zener Diodes
- Description: Zener diodes used for voltage regulation.
- Pins: cathode, anode
Photocell (LDR)
- Description: A light-dependent resistor.
- Pins: pin 0, pin 1
Wiring Details
ESP8266 NodeMCU
- D1: Connected to the anode of a Zener Diode.
- D2: Connected to the anode of another Zener Diode.
- D3: Connected to the DO pin of the YL-83 Rain Sensor - Control Board and pin1 of a 10k Ohm Resistor.
- D4: Connected to the OUT pin of the DHT22 and pin1 of a 10k Ohm Resistor.
- D5: Connected to the anode of a Zener Diode and pin1 of a 330 Ohm Resistor.
- D6: Connected to the anode of a Zener Diode and pin2 of a 330 Ohm Resistor.
- D7: Connected to the anode of a Zener Diode and pin2 of a 4700 Ohm Resistor.
- D8: Connected to the anode of a Zener Diode and pin2 of a 4700 Ohm Resistor.
- A0: Connected to the A pin of the DFRobot Capacitive Soil Moisture Sensor (V1.0).
- 3V3: Connected to the VCC pins of various sensors and modules.
- GND: Connected to the GND pins of various sensors and modules.
- VIN: Connected to the 5.0V pin of the PowerBoost 1000 Basic Pad Terminal.
Adafruit BMP388
- 3.3V: Connected to the 3V3 pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- SCK/SCL: Connected to the D1 pin of the ESP8266 NodeMCU.
- SDI/SDA: Connected to the D2 pin of the ESP8266 NodeMCU.
Adafruit TSL2591 High Dynamic Range Digital Light Sensor
- 3.3V: Connected to the 3V3 pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- SCL: Connected to the D1 pin of the ESP8266 NodeMCU.
- SDA: Connected to the D2 pin of the ESP8266 NodeMCU.
DHT22
- VCC: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- OUT: Connected to the D4 pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
DS3231 RTC
- VCC: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- SCL: Connected to the D1 pin of the ESP8266 NodeMCU.
- SDA: Connected to the D2 pin of the ESP8266 NodeMCU.
Adafruit PCF8591
- VCC: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- SCL: Connected to the D1 pin of the ESP8266 NodeMCU.
- SDA: Connected to the D2 pin of the ESP8266 NodeMCU.
- AIN1: Connected to pin 0 of the Photocell (LDR).
- AIN3: Connected to the AO pin of the YL-83 Rain Sensor - Control Board.
0.96" OLED
- VDD: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- SCK: Connected to the D1 pin of the ESP8266 NodeMCU.
- SDA: Connected to the D2 pin of the ESP8266 NodeMCU.
Micro SD Card Module
- vcc: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- gnd: Connected to the GND pin of the ESP8266 NodeMCU.
- cs: Connected to the D8 pin of the ESP8266 NodeMCU.
- sck: Connected to the D5 pin of the ESP8266 NodeMCU.
- mosi: Connected to the D7 pin of the ESP8266 NodeMCU.
- miso: Connected to the D6 pin of the ESP8266 NodeMCU.
YL-83 Rain Sensor - Control Board
- VCC: Connected to the 3.3V pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- DO: Connected to the D3 pin of the ESP8266 NodeMCU.
- AO: Connected to the AIN3 pin of the Adafruit PCF8591.
YL-83 Rain Sensor - Detection Board
- **