miuradio
How Computers WorkHow the computer in your hands really works.›

How Computers Work

How does your phone know which way is up?

Premieres today. Follow to see it first.

Story

Turn it sideways and the screen turns with it. Toss it, and it still knows.

Inside is an accelerometer: a tiny weight held on springs, with plates that measure how far it moves. A laptop can have one too. One we read lying on a desk showed 0.997 g, all of it through the keyboard, about 800 times a second (17 October 2026).

That isn't gravity. Gravity pulls the weight and the chip alike, so the springs can't feel it. What they feel is the desk pushing up, and that push says where down is. Drop it, and everything falls together: the weight floats and the reading drops to almost nothing. Chips use exactly that to spot a fall (Analog Devices suggests flagging anything under 0.3 to 0.6 g on all three axes), and older Mac laptops used it to park their hard drive heads when dropped.

In mid-air, nothing pushes from the ground, so the accelerometer can't find down. So a machine that flips needs a second sensor: a gyroscope, another tiny weight kept vibrating. When the chip turns, the vibration gets pushed sideways (the Coriolis effect), and that says how fast it's turning. Add up every turn since it last felt the ground, and it knows where up is, even upside down. The pair is called an inertial measurement unit (IMU). The first iPhone had the accelerometer in 2007; the iPhone 4 added the gyro in 2010.

Cars measure it too: since September 2011, every new car made for the US has had to measure how fast it's turning (the US electronic stability control rule, FMVSS 126).

The phone, the sensor and the cars are our own simplified drawings, not real products.

Has your screen ever flipped while you read lying on your side?

Sources: Analog Devices, ADXL345 data sheet, 2009; InvenSense, MPU-6000/MPU-6050 Product Specification, 2011; Apple, Apple Reinvents the Phone with iPhone, 9 January 2007, and Apple Presents iPhone 4, 7 June 2010; Apple, Mac notebooks: About the Sudden Motion Sensor; US Federal Motor Vehicle Safety Standard 126 (49 CFR 571.126); our own reading of a laptop's sensors, 2026.
Sounds and music: made by us.

Link copied