I am working on project to dim the LED bulb(Dimmable) with Atmega328. Everything works fine when duty cycle is above 50% but as soon as i am decreasing duty cycle below 50% LED bulb start flickering. Please suggest what is problem with circuit.
Conditions:- 1.> I am generating 12V power Supply and then using lm317 to generate 3.3v from 12v.
2> Using Zero Cross detector with atmega328 which is working fine.
3> If i drive gate of both mosfet from a separate 12V supply instead of my actual supply, circuit is working fine.
Please suggest something....
I have modified my circuit and now its working fine. Thanks for your comments and rectifying my schematic.