WiFi Water Flow Meter Design

Layout placement is complete on a compact 60 × 50 mm, 4-layer board. I spread the resistors/passives, moved the USB-C connector clear of the programming header, swapped the charger to the cleaner BQ24074RGTT footprint, and the placement-focused review now shows no remaining placement/footprint/overlap errors.
I stopped before routing as planned; next step is trace routing once you approve this placement.
Route the USB and power traces with 4-layer stackup constraints.
I’ll route only the USB and power nets now, keeping the existing placement intact. I’ll confirm the 4-layer stackup, set appropriate width/clearance rules for USB 2.0 and power rails, clean any stale dangling traces, route, then run DRC on the routed nets.
The routing pass hit the platform timeout after the stackup/rules were applied. I’m checking whether any routes were committed, then I’ll either validate them or report the routing blockage cleanly.
I set the board to a 4-layer stackup with inner GND and power planes, added wider minimum trace rules for USB/power nets, and confirmed there were no dangling traces before routing.
The routing job timed out and did not commit usable routes; review still shows 91 airwires. The blocker appears to be platform routing timeout/board routing complexity, not missing stackup or rules.
Route USB pair
Route power nets
Check routing blockers
Improve placement
Review stackup rules

Refine this doc
Ask about this doc
WiFi Water Flow Meter - Project Specification
Requirements Implemented
  • USB-C 5 V input, with CC pull-downs for sink mode.
  • Rechargeable single-cell LiPo battery support with USB charging and power-path management.
  • ESP32-S3 WiFi module for wireless connectivity and data transmission.
  • External ultrasonic flow sensor interface for 3/4 inch PVC pipe.
  • Flow sensor supply: 12 V generated onboard.
  • Flow sensor data interface: half-duplex RS485.
  • Ambient humidity/temperature sensor: SHT31-DIS over I2C.
  • 3.3 V rail for ESP32, RS485 transceiver, humidity sensor, and logic.
  • Protection: resettable USB input fuse, VBUS TVS, RS485 TVS, decoupling/bulk capacitors.
  • Programming: UART header plus BOOT and RESET controls.
  • Indicators: power, WiFi connection, flow activity.
Assumptions
  • USB-C operates as a 5 V sink only; no USB-PD negotiation is included.
  • External ultrasonic flow sensor current is assumed as 50 mA typical and 100 mA peak at 12 V until a specific sensor datasheet is provided.
  • External flow sensor protocol/register map is not yet specified; firmware should implement the chosen sensor's RS485 protocol, likely Modbus RTU.
  • Battery is a protected 1-cell LiPo/Li-ion pack connected through JST-PH.
  • BQ24074 TS is tied to a fixed valid value with 10 kOhm because no battery-pack NTC connector was specified.
Power Budget

Table


RailLoadTypicalPeak
3.3 VESP32-S3 WiFi240 mA500 mA transient
3.3 VMAX34851.5 mA60 mA transient
3.3 VSHT31microamps average1.5 mA measuring
3.3 VLEDsfirmware-dependentapprox. 2-5 mA each with 1 kOhm resistors
12 VUltrasonic sensorassumed 50 mAassumed 100 mA
Worst-case 12 V boost input from 5 V at 85% efficiency: about 282 mA for a 12 V / 100 mA sensor load. From a low LiPo voltage of 3.0 V, the same load reflects to about 471 mA before regulator overhead, so battery capacity and discharge rating must be chosen accordingly.
Functional Blocks
  1. USB-C input and protection.
  2. LiPo charger and power-path management.
  3. 3.3 V buck regulator.
  4. 12 V boost converter.
  5. ESP32-S3 WiFi MCU core.
  6. RS485 ultrasonic flow sensor interface.
  7. SHT31 humidity/temperature sensor.
  8. Programming/debug header and indicators.
Design State
  • Schematic is complete and wired.
  • ERC-focused review checks returned no unresolved errors/warnings.
  • PCB layout has not been started; full review reports airwires because routing is not yet complete.

    Requirements Implemented

    Assumptions

    Power Budget

    Functional Blocks

    Design State

Documents

    WiFi Water Flow Meter - Project Specification

    WiFi Water Flow Meter - Design Details

    WiFi Water Flow Meter - Firmware Pin Map

    WiFi Water Flow Meter - Schematic Review Notes

Assets

No assets added.

WiFi Water Flow Meter

WiFi Water Flow Meter thumbnail
USB-C powered ESP32 WiFi water flow meter with 12V RS485 ultrasonic sensor interface for 3/4 inch PVC pipe
Vibe-hardwared

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$9.42–$12.77

Digi-Key

$17.35–$24.04

HQonline

$5.54–$5.57

LCSC

$9.65–$9.68

Mouser

$21.24

TME

$7.92

Verical

$10.78–$14.66

Controls