I am designing a phase-cut dimming driver for Incandescent bulbs as well as LED panel lights with dimmable drivers. Using a BTA24 Triac and VOT8121AB Optocoupler driven by my MCU.
For zero-cross detect
I am using a PC814 bi directional optocoupler
My code looks right, it is based on my study of various articles and sample codes. It has been working with fans. The problem i am facing with is the lights, during light dimming i am seeing frequent flicks (The light turns off for few milliseconds).
I wanted to understand if this is the right circuit for phase-cut dimming driver or not. Should i be changing my design or values of capacitor etc. Is there an alternate design that can be used for proven better results?