Quote Originally Posted by George
... or charge a little cap through a diode and read the cap anytime.
Yes, this was the idea.

* * *

AN521 Interfacing to AC Power Lines
http://ww1.microchip.com/downloads/e...tes/00521c.pdf

AVR182: Zero Cross Detector
http://www.atmel.com/dyn/resources/p...ts/doc2508.pdf

* * *

Enjoy your holiday!

Luciano