Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

ESP8266 NodeMCU-Based Weather Monitoring System

Image of ESP8266 NodeMCU-Based Weather Monitoring System

Circuit Documentation

Summary

This circuit integrates various sensors and a servomotor with an ESP8266 NodeMCU microcontroller. The ESP8266 NodeMCU serves as the central processing unit, interfacing with a BH1750 light sensor, a DHT22 temperature and humidity sensor, a rain sensor, and a Servomotor MG90S. The circuit is designed to collect environmental data and potentially actuate the servomotor based on sensor inputs.

Component List

ESP8266 NodeMCU

  • Description: A Wi-Fi capable microcontroller module with a wide range of GPIO pins for interfacing with various sensors and devices.
  • 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

BH1750 Light Sensor

  • Description: A digital ambient light sensor that provides illuminance measurements in lux through an I2C interface.
  • Pins: VCC, GND, SCL, SDA, ADDR

Servomotor MG90S

  • Description: A small and lightweight servomotor capable of precise angular positioning.
  • Pins: SIG, VCC, GND

Rain Sensor

  • Description: A sensor that detects rain by measuring the resistance between two conductive tracks.
  • Pins: AO, DO, GRD, VCC

DHT22 Temperature and Humidity Sensor

  • Description: A sensor that measures ambient temperature and humidity with a digital signal output.
  • Pins: GND, VCC, DAT

Wiring Details

ESP8266 NodeMCU

  • D1 connected to BH1750 SCL
  • D2 connected to BH1750 SDA
  • D3 connected to Rain Sensor DO
  • D4 connected to DHT22 DAT
  • D5 connected to Servomotor MG90S SIG
  • 3V3 connected to BH1750 VCC, DHT22 VCC, Servomotor MG90S VCC
  • GND connected to BH1750 GND, DHT22 GND, Servomotor MG90S GND, Rain Sensor GRD
  • A0 connected to Rain Sensor AO

BH1750 Light Sensor

  • SCL connected to ESP8266 NodeMCU D1
  • SDA connected to ESP8266 NodeMCU D2
  • VCC connected to ESP8266 NodeMCU 3V3
  • GND connected to ESP8266 NodeMCU GND

Servomotor MG90S

  • SIG connected to ESP8266 NodeMCU D5
  • VCC connected to ESP8266 NodeMCU 3V3
  • GND connected to ESP8266 NodeMCU GND

Rain Sensor

  • DO connected to ESP8266 NodeMCU D3
  • AO connected to ESP8266 NodeMCU A0
  • GRD connected to ESP8266 NodeMCU GND
  • VCC connected to ESP8266 NodeMCU 3V3

DHT22 Temperature and Humidity Sensor

  • DAT connected to ESP8266 NodeMCU D4
  • VCC connected to ESP8266 NodeMCU 3V3
  • GND connected to ESP8266 NodeMCU GND

Documented Code

No code has been provided for the microcontroller. The code would typically initialize the sensors, read data from them, and control the servomotor based on the sensor inputs. It would also handle communication over Wi-Fi if needed.