Do I need to hold it straight like a normal compass to get correct heading? If so, how can I calculate correct heading when the module is tilted?
What documentation have you consulted?
To get useful direction readings, you must hold the magnetometer level, with the Z axis vertical. The magnetometer must also be calibrated, or it won't work at all. Adafruit has a calibration tutorial.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.