kriswiner / MPU9250

Arduino sketches for MPU9250 9DoF with AHRS sensor fusion
1.04k stars 471 forks source link

Magnetometer strange values #173

Open TediumRemedy opened 7 years ago

TediumRemedy commented 7 years ago

Hello Kris, During magnetometer calibration, sometimes mag returns weird out-of-sphere measurements: Image of

Is that normal, and why that might happen?

kriswiner commented 7 years ago

Not normal, don't know.

Do you have a magnet nearby?

On Sun, Aug 13, 2017 at 9:31 AM, TediumRemedy notifications@github.com wrote:

Hello Kris, During magnetometer calibration, sometimes mag returns weird out-of-sphere measurements: [image: Image of] https://camo.githubusercontent.com/8f61b5917839a6ea7d298643a65b0c084a7fef4c/687474703a2f2f692e696d6775722e636f6d2f78316c7a6b74772e706e67

Is that normal, and why that might happen?

— 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/173, or mute the thread https://github.com/notifications/unsubscribe-auth/AGY1qncFquGRV0-HFfTIU2A9vUFQwG-zks5sXyTwgaJpZM4O1u2C .

TediumRemedy commented 7 years ago

Thanks for the response.

There were no magnets around. Not sure if this was the reason, but I connected the FSYNC pin to the GND (as requested in the spec) and measurements seem to be within the sphere since then. Not sure if this is what fixed it, or whether it is fixed at all...