ESP32-Based Smart Water Level and Distance Monitoring System with Servo Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an HC-SR04 ultrasonic sensor, a servo motor, and a water level sensor. The ESP32 serves as the central controller, interfacing with the sensors and the servo motor to perform various tasks.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
HC-SR04 Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Servo
- Description: A motor that can be precisely controlled in terms of angular position.
- Pins: GND, VCC, PWM
Water Level Sensor
- Description: A sensor used to detect the level of water.
- Pins: SIG, VCC, GND
Wiring Details
ESP32 (30 pin)
- D32 is connected to SIG of the Water Level Sensor.
- GND is connected to:
- GND of the HC-SR04 Ultrasonic Sensor
- GND of the Servo
- GND of the Water Level Sensor
- Vin is connected to:
- VCC of the Servo
- VCC of the Water Level Sensor
- D23 is connected to PWM of the Servo.
- D19 is connected to TRIG of the HC-SR04 Ultrasonic Sensor.
- D4 is connected to ECHO of the HC-SR04 Ultrasonic Sensor.
- 3V3 is connected to VCC of the HC-SR04 Ultrasonic Sensor.
HC-SR04 Ultrasonic Sensor
- GND is connected to GND of the ESP32.
- VCC is connected to 3V3 of the ESP32.
- TRIG is connected to D19 of the ESP32.
- ECHO is connected to D4 of the ESP32.
Servo
- GND is connected to GND of the ESP32.
- VCC is connected to Vin of the ESP32.
- PWM is connected to D23 of the ESP32.
Water Level Sensor
- SIG is connected to D32 of the ESP32.
- GND is connected to GND of the ESP32.
- VCC is connected to Vin of the ESP32.
Code
No code is provided for this circuit.