Turn 60W light bulb on/off with the arduino using a 2N2222a transistor and solid state relay (D2425, 3-23V input, 25A, ~240V).The setup:
My circuit is done similar to this (as posted by someone else), with the exception of the digital pin connected to a transistor to the arduino: http://img687.imageshack.us/img687/2164/arduinossr.jpgThe problem:
The light just stays on and does not turn off. While the signal pin does fluctuate between 4.6 to 4.9 repeatedly as it should on the relay, how do I get the signal to drop to 0 and back to 4.9, so as to turn on/off? What pieces of the circuit are missing?
I've read that a transistor wouldn't be necessary to turn on/off a solid state relay since the ssr reads like an LED to the arduino, but this didn't quite work for me, hence the transistor in the circuit.