Double-Check Your XBee Network
Heads up!
Make sure that the XBees are configured correctly to communicate with each other in
the network.
Before continuing with this example, you'll need to make sure your XBee's are configured correctly -
- they need to be on the
same network
and have compatible
destination and MY addresses
. By
default, XBees will all be compatibly configured, but we recommend setting up unique network ID's
and addresses. Check out the
Exploring XBees and XCTU
March 12, 2015
How to set up an XBee using your computer, the X-CTU software, and an XBee Explorer interface
board.
Favorited Favorite
13
and two compatibly-configured XBees -- one
connected to your computer via a
) and another plugged
into the Shield/Arduino.
The Arduino Sketch
Let's start simple. In this section, we'll upload a sketch which passes data between your serial
monitor and the XBe using the serial UART. This sketch can be use to create a "portal of
communication" between your Arduino's serial monitor, and another XBee (connected to a
computer via a USB Explorer). The first uses software serial defined pins on an Arduino. The
second example uses the native hardware serial defined pins.
Software Serial Passthrough
Here's the sketch we'll use. It makes use of the
, which is included with all of
the recent Arduino releases. Before uploading this sketch,
make sure the switch on the Shield is
in the "DLINE" position
!
Page 11 of 24