Quote Originally Posted by The Master View Post
Hi, Ive got a circuit that outputs a PWM signal. The PWM is synchronized with the AC sinewave and the signal is sent to a triac which controls a light that is plugged in elsewhere. The circuit cant seem to control the lights properly. If i simply turn them on and off then everything is fine but when using PWM the lights flash or dont turn on at all.
...snip....
Is it worth spending time checking out the circuit and code or will it simply not work in this way?
You cannot/shouldn't control a Triac via PWM. A triac once switched on, turns off only at the zero crossing. That could explain the fluttering instead of controlling. The proper approach would be phase-angle-firing the triac.