15
\$\begingroup\$

What solutions are available to control a power plug (or even if possible a light socket), i.e. turning it On and Off?

I have looked for xbee/zigbee solutions but there doesn't seem to be a solution available for European power sockets (and so few solutions even for US sockets).

A wired solution including an Arduino is OK for me. I want it to be easy to use (as for zigbee I'm ok to learn how to use it), and safe (I don't want to connect or solder things because it's 240V, I don't want any risk with the electrical installation).

\$\endgroup\$
3
  • 1
    \$\begingroup\$ This could be a good EE question, but you have turned it into a consumer electronics shopping questions by removing the option to connect or solder things. \$\endgroup\$
    – Kellenjb
    Commented Jun 5, 2012 at 18:55
  • \$\begingroup\$ Is this meant to be a one-off solution or are you design a product for small or large scale manufacturing? \$\endgroup\$ Commented Jun 6, 2012 at 15:58
  • \$\begingroup\$ @BenGartner one-off solution (home automation) \$\endgroup\$ Commented Jun 7, 2012 at 12:09

5 Answers 5

9
\$\begingroup\$

I would suggest two options.

First - and this involves a small amount of wiring and soldering - using a PowerSwitchTail II. This is a very safe way of switching mains voltage. There is adequate isolation, it is safely cased and tested.

If you really want to do no wiring or soldering at all, then I would suggest finding one of the common 434/868/915MHz (depending on region) remote controlled sockets using a basic OOK protocol, and buy a simple 434MHz transmitter. A number of the protocols are documented in various places. The only issue with these is that you have no sure way of knowing if the switch is on or off.

\$\endgroup\$
4
  • \$\begingroup\$ "Soldering is required for assembly." OP doesn't want to solder. Yeah, I missed that too the first time. \$\endgroup\$
    – stevenvh
    Commented Jun 6, 2012 at 9:03
  • \$\begingroup\$ I noticed, but I believe the PowerSwitchTail is so easy and safe to build that it shouldn't be discounted. I'd say the bulk of danger with hobbyist mains control projects is bad design and poor casing/mounting. \$\endgroup\$ Commented Jun 6, 2012 at 9:13
  • \$\begingroup\$ Oh that's a great solution! I'm not against soldering at all, it's just I don't want to "affect" the electrical installation of the place I rent, and I don't want to modify the objects I use. I just want something to insert between the wall socket and the plug to turn on/off. So the PowerSwitchTail is perfect! \$\endgroup\$ Commented Jun 6, 2012 at 12:01
  • \$\begingroup\$ Updated link: PowerSwitchTail (This product replaces the one listed.) \$\endgroup\$
    – JYelton
    Commented Dec 10, 2012 at 6:57
8
\$\begingroup\$

enter image description here

This is how you control a relay. A relay gives you proper isolation from the mains, and with the appropriate relay you'll be able to switch more than a kW at 230V.

The relay will need more current than the Arduino can supply. That's where transistor Q1 comes in. The transistor multiplies the input current from the Arduino (the "on/off" at the left) by about a factor 100 and uses that higher current to activate the relay.

edit
An SSR (Solid State Relay) is even simpler, but usually a bit more expensive. (This one seems to be very low priced, at USD 3.50 at Digikey.)

enter image description here

This SSR connects via a resistor to the Arduino, that's the two left pins, and the other pins are the switch. This SSR can switch up to 1A.

\$\endgroup\$
3
  • 2
    \$\begingroup\$ If you don't have 12V at hand it is probably easier to use a 5V relay. Another option is an optocoupler/triac combination, for low currents (let's say a light bulb) these can be found in a DIP08 package. \$\endgroup\$ Commented Jun 5, 2012 at 15:32
  • 1
    \$\begingroup\$ @Wouter - The phototriacs in these optocouplers can't switch loads, they're meant to trigger an external triac. Though some do have the power triac integrated next to the phototriac. The DIP package in the standard PCB footprint isn't SELV, which you'll want if the other side is an Arduino. \$\endgroup\$
    – stevenvh
    Commented Jun 5, 2012 at 15:39
  • \$\begingroup\$ What you mention does indeed exist, but there are also things like S26MD01 (datasheetcatalog.org/datasheet/Sharp/mXtzyyt.pdf ): 230V, 0.6A in a DIP08 (or rather DIP07, one pin is missing). I think the propper term is optoisolated SSR. \$\endgroup\$ Commented Jun 5, 2012 at 16:14
7
\$\begingroup\$

How about this:

enter image description hereenter image description here

You connect a 5V power supply, and the 4 inputs to 4 of your Arduino's outputs, and you're done. USD 16.50.

\$\endgroup\$
2
  • 1
    \$\begingroup\$ "you're done" not exactly, you have to find a power cord, cut it, separate the wires and connect them to the relay. That's not really "plug and play", there's "playing with 240V" involved. \$\endgroup\$ Commented Feb 16, 2013 at 12:05
  • \$\begingroup\$ Do i still require a transister and diode if i use this relay ? \$\endgroup\$
    – Sakthivel
    Commented Jun 21, 2014 at 13:14
3
\$\begingroup\$

Perhaps X10 is what you need? X10 is a standard for communicating through the power lines of your house. This way you have have your Arduino send data into one power socket, which will be read by another device attached to a light fitting.

X10 home automation

\$\endgroup\$
5
  • \$\begingroup\$ OP wants to switch the light on and off, and you want to sell him a home automation system??? \$\endgroup\$
    – stevenvh
    Commented Jun 5, 2012 at 16:32
  • 2
    \$\begingroup\$ @stevenvh - The OP wants a safe solution: "I don't want to connect or solder things because it's 240V, I don't want any risk with the electrical installation" And you sell him a circuit he has to solder himself??? \$\endgroup\$ Commented Jun 5, 2012 at 18:17
  • \$\begingroup\$ Zut! I missed that he doesn't want to solder. Why didn't you tell me? :-) \$\endgroup\$
    – stevenvh
    Commented Jun 5, 2012 at 18:52
  • \$\begingroup\$ Well X10 is kind of what I want to do, but it's X10... it's old and it sucks. So I wan't to make my own automation system, I am able to interface the server, the arduinos (usb, ethernet, zigbee...), but when it comes to modifying the electrical circuits of the place I rent, I don't feel comfortable... I just want a power outlet with a 5V pin to turn it off and on :( \$\endgroup\$ Commented Jun 5, 2012 at 20:23
  • \$\begingroup\$ How does it suck? All you want to do is turn the power on and off. X10 is way better than that. Also, X10 requires no modification of the circuits of the place you rent. It's your best option. \$\endgroup\$ Commented Jun 5, 2012 at 21:59
0
\$\begingroup\$

I'm using these devices Gembird / Siver shield Power manager. Check this short video. They work brilliantly well, even from Linux, and come in various flavours (USB, WLAN, ...)

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.