ESP32-Based Smart Weather Station with Ultrasonic and Rain Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, two ultrasonic sensors, a water sensor, a rain sensor, and a buzzer. The ESP32 serves as the central controller, interfacing with the sensors and the buzzer to perform various tasks. The sensors provide environmental data, which the ESP32 processes and uses to trigger the buzzer as needed.
Component List
ESP32 Wroom
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: 3V3, Reset, GPIO36, GPIO39, GPIO34, GPIO35, GPIO32, GPIO33, GPIO25, GPIO26, GPIO27, GPIO14, GPIO12, GND, GPIO13, GPIO9, GPIO10, GPIO11, 5V, GPIO23, GPIO22/SCL, GPIO1/TXD0, GPIO3/RXD0, GPIO21/SDA, GPIO19, GPIO18, GPIO5, GPIO17, GPIO16, GPIO4, GPIO0, GPIO2, GPIO15, GPIO8, GPIO7, GPIO6
Ultrasonic Sensor (x2)
- Description: Sensors used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Water Sensor
- Description: A sensor used to detect the presence of water.
- Pins: Signal, VCC, GND
Rain Sensor
- Description: A sensor used to detect rain.
- Pins: AO, DO, GRD, VCC
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
Wiring Details
ESP32 Wroom
- GND: Connected to GND of Ultrasonic Sensor 1, Ultrasonic Sensor 2, Water Sensor, Rain Sensor, and Buzzer.
- 5V: Connected to +VCC of Ultrasonic Sensor 1, Ultrasonic Sensor 2, VCC of Water Sensor, and VCC of Rain Sensor.
- GPIO34: Connected to Trigger of Ultrasonic Sensor 2.
- GPIO35: Connected to Echo of Ultrasonic Sensor 2.
- GPIO32: Connected to Trigger of Ultrasonic Sensor 1.
- GPIO33: Connected to Echo of Ultrasonic Sensor 1.
- GPIO25: Connected to DO of Rain Sensor.
- GPIO26: Connected to AO of Rain Sensor.
- GPIO27: Connected to Signal of Water Sensor.
- GPIO14: Connected to PIN of Buzzer.
Ultrasonic Sensor 1
- GND: Connected to GND of ESP32.
- +VCC: Connected to 5V of ESP32.
- Trigger: Connected to GPIO32 of ESP32.
- Echo: Connected to GPIO33 of ESP32.
Ultrasonic Sensor 2
- GND: Connected to GND of ESP32.
- +VCC: Connected to 5V of ESP32.
- Trigger: Connected to GPIO34 of ESP32.
- Echo: Connected to GPIO35 of ESP32.
Water Sensor
- GND: Connected to GND of ESP32.
- VCC: Connected to 5V of ESP32.
- Signal: Connected to GPIO27 of ESP32.
Rain Sensor
- GRD: Connected to GND of ESP32.
- VCC: Connected to 5V of ESP32.
- DO: Connected to GPIO25 of ESP32.
- AO: Connected to GPIO26 of ESP32.
Buzzer
- GND: Connected to GND of ESP32.
- PIN: Connected to GPIO14 of ESP32.
Code
No code is provided for this circuit.