Examine how magnetometer sensors detect magnetic fields and their use in navigation and geophysical measurements.
The phone knows where north is because it contains a magnetometer, a sensor that detects magnetic fields and converts them into an electrical signal that an electronic system can read [1][2][3][4].
The magnetometer detects the intensity and often the direction of the magnetic field, whose unit in the International System is the tesla ($\mathrm{T}$). The Earth's magnetic field has values around $25$-$65\ \mathrm{\mu T}$ ($0.25$-$0.65$ gauss, with $1\ \mathrm{G} = 100\ \mathrm{\mu T}$), while a neodymium magnet nearby produces tens of millitesla. Three-axis magnetometers measure the components $B_x$, $B_y$, $B_z$ [1][2][3].
- Hall effect: a semiconductor plate carrying current produces a transverse voltage proportional to the perpendicular field. It is inexpensive and robust, suitable for strong fields (from millitesla) and less sensitive to weak ones.
- Anisotropic magnetoresistive (AMR): a nickel-iron alloy film changes resistance depending on the angle between magnetization and current. It has high sensitivity and is used in electronic compasses. There are also giant magnetoresistance (GMR) and tunnel magnetoresistance (TMR) versions.
- Fluxgate: two windings around a periodically saturated ferromagnetic core allow detection of very weak fields, with good precision, at higher cost.
- Proton precession, optical pumping, SQUID: highly sensitive instruments for geophysics and research [1][2][4].
A semiconductor strip of thickness $t$, with carrier density $n$ and charge $q$, carrying current $I$ in a perpendicular magnetic field $B$, produces a Hall voltage
$$V_H = \frac{I\,B}{n\,q\,t}$$
Sensitivity is greater with materials having low carrier density and thin plates. The voltage is small (microvolts for weak fields), requiring amplification and offset compensation, for example with the spinning current technique [1][3].
To obtain the magnetic north direction, the horizontal components $B_x$ and $B_y$ are measured with the sensor held horizontally, and the angle (azimuth) is $\theta = \arctan\!\big(B_y/B_x\big)$ (calculated with the two-argument function, which gives the correct angle in all quadrants). If the sensor is tilted, an accelerometer is used to determine the tilt and compensate the components. Magnetic north differs from geographic north due to the magnetic declination, which depends on location (from a few degrees to over ten) [1][2][4].
The fields from materials near the sensor alter the measurement. Hard iron disturbances (permanent magnets and magnetized components within the device) produce a constant offset on the components; those from soft iron (materials magnetized by the Earth's field) distort the response, turning the circle of measured values into an ellipse. Calibration consists of rotating the device in all directions and deriving offset and correction matrix. For this reason, phones ask to move them in a "figure eight" to recalibrate the compass [1][2].
The Earth's field is weak and easily overwhelmed by nearby currents (wires, motors, speakers), metal structures, and magnets. The sensor has noise, offset, and temperature drift, and can saturate in strong fields. The typical accuracy of a compass in a phone is on the order of a few degrees.
A two-axis magnetometer compass in a location where the horizontal component of the Earth's field is $20\ \mathrm{\mu T}$ (hypothetical values).
1. Oriented with north at $45^\circ$ from the axes, the sensor measures $B_x = B_y = 14{,}1\ \mathrm{\mu T}$, and $\theta = \arctan(14.1/14.1) = 45^\circ$.
2. An error of $1\ \mathrm{\mu T}$ on the field causes an angular error of about $1/20\ \mathrm{rad} = 2.9^\circ$.
3. A hard iron offset of $30\ \mathrm{\mu T}$ (caused, for example, by a nearby magnet) is greater than the Earth's field and would lead to very large directional errors if not calibrated.
4. Silicon Hall sensor, with $n = 10^{22}\ \mathrm{m^{-3}}$, $t = 1\ \mathrm{\mu m}$, current $1\ \mathrm{mA}$: sensitivity $1/(n q t) = 625\ \mathrm{V/(A\,T)}$, that is $0.625\ \mathrm{V/T}$ at $1\ \mathrm{mA}$, and with $B = 50\ \mathrm{\mu T}$ it yields $V_H = 31\ \mathrm{\mu V}$, which requires a low-noise amplifier.
Magnetometers are used as compasses in phones, watches, and navigators, in drones and aircraft, in position and angular velocity sensors (with a magnet on the shaft), in metal and ferrous object detection, in geophysics and mineral exploration, in security systems, and in medicine (magnetoencephalography with SQUID).
[1] Wikipedia (it): Magnetometro
[2] Wikipedia (en): Magnetometer
[3] Wikipedia (de): Magnetometer
[4] Wikipedia (fr): Magnétomètre
Generating summary…