Completed the schematic for the WiFi water flow meter: USB-C input protection/current detection, 3.3 V buck, firmware-controlled 12 V boost, ESP32-WROOM-32, RS485 sensor interface, UART programming header, reset/boot, LEDs, and support passives are all wired. Functional ERC/passive/component checks came back clean; remaining broad review warnings are schematic readability/label-placement cleanup items, not functional connectivity errors.
USB-C powered ESP32 WiFi controller for an external 12 V RS485 ultrasonic water-flow sensor intended for a 3/4 inch PVC pipe. The board provides protected USB-C 5 V input, a protected 5 V system rail, 3.3 V logic, a firmware-controlled 12 V sensor rail, RS485 communication, programming access, reset/boot controls, and status LEDs.
Intended Use
Prototype or production-intent controller board for a packaged ultrasonic flow sensor, not raw ultrasonic transducers.
External sensor is assumed to clamp/mount to 3/4 inch PVC and provide RS485 data, likely Modbus RTU.
Device reports flow rate and totalized volume over WiFi.
What the Device Should Do
Accept 5 V USB-C power.
Detect USB-C source current capability via TUSB320.
Power ESP32 and logic from a 3.3 V rail.
Generate 12 V for the external flow sensor under firmware control.
Communicate with the sensor over half-duplex RS485.
Provide UART programming/debug access.
Indicate power, WiFi status, and flow activity.
Main Features
USB-C 5 V sink input with MP5016 eFuse protection.
TPS62162 3.3 V / 1 A buck regulator.
LM27313 5 V to 12 V boost rail based on TI 5 V to 12 V reference circuit.
ESP32-WROOM-32 WiFi MCU module.
SP3485 3.3 V RS485 transceiver with termination, weak bias, and ESD clamps.
Important: USB-C without USB PD is always 5 V. Full 15 W operation requires a Type-C source advertising 3 A. Firmware should check TUSB320 current capability before enabling the 12 V boost at full load.
Manufacturing and Assembly Expectations
SMD passives are used by default.
Layout must keep the ESP32 antenna at a board edge with copper keepout.
Switching-regulator loops for U2 and U3 need compact layout and solid ground return.
RS485 connector should be placed at board edge; termination/bias may be made optional in layout if this board is not always an RS485 bus end.
Firmware-Relevant Hardware Requirements
Read flow via RS485/Modbus on UART2: RX IO16, TX IO17, DE/RE IO4.
Control 12 V sensor rail via BOOST_EN on IO25.
Read Type-C source capability from TUSB320 over I2C at address 0x60.
Drive WiFi LED on IO26 and flow LED on IO27.
Use UART0 programming header with BOOT/RESET buttons.
Physical Design Expectations
Board edge placement required for ESP32 antenna.
USB-C and sensor terminal should face outward for cable access.
Add test points in layout for VBUS_RAW, SYS_5V, 3V3, 12V_SENSOR, GND, RS485_A, RS485_B, ESP_EN, and BOOST_EN.
Important Design Decisions
Used a buck regulator for 3.3 V instead of an LDO to avoid ESP32 WiFi thermal margin issues.
Added Type-C current detection so firmware can avoid overloading default-current USB-C sources.
Made 12 V boost firmware-enableable and default-off.
Used a packaged RS485 ultrasonic sensor assumption; raw ultrasonic transducers would require a different analog front-end design.
Assumptions
External ultrasonic sensor accepts 12 V and draws <=250 mA peak.
Sensor protocol is Modbus RTU or similar register-based RS485.
Product may require a 5 V / 3 A USB-C source for full sensor power.
RS485 common-mode stress is moderate because this board powers the sensor and shares ground.
Change Notes
Initial schematic created with power input, regulators, ESP32, RS485 interface, sensor connector, LEDs, programming header, and support passives.
ERC functional checks currently show no open ERROR/WARNING items for the selected electrical/passive/component review set.
USB-C powered ESP32 WiFi water-flow-meter controller for an external 12V RS485 ultrasonic sensor on 3/4 inch PVC pipe, with protected power input, 3.3V logic rail, 12V boost rail, programming header, reset/boot controls, and status LEDs.
Properties
Properties describe core aspects of the project.
Pricing & Availability
Distributor
Qty 1
Arrow
$3.95–$6.20
Digi-Key
$0.63
HQonline
$6.36–$6.38
LCSC
$6.89–$6.92
Mouser
$12.80
TME
$2.35
Verical
$5.02–$5.90
Controls
Welcome 👋
Flux helps you build PCBs faster with an AI teammate!
Create your account to collaborate, stay updated, fork your own version, and get instant answers from our AI agent.