RE: [OT]? Lighting Controllers

You certainly enjoy using the period key don't you Tim :o)

You don't actually need to use an optoisolator, there have been several dimmer circuits that have run directly from the mains with no isolation at all. The mains voltage is fed directly to a PIC input via a current limiting resistor to detect zero crossing points.  However, if the dimmer is going to be wired to someones PC for control then obviously this little scheme has it's drawbacks.  (like electrocution).

Mike