Please I need help. I want to build a remote control module that controls light intensity of incandescent bulbs and also the speed of fan.
I wrote a code using analogwrite. I divided the duty cycle into 5 (20% - 100%) if I press a buttons it sends the duty cycle equivalent to my output pin. My problem is this, if I connect an LED to my output it behaves the way I want, but if I connect my output to my MOC3041 to control my triac, it does not respond to other duty cycle except 100% duty. Any other duty cycle u send only blinks the bulb for a second and shorts down... What could be the problem....