Hello,
I've been tasked with making an automated light on/off control for a local museum's hangar. The lights are just normal tube lights controlled by a switch like this: http://images.wisegeek.com/light-switch.jpg. However, I'm a bit at a loss as to how to turn the power on/off. I'm told that the connection is a 110V standard US power line. Should I use a MOSFET for this? I don't think the "timer" part of it will be that hard, if I use something like this: DS1307 Real Time Clock breakout board kit : ID 264 : $7.95 : Adafruit Industries, Unique & fun DIY electronics and kits. Does anyone have suggestions on how to turn on/off that power line for the lights?
Hi Nick, So if I use this with the arduino, and I connect it up, if I sent a "HIGH" to digital pin say, 6, and the relay was connected, would that turn on the lights? As in, would that act as a switch for the 110V?
If you are not an electrician, you might get into code issues changing the wiring. You might look at using a servo to operate the standard switch, which would allow the switch to also be normally operated when desired. the servo could be attatched to the switch cover plate so it could be easily removed when desired.
Instead of SSR, an SPDT Relay https://www.sparkfun.com/products/100 would be sufficient for lights. (upto 5A)
You can actually connect multiple lights through one relay taking care of the current limit.
You need to connect the output of the microcontroller to a simple amplifer circuit before connecting to the relay coil. You could use BC547 and a 27kohm base resistor. Use a 12V Vcc. Output will be inverted. Just use the NC (normally closed) contact of the relay. This way, you don't need to energize the relay coils when the lights are ON.