How to use calibration result for compass

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Simon88
 
Posts: 10
Joined: Wed Mar 24, 2021 2:40 pm

How to use calibration result for compass

Post by Simon88 »

Hi all,
I'm trying to use a LIS2MDL Magnetometer. So right now I want to calibrate it, so I've found a sketc coming from Adafruit where we have a hard iron calibration in result we get x,y,z min and max.
But how to use it the calibrate value when we reading magnetometer value ?

User avatar
sj_remington
 
Posts: 998
Joined: Mon Jul 27, 2020 4:51 pm

Re: How to use calibration result for compass

Post by sj_remington »

The min/max calibration method is also called the six point method, described here: (scroll down the page)

When pasting the link, delete the "#" character, required to get around Adafruit's banned word block:

https://chionophilous.word#press.com/20 ... e-methods/

But it does not work very well. A comprehensive tutorial covering the state of the art is
https://thecavepearlproject.org/2015/05 ... r-arduino/

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”