Chat


How can I help you?

Explain project
Write a project description
Find schematic issues

Architecture Decisions and Preliminary Power Budget
Selected Defaults
  • Isolated AC-DC PSU: RECOM RACM06E-12SK/277 is now the approved baseline, feeding +12V_RELAY. The larger 6 W module is accepted to use an available Flux-library part and retain margin for the relay coil and downstream rails.
  • 12 V to 5 V conversion: TI LMR50410Y5FQDBVRQ1 fixed 5 V buck regulator added with 4.7 µH inductor, 2.2 µF input capacitor, 10 µF output capacitor, and 100 nF bootstrap capacitor per datasheet guidance.
  • MCU: Microchip PIC16F18855 UQFN-28, 3.3 V operation, ADC, PWM, EEPROM, CRC, WDT/BOR.
  • 3.3 V regulator: MCP1703A-330, low-Iq 250 mA LDO from +5V_HOLD.
  • Optical input: Vishay TSOP32S40F 40 kHz IR demodulating receiver.
  • Mains-present input: FODM214 AC-input optocoupler with split HV current-limiting resistors on primary side.
  • Hold-up: 1 F / 5.5 V EDLC supercapacitor on +5V_HOLD with current limiting.
  • Relay driver: one 3.3 V-controlled low-side inductive-load driver on net RELAY_DRIVE for the 12 V monostable relay coil.
Environmental / Thermal Requirement
User-declared outdoor ambient maximum: 60°C. Since the board is intended for a sealed IP67 enclosure, internal component temperature can be significantly higher than ambient, especially in direct sun. Architecture impact:
  • Prefer industrial/extended-temperature components; current MCU, LDO, NTC, and optocoupler selections have datasheet temperature ranges compatible with 60°C ambient, but enclosure rise must be validated.
  • The RAC03-05SK output derates above 60°C; actual load is low, but relay coil current and enclosure rise must be verified.
  • LEDs should remain PWM-dimmed/low-current to reduce self-heating.
  • Firmware must shut relay output OFF on overtemperature.
External Load and Relay/Contactor Requirement
Approved external load: Spa Electric LV25-12 swimming pool LED light system, switched mains input 240 VAC, 25 W. Estimated steady-state current is:
I_LOAD = 25 W / 240 VAC ≈ 0.104 A RMS
Selected relay: Omron G2RL-2A-DC12 is now the approved baseline available-library relay. It is an on-board through-hole 12 VDC coil DPST-NO / 2 Form A relay; contacts are used to switch active and neutral to the external Spa Electric LV25-12 load.
Despite the low steady-state current, the mains switching element should be selected conservatively:
  • 2-pole relay/contactor switching active and neutral; do not switch PE.
  • Contact rating comfortably above 240 VAC and above the load current with inrush/transient margin.
  • Prefer a recognized safety-certified relay/contactor with approvals suitable for Australian mains product compliance.
  • The PCB now contains both SELV control/coil drive and mains relay contact routing; these must be separated by the layout isolation barrier and reviewed for creepage/clearance.
  • Coil voltage is 12 VDC, so the existing +5V_ISO dual-coil latching relay driver assumption must be replaced by a single +12V_RELAY monostable coil driver.
Preliminary Load Budget

Table


RailLoadEstimated Current
+3V3_MCUPIC16F18855 active low-power control firmware1-5 mA typical
+3V3_MCUTSOP32S40F IR receiver0.35-0.45 mA
+3V3_MCUVEML7700 ambient light sensor<1 mA typical
+3V3_MCUPull-ups / dividers<1 mA typical
+3V3_MCULEDs, PWM dimmeddesign target <=2 mA each average
+12V_RELAYOmron G2RL-2A-DC12 coilverify exact coil current from datasheet before final thermal review
+12V_RELAYLMR50410 buck input for +5V raildepends on logic load, low relative to PSU rating
The schematic now implements a certified isolated 12 V AC-DC module feeding +12V_RELAY, then derives the existing +5V_ISO/+5V_HOLD and +3V3_MCU logic rails downstream. The switched load is only ~0.104 A RMS at 240 VAC, but contact certification/margin and PCB creepage/clearance govern relay implementation.
Schematic Revision Notes — 12 V Relay Architecture
  • Removed original RAC03-05SK 5 V AC-DC module.
  • Removed obsolete dual SET/RESET relay coil outputs and second driver.
  • Added PS2 12 V isolated PSU stand-in, U6 12 V-to-5 V buck regulator, and support passives L1/C12/C13/C14.
  • Added K1 Omron G2RL-2A-DC12 relay and J6 switched mains output connector.
  • Relay contacts switch both fused active and neutral: MAINS_L_FUSED → K1 → LOAD_L_OUT, MAINS_N → K1 → LOAD_N_OUT.
  • MCU control net is now RELAY_DRIVE; U1 RC1 is unused/no-connect.
  • ERC/design checks for the revised schematic subset returned no open errors/warnings at the time of update.
PCB Placement / Isolation Notes
  • Board remains a generous 160 mm × 100 mm, 4-layer outline to preserve mains/SELV spacing during early layout.
  • Stackup updated so inner copper layer 1 is a ground plane and inner copper layer 2 is a power plane; final plane pours must be split/kept out across the mains/SELV barrier.
  • Added visible top-side markings for:
    • MAINS / SWITCHED 240 VAC zone
    • 8 mm isolation / no-copper corridor
    • SELV control zone
  • Fresh placement completed with mains input/protection/relay/output on the left, isolation components near the barrier, and MCU/user/optical/sensor/low-voltage power on the right.
  • Routing has not been performed. Airwires are expected and must be resolved with a safety-aware routing pass.
  • Open layout review item: DRC reports overlapping copper associated with existing footprint/subcircuit geometry, especially the MCU footprint/mount geometry and Q1 driver footprint internals; review/replace footprints before manufacturing.
Hold-Up Estimate
For 1 F from about 5 V down to LDO dropout-limited operation near 3.6-3.9 V, available charge is roughly 1-1.4 coulombs. At a 10 mA hold-up load this is about 100-140 seconds idealized; at 50 mA it is about 20-28 seconds. The 5 second requirement is feasible if firmware disables LEDs/relay drive during outage and uses low-power mode.
Safety Notes
  • Primary and SELV must be separated by a clearly labeled isolation barrier in layout.
  • Primary HV resistor values, fuse type, MOV placement, creepage/clearance, and IP67 optical/mechanical implementation require qualified safety review.
  • Do not connect user-accessible controls to primary/mains nets.
  • Selected Defaults

  • Environmental / Thermal Requirement

  • External Load and Relay/Contactor Requirement

  • Preliminary Load Budget

  • Schematic Revision Notes — 12 V Relay Architecture

  • PCB Placement / Isolation Notes

  • Hold-Up Estimate

  • Safety Notes