External Magnetometer Sensor

Hello, I want to use an external magnetometer in my project, how can I calibration my external magnetometer sensor? Please explanation a method or offer me, I want to using attitude from openimu300zi and use an external magnetometer sensor .
Your method for calibration magnetometer is only rotate in z axis for 1 or 2 minutes and final output is coefficients of hard and soft iron , and it seems that your transformation matrix is a matrix 2x2, is it right? If so , please explanation how to calculate coefficients and bias vector?
images.png

In this figure, the magnetometer sensor rotate in x,y,z axis and It has a 3x3 transformation matrix and 3 bias ...

Best regards
Amin

Hello again, It seems that there are two method for magnetometer calibration, 3D and 2D , please explanation 2D method for calculation soft and hard iron and transformation matrix.

Best regards
Amin

Here's source code of 3D megnetometer calibration.
https://github.com/Aceinna/gnss-ins-sim/blob/master/demo_mag_cal.py

Thank you so much, I need to know about algorithm . Please explanation the method.

Best regards
Amin

Log in to reply