|
©1994-2007 Kevin Boone | |||||||||||||||||||||||
|
*** I have changed my e-mail address: please see the contact page for details *** Home > DIY and home improvement Using X10 for home automation Last modified: Thu Jul 8 07:19:38 2004 This article describes the `X10' power-line control system, how it can be used, and some of the devices that are available. It is written specifically for a UK readership, and may not be applicable elsewhere.
What is X10, and what can you do with it?X10 is a system for controlling mains appliances and lighting using signals carried over mains power cables. X10 modules are available that replace ordinary lightswitches, mains outlets, and pendant lamp holders. As well as being controlled locally as normal, appliances can also be controlled remotely using keypads, radio and infra-red remote controls, timers, and computer interfaces. X10 can be used for many applications; here are a few examples.
X10 principlesX10 works by carrying control signals over the domestic mains power wiring. Because most houses are wired so that all power and lighting circuits originate from the same point, a control device in one part of the house can control appliances in another part. This means that controllers do not have to be wired directly to appliances.Control signals can be generated by various sources, including plug-in controllers, radio and infra-red receivers, and computer interfaces. These signals are detected by appliance and lamp controllers, among other things. The X10 protocol also provides for a controller to determine the status (on or off) of an appliance, although many appliance modules don't support this (see below). As all controllers and appliances are connected to the same mains wiring system, how does the X10 system determine which device a particular control signal should be directed to? Embedded in each X10 signal are a `house code' and a `unit code'. Both of these can take values between 1 and 16. Each appliance or lamp is set to respond to a single house code/unit code combination. The house code was originally intended to allow adjacent houses to use X10 without interfering with each other; this is necessary in theory because houses in the same neighbourhood may share a connection to the power distribution system, so that control signals can `bleed' from one to another. In the UK, where uptake of X10 has not been widespread, the house code and unit code can both be used to select which device to control. This means that a total of 256 devices can be controlled independently in a given property. Where to get X10A number of manufacturers produce X10 devices, including Leviton and IBM, but they generally only supply to distributors, not to the public. In the USA X10 devices can be purchased from high-street shops, but you are unlikely to find such availability in the UK; you may well have to resort to mail-order suppliers. A good mail-order source is Laser Business Systems in Barnet, London. Maplin carry a small range but, although Maplin do have high-street outlets they are unlikely to carry X10 devices. In the text below I have provided the Laser product codes for convenience; these may not always be the manufacturer's own codes.Sample X10 scenariosHere are a few situations that might suit the use of X10 devices, based on my own experience.Outbuilding lightsIf you have a detached garage or shed, or other outbuildings, it can be very convenient to be able to switch the lights on and off from inside the main building as well as from the outbuilding. Normally this would require two-way switching, with a three-core cable run from the house to the outbuilding. This would be in addition to any other cabling you may have installed already. Suppose you have a detached garage about 60 feet from your house, as I do. You have already run a heavy armoured cable from the house to the garage, and don't want to run any more. With an X10 lamp module in the garage you can control the garage lighting from anywhere; no extra cabling is required. In addition, you can install multiple switches in the garage if it has separate vehicle and people doors.Coupling room lightsSuppose you merged two rooms in a house to make a single large room. For example, in my area houses have separaate living rooms and dining rooms; commonly people knock down the dividing wall to make one large room. But you now have a long room with two doors, and separaate lightswitches. What you really want is for both switches to operate both lights. No problem: just replace the lightswitches with X10 lightswitch modules, set to the same unit code. Either lightswitch will then control both lights.Convenience switchingWhen I moved into my house the lights for the attic were controlled by a small switch in the attic itself. To get any light in the attic I had to get into it and then wander around in total darkness looking for the switch. Eventually I rewired it so that the switch was in the room below. However, it would have been much easier to install an X10 pendant lamp module on the attic light, and then it could have been controlled from anywhere. Similar logic applies to other inaccessible areas.X10 devicesThis section describes some of the more popular X10 devices that are available in the UK.Appliance modulesAppliance modules are designed to switch `heavy-duty' loads like fans, pumps and motors. The simplest type (e.g.,AM12U) plugs into a three-pin
electrical outlet, and provides
its own three-pin outlet for the appliance to be controlled. There may be a manual switch on
the housing; there will certainly be provision to select the unit code and house code that
the device responds to. The advantage of this kind of appliance module is that it can
be used with no wiring changes at all; the module just plugs in.
Alternatively, you can replace a standard three-pin double or single mains outlet with an X10 version. It will work the same in all particulars apart from allowing control by X10 codes as well as by a local switch. It will also be slightly bigger than a standard double socket. For a permanent installation this may be better than a plug-in module, because it can't be removed by accident and looks less unsightly. For a new installation, or a significant rewire, you may prefer to use X10 appliance modules that plug directly into a consumer unit (fuse box), e.g., AD10; this, however, is a job for the expert. It is also possible
to get (dimmable) lamp modules for consumer unit mounting (e.g., LD10).
Note that some appliance modules allow a suitably-equipped controller to determine their on/off status. This feature may be very important, because X10 has no built-in error checking; the status report feature may be your only way to determine whether the device really switched or not. This issue is discussed in more detail later. Although heavy-duty heating loads (e.g., immersion heaters) can be switched on and off using any appliance controller with a suitable current rating, specific X10 devices are available for varying the output of these heaters (e.g., TS194). They usually operate by switching the mains supply on and off for extended periods of time, and are thus unsuitable for lamps and motors. Pendant lamp modulesA pendant lamp module sits between a pendant (ceiling-mounted) lamp holder and the lightbulb. It responds to X10 codes and switches the lightbulb on or off. Versions are available for Edison-screw (SL575) and bayonet lightbulbs. They can typically switch up to
250 watts. Note that there are a number of important limitations to these devices,
resulting from the fact that the module does not have access to a mains neutral connection;
see the `caveats' section below. Some lamp modules can dim as well as switch.
Lightswitch modulesA lightswitch module (e.g.,LW10U) replaces a
standard wall-mounted lightswitch. It contains
a lamp switching module or an appliance module, and a single-channel controller. The controller
normally generates control codes with the same unit code and house code as the
lamp module, so pressing the switch operates the lamp exactly as a standard
lightswitch. However, unlike a standard lightswitch the X10 approach allows
more flexibility.
Be aware that lightswitch modules are available in two wiring varieties. The `live only' version (e.g., LW10U) is a drop-in replacement for a standard lightswitch,
and needs no neutral connection. These version is intended for filament lamps (not
fluourescents) and will be able to dim as well as switch.
The `live-and-neutral' variety (e.g., AW10U) needs a neutral connection;
this may be suitable for new
installations, but is unlikely to be compatible with existing wiring.
The live-and-neutral version, because it is
intended for fluorescent lights, will not be able to dim.
Because of its increased complexity, a lightswitch module is significantly bigger (front to back) than an ordinary lightswitch, and thus stands prouder from the wall. This won't be to everyone's taste. As an alternative, a battery-operated remote control transmitter is available that fits into a lightswitch mounting; in conjunction with a pendant lamp module this offers the same features as the lightswitch module, but is nicer to look at. It will, however, need occasional battery changes. Motorized devicesA number of motorized appliances are available with built-in X10 support. The most popular (in the US at least) is the `Swish' curtain puller. This allows curtains to be opened and closed by X10 commands. Although an able-bodied person would have to be very lazy to find this appealing as way of opening and closing curtains, under timer control it can provide additional household security by giving an illusion of occupancy when the house is empty. Similar systems are available for windows blinds.Sirens, locks and other security devicesA number of X10-controlled sirens and strobe lights is available (e.g.,PH508); these are switched on and off using standard X10 control
codes, just like mains appliances. Similarly, X10-compatible locks allow a door
to be locked and unlocked under X10 control. It is also possible to be obtain
passive infra-red (motion) detectors that issue control codes when movement is
detected in or around a house (e.g., MS13E), and X10 security
floodlights that are controlled in the same way as an ordinary lamp.
Relay modulesIf you have electronic devices that cannot adequately be controller by a standard appliance or lamp module, you can use a relay module (e.g.,UM506).
This has a standard low-voltage relay which is controlled by X10 signals. Such a module
can be used, for example, to switch a hi-fi amplifier onto different sets of loudspeakers.
Environment sensorsAs well as motion detectors, there are X10 controllers that respond to other environmental changes like temperature and light level (e.g.,SD533).
Control keypadsThere are many plug-in control keypads, ranging from single-channel devices that can control only one device (or multiple devices on the same unit code), to enormous desktop multi-channel units. The largest that I have seen (SC502) has
sixteen on/off switches. Smaller devices usually have slider or rotary
controls to allow a smaller number of switches to control a large number of
devices. The popular `mini-controller' (MC640) is about the size
of a wall-mounted light switch (although slightly thicker) and has four on/off
switches, bright/dim, all on, and all off. A slider allows the on-off switches
to be allocated to either unit codes 1-4 or 5-8. Thus this controller can
manage eight appliances or lamps.
Plug-in controllers normally have a three-pin plug and are intended to be plugged into a standard mains outlet. For a permanent installation you can connect the device to a fused spur unit, but note that these devices always require a neutral. In other words, you probably won't be able to fit one in place of a standard lightswitch, because the connections won't include a neutral. There are controllers that are designed to fit into a lightswitch mounting (e.g., LV6400), but these won't be useful in most houses because of the lack of a neutral connection in lightswitch wiring. Remote control transmitters and receiversYou can overcome the `neutral problem', and get increased flexibility, with wireless devices. Being wireless, they need a transmitter and a receiver; additionally the wire-free part (the transmitter) will need battery power. There are two types of receiver: infra-red (e.g.,IR543) and
radio (e.g., TM12E); infra-red devices offer better
battery life in the transmitter, but are otherwise not very useful (in
my experience) as they need line-of-sight between the transmitter and the
receiver. With a radio system, the receiver can be mounted anywhere in the
house that is within range, and need not be visible (I have mine behind
a cupboard). The range of most of these devices is such that
the transmitter will work anywhere in an ordinary-sized house, and
at least part of the grounds as well.
Transmitters are available in a number of flavours.
Telephone-based receiversThese devices (e.g, LV6325) convert touch-tone telephone keypresses into X10 signals. This allows lamps and appliances and lamps to be switched on and off by telephoning the premises and pressing the appropriate buttons. Unless you have multiple telephone lines, such a device will have to be set up quite carefully to avoid conflict with telephone answering machines and fax machines.Computerized X10 controllersFor sophisticated timing and control requirements, you can use a computerized controller (e.g..,CM12U, MT10U). These devices have an on-board
microcontroller and real-time clock,
allowing appliances and lamps to be switched under the control of a timing specification.
The timing details are normally downloaded from a computer (e.g, a PC) through
an RS232 cable (CM12U) or set up through front-panel buttons (MT10U);
once set up the on-board memory allows the unit to operate without further intervention.
Sophisticated units are normally supplied with software, but it is invariably for the ubiquitous PC-Windows platform. Linux, Unix, and Mac users will have to look elsewhere. Happily, the communications protocols are usually straightforward, so a competent programmer should have no difficulties writing software to control the device. Computer-controlled X10 transceiversFor the ultimate in flexibility, you can use a computer-controlled X10 controller or transceiver. Unlike computerized controllers likeCM12U, these devices
have no on-board logic; they simply allow a computer to issue and -- in some
cases -- receive X10 codes over the power line. Send-only devices include
the USA model PL513 (very popular in the USA but not, I believe,
available in the UK). Two-way (transceiver) devices include the TW723, which is
available with a range of computer interfaces. Send-only devices are slightly
cheaper, but for my money the increased versatility of a transceiver unit is
worth the extra. A transceiver will allow the computer to respond to signals
generated by key-presses, and to monitor the status of the appliance modules.
These units interface to
the computer in a variety of ways. For real enthusiasts there are versions
that require TTL-level logic signals (these can often be controlled by a
PC's printer port, but the software is horrendous), or support RS232.
For example, TW723 can be attached to a computer's
serial port via a logic converter called TWSERIAL. Interestingly,
this adapter costs more than the X10 controller itself, but makes programming
much easier (although still not trivial). A Linux driver for the TW723/TWSERIAL
is available from this site (click here).
A number of software packages are commercially available that allow the
exploitation of the more sophisticated features of X10 transceivers. Again,
these mostly run under MS-DOS or Windows. With the appropriate drivers it is
not very difficult to write software to use an X10 transceiver, and there
is a huge amount on the World-Wide Web.
CaveatsAnyone planning to use X10 devices should be aware of a few issues.
|
|
||||||||||||||||||||||