I did watch the video. It is NOT a PWM signal.
No, it is not. It is a triac gate trigger pulse and the width of that pulse is not important. It is the moment in time that it occurs that matters.
Pwm is not necessary to control the triac and wouldn't do any good anyway.
Seems like I miss understood about PWM.
PWM (pulse Width Modulator) which in arduino consist of 0 - 1024 that for generate voltage around 0 - 5.
Ok, actually I using TRIAC trigger pulse(not PWM, I miss understood the name about it) in my program like
delay(2);
digitalWrite(13,HIGH);
delay(1);
digitalWrite(13,LOW);
delay(9);
I using 50 Hz main, so it around 0.02 s or 20 ms per cycle,
so I triggered in 10 ms per pulse, next need to sync the pulse to main.
could be research for default delay (early delay) by looking wave in osciloscope.
Hi again,
Actually the width of the trigger pulse is important in some respects and so has to be payed attention to also.
First, if the pulse is too narrow it will not get the triac to actually latch 'on'. This will vary for different triacs but there will be a minimum pulse width for reliable operation.
Second, if the pulse is too wide then it will cause a retriggering for low conduction angles so the entire half wave for that half cycle will appear on the output rather than just a tiny portion of the end of the last half cycle.
I looked TRIAC BT 136 datasheet, it need 0,3 ms to trigger TRIAC.
So if I make 1ms pulse, I think that good enough for that.
then second, ya... its around 10ms per pulse. but need sync it first the I can configure delay for firing, is it?
OK next point,
Is about the result
I can't cut clear when firing a TRIAC like video did.
like pic in osciloscope before, I tried fix the circuit, but still not work. any better idea?