# Trouble connecting Xbee Series 1 to Raspberry Pi

**URL:** <https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197>\
**Category:** XBee & XBee Gateway\
**Tags:** raspberry, pi, series1, xbee\
**Created:** [January 19, 2015, 1:13am UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197 "2015-01-19T01:13:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![telarium](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@telarium](https://forums.digi.com/u/telarium)\
**Post date:** [January 19, 2015, 1:13am UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/1 "2015-01-19T01:13:22Z")

</div>

Pulling my hair out the past few days getting the Xbee Series working with my Pi.

I have pin 2 on the Xbee connected to the Pi’s RX pin and pin 3 connected to TX on the Pi. Pin 1 and ground on the Xbee are then connected to a 3.3v regulator.

I then edited /boot/cmdline.txt and /etc/inittab to free up /dev/ttyAMA0.

Both Xbee’s I’m using are correctly configured with a 9600 baud rate. Using two Xbee explorers in Windows, I can communicate between the two. When I wire the Xbee directly to the Pi, it stops working. I tried using Minicom with the correct baud rate and the ttyAMA0 port. Sending commands like +++ results in nothing.

I tried using my multimeter to see if there was any signal coming through the RX and TX pin. I do see the voltage fluctuate slightly when it’s sending/receiving serial data, but it doesn’t actually result in readable data.

I’m totally out of ideas at this point. Can anyone tell me what I might have missed?

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 26, 2015, 2:24pm UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/2 "2015-01-26T14:24:23Z")

</div>

I believe it is a voltage issue. That is to say, the XBee is a 3V device and the Pi board you are using is a 5V board. You must use a level shifter between the two otherwise you will damage the Xbee modules.

---

<div class="post-metadata">

**Author:** ![telarium](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@telarium](https://forums.digi.com/u/telarium)\
**Post date:** [January 26, 2015, 10:37pm UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/3 "2015-01-26T22:37:04Z")

</div>

The Pi uses 3.3v logic, and 5v for power. Logic level shifters should not be required. (Also, the Xbee is being powered with 3.3v)

---

<div class="post-metadata">

**Author:** ![mvut](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.digi.com/mvut/32/31_2.png) [@mvut](https://forums.digi.com/u/mvut)\
**Post date:** [January 27, 2015, 10:11am UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/4 "2015-01-27T10:11:49Z")

</div>

What happens if you remove the radios from the picture and just connect the device to the data in and data out ports of where the radio mounts on your Pi device? Are you then able to communicate with the device?

---

<div class="post-metadata">

**Author:** ![gpio](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gpio](https://forums.digi.com/u/gpio)\
**Post date:** [February 5, 2015, 3:29pm UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/5 "2015-02-05T15:29:39Z")

</div>

Hello,

Have you been able to solve?

I have the same problem, I have time trying to fix it but I have not succeeded.

Only works with USB me (/dev/ttyUSB0).

Best regards

---

<div class="post-metadata">

**Author:** ![telarium](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@telarium](https://forums.digi.com/u/telarium)\
**Post date:** [February 6, 2015, 12:37am UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/6 "2015-02-06T00:37:26Z")

</div>

I ended up buying this:

[http://www.aliexpress.com/item/Raspberry-Pie-PI-RPI-Wireless-Shield-Support-Zigbee-Extension-Board-XBee-24-L01-Development-DIY-Kit/1724465974.html](http://www.aliexpress.com/item/Raspberry-Pie-PI-RPI-Wireless-Shield-Support-Zigbee-Extension-Board-XBee-24-L01-Development-DIY-Kit/1724465974.html)

It simply works. I’m not sure what it does differently than what I was doing with wiring the Xbee directly to the Pi, but it did the trick. Hope that helps.

---

<div class="post-metadata">

**Author:** ![gpio](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@gpio](https://forums.digi.com/u/gpio)\
**Post date:** [February 6, 2015, 8:07am UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/7 "2015-02-06T08:07:27Z")

</div>

Hello,

Thank you for the reply.

I can not use that because I have a PiTFT, and this board take much space.

I’ll try with this module to see if it works.  
[http://www.dx.com/p/mini-rs232-to-ttl-converter-module-board-3-5v-132934#.VNSIWTaNB5R](http://www.dx.com/p/mini-rs232-to-ttl-converter-module-board-3-5v-132934#.VNSIWTaNB5R)

Best regards

---

<div class="post-metadata">

**Author:** ![humpreybas](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@humpreybas](https://forums.digi.com/u/humpreybas)\
**Post date:** [July 29, 2015, 5:29pm UTC](https://forums.digi.com/t/trouble-connecting-xbee-series-1-to-raspberry-pi/14197/8 "2015-07-29T17:29:31Z")

</div>

I think the Xbee module needs a pullup resistor at the Data-in pin, it has one internally but it should be enabled. Did you check that?  
I had a similar issue with an arduino, the modules worked on the explorer (they probably also have pull up resistors incorporated), but as soon as I put it in the arduino it did nothing, see [http://stackoverflow.com/questions/14757227/receive-xbee-signals-on-arduino](http://stackoverflow.com/questions/14757227/receive-xbee-signals-on-arduino)
