Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

ESP32-Based Smart Weather Station with Ultrasonic Sensors and Gas Detection

View and Edit Project In Cirkit DesignerImage of ESP32-Based Smart Weather Station with Ultrasonic Sensors and Gas Detection

Circuit Documentation

Summary

This circuit is designed to monitor environmental conditions using various sensors and display the data on an LCD. It includes an ESP32 microcontroller, ultrasonic sensors, a rain sensor, a gas sensor, a buzzer, LEDs, pushbuttons, and servos. The system can detect rain, measure distances, detect gas, and control a servo motor based on sensor inputs. The data is displayed on a 16x2 I2C LCD.

Component List

  1. ESP32 Wroom Dev Kit

    • Pins: 3V3, EN, VP, VN, GPIO 34, GPIO 35, GPIO 32, GPIO 33, GPIO 25, GPIO 26, GPIO 27, GPIO 14, GND, GPIO 13, SD2, SD3, CMD, V5, GPIO 23, GPIO 22, TXD, RXD, GPIO 21, GPIO 19, GPIO 18, GPIO 5, GPIO 17, GPIO 16, GPIO 4, GPIO 0, GPIO 2, GPIO 15, SD1, SD0, CLK
    • Description: Microcontroller used to control the circuit and process sensor data.
  2. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: Used to measure distance.
  3. YL-83 Rain Sensor - Detection Board

    • Pins: POS, NEG
    • Description: Used to detect rain.
  4. Rain/Snow Sensor - Board

    • Pins: 1, 2, A0 (Analog), D0 (Digital), GND, VCC (5V)
    • Description: Used to detect rain or snow.
  5. MQ-2 Gas Sensor

    • Pins: GND, VCC, ANALOG, Digital
    • Description: Used to detect gas.
  6. Pushbutton

    • Pins: Pin 2, Pin 1, Pin 3, Pin 4
    • Description: Used to control the servo motor.
  7. Buzzer Module

    • Pins: GND, Vcc, I/O
    • Description: Used to alert when gas is detected.
  8. LED: Two Pin (blue)

    • Pins: cathode, anode
    • Description: Used as an indicator.
  9. Resistor (220 Ohms)

    • Pins: pin1, pin2
    • Description: Used to limit current for LEDs.
  10. Resistor (10k Ohms)

    • Pins: pin1, pin2
    • Description: Used for pull-up/pull-down configurations.
  11. Servo

    • Pins: GND, VCC, PWM
    • Description: Used to control mechanical movement.
  12. 16x2 I2C LCD

    • Pins: GND, VCC, SDA, SCL
    • Description: Used to display sensor data.
  13. MB102 Breadboard Power Supply Module 3.3V/5V

    • Pins: VCC, GND, 3.3V, 5V
    • Description: Provides power to the circuit.

Wiring Details

ESP32 Wroom Dev Kit

HC-SR04 Ultrasonic Sensor

YL-83 Rain Sensor - Detection Board

Rain/Snow Sensor - Board

MQ-2 Gas Sensor

Pushbutton

Buzzer Module

LED: Two Pin (blue)

Resistor (220 Ohms)

Resistor (10k Ohms)

Servo

16x2 I2C LCD

MB102 Breadboard Power Supply Module 3.3V/5V