Go Down

Topic: mpu9250-pitch,roll and yaw (Read 996 times) previous topic - next topic


hi all, im new here so maybe my question will be stupid

what is the formula to convert my raw mpu9250(9DOF) data to pitch,roll and yaw angles???

please help


That part has a lot of registers to read to obtain the info you're looking for.
I'd suggest you search for an I2C or SPI library that can do that already.

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.


Hi arafat1,

Kris Winer has some excellent Arduino example code for the MPU9250 on Github: https://github.com/kriswiner/MPU9250.


By far the best open-source IMU (absolute orientation) code for the MPU9250 is RTIMUlib for Arduino.


thanks all i ended up using Kris Winer example and its very good.

Go Up