If you have ever wanted to control electronic devices from your computer to control or regulate your environment, this instructable will guide you. In this example of computer control, a USB relay device (USBmicro http://www.usbmicro.com - U451) will control two 60 watt light bulbs from a PC program.

Step 1: Safety First!

First off - Any time that you work with 120V voltages, safety is paramount. If you are not comfortable working with mains power, please seek the assistance of someone who is.

This instructable is intended only for someone experienced and confident in wiring high voltages. Do not attempt to do this if you are not. Household current can kill or badly injure you if you who do not understand the danger.

Only the U451 relay contacts should be used for control/connection to 110V AC. The relay screw terminals are isolated from the other circuit connections. DO NOT touch the U451 when there is 110V AC present.

<p>What is the easiest/cheapest way to controll 240 light bulbs?</p>
<p>The obvious solution of using 120 U451 is a bit painful.</p><p>Better solutions depend on your electronics construction skills. A single U451 can drive 6 more relays directly from the J4 connector. So now a solution would involve 30 U451s plus relays. J1 can't drive the coils of relays directly, but with some transistors could control 8 more relays, cutting the number in half.</p><p>You can buy boards on ebay that have 8 relays on them. The boards are $7-10. They can be controlled by a USBmicro board that is similar to the U451 and so one U421 could control 2 of these 8-relay boards. So 16 relays controlled by each U421 would be 15 sets of these controllers.</p><p>Instead of mechanical relays, you could also use solid state relays.</p>
<p>Just a heads up. The plastic covers used are intended to be flush mounted against a wall since they aren't structural. For exposed boxes you need the metal covers that don't extend past the junction boxes themselves. </p>
wHi, what woudl I need if i wanted to control 4 lights?? <br>
who is the person that make that device <br>
what sholud i use if i want 220 v??
Here No steps are given about how to connect this with computer? Can you explain this!!!!!!!!!!!!!
Very nice instructable.<br> <br> Similar to mine at:<br> <a href="https://www.instructables.com/id/Yet-Another-Arduino-110v-Power Controller/">https://www.instructables.com/id/Yet-Another-Arduino-110v-Power Controller/</a><br> <br> Mine does not use a relay board, so it is not for the faint of heart :-)<br> <br> <br> Best Wishes
sry for the broken link: <br>https://www.instructables.com/id/Yet-Another-Arduino-110v-Power-Controller/
How do u add the USBm.dll and the program to the U451?
What are you asking? The program and the DLL don't get &quot;added&quot; to the U541 - the program runs on a PC.
From where can we download the software robot ide??
<br> RobotBASIC comes from <a href="http://www.robotbasic.org" rel="nofollow">http://www.robotbasic.org</a><br>
Awesome! This might be interesting to you: we created an inverse of this idea where you can use the A/C device to control the computer. Some documentation here: http://itp.nyu.edu/~sz590/blog/2010/05/23/api-for-the-world/
Hey nice!! Can you think of a way to add current load monitoring to this... It would be cool to be able to create software to mon current load and control lighting and other circuits based on time of day and power consumption??? Any thoughts would be appreciated!
You can build your own current sensor with this instructable: https://www.instructables.com/id/2-Carabiner-split-core-AC-transducer/.
Where can I buy one of these controllers? I cant find out lol
<a href="http://www.usbmicro.com" rel="nofollow">http://www.usbmicro.com</a> makes them<br> <br> <a href="http://www.circuitgizmos.com" rel="nofollow">http://www.circuitgizmos.com</a><br> <a href="http://www.dontronics.com" rel="nofollow">http://www.dontronics.com</a><br> <a href="http://strandcontrol.com" rel="nofollow">http://strandcontrol.com</a><br> ... sells them.
I could see hooking a few house lights up to a system like this, and when I'm on vacation, use RDP to remote into my home server, turn lights on/off to make people think house is occupied, or wire to a garage door opener and remotely open it from anywhere I have internet....so many fun possibilities!!!
Nice instructable, I voted for it and for your other instructable &quot;eMail Light: LEDs show new e-mail&quot;. I finally bought the U451 and am waiting for it to arrive.
I just made the plug version of this project a few days ago after seeing this instructable. It is awesome. I've tried it with some lights in my house as well as a fan a sander and a metal polisher. It's very cool to turn on and off devices using your computer. I will post a few pics of it later.
That is great to hear! I'm glad that this instructable has helped you - I look forward to your pictures.
I am a qualified licensed electrician. The electrical industry uses PLC's. (programmable logic controllers). You can buy a PLC off the shelf. They are dedicated stand alone micro-controllers and far superior for electrical switching applications than using micro-controller boards and writing software. The cost factor is about equal.
BTW my email is Stevens_Carl@hotmail.com
Hey I am semi familiar with PLC's... Connecting them and wiring them. That said I follow the schematic provided by the engineers. Now i can figure out the schematic but I do not know how to spec the hardware. i have been trying for some time to set up a PLC to monitor the load on all forty circuits in my breaker panel and shut some off due to load, power consumption,( both peak, and cumulative,), or by remote. If you would be willing to assist me in the defining what hardware to purchase ,(PLC Lingo is greek to me,), I would greatly appreciate it.
An Ardweeny and a opto isolated triac for less than $15 USD and free software. Is there a PLC available for near that? Besides who wants to program in ladder logic...a language that was obsolete 30 years ago, but refuses to die? ;-)
wat is d relay for 220 volt
look for one with a rating larger than 220V
Great instructable! I really like it. I think I'm going to make something like this when I have the time. Thank you very much for posting it!
I would love to make this project, but where, on my computer, do I enter the program?
You would download RobotBASIC from robotbasic.org and use that for program entry.
How to buy somethng and use it. This is an instructible? If you had to buy relays and a microcontroller it would be an instructible. If I show you how to build something using Mindstorms is that an instructible? NO IT IS NOT. Very very dissapointing. I was hoping to learn how to build something. I was not expecting &quot;go out and BUY a controller and hook it up as per instructions&quot;.
just wondering if it would be at all poss to hook a spare cell ph to your computer so you can turn on lights etc via txt or call when you're on your way home ???
This is an advertisement from Dontronics perhaps?
I thought about doing something like this, and then found that the Insteon and other home automation equipment will end up being similar in price (when it's all said and done for a useable and professional install). Plus many of the home automation equipment will carry the on/off signal over the house wiring (no need for USB) and there are even options to hook them to your router and control from an iPhone or other web device. Very cool though... and handy if you don't want to drop cash on home automation stuff..
Very cool! I have a lot of application for this. Thanks for posting it.
Nicely documented.
A note to people that might want to use this for something like a strobe light or dimmer application, (or even just bothered by the klackity klack you'll get) you will need some type of solid state switch. The simplest method for this is a TRIAC, which is basically a semiconductor device that will start conducting in either direction (important for line AC applications) when a pulse of current is driven into its gate, but will stop conducting at a current zero crossing, you can then gate it on again in the next AC line cycle. This is how some in switch dimmers function. Fully controllable devices would be IGBTs or MOSFETs, and you would need two of those devices per controlled device.
Also, you could achieve higher amperages by using the relay output to feed power to the inputs of a contactor, which then is just a much beefier relay. It's how I control router and vacuum power on my CNC, so the machine can flip them on and off, but they take about 12-15amps, much too high for any relay. A contactor can go up to almost unlimited current ratings (though large ones are mad expensive). You can usually also add 1 or 2 circuits to each contactor, allowing you to power several devices off of one relay, though they all turn on and off at the same time. This one from Tyco can do up to 50A! That's beefy! Just make sure your supply circuit can deliver that before you turn it on, or you'll blow a breaker. http://www.tycoelectronics.com/catalog/pn/en/1-1672274-6?RQPN=PBC-050A3F Anyway, good instructable!
Thanks!<br> <br> Yeah, there is always more than one way to skin a cat, so to speak.<br> <br> The relays can control a few amps of AC (or DC). The other outputs can switch a couple hundred milliamps to ground, which can run LEDs ot other DC devices - including other relays.<br> <br> The &quot;A&quot; port on the U451 can connect to Dallas/Maxim &quot;1-wire&quot; devices (one wire plus ground...) that read temperature. If you are familiar with micro electronics, then this is also a SPI and/or I2C interface to USB. The U401/U421 similar devices can interface LCDs to a PC.<br> <br>
This is a great project. But, back home in my place, we have 220 V AC @ 50Hz. So, can you update the instructable with the required mods for a 220V supply as well? Cheers.
No difference - the relay is rated for 220V. Different wire colors and plug types, but otherwise pretty much the same for 220. Current needs to be limited (a 100W bulb is probably the max) as per the specs on the USBmicro web site.
Would it be possible to make it Wireless instead of USB. Cheers
I forgot, but if you'd like to see datasheets check out the <a href="http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail?name=XB24-AWI-001-ND" rel="nofollow">digikey page</a>.&nbsp; The top datasheet gives a good comparison of the various modules.<br>
You could always use an Arduino for that. Last I heard, there's a module by AdaFruit that can handle point-to-point/-multipoint over a 300' radius (1 mile if you buy the PRO module). However, it isn't 802.11 so you have to have one for a connector to your computer. http://www.ladyada.net/make/xbee/arduino.html
Its Awesome. I was also looking for device control using USB and got the same USB micro site. 5*
Thanks! The relay board is the core of a lot of project ideas that I have. Not that all of them will become instructables, but some perhaps.
Cool idea

About This Instructable




More by indestructable:Storing 72 Bras Servo Tester with Graphic LCD Room Temperature Gauge with a servo 
Add instructable to: