# Piso WiFi ESP32 Controller
## Description
Welcome to your new project. Imagine what you can build here.
## Project Details
- **Owner:** kuyadreiph
- **Created:** 3/15/2026
- **Last Updated:** 3/15/2026
- **Visibility:** Public
- **System Architecture:** flowchart TD
subgraph Power [Power]
P12V[12V Input]
PRP[Reverse Polarity Protection]
PTVS[TVS Clamp]
PBUCK[LM2596S-5.0 Buck]
P5V[5V Rail]
PLDO[AMS1117-3.3 LDO]
P3V3[3.3V Rail]
end
subgraph Core [ESP32 Core]
ESP[ESP32-WROOM-32]
ENPU[EN Pullup and RC]
BOOTPU[GPIO0 Pullup]
RSTBTN[Reset Button]
PRGHDR[Prog Header]
end
subgraph Inputs [Inputs]
COIN[Coin Acceptor]
OPTO[PC817 Optocoupler]
SCHMITT[SN74LVC1G17]
end
subgraph Outputs [Outputs]
REL1[Relay Driver 1]
REL2[Relay Driver 2]
BUZ[Active Buzzer]
LED1[Status LED 1]
LED2[Status LED 2]
end
subgraph Interfaces [Interfaces]
I2C[I2C LCD Conn]
end
P12V --> PRP --> PTVS --> PBUCK --> P5V --> PLDO --> P3V3
P3V3 --> ESP
PRGHDR --> ESP
COIN --> OPTO --> SCHMITT --> ESP
ESP --> REL1
ESP --> REL2
ESP --> BUZ
ESP --> LED1
ESP --> LED2
ESP --> I2C
P5V --> I2C
## Key Components
### BUF-1 — [SN74LVC1G17_DBV_5](https://www.flux.ai/jlamflux/sn74lvc1g17dbv5.md)
- Part Type: Integrated Circuit
- Manufacturer Part Number: SN74LVC1G17DBVR
- Role: Logic Buffer
- Package: SOT-23-5
- Role Details: Schmitt trigger to clean coin pulses for ESP32
**Pins:**
- A [pin 2]
- GND [pin 3]
- NC [pin 1]
- VCC [pin 5]
- Y [pin 4]
### BZ1 — [TMB12A05](https://www.flux.ai/jecstronic/tmb12a05.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: Jiangsu Huaneng Elec
- Package: THT
- Role: Actuator
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304261046_Jiangsu-Huaneng-Elec-TMB12A05_C96093.pdf
- Manufacturer Part Number: TMB12A05
- Part Type: Buzzer
- Role Details: 5V active buzzer
**Pins:**
- N
- P
### D1 — [SMBJ15A](https://www.flux.ai/adrian95/smbj15a.md)
- Role Details: Clamp transients on protected 12V input rail
- Part Type: Diode
- Manufacturer Name: Littelfuse Inc.
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: SMBJ15A
- Package: DO-214AA
- Role: TVS Protection
- Datasheet URL: https://www.littelfuse.com/~/media/electronics/datasheets/tvs_diodes/littelfuse_tvs_diode_smbj_datasheet.pdf.pdf
**Pins:**
- A [pin 2]
- K [pin 1]
### D2 — [SS34-E3/57T](https://www.flux.ai/adrian95/ss34-e357t.md)
- Role Details: LM2596 catch diode
- Manufacturer Part Number: SS34-E3/57T
- Manufacturer Name: Vishay General Semiconductor - Diodes Division
- Part Type: Diode
- Package: DO-214AB
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://www.vishay.com/docs/88751/ss32.pdf
- Role: Rectifier
**Pins:**
- A [pin 2]
- K [pin 1]
### D3 — [Generic Diode](https://www.flux.ai/jharwinbarrozo/generic-diode-1l3gh.md)
- Role: Flyback
- Role Details: Flyback diode across relay coil
- Part Type: Diode
- Package: SMD_SOD-123
**Pins:**
- A [pin 2]
- K [pin 1]
### D4 — [Generic Diode](https://www.flux.ai/jharwinbarrozo/generic-diode-1l3gh.md)
- Part Type: Diode
- Package: SMD_SOD-123
- Role Details: Flyback diode across relay coil
- Role: Flyback
**Pins:**
- A [pin 2]
- K [pin 1]
### J1 — [Pin Header 01x04 2.54mm Vertical i2c](https://www.flux.ai/hasanbasri93/pin-header-01x04-2p54mm-vertical-i2c.md)
- Part Type: Connector
- Role: Connector
- Role Details: I2C LCD header: 5V GND SDA SCL
- Package: THT
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- 5V [pin 1]
- GND [pin 2]
- SCL [pin 4]
- SDA [pin 3]
### J2 — [Pin Header 01x06 2.54mm PROGRAMMING CONNECTOR](https://www.flux.ai/zalak201285/pin-header-01x06-2p54mm-programming-connector.md)
- Part Type: Connector
- License: https://creativecommons.org/licenses/by/4.0/
- Role: Connector
- Package: THT
- Role Details: Programming header: TX RX GND 3V3 EN GPIO0
**Pins:**
- JTCK [pin 2]
- JTDI [pin 1]
- JTDO [pin 3]
- JTMS [pin 4]
- NJTRST [pin 5]
- RESET [pin 6]
### LED1 — [Generic LED](https://www.flux.ai/jharwinbarrozo/generic-led.md)
- Role: Indicator
- Part Type: LED
- Package: SMD_0603_1608Metric
- Role Details: Status indicator LED
**Pins:**
- A [pin 2]
- K [pin 1]
### LED2 — [Generic LED](https://www.flux.ai/jharwinbarrozo/generic-led.md)
- Role Details: Status indicator LED
- Package: SMD_0603_1608Metric
- Part Type: LED
- Role: Indicator
**Pins:**
- A [pin 2]
- K [pin 1]
### Q1 — [AO3401A](https://www.flux.ai/jecstronic/ao3401a.md)
- Role: Reverse Protection
- Role Details: Ideal-diode reverse polarity protection on 12V input
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Transistor
- Package: SOT-23
- Manufacturer Name: HUASHUO
- Manufacturer Part Number: AO3401A
- Datasheet URL: https://www.lcsc.com/datasheet/lcsc_datasheet_2007171935_HUASHUO-AO3401A_C700954.pdf
**Pins:**
- D [pin 3]
- G [pin 1]
- S [pin 2]
### Q2 — [PC817C](https://www.flux.ai/vasyl/pc817c.md)
- Manufacturer Name: Taiwan Semiconductor Corporation
- Manufacturer Part Number: PC817C
- Package: DIP-4
- Part Type: Integrated Circuit
- Datasheet URL: https://www.taiwansemi.com/assets/uploads/datasheet/TPC817%20SERIES_C1612.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Role Details: Coin acceptor optocoupler input isolation
- Role: Isolation
**Pins:**
- ~ [pin 1]
- ~ [pin 2]
- ~ [pin 3]
- ~ [pin 4]
### Q3 — [AO3400A](https://www.flux.ai/adrian95/ao3400a.md)
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Alpha%20&%20Omega/AO3400A_ds.pdf
- Role: Switch
- Part Type: Transistor
- Package: SOT-23
- Role Details: Relay coil MOSFET low-side driver
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: Alpha & Omega Semiconductor Inc.
- Manufacturer Part Number: AO3400A
**Pins:**
- D [pin 3]
- G [pin 1]
- S [pin 2]
### Q4 — [AO3400A](https://www.flux.ai/adrian95/ao3400a.md)
- Role: Switch
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Alpha%20&%20Omega/AO3400A_ds.pdf
- Role Details: Relay coil MOSFET low-side driver
- Part Type: Transistor
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: Alpha & Omega Semiconductor Inc.
- Package: SOT-23
- Manufacturer Part Number: AO3400A
**Pins:**
- D [pin 3]
- G [pin 1]
- S [pin 2]
### Q5 — [S8050](https://www.flux.ai/adrian95/s8050.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Role: Driver
- Datasheet URL: https://pdf1.alldatasheet.com/datasheet-pdf/view/33773/WINGS/S8050.html
- Package: SOT-23
- Part Type: Transistor
- Role Details: NPN low-side switch for active buzzer
- Manufacturer Part Number: S8050
- Manufacturer Name: MDD
**Pins:**
- B [pin 1]
- C [pin 3]
- E [pin 2]
### SW1 — [OEM B3F-4055](https://www.flux.ai/dany3/oem-b3f-4055.md)
- Manufacturer Part Number: OEM B3F-4055
- Role Details: ESP32 reset button from EN to GND
- Manufacturer Name: OEM Generic
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3f.pdf
- Part Type: Switch
- Part Type: {"type":"vector3","data":{"x":0,"z":0,"y":0}}
- Package: THT
- License: https://creativecommons.org/licenses/by/4.0/
- Role: User Input
**Pins:**
- A [pin 1]
- A1 [pin 2]
- B [pin 3]
- B1 [pin 4]
### U1 — [KF128-5.08-2P-AA](https://www.flux.ai/lcsc/kf128-5p08-2p-aa.md)
- Operating Temperature: -40℃~+105℃
- Part Type: Screw terminal
- Connector Positions: 2
- Manufacturer Part Number: KF128-5.08-2P-AA
- Role: Connector
- Manufacturer Name: KEFA(科发)
- Connector Gender: Female
- Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2408211511_Cixi-Kefa-Elec-KF128-5-08-2P-AA_C474952.pdf
- Package: THT
- Role Details: 12V power input
- JLCPCB Part Class: Extended Part
- LCSC Part Number: C474952
- Connector Rows: 1
- Connector Pitch: 5.08mm
- Connector Type: Screw terminal
- Current Rating: 24A
- Product Info Url: https://lcsc.com/product-detail/New-Quadratic-Unclassified-Data_Cixi-Kefa-Elec-KF128-5-08-2P_C474952.html
- Package or Case Code: CONN-TH_P5.08_KF128-5.08-2P
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
### U2 — [LM2596S-5.0/NOPB](https://www.flux.ai/adrian95/lm2596s-5p0nopb.md)
- Manufacturer Name: Texas Instruments
- Datasheet URL: https://www.ti.com/lit/ds/symlink/lm2596.pdf
- Manufacturer Part Number: LM2596S-5.0/NOPB
- Role: Regulator
- Package: TO-263-6
- License: https://creativecommons.org/licenses/by/4.0/
- Role Details: 5V buck regulator from protected 12V
- Part Type: Integrated Circuit
**Pins:**
- ~ON~/OFF [pin 5]
- FEEDBACK [pin 4]
- GND_TAB [pin 6]
- GROUND [pin 3]
- OUTPUT [pin 2]
- VIN [pin 1]
### U3 — [AMS1117-3.3](https://www.flux.ai/vasy_skral/ams1117-33.md)
- Role: Regulator
- Manufacturer Name: AMS
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Integrated Circuit
- Manufacturer Part Number: AMS1117-3.3
- Symbol Style: Parametric
- Package: SOT-223
- Datasheet URL: http://www.advanced-monolithic.com/pdf/ds1117.pdf
- Role Details: 3.3V LDO from 5V for ESP32
**Pins:**
- GND [pin 1]
- TAB(VOUT) [pin 4]
- VIN [pin 3]
- VOUT [pin 2]
### U4 — [ESP32-WROOM-32 with Simplified Footprint](https://www.flux.ai/vasy_skral/esp32-wroom-32-with-simplified-footprint.md)
- Part Type: Integrated Circuit
- Manufacturer Name: Espressif Systems
- Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf
- Manufacturer Part Number: ESP32-WROOM-32
- Role: MCU Module
- Role Details: ESP32-WROOM-32 main controller
- Package: Module
**Pins:**
- EN [pin 3]
- GND [pin 15]
- GND [pin 39]
- GND [pin 38]
- GND [pin 1]
- 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]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/kuyadreiph/piso-wifi-esp32-controller](https://www.flux.ai/kuyadreiph/piso-wifi-esp32-controller).*
---
*Generated from [https://www.flux.ai/kuyadreiph/piso-wifi-esp32-controller](https://www.flux.ai/kuyadreiph/piso-wifi-esp32-controller)*