Using X10 Hardware: Computer-Controlled Home Automation
- Posted: Oct 31, 2006 at 3:33 PM
- 11,613 Views
- 5 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
|This article showcases usage of X10 technology to interact with hardware devices. It is first article in Computer Controller Home Automation series.|
Time Required: 1-3 hours
What is X10
X10 is a home automation technology that anyone can use to do some pretty amazing things:
X10 is Programmable
You can also combine X10 technologies with your computer and custom applications written with Microsoft Visual Basic Express or Microsoft Visual C# Express. With logic provided by your custom application, you can make some stunning upgrades to your home:
How X10 Works
X10 works by sending communication signals through your home's power lines, much like the way computers communicate across a network. X10 is a very simple network, though, and signals consist mostly of messages like, “Device A1: turn on” or “Device N5: turn off.” X10 is also capable of a few other commands, including dimming lights, or controlling all the lights in your house.
When you connect a light switch, lamp module, or other X10 device, you have to assign it a house code (A-P) and unit code (1-16). Typically, you will choose a single house code for all of the X10 devices in your house. While the default is A, it's a good idea to change the default, because X10 signals sometimes cross from one house to the next—and you don't want your neighbor to accidentally turn your lights off.
If you assign X10 devices the same house and unit codes, all the devices will respond simultaneously to a signal. For example, I have two lamps in my bedroom that I always want to turn on or off at the same time. So, I assigned them both the N1 house and unit code. When I push a switch to turn N1 on or off, they both respond.
There's a wireless version of X10 that allows you to send X10 signals from wireless motion detectors, keychain remotes, and wireless wall switches. As shown in Figure 1, an X10 wireless transceiver receives wireless X10 signals and sends them across your power lines so that wired X10 devices can respond to the commands.
Figure 1: Wireless X10 devices require a wireless transceiver.
The video shows me tackling two very common problems in my 1950's era home. First, in my bedroom (Figure 2), I use two lamps to light the room. It's annoying to have to walk across the room in the dark to turn them on, and then to reach across the bed to turn them off at night. I fixed this in about ten minutes with about $100 in X10 hardware. Now, I can turn both lights on and off from a wall switch, or control them from my bedside table. As an added bonus, I can now dim the lights.
Figure 2: In the first project, I add remote switches to control two bedside lamps.
The second problem is in my office. I have a light switch, but the light it controls is too dim. So, when I go into my office, I flip the light switch on, and then walk across my office to turn on a floor lamp. With another $100 investment in X10 hardware and about 30 minutes time, I replaced my wall switch with an X10 switch capable of controlling both the built-in light and my floor lamp, as shown in Figure 3. Now, with a single flick, I can control all the lights in my office.
Figure 3: In the second project, I replace an existing light switch so it can control an additional lamp.
This video provides an important background in X10 technology and shows you how easy it is to hook everything up. I'm really just getting started, though, because in future videos I'll connect the whole X10 system to my computer. I've got several projects in mind, and I might even use that new wall switch in my office to have my computer start automatically downloading my e-mail for me in the morning, and backing up my computer in the evening.