mpu9250-pitch,roll and yaw

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.

Hi arafat1,

Kris Winer has some excellent Arduino example code for the MPU9250 on Github:

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.