Hi all. I'm thinking of building a light-controller based on a pic16x84. Probably someone has done this before, so maybe they can help with the following : - How do I detect the zero-crossings of the mains-supply ? Some schematics on the general dimming-part might also be useful. All help/links would be appreciated. Hans