kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.03k stars 472 forks source link

Load DMP firmware to MPU9250 #268

Closed PauwelsKristof closed 6 years ago

PauwelsKristof commented 6 years ago

Hi,

I am working on a project to calculate the yaw, pitch and roll angles via a MPU9250. For that i want to use the DMP for the Low Power Quaternion. But i want to use as little libraries as possible to get a good understanding of what is really going on.

In the 'Programming Sequence for DMP Hardware Functions' application note i've found how to enable the advanced hardware features at page 35 but at the end i need to load the firmware into the DMP. Do you know where i can find the firmware or is there a default firmware present on the chip?

Best regards

kriswiner commented 6 years ago

There is no firmware on the MPU9250, at least not sufficient firmware. You have to download a ~5 kByte binary blob into the chip using the MCU. Ask Invensense where to get this.

BTW, the DMP is opaque, you will undertsand nothing by using it. Also, it runs at a fixed 100 Hz and doesn't use the mag data, so Yaw will be subject to rather wicked drift. See here:

https://github.com/kriswiner/MPU6050/wiki/Affordable-9-DoF-Sensor-Fusion

Looks like ~0.4 degree per minute.

On Wed, Apr 18, 2018 at 1:46 AM, PauwelsKristof notifications@github.com wrote:

Hi,

I am working on a project to calculate the yaw, pitch and roll angles via a MPU9250. For that i want to use the DMP for the Low Power Quaternion. But i want to use as little libraries as possible to get a good understanding of what is really going on.

In the 'Programming Sequence for DMP Hardware Functions' application note i've found how to enable the advanced hardware features at page 35 but at the end i need to load the firmware into the DMP. Do you know where i can find the firmware or is there a default firmware present on the chip?

Best regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/268, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qgi_oP-G9zl2zhRqo5vLQn64r_mkks5tpv16gaJpZM4TZqP8 .

PauwelsKristof commented 6 years ago

Thanks for the quick reply!

So is the best way than just reading the raw data and afterwards on a seperate MCU calculating the pitch, yaw, roll via a Madgwick filter? Or what would you suggest?

kriswiner commented 6 years ago

This https://www.tindie.com/products/onehorse/ultimate-sensor-fusion-solution/

On Wed, Apr 18, 2018 at 11:15 AM, PauwelsKristof notifications@github.com wrote:

Thanks for the quick reply!

So is the best way than just reading the raw data and afterwards on a seperate MCU calculating the pitch, yaw, roll via a Madgwick filter? Or what would you suggest?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/MPU9250/issues/268#issuecomment-382480074, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qnbynQtTWbLkBBEuRUzsPTn5tufWks5tp4KqgaJpZM4TZqP8 .