http://www.youtube.com/watch?v=5tt4zAkp ... re=related
In the circuit I posted it just uses MOC3021 without the ZCC built in.
fitri WROTE:to dim the light am i need to use Digital Output?
are the program i need to is some kind like this :
eg: 50% dim
on signal 10ms
off signal 10ms
Yes the digital output would control the MOC3021 input.
Yes, ON 10ms and OFF 10ms for 50Hz supply. But it has to synchronise with the AC at the pulse of GP2. Like this
1. Poll the pulse at GP2
2. Once detected L->H on GP2
3. H on opto 10ms
4. L on opto 10ms
5. Loop back to 1.
Allen