Advanced Member level 4
I made a dimmer a while back and had problems with the zero cross detection due to mains noise and got tired of it and put it on the shelf. Normally it worked fine but sometimes it could make a sudden flash (once a week). The software is minimal and reliable so I think it is the zero cross, most of the times the mains look fine but sometimes it looks really terrible with lots of noise. So I was wondering if anyone have any idea how to filter it out in a clever way without beeing to complicated. I would preffer a short IRQ spike beginning right at zero cross and no false trigger on noise around zero cross. Could come from mains communication equipment etc.