If you have Digi’s Programmable XBee SDK, you’ll already have an example of how this set up works.
Here we have a DIO with the original XBee:
Here’s the DIO with the programmable XBee:
This example increases the capacities of the DIO, with features like:
- Digital Inputs
- Open-Collector outputs
- Pulse counters
- Double contact pulse counters
- Pulse-Width Modulated output
- Simple frames operation
Once installed, open CodeWarrior, go to File -> New -> Programmable XBee Sample Project. In the new window that pops up, select the sample “Programmable DIO Example” found under the “Applications -> ZigBee” item.
Now, you should build and flash the “Programmable DIO Example” demo application into the Programmable XBee.
You will need one X-Stick or XBee gateway running as a coordinator to send the AT frames (see readMe.txt in the example for more information).
You will also need a board to see the inputs and the outputs, here’s a schematic of this board:
Then, you will send a frame with XCTU, to configurate the IO4 like OUTPUT, and another to set the output to 0 (outputs are inverted).
Configurate the IO4 Like output Set 0 to the output
And, finally, here’s the result:
Enjoy! Questions or comments? Let us know!