I updated Architecture and preliminary BOM with your approved decisions and the research-only scope; no schematic, layout or 3D was created. The BOM remains provisional: MPNs, LCSC stock, JLCPCB availability, footprints and datasheet ratings still need verification before your BOM approval.
I’ll verify the requested parts, footprints and supplier availability, with particular attention to relay motor ratings, mains insulation and default-OFF behavior. I’ll present the BOM for approval without drawing the schematic.
I found a suitable relay family with documented motor-load ratings and 8 mm coil-to-contact insulation, but its NC contact has a lower rating than NO. The requested IR receiver is listed at JLCPCB with zero stock; I’ll document that sourcing blocker and a verified alternative for your approval.
Research partially complete, interrupted by exhausted ACUs on 2026-10-22. Not a fully verified or approved BOM. No schematic, components, nets, footprints, placement or routing were added to the project. Library footprint existence was checked for several candidates; footprint geometry and pin mapping were not independently validated. Supplier stock is a lookup snapshot, not reserved inventory; LCSC stock does not prove JLCPCB assembly stock.
User approval gate remains: lock MPNs and footprints, present verified BOM, obtain approval, then schematic only. Do not treat approval of architecture as permission to draw the schematic or create missing parts.
The BOM is not yet locked: VS1838B has a sourcing blocker, the relay candidate’s NC rating is lower than NO, and footprint/fuse checks remain unfinished; no schematic or PCB changes were made.
Status: proposal only; no schematic or layout authorized. Prepared in Chat. Component candidates below are not live-verified for LCSC stock, JLCPCB assembly eligibility, datasheet ratings or Flux footprints; this is not an order-ready BOM.
Approved decisions and research handoff
Architecture is approved. Shared 5 V SELV powers logic and relay coils; no second isolated rail. Optocouplers do not provide galvanic isolation with shared power/ground. Use removable ESP32-DevKitC (WROOM-32), onboard 3.3 V regulator and USB-UART; no additional LDO or UART bridge. GPIO map remains 26/27/4/15/5. Relays and IR driver must remain OFF with floating GPIO, reset, boot or unplugged MCU. Each mains channel requires a fuse and 5.08 mm COM/NO/NC terminals. No compressor relay.
Relay selection requirement supersedes the preliminary table: two 5 V SPDT relays rated at least 10 A resistive at 250 VAC, with documented motor-load suitability for an 80 W 230 VAC fan. Lighting inrush still needs explicit evaluation. Maintain at least 8 mm mains-to-LV PCB creepage and verify clearance and relay insulation separately.
Current authorized task is research and document update ONLY: lock MPNs, LCSC codes, dated stock, JLCPCB assembly availability, verified footprints and datasheet ratings for DevKitC plus matching female headers; USB-C power input, CC Rd, TVS and input fuse; both relays, optocouplers, coil drivers and flyback diodes; mains terminals and per-channel fuses; VS1838B, 940 nm IR LED and default-OFF driver; DS18B20 header and 4.7 kohm pull-up. Check USB-C advertised-current requirements and DevKit programming-power backfeed.
No part research was performed in the resumed session: execution stopped because ACUs ran out. No MPN, stock, footprint or rating has been newly verified. Existing candidate table remains provisional. Resume by gathering live sourcing and datasheet evidence, update the table, then stop for explicit BOM approval. Do not draw schematic, layout or 3D; schematic requires later BOM approval, and layout requires separate schematic approval.
Approved architecture and research checkpoint
The user subsequently approved shared 5 V SELV for logic and relay coils, with no second isolated rail; DevKitC onboard 3.3 V and USB-UART only; default-OFF relay and IR drivers; frozen GPIO26/27/4/15/5; per-channel mains fuses and COM/NO/NC 5.08 mm terminals. Shared ground means optocouplers do not provide galvanic GPIO isolation. No compressor relay. No schematic is authorized until a verified BOM is approved; layout requires later separate approval.
See the newer BOM Research Checkpoint project file for supplier findings and remaining verification. The preliminary table below is historical, not a locked procurement list. Research stopped because ACUs ran out; schematic and PCB remain untouched.
Block diagram
Text
External isolated USB-C supply, 5 V / >=2 A
-> USB-C sink interface + CC detection/protection + input protection
-> 5 V logic rail -> ESP32-DevKitC 5 V input -> onboard 3.3 V regulator
-> two relay coils and flyback-protected drivers
-> resistor + transistor -> IR TX LED
DevKit 3.3 V -> VS1838B IR receiver -> GPIO15
-> DS18B20 header (data GPIO5, 4.7 kohm pull-up)
GPIO4 -> IR TX driver
GPIO26/27 -> active-LOW optocoupler inputs -> relay drivers
Relay contacts ONLY -> separately fused mains LIGHT / VENT terminal circuits
DevKitC is removable on female headers; select the exact official board variant and verify header geometry before footprint selection. Use its onboard regulator and USB-UART; no duplicate 3.3 V regulator or UART bridge is planned. Prevent power backfeed when the DevKit programming USB and board USB-C are connected simultaneously; exact solution awaits board schematic verification.
Preliminary procurement list
Table
Function
Quantity
Candidate / selection requirement
MCU board
1
ESP32-DevKitC with ESP32-WROOM-32-family module; exact variant TBD
Female headers
2
Matched to selected DevKitC pin count, pitch and row spacing
USB-C receptacle
1
Power-only USB-C receptacle; exact footprint TBD
USB-C sink configuration
1 set
Rd on both CC pins plus advertised-current detection if drawing above default current; two Rd resistors alone do not authorize 2 A
Input protection
1 set
Fuse/current protection, 5 V TVS and CC ESD protection; exact ratings TBD
Relay
2
5 V coil SPDT relay with verified >=8 A resistive rating at 230 VAC, suitable motor rating for fan and documented contact-to-coil insulation geometry; exact MPN TBD
Optocoupler
2
PC817-family candidate, CTR bin and 3.3 V input drive to be verified
Coil driver
2
Logic-compatible NPN or MOSFET, selected after coil current is known
Flyback diode
2
Selected for coil current and voltage; across each coil
AC terminal block
2
Three-position COM/NO/NC, nominal 5.08 mm pitch; verified voltage, current and wiring rating required
AC fuse and holder
2 sets
Per-channel fuse selected for load, wire rating, inrush and mains interrupt capacity; touch-safe implementation required
Transient suppression
TBD
Mains-rated MOV and/or RC snubber selected for fan and lighting loads; do not fix values without load verification
IR transmitter
1
940 nm IR LED, pulse-current rating verified before setting resistor/driver
IR driver
1
NPN or MOSFET + current-setting resistor and default-OFF bias
IR receiver
1
VS1838B requested; verify exact vendor datasheet and 3.3 V operation before committing
Temperature header
1
Three pins: 3.3 V, DATA, GND; DS18B20 external sensor
Temperature pull-up
1
4.7 kohm, DATA to 3.3 V
Supporting passives
TBD
Local decoupling, bulk capacitors, optocoupler LED resistors, driver bias resistors and protection as required
Fixed constraints
GPIO26 LIGHT, GPIO27 VENT; active LOW through optocouplers. Both relays must stay OFF during reset, boot, unplugged MCU and power transients.
GPIO4 IR TX, GPIO15 IR RX, GPIO5 DS18B20; verify boot-strapping interactions without changing firmware mapping.
AC compressor is never relay-switched; IR only. No battery and no onboard AC-to-DC logic supply.
Fan target: 230 VAC, <=80 W, approximately 0.4 A running; exact startup current and motor rating still unverified.
Lighting target: <=8 A resistive. LED drivers and cold incandescent lamps can have significant inrush; an 8 A resistive contact rating does not establish an 8 A LED-load rating.
Two layers, FR4 1.6 mm, 1 oz, approximately 80 x 100 mm; mains on one edge; at least 8 mm creepage to low voltage. Check clearance separately. No ground pour or stitching across mains isolation region. Relay internal insulation and footprint must support the intended separation.
Original 1.5 mm AC trace width is a requested minimum, not verification of safe 8 A continuous operation. Final copper width, thermal rise, terminal and fuse ratings require calculation.
Optocouplers with common 5 V/GND do not isolate coil power from ESP32. Shared SELV supply is the proposed default, pending confirmation; mains isolation is provided by suitably rated relay contact-to-coil barriers and PCB spacing.
USB source must explicitly support adequate 5 V current; use a suitable isolated supply. Current budget, input droop and simultaneous Wi-Fi/relay/IR demand remain to be checked.
Approval gates
Confirm common logic/coil supply versus isolated coil supply, then verify candidate MPNs, stock and footprints and finalize BOM.
Obtain approval of architecture and verified BOM before drawing schematic.
Draw schematic only and run ERC plus engineering review.
Obtain separate schematic approval before placement or routing. Clean ERC alone does not certify mains safety.
No firmware generation. No schematic, PCB placement or routing performed.