Hardware Reference
In-Depth Information
2. Type +++ and wait; do not press Enter. The terminal will reply with an
OK ” indicating that the XBee has entered programming mode.
3. Type ATID1234 and press Enter. This sets the PAN ID to 1234.
4. Type ATMY1000 and press Enter. This sets the source address to 1000.
5. Type ATDL1001 and press Enter. This sets the destination address to 1001.
6. Type ATWR and press Enter. This commits the settings that you just entered
to nonvolatile memory. Nonvolatile memory is not deleted when power
is removed from the XBee.
7. If you want, you can confirm that the values have been written by enter-
ing ATID , ATMY , or ATDL without numbers afterward and pressing Enter.
This prints the current values to the display.
NOTE Ifatanytimeyouareexitedfromtheprogrammingmode,youcanreen-
teritbytyping +++ andpickingupwhereyouleftoff.
After completing all the preceding steps, carefully replace the XBee with
your other module. Then, run through the same steps, but swap the values for
ATMY and ATDL so that the XBees are set up to talk to each other.
Your XBees are now configured, and you're ready to have them talk to each
other! If you're having trouble with the configuration, watch the video mentioned
at the beginning of this chapter; it walks through the configuration steps visually.
TalkingwithYourComputerWirelessly
Now that you know how to configure your XBees, it's time to start using them.
First, you use them to replace the USB cable between your computer and your
Arduino. You cannot download programs to your Arduino via an XBee connec-
tion without hardware modifications, so you still upload and test your programs
via a USB connection. Then, you untether and replace the USB connection with
a wireless XBee connection.
PoweringYourRemoteArduino
Your remote Arduino will not be connected to your computer via USB, so you
need to power it somehow. You have a few options for doing this, as described
in this section.
 
Search WWH ::




Custom Search