Electrical – AC dimmer- triggering triac using moc3041. lamp always remain on, and does not change its intensity

adcatmega328pdimmeropto-isolatortriac

Below is schematic.

1) Problem is lamp always remains on,even if i haven't provided the Anode A terminal with power through micro controller.

2) Also please explain me the need for R7 resistor.

3) Is it because the triac remains always triggered from AC through resistor R7.

Thank you

optoisolator is moc3041

Best Answer

The MOC3041M contains a zero-cross detector, it will always delay switching until the live-neutral voltage is 0V, ensuring the lamp is always fully on or fully off.

To do phase-cutting dimming, you need a different optotriac, such as the MOC3021M (same specs, but random-fire instead of zero-cross).