Yes you'll need to synch it or you're going to see some weid blinky stuff. What you need is a spare input who will sense the AC main. Then each Zero Crossing, you refresh your dimmer outputs.
For safety reason, you want to use an optoisolator between the MAIN and your circuit. Anything like LTV-814,PS2505 will work.
If you decide to use Your power supply transformer, you may need to calibrate it in software to compensate the phase difference between the primary and secondary.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks