ESP8266 Wi-Fi Weather Station with OLED Display and Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an ESP8266 NodeMCU microcontroller, a DHT11 temperature and humidity sensor, an OLED display, a DC-DC converter, and a 9V battery. The ESP8266 NodeMCU serves as the main controller, interfacing with the DHT11 sensor to read environmental data and displaying it on the OLED screen. The DC-DC converter steps down the voltage from the 9V battery to power the ESP8266 NodeMCU.
Component List
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microcontroller with GPIO, PWM, ADC, I2C, and 1-Wire 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
DHT11
- Description: A basic, low-cost digital temperature and humidity sensor.
- Pins: DATA, GND, VCC
OLED Display 128x32
- Description: A small, monochrome OLED display with I2C interface.
- Pins: SDA, SCL, VCC, GND
DC-DC Converter
- Description: A device that steps down the voltage from a higher voltage source to a lower voltage.
- Pins: +VCC IN, GND IN, +VCC OUT, GND OUT
9V Battery
- Description: A standard 9V battery used as a power source.
- Pins: -, +
Wiring Details
ESP8266 NodeMCU
- D1 connected to SCL of OLED Display
- D2 connected to SDA of OLED Display
- 3V3 connected to VCC of OLED Display
- GND connected to GND of OLED Display
- D7 connected to DATA of DHT11
- GND connected to GND of DHT11
- 3V3 connected to VCC of DHT11
- GND connected to GND OUT of DC-DC Converter
- VIN connected to +VCC OUT of DC-DC Converter
DHT11
- DATA connected to D7 of ESP8266 NodeMCU
- GND connected to GND of ESP8266 NodeMCU
- VCC connected to 3V3 of ESP8266 NodeMCU
OLED Display 128x32
- SCL connected to D1 of ESP8266 NodeMCU
- SDA connected to D2 of ESP8266 NodeMCU
- VCC connected to 3V3 of ESP8266 NodeMCU
- GND connected to GND of ESP8266 NodeMCU
DC-DC Converter
- +VCC IN connected to + of 9V Battery
- GND IN connected to - of 9V Battery
- +VCC OUT connected to VIN of ESP8266 NodeMCU
- GND OUT connected to GND of ESP8266 NodeMCU
9V Battery
- + connected to +VCC IN of DC-DC Converter
- - connected to GND IN of DC-DC Converter
Documented Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt