-
Notifications
You must be signed in to change notification settings - Fork 57
Arduino port XBee Series 1 & Series 2
The Arduino library used for integration with wiselib will be in the lite branch
git clone git://github.com/ibr-alg/Arduino.git
cd Arduino
git checkout lite
The XBee library has been merged in the branch already.
- Hardware requirements
XBee Series 1 modules or/and XBee Series 2 modules
- Configuration
The XBee radios need to be configured before they can be tested. For testing purposes, one can be configured as the co-ordinator and the other as the end device.
This is the XBee Configuration guide for configuring both Series 1 & 2 devices. The X-CTU application mentioned in the guide is a windows only application. To run it on linux, use this guide.
##Testing
The example apps for Series 1 module testing can be found in wiselib.testing/apps/arduino_apps/
within the folders
xbee_radio_app
for Tx device and
xbee_radio_receive_app
for Rx device
Similarly for Series 2 module, xbeeS2_radio_app
and xbeeS2_radio_receive_app
(For the Series 2 radio, the destination address(SH
& SL
) can be changed within the example_app with variables MSB
and LSB
)
Update the paths in the Makefile and make the necessary changes to use the PORT
which could be /dev/ttyUSB#
or /dev/ttyACM#
based on your machine.
Make sure that while running make
the Arduino is connected to the right PORT
and that the switch on the Wireless shield is in USB
position. While running the program, the switch should be in Micro
position.