Arduino XBee shield connections

Hi,

I am playing with the MPU9150 breakout board - along with 2 Arduino Uno R3’s and 2 XBee S2 in AT mode.

I am using the example code just to play with:

Arduino - https://github.com/jrowberg/i2cdevlib/b … 0_DMP6.ino

Processing - https://github.com/jrowberg/i2cdevlib/b … Teapot.pde

Appropriate edits were made to get it working with the 9150 and it all works making me happy :ugeek: .

I’ve tried using it with the XBees and nothing seems to be working properly and I’m trying to find out what. I know the code above works without the XBee’s and I know the XBees themselves are communicating so it’s something happening when I put the 2 together.

I’m using an XBee shield to connect the XBees to the Arduino - http://shieldlist.org/libelium/xbee

Is there any problems using an XBee and shield with things connected to the Arduino SDA and SDL inputs?

The code waits for a character on the serial line before it starts - and actually prints that itself. When you look at the Arduino (with the shield plugged in) you can see the RX light flashing when you send the character so it is receiving over serial - but the TX light never flashes therefore doesn’t appear to be sending anything.

I have never had problems in the past so I’m wondering whether it’s something taking over an input that the Arduino/Code needs?

I have the INT connected to Arduino digital 2 as per the instruction - this is plugged into the shield - so whether something there also causes issues?

Does anyone have any further pointers or possible areas to check?

Thanks

Ok I got this working - fixes below in case someone else sees this…

1 - SDA SCL were swapped with Analogue 4 & 5

2 - Baud rate issues in the code - the mixture of 9600 and 115200 were an obvious cause of problems

3 - The main one - I forgot to update my latest XBees to 115200 as they were still on a 9600 baud rate

The receiving end only has an XBee now and no arduino as that seems to be a source of delay so it needs to be updated a little to work perfectly

|Xbee| ↔ |Arduino| ↔ |MPU9150|