mpu 6050 and wireless SD schield for xbee

Dear Arduino comunity,

I am trying to set my MPU-6050 sensor to work on my Arduino UNO with XBee via Wireless SD Shield and Xbee.

Sensor works fine if connected directly to Arduino. i can see on serial monitor all the values listed.

But, if I use wireless SD shield between sensor and arduino, i get only zeros.
Same pins are used, different sketches, switch position also considered.

serial monitor shows:
Testing device connections...
MPU6050 connection failed
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0
a/g: 0 0 0 0 0 0

Does anyone know what is the problem?
Thanks!
nuncium

Same pins are used

But which pins are used?

I followed this tutorial http://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/

it is connected like this:

VCC -> 3.3v
GND -> GND
SCL -> A5
SDA -> A4
XDA -> none
XCL -> none
ADO -> none
INT -> D2

Just putting a wireless shield, with nothing on it, between the Arduino and the MPU should not affect the Arduino's ability to get data from the MPU.

Of course, if you have something on the wireless shield, that's a different story.

I'm not really into guessing games. I don't care to guess what your code looks like. I don't care to guess what kind of XBees you have. I don't care to guess how they are configured.

Strangely, it doesn't work with only empty shield.
I tried both positions of little serial select switch on the shield itself (USB - Micro) no result.
so without any Xbee, and using unchanged code from http://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/

mpu6050 returns values if used without shield and doesn't return values if used through shild.
if am wondering why could that be.
this shield i use:

[/img]

Never mind.

It could be something out of my reach, just after several hours of plugging in and out, things started working as they supposed to.

Now arduino UNO, shield and xbee and MPU-6050, are sending fairly accurately data to my Max patch, via another xbee and arduino connected to my computer.

Things just needed more attention. :confused:

Things just needed more attention

Or something. Maybe a bad connection somewhere?