ELI5: How does the compass in my phone know which way is north?
There's a tiny sensor in your phone called a magnetometer. It measures the Earth's magnetic field in three directions. Combined with the motion sensor that knows how the phone is tilted, it can work out where magnetic north is.
That's also why your phone sometimes asks you to wave it in a figure-eight: nearby metal, magnets or speakers can confuse the sensor, and the waving helps it recalibrate. Many map apps also use your location to correct for the difference between magnetic north and true north.
What other phone sensor would you like to understand?
Comments · 0
No replies yet — start the conversation.