LSM303D making a Compass to give zero to north

To make a useful compass, you will need to individually calibrate the magnetometer, and of course, correct for the magnetic declination in your area. The best procedure is summarized and applied in this post: Correcting the Balboa magnetometer

1 Like