Using XBee-PRO and Arduino with xbee-arduino library

An easy way to monitor remotely a sensor using XBee and Arduino is setting the API mode:

(in X-CTU configuration)

Serial Interfacing -> AP - API Enable = "2 - API MODE WITH ESCAPES"

Now any enabled digital or analog input will have its state transmitted from board A to board B. Unfortunately some XBees (i.e. XBee-PRO 900HP) doesn’t support (at least currently) Digital I/O Line Passing feature, then you need to write an Arduino program to interpret the API protocol.

Fortunately it is easy to do using the xbee-arduino project. You can find an example here:

http://boriskourt.com/2014/03/24/getting-what-you-need-out-of-the-xbee-api-library-for-arduino/

A good book about this subject is the “Beginning Sensor Networks with Arduino and Raspberry Pi” by Charles Bell. There you will find some sample application using xbee-arduino library as well.

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