Building a home automation mesh network

[Ian Harris] designed a bunch of home automation for his parents using X10 hardware. He was a bit disappointed by the failure rate of the modules and the overall performance of the system so he set out to replace it with his own hardware. Lucky for use he’s documented the journey in a four-part series about mesh networks.

The hardware seen above is his test rig. He’s using a couple of Sparkfun breakout boards to develop for nrf2401a RF transceiver chips. These could be used as slave modules, with a central command device, but due to the home’s architecture wireless signals don’t propagate well from one end of the house to the other. The solution is to build a mesh network that will allow each module to act as a network node, receiving and passing on messages until they arrive at the target device. He’s trying to do this with cheap hardware, selecting the PIC 16F88 which boasts 7 KB or program memory and 368 bytes of ram. In the end it doesn’t take much code to get this running, it’s the concepts that take some time and research before you’ll be comfortable working with them.

[Thanks Oakkar7]

Comments

  1. echodelta says:

    Failure as in small bricks or failure as in ignored commands? Either way the X10 system is a joke.
    Good luck and hacking.

  2. jukus says:

    its a joke? x10 pioneered the way to 500Mbps powerline nodes, that’s a mean feat with the noise off the mains

  3. brad says:

    I only read HaD to see if I can spot the grammar issues.

  4. Stevie says:

    Brad, you certainly don’t have to look far.

  5. Dzhus says:

    Many people seem to be interested in that sort of things (in-house automation (possibly mesh) networks based on cheap transcievers, since ZigBee are quite expensive). Also see JeeNode + JeeMon.

  6. Jamie says:

    Why is everyone so worried about a bit of spelling or gramma mistakes. Let’s all just enjoy the post and what it’s about.

  7. This is excellent, but I would point out Insteon for people who don’t want to DIY. Insteon is a commercial system with reasonably priced modules and it’s fast, bi-directional, wireless + powerline and mesh network. I currently have 23 modules thoughout my house; mostly in wall switches and it works great.

    http://www.insteon.net/

    Disclosure: I don’t work for or represent Insteon in any way. I’m just a happy customer.

  8. Michael says:

    I reckon some form of mesh network combined with a 240V relay and some form of power monitoring could be used to do some clever energy-saving things. Maybe.

  9. jukus says:

    @jason what’s the fail rate of your modules?

  10. jukus says:

  11. Paul says:

    X10 signals are somewhat unreliable but they do make repeaters for them. They also make in line filters to place on devices that cause a lot of electrical noise. All of the UPS units at my parents house have filters on them as well as some other devices. They notice very few instances where the signals don’t reach their intended targets. The other thing to help make X10 more reliable is a phase bridge. This will let the signals propagate from one phase of the power in your house to the other.

    The main problem I see with x10 is that you can’t tell the modules to go to a direct brightness level. You also can’t query them for their current brightness.

    X10 modules also used to fail a lot. I get the Leviton modules now and they seem pretty reliable.

    Insteon is a much more reliable product because of the way it handles the transmission of signals. You can tell them what brightness level to go to in discrete levels. And they don’t fail (as in brick) often.

    Insteon’s serial commands are a little more daunting to get working. X10’s are much easier.

    My personal favorite is Crestron, though. The only problem is that it’s expensive and requires you to be a dealer (or work for one) to get the equipment and software.

    X10 however, is a great system for guys like us because it’s cheap and it works when you put a little effort into it (repeaters, bridges, and signal test meters).

  12. @jukus I have not had one fail yet. My oldest module is about 2 years old, and I’d say about 50% of them are around that age, with the rest getting progressively newer.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 96,545 other followers