SDG #070 DIY Trailing Edge Dimmer - Lighting Controller Project - Part 3
Part 3 of the trailing edge dimmer build shifts focus from the power switching stage to the timing reference that everything else depends on: the zero crossing detector. In a trailing edge design the MOSFET based solid state switch is turned on at the start of each mains half cycle and switched off partway through, so the accuracy and repeatability of the zero cross pulse directly determines how stable the dimming level looks. Jitter, false triggers or a pulse that arrives late all show up as visible flicker or as asymmetric conduction between half cycles, which can put DC through an inductive load.
The work here is about cleaning up that detector so the microcontroller sees one clean, well timed edge per crossing rather than a noisy, drooping waveform. That means looking at how the detector behaves around the crossing itself, where the signal amplitude is smallest and noise has the most influence, and confirming the resulting gate drive lines up with the AC waveform as expected.
Because the circuit sits at mains potential, probing it safely is a real constraint rather than a detail. A differential probe removes the need to reference measurements to earth, so both the low voltage detector output and the live side waveform can be compared on the same screen without creating a short through the scope ground. Anyone attempting a project like this should treat that tooling as part of the build cost, not an optional extra, and should expect the zero crossing stage to need more iteration than the switching stage.
It is a useful watch for anyone designing mains phase control, where the temptation is to trust a simple opto based detector without checking what the edge actually looks like under load.


