Instructables

Control lights in your house with your computer

Featured
Have you ever wanted to control the lights in your house from your computer? It's actually fairly affordable to do so. You can even control sprinkler systems, automatic window blinds, motorized projection screens, etc. You need two pieces of hardware to get started. A controller, which connects to your computer; and a dimmer switch. I'm using SmartHome Insteon products in this example.
 
Remove these adsRemove these ads by Signing Up

Step 2: Install/setup controller

You need a controller which will send commands over the power lines to your switch. I'm using the Insteon PowerLinc Controller with a Serial connection. This works with Windows and Mac. Windows has freeware easily found on Google.

Setup was easy. I plugged it into the wall outlet, plugged the serial connector to my PC, and that's it.

You need to download and install SDM SmartHome Device Manager. Now, once you've installed this, you can start sending commands to the PLC (PowerLinc Controller).

Since I had a MacBook in another room, I installed SDM Socket Server, which is freeware for Windows. This let me connect over TCP/IP from upstairs and send messages downstairs. Note: you need to edit a registry setting to make this software work with the Serial (COM1) port. HKEY_USERS\.DEFAULT\Software\Smarthome\SmarthomeDeviceManager
The port needed to be changed from USB4 to COM1.

Here are some various programs you might also find useful.
jas5510 months ago
Thanks for your outstanding memorial encounter and I also had such an experience.
Remote control switch for light and fan
sweir2 years ago
can i get it free
Linux users may want to check this out:
http://www.linuxha.com/common/iplcd/
Is the PLC you are using programmable with Rockwell Software Logic 2000?
jaxxster15 years ago
can i get those for free?
halsir (author)  jaxxster15 years ago
Get what for free?
the parts?
HAHAHA! get a PLC for free? Braski if it was possible to get one of those mothers for free my entire house would be marquee lighting lol.
Bladtman2424 years ago
out of curiosity, how did you install the socket server on mac? in a VM or? oh and, is there any chance you wil release the code for your python script?:) Great project btw.
zombiefire4 years ago
so am i
zeaps4 years ago
 So let's say my dad and I decide to do this, could we both control the same system from both of our computers? Possibly at the same time?
halsir (author)  zeaps4 years ago
 You can control from multiple locations/controllers. As long as the commands are sent approximately one second apart it should work as far as I know. The switch devices are just sitting on the line waiting for commands. They don't care where the commands come from. I haven't messed with this in a while so I am not sure if they have made any improvements recently.
kcanek4 years ago
how much money do i need to complite it?
halsir (author)  kcanek4 years ago
 I think it will run around $90 to $200 depending on how many switches you want.
if you go with the infared controll idea its possible to redo your house to work of a Wii remmote....hmm...sounds like a good idea. im guessiig that the main problem would be to make the remote stilll compatable with the Wii. it be weird if your playing and suddendly the power cuts off
A better idea might be to use the bluetooth connection of a Wiimote with a pc, that way you avoid issues with line of sight the comes with using infrared.  The only problem I see with this is that if you wanted to switch back and forth between using the Wiimote with your pc and the Wii you would have to manually sync it each time with either system.
andrew1015 years ago
im off to wire my house XDXD
neardood5 years ago
I made an electronics kit that runs of 12V and plugs into the printer port on a computer. It has 8 heavy duty relay switches on it. Using some slightly dodgy but none the less sound software I can control the relays to turn on and off. I am still thinking up practical applications for it. My main/gaming PC's motherboard does not have a printer port so I can't ue it with that but i do have a dodgy laptop that i can use. Anyone got any ideas?
zer0_5 years ago
would be cooler with a arduino and a Ethernet Shield
THAT'S WHAT I WAS THINKING!!! lol but since i don't even have an arduino yet it'll probably take me a couple months to get it going haha
dagenius5 years ago
nice--I always wanted to 'transistorize' my house, and now, thanks to this instructable, I may be able to.
I have to laugh when someone points out their dust balls... So far so good... I am liking what I am seeing...
Nice Instructable! So if I were to do this, all that I need is the switch and controller?
halsir (author)  plane phanatic5 years ago
Yes, pretty much. That's all you need for the basic setup. I wish I had the USB controller now because I don't have a PC with a serial port.
micromuffin5 years ago
lol
inkwash5 years ago
maybe you should try a more DIY approach...i have this for you guys...
maxpower496 years ago
celling fan of dooooooooooommmmm this is a great project if only it was a little cheaper
hey checkout the new $10 smart home
itisnot_me6 years ago
this is cool and you know something like
this
would be cool to add it as well. i would love to control everything via voice
lol, u could do that if u had this and Vista's Speech Recognition software, xD
PureBreed6 years ago
So, can i have a list of parts and wat there average prices are?
halsir (author)  PureBreed6 years ago
SmartHome light control products

Here is a link to their products. You could try a starter kit, or just try out the PLC controller + dimmer by itself to see if you like it.
heres wat im looking for, the cheapest thing i can find that lets me control a power outlet with my PC. Do they have that sort of thing? im looking at there inventory, and i see things that look like they could be it, but i dont know wat all this stuff means, like X10, or ASCII or w/e, so i dont know if they are wat im looking for or not. if u need to know wat kind of computer i have or w/e, just ask.
me and my dad are thinking about trying this, but i want to get a good estimate on how much we're going to spend.
That light is so cool!! lol
nf_x206 years ago
halsir, i really like the idea, but i was wondering if you could explain it a bit better, maybe a few more pictures please thank you... im really looking forward to having this thing in my house one more question, so the computer controls the light switches by running "messages" through the electrical wiring already in your house?
halsir (author)  nf_x206 years ago
I can try to explain it better. If you have any specific questions feel free to message me. Basically, you need a PC with the free software installed to program the PLC (PLC = programmable unit that plugs in your wall to control the switches in the house). Then you can schedule events on the PLC from the software program. Or, you can do what I did in the video and host a "socket server" on the computer and then connect wirelessly from your laptop if you wanted to do that.
Can you add more then one and control each one from the same computer.
And can you upload the Python script? =)
halsir (author)  Namingishard6 years ago
yeah, you can have as many as you want around your house and you could control all of them from the same computer. i can upload the python script...
statiktv7 years ago
thats definitely awesome. a little on the pricey side for just one switch, if it was more affordable, i'd be all over it. im a cheapass, heh.
theRIAA7 years ago
i went the $50 IR way, i can control it with my universal remote
i would love to know more and how to do this cheaper than you did, i hate wasting energy to get out of bed to turn out the light.
receivers

winlirc
and maybe a bit of coding will help with cheap infrared control
andrew.mac7 years ago
mac??
saites20017 years ago
Very cool instructable. I've been looking for a way to do this, and I think it's very neat. Can you control more than one switch though? You said that it had a hex address, so I would guess so. Some info on the script you wrote would be cool, and I think your video got a little off topic a few times; other than that, very good.
halsir (author)  saites20017 years ago
Yeah, you can have as many of these switches as you want. So, if your whole house had these switches you could turn every light on and off from your computer. Sorry about the video being a little off topic. It wasn't originally for putting on instructables. I might redo the video and explain the script and how to send commands a little more.