Hardware Reference
In-Depth Information
8.
One last setting needs to be set before writing the options to the module, and it's specific
to this example: the baud rate. There is a single number to identify the baud rate; the
default is 3 for 9600 baud. Change this setting to 6 for a baud rate of 57600. When the options
are highlighted in a yellow-green, they have been changed but not written to the module.
Uncheck the “Always update firmware” box and click the Write button in the Modem
Parameters and Firmware box, which will confirm and update the settings to the module.
9.
Once the router is configured, unplug the adapter from the computer and remove the
module. Plug in the module to be used as the coordinator and repeat the steps used to
configure the router, but select ZIGBEE COORDINATOR AT for the firmware options and
set the destination address as the router's serial number. Use the same baud and pan ID as
for the router module.
Arduino Setup
The modules are now ready for communications, and it is time to set up the rest of the example.
1.
Leave the coordinator plugged into the USB adapter and plug the router into the serial
adapter.
2.
Prepare an Arduino board by uploading the standard Firmata sketch as described in
Chapter 3. Make sure that the Arduino can communicate to the Firmata test application
before plunging the router into the Arduino, as shown in Figure 5-1 .
Figure 5-1. Arduino/XBee module configuration
 
Search WWH ::




Custom Search