ESP8266 NodeMCU Weather Station with DHT11 Sensor and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components to interface with an ESP8266 NodeMCU microcontroller. The primary components include a DHT11 temperature and humidity sensor, a rain sensor, an LCM1602 IIC module connected to a 16x2 LCD display, and a rocker switch for power control. The ESP8266 NodeMCU is responsible for processing sensor data and displaying information on the LCD. The circuit is powered by a 9V battery, with the rocker switch acting as a power on/off mechanism.
Component List
Rocker Switch
- Description: A switch used to control the power supply to the circuit.
- Pins: output, input
DHT11
- Description: A sensor for measuring temperature and humidity.
- Pins: DATA, GND, VCC
LCM1602 IIC
- Description: An I2C interface module for the 16x2 LCD display.
- Pins: GND, VCC, SDA, SCL, and various LCD interface pins (D0-D7, RS, RW, E, A, K, VSS, VDD, V0)
16X2 LCD
- Description: A liquid crystal display capable of displaying 16 characters per line across 2 lines.
- Pins: VSS, VDD, V0, RS, RW, E, D0-D7, A, K
ESP8266 NodeMCU
- Description: A microcontroller with Wi-Fi capability.
- Pins: D0-D8, RX, TX, A0, RSV, SD0-SD3, CMD, CLK, EN, RST, VIN, 3V3, GND
9V Battery
- Description: A power source for the circuit.
- Pins: -, +
Rain Sensor
- Description: A sensor used to detect rainwater.
- Pins: AO, DO, GRD, VCC
Wiring Details
Rocker Switch
- Output: Connected to the VIN pin of the ESP8266 NodeMCU.
- Input: Connected to the + pin of the 9V Battery.
DHT11
- DATA: Connected to the D2 pin of the ESP8266 NodeMCU.
- VCC: Connected to the 3V3 pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
LCM1602 IIC
- SDA: Connected to the SDA pin of the ESP8266 NodeMCU.
- SCL: Connected to the CLK pin of the ESP8266 NodeMCU.
- GND: Connected to the GND pin of the ESP8266 NodeMCU.
- VCC: Connected to the 3V3 pin of the ESP8266 NodeMCU.
- Other Pins: Interconnected with corresponding pins on the 16X2 LCD.
16X2 LCD
- Interconnected: All corresponding pins are connected to the LCM1602 IIC module.
ESP8266 NodeMCU
- D2: Connected to the DATA pin of the DHT11.
- A0: Connected to the AO pin of the Rain Sensor.
- 3V3: Connected to the VCC pins of the DHT11, Rain Sensor, and LCM1602 IIC.
- GND: Connected to the GND pins of the DHT11, Rain Sensor, and LCM1602 IIC.
- VIN: Connected to the output pin of the Rocker Switch.
9V Battery
- -: Connected to the GRD pin of the Rain Sensor and the GND pin of the ESP8266 NodeMCU.
- +: Connected to the input pin of the Rocker Switch.
Rain Sensor
- AO: Connected to the A0 pin of the ESP8266 NodeMCU.
- VCC: Connected to the 3V3 pin of the ESP8266 NodeMCU.
- GRD: Connected to the - pin of the 9V Battery.
- DO: Not connected in the provided net list.
Documented Code
ESP8266 NodeMCU Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not include specific functionality. It needs to be populated with the logic for reading sensors, processing data, and updating the display.