SACC

/ / navigation


Breakout Board
Introduction
Talking to xBee
Point-to-Point
AT Commands
LilyPad
Common Mistakes

Wire vs wireless
Assignment

/ / Introduction



XBee modems are one of the easiest ways to create a wireless point-to-point or mesh network. They have error correction, are configured with AT commands, come in multiple flavors and can create a wireless serial link out of the box.

Other Good things
  • low power
  • addressing
  • cheap (sort of)
  • wireless
  • small
  • standardized

LadyAda's breakout board

  • Onboard 3.3V regulator to cleanly power your XBee, up to 250mA

  • Level shifting circuitry means that its trivial to connect it to 5V circuitry such as an Arduino without risk of damage

  • Two LEDs, one for activity (RSSI), the other for power (Associate)

  • 10-pin 2mm sockets included to protect the modem and allow easy swapping, upgrading or recycling

  • All the commonly used pins are brought out along the edge, making it easy to breadboard or wire up


  • For use with any XBee/Pro pin-compatible module (check your module datasheet to verify power needs)

  • Specifically created for use with an FTDI cable to connect to a computer via USB. This means that you can use, configure or upgrade the adapter painlessly simply by plugging in a cable.

  • 3V pin - this is either an input power pin (if 5V is not provided) or an output from the 250mA regulator if 5V is provided

  • DTR - "Data terminal ready" this is a flow control pin used to tell the XBee that the microcontroller or computer host is ready to communicate.

  • RST - this pin can be used to reset the XBee. By default it is pulled high by the 10K resistor under the module. To reset, pull this pin low.'

  • Ground - common ground for power and signal

  • CTS - "Clear to Send" this is a flow control pin that can be used to determine if there is data in the XBee input buffer ready to be read

  • 5V - this is the power input pin into the 3.3V regulator. Provide up to 6V that will be linearly converted into 3.3V

  • RX - This is the XBee's serial recieve pin. Serial data is sent on this pin into the XBee to be transmitted wirelessly

  • TX - This it the XBee's serial transmit pin. Serial data is sent on this pin out of the XBee, after it has been transmitted wirelessly from another module

  • 0 RTS - "Ready to Send" this is a flow control pin that can be used to tell the XBee to signal that the computer or microcontroller needs a break from reading serial data.

  • see pin #1

The DTR, RTS, RESET and RX pins (going into the XBee) pass through a level converter chip that brings the levels to 3.3V. You can use pretty much anywhere between 2.7 to 5.5V data to communicate with the XBee. The breakout pins on the bottom of the board are not level shifted and you should try to keep data going directly into the XBee pins under 3.3V

By far the easiest way to connect to a computer is to use an FTDI cable - use either 3.3V or 5V. These cables have a USB to serial converter chip molded into them and are supported by every OS. Thus configuring or upgrading or connecting is really trivial. Simply plug the cable into the end of the module so that the black wire lines up with GND. There is a white outline showing where the cable connects.


Make one now: LadyAda's breakout board


Sources:http://www.faludi.com/
http://lab.guilhermemartins.net/serial-comunication-with-xbee-arduino/