Step 3: The circuit
Connect the base of the transistor to the pin used in the code I used pin 13
Connect your light bulb in series with switching contacts of the relay.
And connect your arduino to your server.
Remove these ads by
Signing Up







































Visit Our Store »
Go Pro Today »




but have a look at x10
I have had X-10 for about 10 years for control, but I hear different things about how long they are going to be in business. I do know that a lot of prices on X-10 equipment are skyrocketing. I lost my bridge between the 110V legs on the 220V mains, and the price is now double what I paid for it.
I was also using Dallas 1-wire tech for sensors, but they seem not to be expanding their line in ways useful to me. And they have dropped a part or two which are critical, so I was thinking about switching to I2C, XBee and Arduino.
My real question is have you ever used a latching (bistable) relay in such a circuit? If so how did it work out, or do you have an opinion on using such a relay?
Thank you again.
quick questions,
1) can i substitute these? 2N3904 for 2N2222; and 1N4007 for 1N4004.
2) is the relay you're using, 6 pin? just want to make sure.
Thanks,
Sean
2) doesn't matter