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

ESP32-Based Weather Monitoring System with LCD Display and Rain Detection

Image of ESP32-Based Weather Monitoring System with LCD Display and Rain Detection

Circuit Documentation

Summary

This circuit integrates various components to perform environmental sensing and display. It features an ESP32 microcontroller as the central processing unit, interfaced with a rain sensor, a DHT11 humidity and temperature sensor, an LCD screen (16x2) with I2C interface, and a buzzer. The ESP32 reads analog signals from the rain sensor, digital signals from the DHT11 sensor, and controls the buzzer. It also communicates with the LCD screen over I2C to display sensor readings. The circuit is designed to monitor environmental conditions and provide visual feedback.

Component List

ESP32

  • Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins for interfacing with various peripherals.
  • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT

LCD Screen 16x2 I2C

  • Description: A 16x2 character LCD display with an I2C interface for displaying text and numbers.
  • Pins: SCL, SDA, VCC, GND

Rain Sensor

  • Description: A sensor that detects rain by measuring the resistance of rainwater on its surface.
  • Pins: AO, DO, GRD, VCC

Buzzer

  • Description: An electronic buzzer that can produce a tone when powered.
  • Pins: PIN, GND

DHT11 Humidity and Temperature Sensor

  • Description: A sensor that measures ambient humidity and temperature.
  • Pins: VDD, DATA, NULL, GND

Wiring Details

ESP32

  • D34 connected to Rain Sensor AO
  • D26 connected to DHT11 DATA
  • GND connected to LCD Screen GND, DHT11 GND, Rain Sensor GRD, Buzzer GND
  • VIN connected to LCD Screen VCC, DHT11 VDD, Rain Sensor VCC
  • D18 connected to Buzzer PIN
  • D21 connected to LCD Screen SDA
  • D22 connected to LCD Screen SCL

LCD Screen 16x2 I2C

  • SCL connected to ESP32 D22
  • SDA connected to ESP32 D21
  • VCC connected to ESP32 VIN
  • GND connected to ESP32 GND

Rain Sensor

  • AO connected to ESP32 D34
  • GRD connected to ESP32 GND
  • VCC connected to ESP32 VIN

Buzzer

  • PIN connected to ESP32 D18
  • GND connected to ESP32 GND

DHT11 Humidity and Temperature Sensor

  • DATA connected to ESP32 D26
  • VDD connected to ESP32 VIN
  • GND connected to ESP32 GND

Documented Code

No code has been provided for the microcontrollers in the circuit. The code would typically include initialization routines for the sensors, reading and processing sensor data, controlling the buzzer, and updating the LCD display with sensor information.