I am using LIS3MDL 3 axis magnetometer sensor for car detection project. while I am using raw data, I understand that if sensor is exposed to hard-iron effect then this sensor can not read old values.

so how can I eliminate this effect and calibate sensor for stabile working.

thank you for all.


1 Answer 1


Without having read it deeply, this document seems a good way to do it. Is the first result in google, by the way.

  • \$\begingroup\$ I have already found it, but I want to ask for something easier. \$\endgroup\$
    – user136320
    Jul 24, 2017 at 13:53
  • \$\begingroup\$ I think there is no easy way to do it. Maybe you can adapt the code used in the 9-DOF Razor IMU: github.com/Razor-AHRS/razor-9dof-ahrs \$\endgroup\$
    – Raul O.
    Jul 24, 2017 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.