Light Switch XBee Example

 

Light Switch XBee Light Switch XBee opened

The Light Switch XBee is a wireless wall switch that can control lamps, fans, motors or your homemade robot. This project serves as a model for almost any digital input device you’d like to build. You can substitute any number of digital inputs, like a pressure mat, magnetic contacts or even a soft switch made of conductive fabric in its place. If it goes on and off, now your Series 1 802.15.4 XBee can make it wireless!

The full instructions include parts needed, configuration, soldering instructions and assembly. I’ve also added a Simple XBee Receiver so you can test your switch, and an explanation how to modify the more robust Actuator Example from my book to control A/C mains powered appliances with the wireless Light Switch.

Using the example as a guide, you can invent your own switch using any two pieces of metal or conductive material. Maybe you want shoes that turn on your toaster. Or a cat door that plays “The Cat Came Back” each time Fluffy returns from an outing. Even complex sensor ideas can often be boiled down to a simple switch solution. Get started here!

 

 

 

 

 

9 comments on “Light Switch XBee Example
  1. elie says:

    hello Rob faludi ,

    I am fan of your work , I recently read your book “wireless sensors networks” .

    I am using xbees series 2 with arduino , to set up an EMO switch , and the light switch xbee example is very useful ,can you provide a code example if you may .

    thank for any assistance

    • faludi says:

      The light switch uses Series 1, which are able to mirror pins without using any code. For the Series 2 I’d start with the doorbell example in my book, which pairs a switch to an output. Also the Romantic Lighting Sensor if you want to use the XBee’s I/O features directly. That passes an analog value but very straightforward to change that to digital.

  2. Ignacio says:

    Hi, im using your book to create a point to point simple conection using xbee series 1, i already did the “better doorbell” example adapting the neccesary things but i can’t get the “romantic lighting sensor” work with the series 1, is there any suggestion that you can give to me.

    Sorry for my bad english, i’m a Chilean Student.

  3. Brandon says:

    Rob Faludi,

    I used this example with a magnetic switch instead of manual light switch. However the LED stays HIGH after I set the switch. It will go LOW when I bring the magnet back, but switches to HIGH quickly and stays HIGH. Do you have any thoughts? Any information will be greatly appreciated.

    Best,

    Brandon

  4. greg says:

    hi, how long works the xbee series1 with 2batterys ? without a sleep mode ?
    i would like to build a xbee light switch but the main problem is that the on and off stat of the the switch should be seen all the time…so i can.t do that with a sleep mode cause the wifi works only when i awake it with a button ?

    • faludi says:

      If you cannot use sleep mode I would recommend mains power. But remember that sleeping can happen for milliseconds at a time, which will save power without serious impact on latency. Both 802.15.4 and ZigBee are designed for this type of low power operation.

1 Pings/Trackbacks for "Light Switch XBee Example"
  1. […] The full instructions include parts needed, configuration, soldering instructions and assembly. I’ve also added a Simple XBee Receiver instruction set so you can test your switch, and an explanation of how to modify the more robust Actuator Example from my book to control A/C mains powered appliances with the wireless Light Switch. Anything can be a switch. Need shoes that turn on your toaster? Or a cat door that plays “The Cat Came Back” each time Fluffy returns from an outing? Get started with the Light Switch XBee example! […]

Leave a Reply

Your email address will not be published. Required fields are marked *

*