Calibration of Low-Cost Three Axis Magnetometer with Differential Evolution

  • Ales Kuncar
  • Martin Sysel
  • Tomas Urbanek
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 574)


The magnetometers are used in wide range of engineering applications. However, the accuracy of magnetometer readings is influenced by many factors such as sensor errors (scale factors, non-orthogonality, and offsets), and magnetic deviations (soft-iron and hard-iron interference); therefore, the magnetic calibration of magnetometer is necessary before its use in specific applications. This research paper describes calibration method for three axis low-cost MEMS (Micro-Electro-Mechanical Systems) magnetometer. The calibration method uses differential evolution (DE) algorithm for the determination of the transformation matrix (scale factor, misalignment error, and soft iron interference) and bias offset (hard-iron interference). The performance of this method is analysed in experiment on three axis low-cost magnetometer LSM303DLHC and then compared to the traditional method (least square ellipsoid fitting method). The magnetometer readings were obtained while rotating the sensor around arbitrary rotations. The experimental results show that the calibration error is least using DE.


Calibration Differential Evolution Magnetometer MEMS 



This work was supported by Internal Grant Agency of Tomas Bata University in Zlin under the project No. IGA/FAI/2017/007.


  1. 1.
    Kawai, J., Uehara, G., Kohrin, T., Ogata, H., Kado, H.: Three axis SQUID magnetometer for low-frequency geophysical applications. IEEE Trans. Magn. 35(5), 3974–3976 (1999)CrossRefGoogle Scholar
  2. 2.
    Haverinen, J., Kemppainen, A.: A geomagnetic field based positioning technique for underground mines. In: 2011 IEEE International Symposium on Robotic and Sensors Environments (ROSE), pp. 7–12. IEEE, September 2011Google Scholar
  3. 3.
    Ashkar, R., Romanovas, M., Goridko, V., Schwaab, M., Traechtler, M., Manoli, Y.: A low-cost shoe-mounted inertial navigation system with magnetic disturbance compensation. In: 2013 International Conference on Indoor Positioning and Indoor Navigation, IPIN 2013 (2013)Google Scholar
  4. 4.
    Bird, J., Arden, D.: Indoor navigation with foot-mounted strapdown inertial navigation and magnetic sensors [emerging opportunities for localization and tracking]. IEEE Wireless Commun. 18, 28–35 (2011)CrossRefGoogle Scholar
  5. 5.
    Glanzer, G., Walder, U.: Self-contained indoor pedestrian navigation by means of human motion analysis and magnetic field mapping. In: Proceedings of the 2010 7th Workshop on Positioning, Navigation and Communication, WPNC 2010, pp. 303–307 (2010)Google Scholar
  6. 6.
    Guo, P., Qiu, H., Yang, Y., Ren, Z.: The soft iron and hard iron calibration method using extended kalman filter for attitude and heading reference system. In: 2008 IEEE/ION Position, Location and Navigation Symposium, pp. 1167–1174. IEEE (2008)Google Scholar
  7. 7.
    Crassidis, J.L., Lai, K.-L., Harman, R.R.: Real-time attitude-independent three-axis magnetometer calibration. J. Guidance, Control Dyn. 28(1), 115–120 (2005)CrossRefGoogle Scholar
  8. 8.
    Kok, M., Hol, J., Schon, T., Gustafsson, F., Luinge, H.: Calibration of a magnetometer in combination with inertial sensors. In: 2012 15th International Conference on Information Fusion (FUSION), pp. 787–793 (2012)Google Scholar
  9. 9.
    Renaudin, V., Afzal, M.H., Lachapelle, G.: Complete triaxis magnetometer calibration in the magnetic domain. J. Sens. 2010, 1–10 (2010)CrossRefGoogle Scholar
  10. 10.
    Tabatabaei, S.A.H., Gluhak, A., Tafazolli, R.: A fast calibration method for triaxial magnetometers. IEEE Trans. Instrum. Meas. 62(11), 2929–2937 (2013)CrossRefGoogle Scholar
  11. 11.
    Liu, Y., Li, X., Zhang, X., Feng, Y.: Novel calibration algorithm for a three-axis strapdown magnetometer. Sensors 14(5), 8485–8504 (2014)CrossRefGoogle Scholar
  12. 12.
    Cheuk, C.M., Lau, T.K., Lin, K.W., Liu, Y.: Automatic calibration for inertial measurement unit. In: 2012 12th International Conference on Control Automation Robotics and Vision (ICARCV), pp. 1341–1346. IEEE, December 2012Google Scholar
  13. 13.
    Sarcevic, P., Pletl, S., Kincses, Z.: Evolutionary algorithm based 9DOF sensor board calibration. In: 2014 IEEE 12th International Symposium on Intelligent Systems and Informatics (SISY), pp. 187–192. IEEE, September 2014Google Scholar
  14. 14.
    Storn, R., Price, K.: Differential evolution - a simple and efficient adaptive scheme for global optimization over continuous spaces, Technical report (1995)Google Scholar
  15. 15.
    Storn, R.: On the usage of differential evolution for function optimization. In: Proceedings of North American Fuzzy Information Processing, pp. 519–523. IEEE (1996)Google Scholar
  16. 16.
    STMicroelectronics, Data brief: STEVAL-MKI124V1, p. 4 (2013)Google Scholar
  17. 17.
    National Centers of Environmental Information (2016)Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  1. 1.Faculty of Applied InformaticsTomas Bata University in ZlinZlinCzech Republic

Personalised recommendations