Electric utility articles

How does a phone know which way north is?

A phone compass beside a handheld magnetic compass

A phone can have a small sensor called a magnetometer. It measures the magnetic field in several directions. The phone can use those measurements to estimate which way it’s pointing relative to Earth’s field.

Why does tilting the phone matter?

Earth’s field doesn’t run flat along the ground everywhere. When you tilt the phone, the parts of the field its sensor sees change. The phone can combine magnetic measurements with information about which way it’s tilted to work out a heading.

Why does it sometimes point the wrong way near a car or speaker?

Nearby metal or a magnet can change the field around the phone. The sensor can’t automatically tell every local field apart from Earth’s. The compass can give a different reading as you move away from the object.

For more on magnetic fields and how sensors turn them into electrical signals, see Basics of Electric Utilities 101.