the linear drop across U12 is moderate compared with dropping from 24 V directly
Clear functional partitioning
The schematic is logically modular:
sensing
controller
display/I2C
relay outputs
power
That makes firmware and troubleshooting easier.
Dedicated control outputs
Assigning separate GPIOs for each relay and each sensor channel keeps the firmware simple and deterministic.
Manual boot/reset support
Using IO0, EN1, R5, and R6 is a practical bring-up choice.
Trade-offsBuck + LDO vs all-buck rails
Pro:U12 can help clean up the 3.3 V rail after a noisier 5 V switching stage.
Con:U12 burns power as heat, especially if 3.3 V current rises.
Relay modules instead of integrated relay drivers
Pro:RL1-RL4 simplify design effort and may already include protection/isolation.
Con: modular relays increase size, power draw, and usually reduce PCB integration efficiency.
Generic passives in power stage
Pro:L1, C5, C6, C1, C7, C8, and C9 let the concept come together quickly.
Con: production success depends on final selection of ESR, ripple current, voltage rating, and inductor current rating, which are not fully captured by generic symbols alone.
If Wi-Fi activity, display current, and other 3.3 V loads rise, U12 may run warm.
4. GPIO and voltage-domain safety
This is one of the most important practical concerns.
The sensor header J11 is powered from 5 V, while U1 is a 3.3 V device. If the attached ultrasonic modules drive echo lines to 5 V directly, those echo nets may require explicit level shifting or input protection, depending on the sensor module actually used.
replace modular relays RL1-RL4 with more compact integrated driver circuitry in a later revision
add surge, reverse-polarity, and fuse protection ahead of J4
add watchdog and failsafe firmware modes for unattended installations
Real-world applications
This board is well suited for:
household water tank monitoring
pump automation and refill control
cistern / reservoir level supervision
agricultural irrigation storage monitoring
industrial utility tank telemetry
IoT water infrastructure dashboards
Bottom line
This is a practical ESP32-based sensing + control platform with:
dual ultrasonic measurement
4-channel relay actuation
dual-rail power conversion
I2C expansion
manual programming/debug support
Its strongest design choice is the combination of monitoring plus control in one board. Its main technical risks are sensor voltage compatibility, power-stage validation, and noise management.
Wirelessly connects nets on schematic. Used to organize schematics and separate functional blocks. To wirelessly connect net portals, give them same designator. #portal
Wirelessly connects power nets on schematic. Identical to the net portal, but with a power symbol. Used to organize schematics and separate functional blocks. To wirelessly connect power net portals, give them the same designator. #portal #power
ESP32 Dual Ultrasonic Water Level Monitoring System
This project is designed to measure water level of two tanks using ultrasonic sensors interfaced with the ESP32 microcontroller. The design leverages the processing power and wireless connectivity of the ESP32 to accurately monitor water levels and support automated water management processes. Key components include two ultrasonic sensors for precise distance measurement, robust voltage regulation using an LM2596 buck converter, and reliable power management circuits. Its modular design approach facilitates easy expansion and integration with other systems, making it an ideal solution for both DIY enthusiasts and professionals in automated fluid control and IoT applications.