"JOURNAL OF RADIO ELECTRONICS" (Zhurnal Radioelektroniki ISSN 1684-1719, N 5, 2019

contents of issue      DOI  10.30898/1684-1719.2019.5.6     full text in Russian (pdf)  

Research, manufacturing of a shipborne digital magnetic compass and applying the Kalman filter to filter the noisy information of a given compass


Vu Xuan Hau 1,3, V. E. Ivanov 1, S. I. Kumkov 1,2, Nguyen Dinh Thach 3

1 Institute of Radio Electronics and Information Technology (IRIT – RTF), Ural Federal University,  32 Mira str., Ekaterinburg 620002, Russia

2 N.N. Krasovsky Institute of Mathematics and Mechanics,  Ural Branch of the Russian Academy of Sciences, 16 S.Kovalevskaya str., Ekaterinburg, 620108 Russia

3 Vietnam Maritime University (VMU), 484 Lach Tray, Hai Phong, Viet Nam


The paper is received on May 14, 2019


Abstract. The compass is a particularly important device on the ship. Using the compass, the operator can determine the correct direction of the vessel, which contributes to fuel economy and safety. The compass was first invented in China during the Song Dynasty to indicate the direction of movement in the deserts. Currently, different types of compasses are used for different purposes: electric, satellite, magnetic compass, etc. Modern multifunctional compasses are produced with high reliability by manufacturers from Japan, Russia, the USA, etc. Despite the presence of a significantly large selection of compasses, existing devices are not suitable for small vessels, their price in many cases is not affordable. In this regard, research and manufacture of digital magnetic compass (DMC), which can be connected to other onboard systems, allows the solution of economic difficulties.

In the process of studying the design of digital magnetic compass, a difficulty arose that poses the problem of filtering noise for a digital magnetic compass. In a pilot study, the authors used a Kalman filter to filter noise information for a digital magnetic compass. In the process of testing, the authors found that using the Kalman filter to filter out information noise for a compass was very effective.

The article describes the results of research, manufacturing the DMC, and the use of the Kalman filter to filtering the noisy information from this compass. The results of practical tests show that the use of the Kalman algorithm provides significantly better accuracy of filtration. The manufactured DMC (with the Kalman filter) was certificated and its readiness was shown for operation under real conditions.

Key words: digital magnetic compass, microcontroller, magnetic course, real noisy information, filtering, Kalman algorithm, output information, accuracy estimates, IMO, azimuth, I2C protocol, data NMEA0183.


1.     Performance Standards For Gyro-compasses. Resolution A.424 (XI), IMO, 1979.

2.     Magnetic Compasses Carriage and Performance Standards, IMO. 1977.

3.     HMC5883 Database Sheet [online]. Site “DatabasesheetdPDF”. Available at www.datasheetspdf.com/datasheet/HMC5883.html

4.     Vu Xuan Hau, Nguyen Dinh Thach, Pham Ky Quang, Nguyen Xuan Phuong. Researching, Designing and manufacturing the digital compass system for Fishing and Inland Vessels in Vietnam. Journal of Maritime Science and Technology, Vietnam Maritime University, 2016, January 45, pp. 60-64.

5.     Vu Xuan Hau, Ivanov V. E. Results of the Development and Experimental Studies of the Digital Magnetic Compass System. Proceedings - 2018 Ural Symposium on Biomedical Engineering, Radioelectronics and Information Technology, USBEREIT 2018. Yekaterinburg, May 2018, pp. 359-362.

6.  Certificate - Maritime Trading and Service Technology Co., Ltd (MTS). Test results and assessment of the Digital Magnetic Compass system. Hai Phong, Viet Nam, August 2017.

7.  Certificate - Thao Linh DMTCO.,Ltd. Test results and assessment of the Digital Magnetic Compass system. Hai Phong, Viet Nam, September 2017.

8.  Vu Xuan Hau .Tables of measurements of the digital magnetic compass system on ships in Vietnam. Haiphong, Vietnam, September 2017.

9.       Kalman filter Wikipedia [online]. Available at: https://en.wikipedia.org/wiki/Kalman_filter

10.   Fil’tr Kakmana – vvedenie [Kalman filter  introduction]. Online resource. Available at:  https://habr.com/post/140274/

11.  M.J. Caruso. Applications of magnetoresistive sensors in navigation  systems. SAE Trans., 1997, Vol. 106, pp. 1092-1098.

12.  The NMEA0183 Protocol. Available at:


13.  Datasheet Atmega8L. Available at:

https://www.mouser.com/datasheet/2/268/Atmel-2486-8-bit-AVR- microcontroller-ATmega8_L_dat-1315266.pdf

14.  Datasheet Max485. Available at:


15.  Datasheet LM2576. Available at:   http://www.ti.com/lit/ds/symlink/lm2576.pdf


For citation:

Vu Xuan Hau, V. E. Ivanov, S. I. Kumkov, Nguyen Dinh Thach. Research, manufacturing of a shipborne digital magnetic compass and applying the Kalman filter to filter the noisy information of a given compass. Zhurnal Radioelektroniki - Journal of Radio Electronics. 2019. No. 5. Available at http://jre.cplire.ru/jre/may19/6/text.pdf