Obtaining Data from xbee

I am trying to read information from an xbee and display it on an LCD. But when I send the information over all I get is random numbers. I removed the xbee (the receiver) from the Arduino pro mini and hooked it up to XCTU and the correct inputs show up on the console log. I am using AT mode and nothing seems wrong with the configuration. Could it be a code issue? Here is my code below.

// include the library code:
#include “Wire.h”
#include “Adafruit_LiquidCrystal.h”
#include <SoftwareSerial.h>

// initialize the library with the numbers of the interface pins
Adafruit_LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
SoftwareSerial XBee (10, 9); // RX, TX

void setup() {
// set up the LCD’s number of rows and columns:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print(“Waiting For Play”);
XBee.begin (9600);

void loop() {
if (XBee.available())



What adaptor are you using between the xbee and the pro mini? Are you trying to follow instructions from Sparkfun, Adafruit or somewhere else? Take a photo and draw a wiring diagram. Don't forget to connect the power and ground pins. Are you using the 5v or 3.3v version of the pro mini?

For the adapter board I am using XBee USB Adapter Board (#32400) from Parallax.

I am following instructions from Sparkfun. I took the information used from their xbee/Arduino uno setup and applied it to the pro mini

I am using a 3.3V Version the pro

I attached the circuit diagram only difference is that I used pin 10, 9 as tx and rx to match my code.

Here is a link to video of the problem I am having

Your wiring diagram doesn't show anything connected to the +3.3v on the xbee. The video doesn't stay still long enough to see what wires you have connected.

The circuit diagram for the adaptor suggests that you need to apply 5v to the USB interface chip which then powers the xbee from its 3.3v output.

The adaptor you are using is designed to allow a computer with a USB interface to talk to the xbee. It isn't designed for connecting an Arduino to an xbee. If you apply power to the USB interface chip it will fight the Arduino for control of the Tx data line. The Rx line will still work, but it's likely that Tx will not.

I don't know what will happen if you connect 3.3v directly to the xbee. Probably not a good idea. If might work, or it might indirectly power the USB interface chip causing problems, or it might damage the USB interface chip.

What you need is a simple adaptor like this http://www.robotistan.com/xbee-adapter This has easy to solder pins on a 0.1" grid.



Thank you, i figured it out. The numbers werent random they were in decimal. i was assinging they should of been in hex.