Magnetometer

Reports the magnetic flux density (typically in microtesla) along three orthogonal axes. Combined with an accelerometer for tilt-compensation, gives heading.

Most consumer chips use anisotropic magnetoresistance (AMR) or tunnel magnetoresistance (TMR): the resistance of a thin-film element changes with the applied magnetic field. On-chip excitation coils 'set' and 'reset' the element to remove offset, and ADCs digitize each axis.

In plain terms

A 3-axis compass needle on a chip: tells you which way Earth's magnetic field is pointing in your reference frame.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

Lord Kelvin observed the AMR effect in 1856. Practical AMR magnetometers became commercially common with Honeywell HMC parts in the 1990s. TMR sensors emerged in the 2000s with much higher sensitivity.

Related