I now have an optoisolator MOC3021 and a triac Q4010L4 which switch the lamp on and off OK however no dimming.
An LED connected to the PIC output to the optoisolator however does brighten and dim.
What needs to be changed on the ACDetect routine?
I did a site search for a newer version but no luck.
Norm
Bookmarks