Electronic – arduino – Xbee to act as wireless i/o extension

arduinosensorwirelessxbee

I want to have an arduino with an xbee (call it xbee1) connected to it and another wireless xbee (call it xbee2) communicating with xbee1. Then I would have DIO1 on xbee2 acting as a digital input and DIO1 on xbee1 acting as an output outputting exactly the input on xbee2's DIO1. Then to be able to do this with more xbees (eg xbee3)

schematic

simulate this circuit – Schematic created using CircuitLab

Is this a possibility? Also if so does it matter what series of xbee I use?
Could you also please explain how to do this.
I have spent a lot of time googling but I cannot find anything. Thanks in advance.

Best Answer

Yes, it's possible.

Each xbee has a set destination address. In xbee2 and xbee3 you would set the destination address to that of xbee1.

Yes it matters what series you use. For this, use xbee series 1 because series 2 xbees do not support automatic DIO line passing. You can use series 2 but they would have to operate in API mode, and instead of the xbee2 and 3 automatically transmitting when they see a change on a DIO line, arduino/xbee1 would have to poll xbee2/3 to determine the DIO line status.