Smart Relay Design Requirements

Assuming you mean LCSC: No, not all components are currently available/assigned from LCSC.
LCSC-available in current BOM
  • KF128-5.08-2P-AA terminals — LCSC stock shown
  • LMR16030SDDAR buck regulator — LCSC stock shown
  • ESP32-S3-WROOM-1U-N16R8 — LCSC stock shown
  • AP2112K-3.3TRG1 — LCSC stock shown
  • TPS2051CDBVR — LCSC stock shown, but wrong for requirement because it is 0.5 A class and USB host target is 1 A
  • STTH212S diode — LCSC stock shown
  • SMBJ30CA TVS — LCSC part metadata present
Not confirmed / not LCSC-ready
  • ISO6741 digital isolator — no LCSC SKU/stock shown
  • ISO1212 isolated DI receivers — no LCSC SKU/stock shown
  • ISOW1044 isolated CAN transceiver — no LCSC SKU/stock shown
  • AD7329 ADC — no LCSC SKU/stock shown
  • JQC-3F-1C-24VDC relay — no LCSC SKU/stock shown
  • USB4105-GF-A USB-C connector — LCSC stock shown as 0
  • ULN2003A — LCSC stock shown as 0 for current selected part
  • Generic resistors/capacitors/inductor — not assigned to specific LCSC MPNs yet
  • Solenoid FET Driver 3.3V blocks — not production BOM-ready as discrete LCSC parts
