MPU-9250 on Arduino Uno

Hello everyone,

Quite new to arduino and the forum, please excuse my lack of knowledge on certain subjects!!

I recently purchased an IMU, namely the MPU-9250 breakout board from SparkFun. Data sheet and other specs can be found here:

https://learn.sparkfun.com/tutorials/mpu-9250-hookup-guide

All I want to do is obtain the raw data from accelerometer, gyroscope and magnetometer from the sensor so I can record it/process it/etc in matlab.... However I am having a great deal of trouble knowing how to configure the code.. I tried using the arduino library by Kris Winer, but every time I try and run the code I get this error:

MPU9250 I AM FF I should be 71
Could not connect to MPU9250: 0xFF

I also tried running the code on this site here:

and with that, I am getting 7 columns of data on the serial monitor, however, none of them change except the iteration column (the first column)...

If someone could please help me, I would greatly appreciate it. Thank you so much.

I have the same problem in a teensy 3.2. Cant connect to MPU9250.

Make sure you have the correct V, G & I2C connections between the 2 boards and that the correct pin #'s are in the code. Also, make sure voltage levels are correct for power AND signals.

JohnnyF7:
I tried using the arduino library by Kris Winer, but every time I try and run the code I get this error:

MPU9250 I AM FF I should be 71

Could not connect to MPU9250: 0xFF

Hey, just got myself the MPU-9250 and was getting the same error. It's really easy to fix and the problem is that the instructions indicate to plug the SDA and SCL pins of the chip to the A4 and A5 of the Arduino board. This will not work on the Arduino UNO as it already has some pins dedicated to the SDA and SCL. This pins are next to the ground after the digital pin 13. Once connected to this pins everything should work as intended

Hi guys,

i actually tried reading MPU 9250 through Arduino due through libraries created by Kris GitHub - kriswiner/MPU9250: Arduino sketches for MPU9250 9DoF with AHRS sensor fusion

but im not able to do it because i2c header file is for teensy and not for due.

Is there anyone faced same problem ??