I am trying to make an AC dimmer. I am following this schematics for my circuit,
as you can see in the below picture that I am able to turn the signal on after a short while of zero voltage
The blue signal is from my micro- controller (I'm using a PIC18f45 instead of an arduino) to the moc3021 and yellow signal is from the 12 V AC (I am trying to control 220V AC but this oscilloscope can't seem to read higher voltage so this is just to show that I am able to send a signal at zero voltage)
I am not able to dim the light buld. Even with that setup the bulb is still very bright. I tried shortening and lengthening the HIGH signal to the MOC but it doesn't seem to affect it
From what I have understood the moc3021 is a random phase triac driver meaning that I should be able to open and close the gate of at any time of the wall AC phase. The triac should have turned off when the signal turned low but instead the bulb is still very bright.
Am I missing a concept here ? what should I do for it to turn off when the signal goes low?