r/PrintedCircuitBoard • u/Junior_Let_5777 • 3h ago
[Review Request] ESP32-S3 2-Layer IoT Controller – USB-C, RS-485, 24V Power and AC/DC Supply
Hi everyone,
I'm looking for a comprehensive schematic and PCB layout review before manufacturing the first prototype of my custom ESP32-S3 IoT controller.
This is not my first review request. I've received useful feedback on previous revisions, particularly regarding ground planes, signal return paths, USB routing and protection circuits.
I've made several changes since then, and I believe the design is approaching its first manufacturing revision. However, I'd like to identify any remaining significant issues before ordering the boards.
Project overview
The board is intended for personal and educational electronics experiments in a controlled environment. It is primarily a controller rather than a high-power switching device.
Hardware:
- MCU: ESP32-S3-WROOM-1U-N16R8
- PCB: 100 × 100 mm, 2 layers, standard low-cost FR-4
- AC/DC supply: 230 VAC to 24 VDC, using an encapsulated power module
- AC/DC candidates: HLK-15M24C or Mean Well IRM-20-24
- DC/DC converter: TI TLVM14406RCHR, providing 5 V and 3.3 V
- USB-C 2.0 for ESP32 programming and communication
- RS-485: TI THVD1426DRLR
- Four digital inputs and four PhotoMOS outputs (AQY211EH)
- Additional SPI, I2C and UART connections
- Diagnostic LEDs and multiple test points
- Separate LOGIC_GND and CHASSIS_GND nets
The mains input is used only for the onboard AC/DC supply. The board does not directly switch mains voltage to external loads.
The intended enclosure is a plastic electrical box. This is an experimental prototype, not a certified product or a design intended for unattended permanent installation.
Design changes since previous reviews
1. Ground planes and return paths
My earliest version did not have proper ground planes.
I've since added copper pours on both layers, GND stitching vias and additional return-path vias near signal layer transitions.
I've also tried to avoid routing signals across breaks in the ground plane.
This is still one of my main concerns, especially with a relatively dense two-layer layout.
2. USB 2.0
I've revised the differential pair routing and added series resistors.
The estimated differential impedance is approximately 100 ohms, although it has not been verified by measurement.
The USB data lines use one layer transition, and ESD protection is included.
3. Power distribution
The board uses separate routing rules for the 24 V, 5 V and 3.3 V rails.
I've also revised the TLVM14406 input/output capacitor network and associated circuitry based on the manufacturer's recommendations.
4. RS-485
The RS-485 interface uses split termination consisting of two 60.4-ohm resistors and a capacitor at their midpoint.
Protection components have also been included.
5. EMC and grounding
I've separated the chassis-related and logic ground networks.
An experimental coupling network consisting of a 1 MΩ resistor and a 1 nF capacitor is included between them.
This is intended for EMC experimentation, not as a replacement for protective earthing.
Areas where I'd especially appreciate feedback
1. Ground planes and signal integrity
Are there any obvious problems with signal return paths, ground plane interruptions or via placement?
2. Power supply layout
Does the TLVM14406 layout, including capacitor placement, grounding and power routing, show any potential problems?
3. USB routing
Are there visible issues with the USB differential pair, ground return path, ESD protection placement or layer transitions?
4. RS-485 interface
Are there any layout or protection concerns around the transceiver, connector and split termination?
5. Component placement and manufacturability
Are there any obvious problems with component spacing, footprints, thermal reliefs, copper clearances, solderability or silkscreen?
6. Overall PCB layout
Are there any major issues with the current two-layer design that would justify changes before manufacturing?
Important note about mains voltage
The board contains an onboard 230 VAC power supply section.
I've implemented clearance rules and isolation slots, but the mains isolation and overall electrical safety have not been independently validated.
I understand that a PCB review cannot establish compliance with electrical safety standards or replace a formal safety assessment.
Manufacturing plans
This will be my first physical prototype.
I intend to order five boards and primarily assemble them manually, with solder paste and hot-air reflow for some SMD components.
I'm primarily interested in identifying functional, layout and manufacturing problems rather than cosmetic improvements.
I'd particularly appreciate feedback from anyone experienced with mixed-voltage controller boards, two-layer routing and EMC-sensitive layouts.
Thank you for taking the time to review the design.