MEMS and sensors

What does the sensor used in a smartphone's electronic compass detect?

  1. AThe direction of the Earth's magnetic field
  2. BAir pressure
  3. CAmbient brightness
Show answer and explanation

Answer: A. The direction of the Earth's magnetic field

An electronic compass measures Earth's magnetic field (about 25–65 µT) on three axes with Hall or magnetoresistive (AMR, TMR) sensors to determine heading, using tilt from the accelerometer to stay accurate at any orientation. Nearby speaker magnets and ferrous parts distort the reading (hard- and soft-iron effects), which is why users are sometimes asked to wave the device in a figure-eight to calibrate.