Home > Electronic Compass > Application Notes > Orthogonal correction of a magnetic sensor

Orthogonal correction of a magnetic sensor


Due to directional errors of sensor element mounting, three axes will not be orthogonal, strictly speaking. The degree is less than 2°.

These errors appear as interference between the axes. In other words, an erroneous output will result from what should be 0.


In an application where this error isn’t acceptable, it is possible to calculate and correct sensor output using software, based on a correction coefficient found through previous measurements of a magnetic field with guaranteed orthogonality.


The correction coefficient is expressed as a 3×3 matrix.


The correction calculation can be found using the below formula.