# ESP32-S3 IoT Relay Controller ## Description Controlador IoT compacto con ESP32-S3, alimentación dual AC/DC aislada, relé de 16A, medición de tensión/corriente/temperatura, USB-C y E/S auxiliares para producción. ## Project Details - **Owner:** rchbytec - **Created:** 7/14/2026 - **Last Updated:** 7/14/2026 - **Visibility:** Public - **Copies:** 1 ## Key Components ### D1 — [USBLC6-2SC6](https://www.flux.ai/lcsc/usblc6-2sc6~2e9x.md) - Maximum Clamping Voltage: 17V - Peak Pulse Current: 5A - Manufacturer Part Number: USBLC6-2SC6 - Datasheet URL: https://www.lcsc.com/datasheet/C2687116.pdf?spm=wm.sxq.inf.ggs&lcsc_vid=FlkNBAIDRQULVABfFAVZBgZVFVZYBgZSQ1NeBVIFQlExVlNRTlhdUVdURFlXXzsOAxUeFF5JWBYZEEoKFBINSQcJGk4dAgUUFAk%3D - Part Type: ESD Protection Devices - Power: 150W - Breakdown Voltage: 6V - Role: ESD Protection - Package or Case Code: SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BL - Operating Temperature: -55°C ~ 125°C (TJ) - Manufacturer Name: UMW(友台半导体) - LCSC Part Number: C2687116 - JLCPCB Part Class: Extended Part - Role Details: Low-capacitance TVS array for USB D+ and D- - Symbol Style: parametric-v1 **Pins:** - GND [pin 2] - I/O1 [pin 1] - I/O1 [pin 6] - I/O2 [pin 3] - I/O2 [pin 4] - VBUS [pin 5] ### D2 — [SML-D13FWT86C](https://www.flux.ai/cherepanyadima/sml-d13fwt86c.md) - Part Type: Optoelectronic Devices - Role: Status LED - Role Details: 3V3 power indicator green LED - Manufacturer Part Number: SML-D13FWT86C - Manufacturer Name: Rohm Semiconductor - Datasheet URL: https://www.snapeda.com/parts/SML-D13FWT86C/Rohm%20Semiconductor/datasheet/ **Pins:** - 1 [pin 1] - 2 [pin 2] ### D3 — [150060BS73220](https://www.flux.ai/vasy_skral/150060bs73220~6g.md) - Role: Status LED - Part Type: LED - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Würth Elektronik - Datasheet URL: https://www.we-online.com/components/products/datasheet/150060BS73220.pdf - Manufacturer Part Number: 150060BS73220 - Role Details: Firmware-controlled WiFi/status blue LED **Pins:** - A [pin 2] - K [pin 1] ### D4 — [SML-D14U2WT86C](https://www.flux.ai/jecstronic/sml-d14u2wt86c~zwg.md) - License: https://creativecommons.org/licenses/by/4.0/ - Role: Status LED - Datasheet URL: https://fscdn.rohm.com/en/products/databook/datasheet/opto/led/chip_mono/sml-d14u2wt86(c)-e.pdf - Manufacturer Part Number: SML-D14U2WT86C - Role Details: Firmware-controlled relay state red LED - Manufacturer Name: Rohm Semiconductor - Part Type: LED **Pins:** - A [pin 2] - K [pin 1] ### D5 — [SS14](https://www.flux.ai/cherepanyadima/ss14~5b.md) - Role: Flyback Diode - Role Details: Suppresses K1 SET coil inductive kick - Part Type: Diode - Manufacturer Name: Slkor(SLKORMICRO Elec.) - Manufacturer Part Number: SS14 - License: https://creativecommons.org/licenses/by/4.0/ - Datasheet URL: https://datasheet.lcsc.com/lcsc/1912111437_Slkor-SLKORMICRO-Elec--SS14_C444721.pdf **Pins:** - Anode [pin A] - Cathode [pin C] ### D6 — [SS14](https://www.flux.ai/cherepanyadima/ss14~5b.md) - Part Type: Diode - Role Details: Suppresses K1 RESET coil inductive kick - Role: Flyback Diode - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: SS14 - Datasheet URL: https://datasheet.lcsc.com/lcsc/1912111437_Slkor-SLKORMICRO-Elec--SS14_C444721.pdf - Manufacturer Name: Slkor(SLKORMICRO Elec.) **Pins:** - Anode [pin A] - Cathode [pin C] ### D8 — [USBLC6-2SC6](https://www.flux.ai/lcsc/usblc6-2sc6~2e9x.md) - LCSC Part Number: C2687116 - Manufacturer Name: UMW(友台半导体) - Operating Temperature: -55°C ~ 125°C (TJ) - Role: Protection - Package or Case Code: SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BL - Manufacturer Part Number: USBLC6-2SC6 - Datasheet URL: https://www.lcsc.com/datasheet/C2687116.pdf?spm=wm.sxq.inf.ggs&lcsc_vid=FlkNBAIDRQULVABfFAVZBgZVFVZYBgZSQ1NeBVIFQlExVlNRTlhdUVdURFlXXzsOAxUeFF5JWBYZEEoKFBINSQcJGk4dAgUUFAk%3D - Power: 150W - Part Type: ESD Protection Devices - Breakdown Voltage: 6V - Peak Pulse Current: 5A - Maximum Clamping Voltage: 17V - Symbol Style: parametric-v1 - Role Details: Dual-line ESD clamp for SELV external input terminals - JLCPCB Part Class: Extended Part **Pins:** - GND [pin 2] - I/O1 [pin 1] - I/O1 [pin 6] - I/O2 [pin 3] - I/O2 [pin 4] - VBUS [pin 5] ### F1 — [178.7017.0001](https://www.flux.ai/adrian95/178p7017p0001.md) - Role Details: 5x20mm 250VAC fuse holder; fuse value selected by final load/inrush requirements - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: 178.7017.0001 - Part Type: Circuit Protection Devices - Role: Fuse Holder - Manufacturer Name: Littelfuse - Datasheet URL: https://www.littelfuse.com/assetdocs/ato-fkh-datasheet?assetguid=52ab370f-f59e-4f6c-87fb-d18075289d4c **Pins:** - 1 [pin 1] - 2 [pin 2] ### J1 — [TYPE-C-2.0-16PIN-SMT-3-OR](https://www.flux.ai/lcsc/type-c-2p0-16pin-smt-3-or~957d.md) - JLCPCB Part Class: Extended Part - LCSC Part Number: C2987387 - Role: USB-C Connector - Part Type: USB Connectors - Manufacturer Part Number: TYPE-C-2.0-16PIN-SMT-3-OR - Role Details: USB 2.0 device/sink connector with CC pull-downs and ESD protection - Package or Case Code: USB-SMD_TYPE-C16PIN-1 - Manufacturer Name: CIKI(皓富) **Pins:** - 17 [pin 17] - 18 [pin 18] - 19 [pin 19] - 20 [pin 20] - CC1 [pin A5] - CC2 [pin B5] - DN1 [pin A7] - DN2 [pin B7] - DP1 [pin A6] - DP2 [pin B6] - GND [pin B1A12] - GND [pin A1B12] - SBU1 [pin A8] - SBU2 [pin B8] - VBUS [pin A4B9] - VBUS [pin B4A9] ### J2 — [1730405](https://www.flux.ai/adrian95/1730405.md) - Role Details: AC input L/N/PE or L/N spare; 24A/400V class terminal - Role: Terminal Block - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Name: Phoenix Contact - Datasheet URL: https://www.phoenixcontact.com/en-us/products/printed-circuit-board-terminal-mkds-25-3-508-1730405?type=pdf - Manufacturer Part Number: 1730405 **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] ### J3 — [1730405](https://www.flux.ai/adrian95/1730405.md) - Part Type: Connector - License: https://creativecommons.org/licenses/by/4.0/ - Role: Terminal Block - Manufacturer Name: Phoenix Contact - Datasheet URL: https://www.phoenixcontact.com/en-us/products/printed-circuit-board-terminal-mkds-25-3-508-1730405?type=pdf - Role Details: Switched load output; high-current 24A/400V class terminal - Manufacturer Part Number: 1730405 **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] ### J4 — [DB127V-5.08-2P-GN-S](https://www.flux.ai/cherepanyadima/db127v-5p08-2p-gn-s~ic.md) - Manufacturer Part Number: DB127V-5.08-2P-GN-S - Role Details: External wall/surface pushbutton input only; SELV dry contact to GND - Connector Positions: 2 - Part Type: Connector - Datasheet URL: https://www.lcsc.com/datasheet/C3018698.pdf?spm=wm.sxq.inf.ggs&lcsc_vid=ElhbUlFSRlUNBF0CQlQIBQBUFFILBFEAQVVWUgZWE1gxVlNRQVVdVFRSQ1daVDsOAxUeFF5JWBYZEEoBGA4JCwFIFA4DSA%3D%3D - Role: Terminal Block - Manufacturer Name: DORABO **Pins:** - 1 [pin 1] - 2 [pin 2] ### J6 — [DB127V-5.08-2P-GN-S](https://www.flux.ai/cherepanyadima/db127v-5p08-2p-gn-s~ic.md) - Manufacturer Part Number: DB127V-5.08-2P-GN-S - Part Type: Connector - Datasheet URL: https://www.lcsc.com/datasheet/C3018698.pdf?spm=wm.sxq.inf.ggs&lcsc_vid=ElhbUlFSRlUNBF0CQlQIBQBUFFILBFEAQVVWUgZWE1gxVlNRQVVdVFRSQ1daVDsOAxUeFF5JWBYZEEoBGA4JCwFIFA4DSA%3D%3D - Manufacturer Name: DORABO - Role Details: External dry-contact/sensor input only; SELV signal plus GND - Connector Positions: 2 - Role: Terminal Block **Pins:** - 1 [pin 1] - 2 [pin 2] ### K1 — [G5RL-K1A-E-DC5](https://www.flux.ai/adrian95/g5rl-k1a-e-dc5~9ko.md) - Manufacturer Name: Omron Electronics Inc-EMC Div - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: G5RL-K1A-E-DC5 - Part Type: Relay - Role Details: 5V latching SPST-NO relay; 16A 250VAC resistive; set/reset coils driven by MOSFETs - Role: Power Relay - Datasheet URL: https://components.omron.com/us-en/datasheet_pdf/K265-E1.pdf **Pins:** - COIL_-_1 [pin 1] - COIL_-_2 [pin 8] - COIL_+ [pin 9] - COM_1 [pin 3] - COM_2 [pin 6] - N.O._1 [pin 4] - N.O._2 [pin 5] ### Q1 — [IRLML2502](https://www.flux.ai/lcsc/irlml2502~q9d8.md) - Product Info Url: https://lcsc.com/product-detail/MOSFET_HUASHUO-IRLML2502_C518800.html - Part Type: MOSFETs - Role: MOSFET Driver - Manufacturer Part Number: IRLML2502 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2005121032_HUASHUO-IRLML2502_C518800.pdf - Package or Case Code: SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR - LCSC Part Number: C518800 - Manufacturer Name: HUASHUO(华朔) - JLCPCB Part Class: Extended Part - Role Details: Low-side switch for K1 SET coil from ESP32 GPIO - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### Q2 — [IRLML2502](https://www.flux.ai/lcsc/irlml2502~q9d8.md) - Package or Case Code: SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR - Manufacturer Part Number: IRLML2502 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2005121032_HUASHUO-IRLML2502_C518800.pdf - Part Type: MOSFETs - Product Info Url: https://lcsc.com/product-detail/MOSFET_HUASHUO-IRLML2502_C518800.html - Role Details: Low-side switch for K1 RESET coil from ESP32 GPIO - License: https://creativecommons.org/licenses/by/4.0/ - JLCPCB Part Class: Extended Part - Manufacturer Name: HUASHUO(华朔) - LCSC Part Number: C518800 - Role: MOSFET Driver **Pins:** - D [pin 3] - G [pin 1] - S [pin 2] ### RV1 — [B72210S0271K101](https://www.flux.ai/cherepanyadima/b72210s0271k101~3w.md) - Datasheet URL: https://www.tdk-electronics.tdk.com/inf/70/db/var/SIOV_Leaded_StandarD.pdf - License: https://creativecommons.org/licenses/by/4.0/ - Manufacturer Part Number: B72210S0271K101 - Role Details: 275VAC MOV from L to N after fuse - Manufacturer Name: EPCOS - TDK Electronics - Part Type: Varistor - Role: MOV Surge Protection **Pins:** - 1 [pin 1] - 2 [pin 2] ### S1 — [TS-1088-AR02016](https://www.flux.ai/lcsc/ts-1088-ar02016~e3n1.md) - Role Details: BOOT momentary button from GPIO0 to GND - Manufacturer Name: XUNPU(讯普) - JLCPCB Part Class: Extended Part - LCSC Part Number: C720477 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2409302330_XUNPU-TS-1088-AR02016_C720477.pdf - Role: Switching - Part Type: Tactile Switches - Manufacturer Part Number: TS-1088-AR02016 - Product Info Url: https://lcsc.com/product-detail/Tactile-Switches_XUNPU-TS-1088-AR02016_C720477.html - Package or Case Code: SW-SMD_L3.9-W3.0-P4.45 **Pins:** - 1 [pin 1] - 2 [pin 2] ### S2 — [TS-1088-AR02016](https://www.flux.ai/lcsc/ts-1088-ar02016~e3n1.md) - Role: Switching - Package or Case Code: SW-SMD_L3.9-W3.0-P4.45 - Product Info Url: https://lcsc.com/product-detail/Tactile-Switches_XUNPU-TS-1088-AR02016_C720477.html - Part Type: Tactile Switches - Manufacturer Part Number: TS-1088-AR02016 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/lcsc/2409302330_XUNPU-TS-1088-AR02016_C720477.pdf - LCSC Part Number: C720477 - JLCPCB Part Class: Extended Part - Role Details: RESET momentary button from EN to GND - Manufacturer Name: XUNPU(讯普) **Pins:** - 1 [pin 1] - 2 [pin 2] ### T1 — [ZMPT101B](https://www.flux.ai/lcsc/zmpt101b~65gv.md) - Part Type: Current Transformers - LCSC Part Number: C111858 - Manufacturer Name: 择明朗熙 - Datasheet URL: https://storage.googleapis.com/graviton-electric-symbols/document_assets/user-uploaded/6e11ac51dd4c224b010e68e859db5deabf5b321a76ab26c439e0872369a57706.pdf - Role: Voltage Sensor Transformer - JLCPCB Part Class: Extended Part - Role Details: Isolated AC voltage sensing; 2mA rated primary current via HV resistor network - Package or Case Code: XFMR-TH_ZMPT101B - Manufacturer Part Number: ZMPT101B - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - 1 [pin 1] - 2 [pin 2] - 3 [pin 3] - 4 [pin 4] ### U1 — [ESP32-S3-MINI-1U-N8](https://www.flux.ai/vasyl/esp32-s3-mini-1u-n8~if.md) - Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-s3-mini-1_mini-1u_datasheet_en.pdf - Manufacturer Part Number: ESP32-S3-MINI-1U-N8 - Role: Microcontroller / Wireless Module - Role Details: Main IoT controller; USB native; U.FL antenna variant - Symbol Style: parametric-v1 - Manufacturer Name: Espressif Systems - Part Type: Integrated Circuit - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - <-GND [pin 61_4] - 3V3 [pin 3] - EN [pin 45] - GND [pin 59] - GND [pin 65] - GND [pin 64] - GND [pin 50] - GND [pin 61_6] - GND [pin 57] - GND [pin 58] - GND [pin 42] - GND [pin 60] - GND [pin 52] - GND [pin 43] - GND [pin 61_8] - GND [pin 63] - GND [pin 61_0] - GND [pin 55] - GND [pin 61_7] - GND [pin 51] - GND [pin 54] - GND [pin 49] - GND [pin 61_5] - GND [pin 2] - GND [pin 61_1] - GND [pin 56] - GND [pin 47] - GND [pin 62] - GND [pin 48] - GND [pin 53] - GND [pin 46] - GND [pin 1] - GND [pin 61_2] - GND [pin 61_3] - IO0 [pin 4] - IO1 [pin 5] - IO10 [pin 14] - IO11 [pin 15] - IO12 [pin 16] - IO13 [pin 17] - IO14 [pin 18] - IO15 [pin 19] - IO16 [pin 20] - IO17 [pin 21] - IO18 [pin 22] - IO19 [pin 23] - IO2 [pin 6] - IO20 [pin 24] - IO21 [pin 25] - IO26 [pin 26] - IO3 [pin 7] - IO33 [pin 28] - IO34 [pin 29] - IO35 [pin 31] - IO36 [pin 32] - IO37 [pin 33] - IO38 [pin 34] - IO39 [pin 35] - IO4 [pin 8] - IO40 [pin 36] - IO41 [pin 37] - IO42 [pin 38] - IO45 [pin 41] - IO46 [pin 44] - IO47 [pin 27] - IO48 [pin 30] - IO5 [pin 9] - IO6 [pin 10] - IO7 [pin 11] - IO8 [pin 12] - IO9 [pin 13] - RXD0 [pin 40] - TXD0 [pin 39] ### U2 — [RAC03-05SK](https://www.flux.ai/adrian95/rac03-05sk.md) - Role Details: 85-264VAC to 5V 600mA reinforced isolated SELV supply - Manufacturer Part Number: RAC03-05SK - Datasheet URL: https://www.mouser.com/datasheet/2/468/RAC03-K-1591915.pdf - Manufacturer Name: RECOM Power - Part Type: Power Supply - Role: Isolated AC/DC Power Supply - License: https://creativecommons.org/licenses/by/4.0/ **Pins:** - -VOUT [pin 2] - +VOUT [pin 3] - VAC_IN_(L) [pin 1] - VAC_IN_(N) [pin 4] ### U3 — [XC6220B331MR](https://www.flux.ai/kicad-part-library/xc6220b331mr~l55.md) - Package or Case Code: SOT-23-5 - Datasheet URL: https://www.torexsemi.com/file/xc6220/XC6220.pdf - Manufacturer Part Number: XC6220B331MR - Role: LDO Regulator - Role Details: 5V_SYS to 3V3, 1A peak-rated; verify thermal dissipation **Pins:** - CE [pin 3] - GND [pin 2] - NC [pin 4] - VIN [pin 1] - VOUT [pin 5] ### U4 — [TMP102xxDRL](https://www.flux.ai/kicad-part-library/tmp102xxdrl~lqp.md) - Role: Temperature Sensor - Role Details: I2C PCB temperature measurement near relay/power heat path - Package or Case Code: SOT-563 - Datasheet URL: https://www.ti.com/lit/ds/symlink/tmp102.pdf - Manufacturer Part Number: TMP102xxDRL - Manufacturer Name: Texas Instruments Inc. **Pins:** - ADD0 [pin 4] - ALERT [pin 3] - GND [pin 2] - SCL [pin 1] - SDA [pin 6] - V+ [pin 5] ### U5 — [ACS732xLATR-40AB](https://www.flux.ai/kicad-part-library/acs732xlatr-40ab~sz.md) - Manufacturer Name: Texas Instruments Inc. - Role: Current Sensor - Role Details: Isolated ±40A Hall sensor; load current measurement with margin over 16A - Manufacturer Part Number: ACS732xLATR-40AB - Package or Case Code: SOIC-16W_7.5x10.3mm_P1.27mm - Datasheet URL: http://www.allegromicro.com//media/Files/Datasheets/ACS732-ACS733-Datasheet.ashx?la=en **Pins:** - ~{FAULT} [pin 13] - GND [pin 9] - GND [pin 10] - IP- [pin 8] - IP- [pin 5] - IP- [pin 6] - IP- [pin 7] - IP+ [pin 4] - IP+ [pin 3] - IP+ [pin 2] - IP+ [pin 1] - PROGRAM [pin 11] - VCC [pin 16] - VCC [pin 15] - VIOUT [pin 12] - VOC [pin 14] *The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/rchbytec/esp32-s3-iot-relay-controller~z0](https://www.flux.ai/rchbytec/esp32-s3-iot-relay-controller~z0).* --- *Generated from [https://www.flux.ai/rchbytec/esp32-s3-iot-relay-controller~z0](https://www.flux.ai/rchbytec/esp32-s3-iot-relay-controller~z0)*