So the design is not yet LCSC/JLCPCB procurement-ready. Next step should be a sourcing pass to replace/assign LCSC-stocked MPNs for the unavailable ICs, relay, USB connector, passives, inductor, and 1 A USB power switch.
Run sourcing pass
Fix USB switch
Assign passives
Resolve production risks
Check relay options
U28
U1
J1
U3
U27
U29
DRV1
J1 CC2 - R9 P1
U2 VIN - C9 P1
U2 FB - R11 P1
U1 3V3 - U3 VOUT
U4 CANL - U24 2
U1 3V3 - U3 VOUT
U1 3V3 - U3 VOUT
VIN_24V_PROT
U29 Gate - U1 IO13
J1 D+ - D1 I/O1
U4 VISOOUT - U4 VSIN
U7 V_{DD} - C16 P1
U14 2 - U6 FGND2
U2 BOOT - C2 P1
U9 ~ - U27 PWR
U4 GND2 - U4 GISOIN
U30 ~{FLT} - U1 IO5
U12 2 - U5 FGND1
U5 OUT2 - U1 IO7
U12 2 - U5 FGND1
U1 IO45 - R6 P1
R18 P2 - U6 IN2
U11 ~ - U18 1
U12 1 - R11 P1
U8A OUTA - U7 SCLK
R19 P2 - U6 IN2
U14 2 - U6 FGND1
U1 EN - R4 P1
U8A V_{CC2} - U8A EN2
U27 Gate - U1 IO11
U10 ~ - U17 1
U1 3V3 - U3 VOUT
R11 P2 - U3 VIN
J2 1 - D1 1
U1 3V3 - U3 VOUT
U8A OUTB - U7 DIN
U8A OUTB - U7 DIN
U19 2 - U20 2
J1 D- - U1 IO19
U4 CANH - U24 1
R11 P2 - U3 VIN
U1 3V3 - U3 VOUT
K1 ~ - U15 2
U11 ~ - U31 4C
U30 ~{FLT} - U1 IO5
U4 CANH - U24 1
U9 ~ - U16 1
U30 EN(EN#) - U1 IO4
R11 P2 - U5 SENSE1
U4 VISOIN - C23 P1
U1 3V3 - U3 VOUT
U14 2 - U6 FGND2
U12 1 - R17 P1
U21 1 - R22 P1
U4 VISOOUT - U4 VSIN
U2 SW - L1 P1
R20 P2 - U7 V_{IN}0
U19 2 - U20 2
K1 ~ - U9 ~
R15 P2 - U6 SENSE1
U1 IO9 - U31 2B
U1 IO46 - R7 P1
U5 OUT1 - U1 IO6
U14 2 - U6 FGND1
K1 ~ - U16 2
U14 1 - R19 P1
U4 GND2 - U4 GISOIN
U14 1 - R15 P1
U2 FB - R11 P1
K1 ~ - U16 2
U8A OUTC - U7 ~{CS}
U6 OUT1 - U1 IO8
U12 2 - U5 FGND1
U19 2 - U20 2
R11 P2 - U3 VIN
U1 IO11 - U31 4B
U7 AGND - C15 P2
U1 IO0 - R5 P1
U3 EN - C11 P1
R11 P2 - U3 VIN
U20 1 - R21 P1
R15 P2 - U6 SENSE1
U1 3V3 - U3 VOUT
K1 ~ - U16 2
K1 ~ - U9 ~
U1 3V3 - U3 VOUT
U1 IO14 - U8A INC
J1 D+ - U1 IO20
U9 ~ - U16 1
U7 MUX_{OUT}+ - U7 ADC_{IN}+
U15 1 - R17 P1
U4 CANL - U24 2
U4 CANL - U24 2
U11 ~ - U18 1
U9 ~ - U16 2
U4 GISOIN - C23 P2
U13 1 - R18 P1
R11 P2 - U3 VIN
U2 BOOT - C10 P1
J1 CC1 - R8 P1
R13 P2 - U5 SENSE2
U13 2 - U6 FGND1
R11 P2 - U5 SENSE1
U2 FB - R29 P1
U1 3V3 - U3 VOUT
U11 ~ - U29 PWR
R11 P2 - U5 SENSE1
R13 P2 - U5 SENSE2
R17 P2 - U5 IN2
U30 ~{FLT} - U1 IO5
U1 IO10 - U31 3B
R16 P2 - U6 IN1
U21 1 - R22 P1
U19 2 - U20 2
U2 SW - C10 P2
J1 CC2 - R9 P1
U1 IO13 - U8A INB
R18 P2 - U6 IN2
K1 ~ - U15 1
K1 ~ - U16 2
U9 ~ - U16 2
U1 IO45 - R6 P1
U7 V_{DD} - C16 P1
R11 P2 - U3 VIN
U30 EN(EN#) - U1 IO4
U1 IO12 - U8A INA
U8A OUTA - U7 SCLK
U10 ~ - U17 2
U2 SW - C10 P2
U12 2 - U5 FGND1
R11 P2 - U3 VIN
J2 1 - D1 1
U4 VISOIN - C23 P1
U6 OUT2 - U1 IO9
K1 ~ - U16 2
R11 P2 - U3 VIN
U4 GISOIN - C14 P2
K1 ~ - U9 ~
R11 P2 - U5 SENSE1
U15 1 - R17 P1
U19 2 - U20 2
U31 COMPO - K1 ~
U13 2 - U6 FGND1
U22 1 - R23 P1
R20 P2 - U7 V_{IN}0
U7 MUX_{OUT}+ - U7 ADC_{IN}+
R17 P2 - U6 SENSE2
U7 REF_{IN/OUT} - C16 P2
U6 OUT1 - U1 IO8
U3 EN - C11 P1
U2 BOOT - C2 P1
U19 2 - U20 2
R19 P2 - U6 IN2
U19 2 - U20 2
R10 P2 - U4 VIO
U2 SW - L1 P1
U14 1 - R19 P1
U1 IO0 - R5 P1
R12 P2 - U5 IN1
K1 ~ - U16 2
R14 P2 - U5 IN2
U1 3V3 - U3 VOUT
K1 ~ - DRV1 PWR
U1 3V3 - U3 VOUT
U15 1 - R17 P1
U9 ~ - U31 2C
U9 ~ - U27 PWR
U5 OUT1 - U1 IO6
U2 FB - R29 P1
K1 ~ - U16 2
U13 1 - R18 P1
R10 P2 - U4 VIO
K1 ~ - U16 2
R16 P2 - U6 IN1
U1 3V3 - U3 VOUT
U1 3V3 - U3 VOUT
U15 1 - R17 P1
U10 ~ - U28 PWR
R18 P2 - U6 IN1
U4 RXD - U1 IO18
U4 GND2 - U4 GISOIN
U10 ~ - U28 PWR
R21 P2 - U7 V_{IN}1
U15 1 - R17 P1
U1 3V3 - U3 VOUT
R17 P2 - U6 SENSE2
U15 1 - R17 P1
U7 AGND - C15 P2
U10 ~ - U17 2
U27 Gate - U1 IO11
U11 ~ - U29 PWR
U6 OUT2 - U1 IO9
U10 ~ - U31 3C
U1 EN - R4 P1
U1 3V3 - U3 VOUT
U14 2 - U6 FGND1
J1 VBUS - U30 OUT
U20 1 - R21 P1
U7 REF_{IN/OUT} - C16 P2
J1 VBUS - U30 OUT
DRV1 Gate - U1 IO10
U28 Gate - U1 IO12
U2 SSorPGOOD - C3 P1
U2 SW - L1 P1
U12 1 - R11 P1
U1 3V3 - U3 VOUT
K1 ~ - DRV1 PWR
U12 2 - U5 FGND2
U4 RXD - U1 IO18
U4 TXD - U1 IO17
U2 FB - R11 P1
U13 1 - R13 P1
U19 1 - R20 P1
K1 ~ - U15 2
K1 ~ - U16 2
U11 ~ - U18 2
U1 IO8 - U31 1B
R13 P2 - U5 SENSE2
U7 DOUT - U8A IND
U1 3V3 - U3 VOUT
R17 P2 - U5 IN2
U2 FB - R29 P1
U12 2 - U5 FGND1
U4 GISOIN - C23 P2
K1 ~ - U16 2
U4 TXD - U1 IO17
U14 2 - U6 FGND1
J1 D+ - U1 IO20
U28 Gate - U1 IO12
R11 P2 - U3 VIN
R21 P2 - U7 V_{IN}1
R15 P2 - U6 SENSE1
R12 P2 - U5 IN1
U2 VIN - C9 P1
U8A V_{CC2} - U8A EN2
U22 1 - R23 P1
U12 2 - U5 FGND1
U5 OUT2 - U1 IO7
U1 IO14 - U8A INC
U2 RT/SYNC - R3 P1
U22 1 - R23 P1
U7 DOUT - U8A IND
U10 ~ - U17 1
U4 CANH - U24 1
U8A V_{CC2} - U8A EN2
U21 1 - R22 P1
R17 P2 - U6 SENSE2
K1 ~ - U15 1
J1 D- - U1 IO19
U1 3V3 - U3 VOUT
U14 2 - U6 FGND1
R18 P2 - U6 IN1
U13 1 - R13 P1
K1 ~ - U9 ~
R15 P2 - U6 SENSE1
U15 1 - R17 P1
U12 2 - U5 FGND2
CAN_NC_PLACEHOLDER
U8A OUTC - U7 ~{CS}
U12 1 - R17 P1
J1 CC1 - R8 P1
U1 EN - R4 P1
U2 RT/SYNC - R3 P1
J2 1 - D1 1
U8A OUTD - U1 IO15
R11 P2 - U3 VIN
R14 P2 - U5 IN2
K1 ~ - U31 1C
U14 2 - U6 FGND1
J2 1 - D1 1
U1 IO46 - R7 P1
U2 SSorPGOOD - C3 P1
U2 SW - L1 P1
U8A V_{CC2} - U8A EN2
U11 ~ - U18 2
U11 ~ - U31 4C
U8A OUTD - U1 IO15
DRV1 Gate - U1 IO10
U2 BOOT - C10 P1
U1 3V3 - U3 VOUT
R17 P2 - U6 SENSE2
U8A V_{CC2} - U8A EN2
U29 Gate - U1 IO13
K1 ~ - U16 2
U14 1 - R15 P1
U15 1 - R17 P1
U15 1 - R17 P1
U15 1 - R17 P1
R13 P2 - U5 SENSE2
U2 EP - U3 GND
U24
R2 P2 - C3 P2
J2 2 - D1 2
GND
GND
U4 GND1 - C22 P2
R2 P2 - C3 P2
U2 EP - U3 GND
U2 EP - U3 GND
U1 GND - C6 P2
R6 P2 - R7 P2
U6 GND1 - C12 P2
C5 P2 - U1 GND
U26
U25
U30 GND - C8 P2
U1 GND - U1 GND
R6 P2 - R7 P2
U1 GND - U1 GND
U1 GND - C6 P2
GND
U1 GND - C12 P2
R2 P2 - C3 P2
U5 GND1 - C9 P2
U1 GND - C6 P2
U18
U1 GND - C12 P2
U19
U13
U30 GND - C8 P2
R6 P2 - R7 P2
R2 P2 - C3 P2
U12
U6 GND1 - C12 P2
U1 GND - C12 P2
C5 P2 - U1 GND
U4 GND1 - C22 P2
U14
U1 GND - C12 P2
U2 EP - C21 P2
J2 2 - D1 2
R6 P2 - R7 P2
U4 GND1 - C22 P2
U2 EP - C21 P2
U5 GND1 - U6 GND1
GND
J2
R6 P2 - R7 P2
U1 GND - C12 P2
U5 GND1 - C9 P2
U2 EP - C21 P2
U22
C5 P2 - U1 GND
J2 2 - D1 2
U1 GND - U1 GND
U17
U16
GND
GND
U15
U20
U2 EP - C21 P2
U21
U1 GND - U1 GND
U2 EP - U3 GND
R2 P2 - C3 P2
U23
U30 GND - C8 P2
C22
Capacitance
100nF
C12
Capacitance
Capacitance
R26
Resistance
500 Ω
C21
Capacitance
100nF
R27
Resistance
500 Ω
C7
Capacitance
100nF
C13
Capacitance
Capacitance
R25
Resistance
500 Ω
C23
Capacitance
100nF
R2
Resistance
10kΩ
C2
Capacitance
100nF
R13
Resistance
5.1 kΩ
R32
Resistance
10kΩ
R33
Resistance
10kΩ
R31
Resistance
10kΩ
C3
Capacitance
100nF
R23
Resistance
249 Ω
C5
Capacitance
100nF
R15
Resistance
10 kΩ
R12
Resistance
17.8 kΩ
R5
Resistance
10kΩ
R3
Resistance
10kΩ
R28
Resistance
500 Ω
C16
Capacitance
Capacitance
R30
Resistance
10kΩ
C9
Capacitance
Capacitance
R18
Resistance
200 Ω
R21
Resistance
500 Ω
R11
Resistance
100 kΩ
R22
Resistance
249 Ω
C10
Capacitance
Capacitance
C11
Capacitance
Capacitance
C17
Capacitance
Capacitance
R14
Resistance
5.1 kΩ
C20
Capacitance
Capacitance
R4
Resistance
10kΩ
R16
Resistance
200 Ω
R8
Resistance
10kΩ
C8
Capacitance
100nF
R6
Resistance
10kΩ
R24
Resistance
500 Ω
R29
Resistance
10kΩ
R19
Resistance
200 Ω
C18
Capacitance
Capacitance
R17
Resistance
200 Ω
R20
Resistance
500 Ω
C24
Capacitance
100nF
R7
Resistance
10kΩ
C19
Capacitance
Capacitance
R10
Resistance
10kΩ
C14
Capacitance
Capacitance
C15
Capacitance
Capacitance
C1
Capacitance
100nF
C6
Capacitance
100nF
R9
Resistance
10kΩ
C4
Capacitance
100nF
U2
U8A
U5
U6
U10
U7
D1
U30
K1
U11
L1
Inductance
8.2uH
D2
U9
U4
U31

Refine this doc
Ask about this doc
Project Specification — Smart Relay ESP32-S3 Industrial PLC
Project Overview
  • Status: Requirements confirmed; schematic migration pending.
  • Device: Compact industrial smart relay / simplified PLC based on ESP32-S3-WROOM-1U-N16R8.
  • Primary value: Wi-Fi/BLE-connected IEC 61499 control node with local isolated I/O and CAN-based expansion.
  • Current project note: Existing schematic content is from a USB-C ESP32-C3 environmental node and must be replaced/migrated.
Confirmed Requirements

Table


ItemRequirement
MCUESP32-S3-WROOM-1U-N16R8
Supply input10–40 VDC industrial input
DO4x relay dry-contact outputs
DO rating400 VAC max, 1 A continuous, 5 A inrush, inductive/small motor capable
DI4x isolated IEC 61131-2 Type 2 digital inputs
AI voltage2x isolated 0–10 V inputs, 10-bit effective resolution, 0.2% accuracy, 10 sps
AI current2x isolated 4–20 mA inputs, 10-bit effective resolution, 0.2% accuracy, 10 sps
Isolation rationaleConnected field devices may have different reference grounds; field-channel isolation is required to prevent ground-loop/common-mode faults.
USB host1 A VBUS sourcing required
Mechanical36 mm width, <200 mm height, Phoenix Contact-style 5.08 mm terminal blocks
Isolation Decision
Use galvanic isolation between the ESP32 logic domain and every field I/O channel. For analog inputs, use per-channel isolated measurement architecture or isolated ADC/AFE front end so each input can tolerate a different field reference. For relay DO, the relay contacts inherently isolate the load path; relay coils must still be driven from the low-voltage logic/power domain with transient suppression. For DI, use per-channel optocoupler/digital-isolator input stages meeting IEC 61131-2 Type 2 thresholds.
Recommended design target unless later changed:
  • Functional isolation minimum: 1 kVrms channel-to-logic.
  • Preferred production target: 2.5 kVrms rated isolation components and PCB creepage/clearance suitable for industrial 24 V field wiring and 400 VAC relay-contact spacing.
  • Relay contact spacing: Treat 400 VAC switched contacts as hazardous/high-voltage nets and keep them physically separated from SELV logic and low-voltage field terminals.
System Architecture

Diagram


10-40 VDC Input Protection and EMI Filter Wide Input Buck 5 V Protected USB Host 5 V 1 A 3.3 V Logic Rail ESP32-S3-WROOM-1U-N16R8 Wi-Fi / BLE Isolated CAN CAN Expansion 4x IEC 61131-2 Type 2 Isolated DI 4x Relay Coil Drivers 4x 400 VAC 1 A Dry Contacts 4x Isolated Analog Input AFE / ADC 2x 0-10 V and node_2x 4-20 mA 4 LEDs, 4 Buttons, Buzzer
Power Architecture
  • A wide-input buck regulator is required for 10–40 VDC input.
  • 5 V rail must support USB host VBUS at 1 A plus relay coils and downstream conversion.
  • 3.3 V rail must support ESP32-S3 Wi-Fi peaks plus isolator logic, CAN, ADC/AFE logic, LEDs, and control circuits.
  • Relay coils should preferably be 5 V or 12 V coils selected after mechanical/height and coil-current review.
  • Input protection should include fuse/eFuse or resettable protection, reverse-polarity protection, surge TVS, and EMI filtering.
Preliminary Power Budget

Table


RailLoadPreliminary Peak Budget
5 VUSB host VBUS1.0 A
5 V / relay rail4 relay coilsTBD, reserve 300–600 mA depending relay selection
3.3 VESP32-S3 Wi-Fi/BLE500 mA reserve
3.3 VLogic-side isolators, CAN, ADC/AFE, LEDs, buzzer control200 mA reserve
Isolated/field domainsDI/AI isolated front endsTBD after part selection
Initial input-power estimate at 10 V minimum: if 5 V rail budget is 1.6 A and 3.3 V budget is 0.7 A, output power is roughly 10.3 W. At 88% efficiency, input current at 10 V is about 1.17 A before surge/inrush margin. Input connector/protection should therefore be sized above 2 A minimum, subject to final relay and isolated-supply selection.
Hardware Subsystems
ESP32-S3 Core
  • Replace current ESP32-C3 design with ESP32-S3-WROOM-1U-N16R8.
  • Provide EN reset network, GPIO0 boot control, native USB pins, UART debug, and test pads.
  • Avoid loading ESP32-S3 strapping pins incorrectly, especially GPIO45/GPIO46.
Digital Inputs
  • 4 channels, IEC 61131-2 Type 2.
  • Use 24 V-compatible input networks with current limiting, reverse/transient protection, filtering/debounce, and optocoupler/digital isolation.
Relay Digital Outputs
  • 4 dry-contact relay outputs.
  • Contact rating target: 400 VAC, 1 A continuous, 5 A inrush, inductive/small motor loads.
  • Add flyback suppression on coils and consider contact snubber/MOV provisions for inductive load applications.
  • Maintain hazardous-voltage clearances between contacts and SELV circuitry.
Analog Inputs
  • 2x 0–10 V, 2x 4–20 mA.
  • 10-bit effective resolution is sufficient, but 0.2% accuracy requires a precision reference and calibrated external ADC/AFE rather than direct uncalibrated ESP32 ADC.
  • 10 sps sample rate is low, allowing filtered isolated sigma-delta ADC or multiplexed isolated ADC approaches.
USB Host
  • USB OTG port must source 5 V at up to 1 A.
  • Requires current-limited power switch, ESD protection, VBUS discharge/soft-start as appropriate, and 5 V rail sizing.
Mechanical
  • Board/enclosure width constrained to 36 mm.
  • Height under 200 mm.
  • Field wiring via Phoenix Contact-style 5.08 mm pitch terminal blocks.
  • Relay contact terminals need separation and creepage appropriate for 400 VAC.
Regulatory and Safety Implications
  • Wi-Fi/BLE module triggers FCC/CE/RED documentation and RF integration controls.
  • 400 VAC relay contacts and inductive loads trigger safety spacing, dielectric, and end-product safety review.
  • Industrial I/O and 10–40 V supply imply EMC immunity design: ESD/EFT/surge filtering should be included.
Open Implementation Items
  • Select relay package meeting 36 mm width constraint and contact rating.
  • Select isolated DI topology and input threshold component values for IEC 61131-2 Type 2.
  • Select isolated analog measurement architecture meeting 0.2% accuracy.
  • Select wide-input 10–40 V buck converter and verify thermal/power budget.
  • Decide CAN connector, termination, and whether CAN is isolated from logic.
Change Notes
  • Updated with user-confirmed requirements: relay dry-contact DO, 400 VAC/1 A/5 A inrush rating, IEC 61131-2 Type 2 DI, 0.2%/10 sps AI targets, 10–40 V input, 1 A USB host, and 36 mm / 5.08 mm terminal mechanical constraints.
  • Project Overview

  • Confirmed Requirements

  • Isolation Decision

  • System Architecture

  • Power Architecture

  • Preliminary Power Budget

  • Hardware Subsystems

  • ESP32-S3 Core

  • Digital Inputs

  • Relay Digital Outputs

  • Analog Inputs

  • USB Host

  • Mechanical

  • Regulatory and Safety Implications

  • Open Implementation Items

  • Change Notes

smart relay

smart relay thumbnail
Smart relay based on ESP32-S3 with CAN bus module extension capability

Properties

Properties describe core aspects of the project.

Pricing & Availability

Distributor

Qty 1

Arrow

$2.61–$4.49

Digi-Key

$6.88–$7.10

HQonline

$5.19–$5.50

LCSC

$10.93–$11.53

Mouser

$14.77

TME

$1.37

Verical

$1.26–$2.57

Controls