Architecture and Open Decisions — Smart Relay
Confirmed Requirements
- MCU: ESP32-S3-WROOM-1U-N16R8, Wi-Fi + BLE, external antenna via U.FL.
- Supply: 10–40 VDC industrial input.
- USB: USB-C OTG/host capable, 1 A VBUS requirement.
- Digital inputs: 4 isolated channels, IEC 61131-2 Type 2.
- Digital outputs: 4 relay dry-contact outputs, target max 1 A, 400 VAC, 5 A inrush, inductive small-motor loads.
- Analog inputs: 2 isolated 0–10 V and 2 isolated 4–20 mA, 10-bit effective resolution target, 0.2% accuracy, 10 sps.
- Expansion: isolated CAN bus module extension.
- Mechanics: 36 mm width, <200 mm height, 5.08 mm terminal pitch.
Selected Isolation Strategy
The product will use functional/basic isolation between external field I/O domains and the ESP32 logic domain, because connected industrial devices may have different reference grounds. Relays provide galvanic isolation for DO contacts. DI uses isolated digital input receivers. CAN uses an isolated CAN transceiver. Analog inputs use isolated ADC/data-isolation plus isolated field-side supplies and protected scaling/shunt front ends.
Library Component Selection Notes
- ESP32-S3-WROOM-1U-N16R8 is available in the library and selected.
- 24 V to 5 V rail: LMR16030SDDAR selected because it supports 4.3–60 V input and 3 A output, covering the 10–40 V requirement with margin.
- 3.3 V rail: AP2112K-3.3TRG1 selected for 600 mA local logic/RF rail from 5 V.
- CAN: ISOW1044 selected for isolated CAN FD with integrated isolated power.
- DI: two ISO1212 devices selected for four isolated Type-2-capable 24 V inputs.
- Generic passives are used for support networks until exact safety-certified BOM alternates are locked.
- Relay library exact 400 VAC / 1 A / 5 A inrush match was not found. A 24 V PCB relay library placeholder is used for schematic architecture; production BOM requires a verified relay with 400 VAC contact rating and inductive-load/inrush rating.
- Terminal blocks: Phoenix 5.08 mm pluggable header or 5.08 mm screw-terminal alternative selected depending availability.
Migration Plan
- Remove the obsolete ESP32-C3 environmental-node schematic blocks.
- Add smart-relay functional blocks: power, ESP32-S3, USB, isolated CAN, isolated DI, relay DO, isolated AI, terminals, UI/debug.
- Wire datasheet-required support passives, boot straps, decoupling, protection, and field interfaces.
- Run ERC and iterate until clean or explicitly justified.
- Update firmware, power budget, bring-up, and regulatory/safety documentation.
Open Production BOM Items
- Confirm final relay MPN with true 400 VAC / 1 A / 5 A inrush and suitable creepage/clearance.
- Confirm analog isolation implementation after exact ADC/isolation IC availability and accuracy budget.
- Confirm final 5.08 mm Phoenix Contact terminal series and enclosure mating direction.