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

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

Documents

    Project Specification — Smart Relay ESP32-S3 Industrial PLC

    Architecture and Open Decisions — Smart Relay

    Power Budget — USB-C WiFi BLE Environmental Node

    Firmware Starter — ESP32-C3-MINI-1-N4

    Board Bring-Up Plan — USB-C WiFi BLE Environmental Node

    Technical Construction File — USB-C WiFi BLE Environmental Node

    Power Budget — Smart Relay

    Firmware Starter — ESP32-S3 Smart Relay

    Board Bring-Up Plan — Smart Relay

    Regulatory and Safety Notes — Smart Relay

Assets

No assets added.

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