AC Dimmer Module Simulation Request

I found a few real issues, including 2 safety-critical ones.
Review summary

Table


SeverityFindingWhy it mattersRecommended fix
CriticalU2 input LED is connected directly to AC through R4 + R5 with no reverse protectionThe U2 datasheet gives input reverse voltage max 6 V. On the opposite half-cycle, the LED can be reverse-biased from mains. Current is limited, but reverse voltage stress is still a reliability/safety problem.Add an anti-parallel diode across U2 input LED, or better, use a bridge rectifier ahead of U2.
CriticalU1 pin 5 (SUBSTRATE / NC) is tied to AC neutralThe datasheet indicates pin 5 is NC / TRIAC SUBSTRATE and should be left unconnected.Disconnect U1 pin 5 from AC. Only use the actual output terminals of U1.
HighR3 = 330 Ω may not guarantee enough LED drive for U1, especially at 3.3 VFor U1, datasheet trigger current for the chosen variant is 8 mA typ, 15 mA max. With R3, drive current is only about 6.36 mA at 3.3 V and 11.5 mA at 5 V. That means worst-case triggering is not guaranteed.Either lower R3, or switch to a more sensitive optotriac variant, or drive U1 through a transistor stage.
MediumR4 + R5 dissipate noticeable power on 230 VACTotal dissipation is about 0.2645 W across the pair on 230 VAC, so about 0.132 W each if shared evenly. Your current 0.25 W rating works, but margin is not generous for mains use.Prefer higher-voltage, flameproof parts and consider 0.5 W resistors for better margin.
MediumC1 is marked 400 V film, but for across-TRIAC snubber use the capacitor class mattersOn 230 VAC mains, peak is about 325.27 V. A generic 400 V film part may be marginal depending on whether that rating is DC or AC and on surge behavior.Use a mains-rated snubber capacitor, typically X2 safety class where applicable, with appropriate AC rating.
MediumLayout is not yet routable/verifiedDRC reports 27 airwire errors, so the PCB is not electrically complete yet.Finish placement/routing, then re-check creepage and clearances.
LowF1 shows floating-pin ERC errorsThis appears to come from the fuse-holder symbol having duplicate equivalent pins, not necessarily a real circuit break.Clean up the symbol/pin mapping or use a simpler fuse/fuse-holder part model.
LowLED1 with R7 is a power-present LED, not really a dimming-status LEDIt is tied from VCC through R7 to ground via LED1, so it will just turn on whenever control power is present.Keep it if that is the intent, or move it to a logic signal if you want true status indication.
Good parts of the design

Table


CheckResult
Main switching deviceQ1 gate trigger current is compatible with optotriac driving in principle
Dimming methodUsing U1 as a non-zero-cross optotriac is the correct choice for phase-angle dimming
Gate resistorR1 at 220 Ω is reasonable
Snubber presenceR2 + C1 are present, which is good practice for TRIAC switching
Isolation conceptUsing U1 and U2 does establish an isolation boundary conceptually
Biggest concerns to fix first
  1. Protect the input LED of U2 from reverse mains stress.
  2. Disconnect U1 pin 5.
  3. Rework R3 so U1 is guaranteed to trigger from your control voltage.
  4. Upgrade mains-side component ratings, especially R4, R5, and the snubber capacitor C1.
  5. Complete routing and then verify physical creepage/clearance on the PCB.
If you want, I can make a correction plan for these issues and update the design safely.
Make correction plan
Fix U1 and U2
Resize R3 drive
U1
Q1
R4 P2 - R5 P1
J1 P2 - J2 P2
R3 P2 - U1 ANODE
J1 P1 - F1 P1
R1 P2 - Q1 3
U1 MAIN_TERMINAL_2 - R1 P1
J3 1 - R6 P1
J3 4 - R3 P1
J3 3 - R6 P2
F1 P2 - J2 P1
J1 P2 - J2 P2
F1 P2 - J2 P1
J1 P2 - J2 P2
R7 P2 - LED1 A
J3 3 - R6 P2
R2 P2 - C1 P1
R1 P2 - Q1 3
F1 P2 - J2 P1
J1 P1 - F1 P1
J1 P2 - J2 P2
J1 P2 - J2 P2
F1 P2 - J2 P1
J3 3 - R6 P2
J3 1 - R6 P1
J1 P2 - J2 P2
J3 1 - R6 P1
J3 4 - R3 P1
U1 MAIN_TERMINAL_2 - R1 P1
R4 P2 - R5 P1
J1 P1 - F1 P1
R4 P2 - R5 P1
R2 P2 - C1 P1
J1 P2 - J2 P2
R7 P2 - LED1 A
R3 P2 - U1 ANODE
J1
U2 ~ - J3 2
J3
GND
R6
Resistance
10kΩ
R5
Resistance
100kΩ
R3
Resistance
330R Ω
F1
GND
R2
Resistance
100R Ω
GND
LED1
C1
Capacitance
100nF
U2 ~ - J3 2
R7
Resistance
1kΩ
U2
R4
Resistance
100kΩ
R1
Resistance
220R Ω
J2

No files yet

Documents

    Documents are markdown text files which describe project goals, capture details, or even simulation outputs.

    Assets

    Assets are files uploaded to this project which can be used in various ways.

    Something went wrong loading this panel.