Skip to content

Question about the yaw axis (magnetometer) values #8

@ssokol

Description

@ssokol

David,

I've been working with the unit and the code for several days now and have noticed that:

  1. even after calibration the "north" value does not correlate with magnetic north as shown by my trusty Siva compass. It appears to be off by ~-15 degrees.

  2. if I rotate the device a perfect 180 from the perceived 0 to its opposite, the device reads not 180 but 200

  3. If I create a correction factor of 15 degrees to "true up" the north reading, then swing the device around 180 it reads 224 (!?!?)

Is the Euler value output corrected for "true" north vs. magnetic north?

I've tried moving the mounting around to several place (it's currently attached to the outside of the plastic housing that contains the Raspberry Pi) with similar results.

Any suggestions? I've re-run the calibration utility multiple times. Am I simply expecting too much from the sensor? Does it need to be attached to a dongle that is several feet from the Pi? (How long can you extend an i2c connection?)

Many thanks for your advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions