# WiFi Water Flow Meter
## Description
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.
## Project Details
- **Owner:** ryanf
- **Created:** 7/17/2026
- **Last Updated:** 7/19/2026
- **Visibility:** Public
## Key Components
### D1 — [ESD5V0D7-TP](https://www.flux.ai/lcsc/esd5v0d7-tp~9lyu.md)
- JLCPCB Part Class: Extended Part
- Role Details: 5V VBUS TVS/ESD protection near USB-C connector
- LCSC Part Number: C1974840
- Package or Case Code: SOD-723_L1.0-W0.6-LS1.4-RD
- Part Type: TVS
- Manufacturer Part Number: ESD5V0D7-TP
- Manufacturer Name: MCC(美微科)
- Role: ESD Protection
**Pins:**
- A [pin 2]
- C [pin 1]
### D2 — [B5819W](https://www.flux.ai/openpartlist/b5819w~cl.md)
- Part Type: Diode
- Manufacturer Name: Good-Ark Semiconductor
- Manufacturer Part Number: B5819W
- Datasheet URL: https://www.mccsemi.com/pdf/Products/B5817W-B5819W(SOD-123).pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Role: Boost Rectifier
- Role Details: LM27313 catch/rectifier diode, 40V 1A Schottky
**Pins:**
- A [pin 2]
- K [pin 1]
### D3 — [ESD5V0D7-TP](https://www.flux.ai/lcsc/esd5v0d7-tp~9lyu.md)
- JLCPCB Part Class: Extended Part
- LCSC Part Number: C1974840
- Role Details: Cable-side ESD clamp on RS485_A; replace with dedicated RS485 TVS array for long/industrial cables if needed
- Package or Case Code: SOD-723_L1.0-W0.6-LS1.4-RD
- Part Type: TVS
- Manufacturer Part Number: ESD5V0D7-TP
- Manufacturer Name: MCC(美微科)
- Role: ESD Protection
**Pins:**
- A [pin 2]
- C [pin 1]
### D4 — [ESD5V0D7-TP](https://www.flux.ai/lcsc/esd5v0d7-tp~9lyu.md)
- Role: ESD Protection
- JLCPCB Part Class: Extended Part
- Package or Case Code: SOD-723_L1.0-W0.6-LS1.4-RD
- LCSC Part Number: C1974840
- Manufacturer Name: MCC(美微科)
- Role Details: Cable-side ESD clamp on RS485_B; replace with dedicated RS485 TVS array for long/industrial cables if needed
- Manufacturer Part Number: ESD5V0D7-TP
- Part Type: TVS
**Pins:**
- A [pin 2]
- C [pin 1]
### D5 — [0603GBD0790S01](https://www.flux.ai/adrian95/0603gbd0790s01~iak.md)
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/4336/0603GBD0790S01.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: 0603GBD0790S01
- Part Type: LED
- Role: Status LED
- Manufacturer Name: ORIENTAL TECHNOLOGY
- Role Details: 3.3V power-present indicator
**Pins:**
- A [pin 2]
- K [pin 1]
### D6 — [0603GBD0790S01](https://www.flux.ai/adrian95/0603gbd0790s01~iak.md)
- Role: Status LED
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/4336/0603GBD0790S01.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Role Details: ESP32 GPIO-controlled WiFi status indicator
- Manufacturer Name: ORIENTAL TECHNOLOGY
- Manufacturer Part Number: 0603GBD0790S01
- Part Type: LED
**Pins:**
- A [pin 2]
- K [pin 1]
### D7 — [0603GBD0790S01](https://www.flux.ai/adrian95/0603gbd0790s01~iak.md)
- Manufacturer Name: ORIENTAL TECHNOLOGY
- Role: Status LED
- Part Type: LED
- Manufacturer Part Number: 0603GBD0790S01
- Role Details: ESP32 GPIO-controlled flow activity indicator
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/4336/0603GBD0790S01.pdf
**Pins:**
- A [pin 2]
- K [pin 1]
### J1 — [USB4105-GF-A](https://www.flux.ai/adrian95/usb4105-gf-a~im9.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: USB C
- Manufacturer Name: GCT
- Symbol Style: parametric-v1
- Role Details: USB-C receptacle for 5V input; CC handled by TUSB320 current detector
- Manufacturer Part Number: USB4105-GF-A
- Manufacturer Name: GCT
- Datasheet URL: https://gct.co/files/specs/usb4105-spec.pdf
- Role: Power Input Connector
**Pins:**
- CC1 [pin A5]
- CC2 [pin B5]
- DN1 [pin A7]
- DN2 [pin B7]
- DP1 [pin A6]
- DP2 [pin B6]
- GND [pin A1_B12]
- GND__1 [pin B1_A12]
- SBU1 [pin A8]
- SBU2 [pin B8]
- SHELL_GND [pin SH1]
- SHELL_GND__1 [pin SH2]
- SHELL_GND__2 [pin SH3]
- SHELL_GND__3 [pin SH4]
- VBUS [pin A4_B9]
- VBUS__1 [pin B4_A9]
### J2 — [284391-4](https://www.flux.ai/adrian95/284391-4.md)
- Compliance: Green
- Role Details: 3.5mm pitch field terminal block for external 12V RS485 ultrasonic flow sensor cable
- Manufacturer Name: TE Connectivity
- Manufacturer Part Number: 284391-4
- Mount: Base
- Role: Sensor Connector
- Datasheet URL: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=srchrtrv&DocNm=1-1773458-1_EURO_STYLE_QRG&DocType=Data%20Sheet&DocLang=English&PartCntxt=284391-4&DocFormat=pdf
- Part Type: Connector
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
- 4 [pin 4]
### J3 — [Pin Header 01x06 2.54mm PROGRAMMING CONNECTOR](https://www.flux.ai/zalak201285/pin-header-01x06-2p54mm-programming-connector~ji.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Connector
- Role Details: 3.3V UART0 programming header: 3V3, GND, TXD0, RXD0, EN, GPIO0
- Role: Programming Header
**Pins:**
- JTCK [pin 2]
- JTDI [pin 1]
- JTDO [pin 3]
- JTMS [pin 4]
- NJTRST [pin 5]
- RESET [pin 6]
### SW1 — [1571563-8](https://www.flux.ai/vasy_skral/1571563-8~oj.md)
- Role Details: Manual reset button from EN to GND
- Manufacturer Part Number: 1571563-8
- Datasheet URL: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=srchrtrv&DocNm=1308111-1_SWITCHES_CORE_PROGRAM_CATALOG&DocType=CS&DocLang=English
- Manufacturer Name: TE Connectivity ALCOSWITCH Switches
- Role: Reset Button
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 2]
- ~ [pin 1]
- ~ [pin 4]
### SW2 — [1571563-8](https://www.flux.ai/vasy_skral/1571563-8~oj.md)
- Part Type: Switch
- Manufacturer Name: TE Connectivity ALCOSWITCH Switches
- Datasheet URL: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=srchrtrv&DocNm=1308111-1_SWITCHES_CORE_PROGRAM_CATALOG&DocType=CS&DocLang=English
- Role: Boot Button
- Role Details: Manual BOOT button from GPIO0 to GND
- Manufacturer Part Number: 1571563-8
**Pins:**
- ~ [pin 3]
- ~ [pin 2]
- ~ [pin 1]
- ~ [pin 4]
### U1 — [MP5016GQH-Z](https://www.flux.ai/monolithicpower/mp5016gqh-z~mgj.md)
- Product Info Url: https://www.monolithicpower.com/en/catalog/product/view/id/428?utm_source=ultralibrarian&utm_medium=component_search&utm_campaign=listing
- Manufacturer Name: Monolithic Power Systems
- Role Details: USB-C VBUS eFuse; current limit set near 3A for 5V/3A Type-C source operation
- Product Image Url: https://www.monolithicpower.com/pub/media/catalog/product/M/P/MP5016_428_1.jpg
- Datasheet URL: https://www.monolithicpower.com/en/documentview/productdocument/index/version/2/document_type/Datasheet/lang/en/sku/MP5016GQH-Z
- Role: Protection
- Package or Case Code: QFN10-1p5X2_MNP
- Manufacturer Part Number: MP5016GQH-Z
**Pins:**
- DV/DT [pin 10]
- EN [pin 9]
- GATE [pin 8]
- GND [pin 3]
- ILIMIT [pin 4]
- MODE [pin 5]
- SOURCE [pin 7]
- SOURCE [pin 6]
- VCC [pin 1]
- VCC [pin 2]
### U2 — [TPS62162DSGT](https://www.flux.ai/vasyl/tps62162dsgt~hjm.md)
- Manufacturer Name: Texas Instruments
- Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=http%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Ftps62161
- Role: Voltage Regulator
- Part Type: Integrated Circuit
- Manufacturer Part Number: TPS62162DSGT
- Role Details: Fixed 3.3V/1A buck regulator for ESP32 WiFi rail; sized for ESP32 500mA peak plus logic loads
**Pins:**
- AGND [pin 4]
- EN [pin 3]
- FB [pin 5]
- PAD [pin 9]
- PG [pin 8]
- PGND [pin 1]
- SW [pin 7]
- VIN [pin 2]
- VOS [pin 6]
### U3 — [LM27313XMF/NOPB](https://www.flux.ai/vasyl/lm27313xmfnopb~bq1.md)
- Role Details: 12V boost converter for external RS485 ultrasonic sensor; SHDN controlled by ESP32 for power limiting
- Role: Voltage Regulator
- Manufacturer Name: Texas Instruments
- Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Flm27313
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: LM27313XMF/NOPB
- Part Type: DC DC Switching Regulators
**Pins:**
- ~SHDN [pin 4]
- FB [pin 3]
- GND [pin 2]
- SW [pin 1]
- VIN [pin 5]
### U4 — [ESP32-WROOM-32 - 5482847](https://www.flux.ai/kicad-part-library/esp32-wroom-32-5482847~9u.md)
- Role Details: ESP32 WiFi module; UART2 to RS485, UART0 programming header, GPIO LEDs and 12V boost enable
- Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
- Role: Microcontroller
- Manufacturer Name: Texas Instruments Inc.
- Manufacturer Part Number: ESP32-WROOM-32
- Package or Case Code: ESP32-WROOM-32
- Part Type: RF Module
**Pins:**
- EN [pin 3]
- GND [pin 39]
- GND [pin 15]
- GND [pin 1]
- GND [pin 38]
- IO0 [pin 25]
- IO12 [pin 14]
- IO13 [pin 16]
- IO14 [pin 13]
- IO15 [pin 23]
- IO16 [pin 27]
- IO17 [pin 28]
- IO18 [pin 30]
- IO19 [pin 31]
- IO2 [pin 24]
- IO21 [pin 33]
- IO22 [pin 36]
- IO23 [pin 37]
- IO25 [pin 10]
- IO26 [pin 11]
- IO27 [pin 12]
- IO32 [pin 8]
- IO33 [pin 9]
- IO34 [pin 6]
- IO35 [pin 7]
- IO4 [pin 26]
- IO5 [pin 29]
- NC [pin 32]
- RXD0/IO3 [pin 34]
- SCK/CLK [pin 20]
- SCS/CMD [pin 19]
- SDI/SD1 [pin 22]
- SDO/SD0 [pin 21]
- SENSOR_VN [pin 5]
- SENSOR_VP [pin 4]
- SHD/SD2 [pin 17]
- SWP/SD3 [pin 18]
- TXD0/IO1 [pin 35]
- VDD [pin 2]
### U5 — [SP3485EP](https://www.flux.ai/vasyl/sp3485ep~dnq.md)
- Manufacturer Name: Sipex Corporation
- Part Type: Integrated Circuit
- Manufacturer Part Number: SP3485EP
- Role: Interface Transceiver
- Role Details: 3.3V half-duplex RS485 transceiver; DE and /RE tied for direction control
- Datasheet URL: http://www.icbase.com/pdf/SPX/SPX00480106.pdf
**Pins:**
- ~RE~ [pin 2]
- A [pin 6]
- B [pin 7]
- DE [pin 3]
- DI [pin 4]
- GND [pin 5]
- RO [pin 1]
- VCC [pin 8]
### U6 — [TUSB320](https://www.flux.ai/vasyl/tusb320~f5.md)
- Manufacturer Name: Texas Instruments
- Role Details: Configured as UFP sink; CC current advertisement readable over I2C by ESP32
- Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Ftusb320
- Role: USB-C Controller
- Manufacturer Part Number: TUSB320
- Part Type: Integrated Circuit
**Pins:**
- ~EN [pin 11]
- ~INT~/OUT3 [pin 6]
- ADDR [pin 5]
- CC1 [pin 1]
- CC2 [pin 2]
- GND [pin 10]
- ID [pin 9]
- PORT [pin 3]
- SCL/OUT2 [pin 8]
- SDA/OUT1 [pin 7]
- VBUS_DET [pin 4]
- VDD [pin 12]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/ryanf/wifi-water-flow-meter-kjubf~z2q](https://www.flux.ai/ryanf/wifi-water-flow-meter-kjubf~z2q).*
---
*Generated from [https://www.flux.ai/ryanf/wifi-water-flow-meter-kjubf~z2q](https://www.flux.ai/ryanf/wifi-water-flow-meter-kjubf~z2q)*