Download Print this page

Parallax 32440 Manual page 3

Xbee wireless pack kickstart

Advertisement

Program KickStarts
The example programs send data that you type on your PC keyboard from a local XBee
transceiver to a remote transceiver. Keys you press are then echoed back, and displayed in a
serial monitor window – press the A key and you see the letter A in the serial monitor.
For the purposes of demonstration, the remote transceiver is wired in loopback mode — its Data
Out (DOUT) and Data In (DIN) pins are connected together. Whatever data the remote XBee
receives is simply sent back ("echoed") to you. This way you don't need a microcontroller on the
remote module just to demonstrate communicating between two XBee transceivers.
BASIC Stamp HomeWork Board
' {$STAMP BS2}
' {$PBASIC 2.5}
' Requires remote XBee in loopback mode (DIN connected to DOUT)
Baud
CON
84
Rx
PIN
15
Tx
PIN
14
temp
VAR
Byte
PAUSE 500
Copyright © Parallax Inc.
' 9600 baud non-inverted
' XBee DOUT
' XBee DIN
' Temporary variable
' 1/2 second pause to stabilize
Page 3 of 7

Advertisement

loading