I've built a device that you plug your bedside lamp into, and after a preset time, it slowly dims down to a preset value (upto as far as not being illuminated) the trick is... I have to be able to sense the light switch at any phase of the operation - if switched off - then timer etc resets. I've done this by winding a current transformer and putting output to an opamp. However this has some drawbacks, namely if the amp is set too sensitive it gets triggered during the dimming phase soley by the capacitance in the lead and on the other hand not sensitive enough and it doesn't pick up lightbulb when either fully on or pretty much off - you can tune it so it works with a bulb of a certain wattage and a lead length of a certain amount - but not ideal!!! Any other ways anyone can think of for sensing when the light is turned on/off? I was thinking about trying to send a 5v pulse down the wire at every zero crossing to pick up if switch is on or off - but am a little unsure if it will work or how exactly to do it. Any ideas would be really appreciated.
Cheers
Bookmarks