Go Down

Topic: IMU - MPU-9250 (Read 227 times) previous topic - next topic

Hoshy

Feb 14, 2019, 03:55 am Last Edit: Feb 14, 2019, 03:56 am by Hoshy
Hello, dear geniuses,

I am working with an IMU model MPU-9250 and I am able to read data from it but I just want to ask if there is some sort of a filter or something to give me more accurate data with least fluctuations.

It is my first post on this website so I am so sorry if I did anything wrong.

PS

I only care about yaw readings which I want it to give me the angle of rotation from 0-359 degrees, the IMU will be later mounted on a robotic ground vehicle.
The code is attached below.

Thank you so much in advance :)

jremington

#1
Feb 14, 2019, 05:14 pm Last Edit: Feb 14, 2019, 05:16 pm by jremington
The yaw angle is measured by the magnetometer, so that is all you need to read. For this to work, the magnetometer must be calibrated in its final place of installation, as described in this tutorial.

If you want to implement tilt compensation, you will need to read the accelerometer as well.

Theory on implementing a tilt compensated compass here and here.

Do not double post. https://forum.arduino.cc/index.php?topic=597665.0

Go Up