Motion sensors
or: a silicon gyroscope that hates when you lie down
Inside your phone is a sliver of silicon smaller than a grain of rice with microscopic springs and weights carved into it by the same machines that make computer chips1, and one part keeps a tiny mass vibrating so that when you turn, the Coriolis effect, the same force that decides which way hurricanes spin, shoves it sideways, while another part feels gravity nudge its silicon fingers a few nanometers2. It is the same family of sensor that fires car airbags; the first commercial one went on sale in 1993 to detect crashes3.
How it works, badly
Wait, is that real?
Yes, your phone has moving parts; they are just very, very small.
The silicon springs↩
MEMS, short for micro-electromechanical systems, are tiny moving machines etched out of silicon with chipmaking tools and packaged like any other chip. A phone’s accelerometer is a silicon structure smaller than a grain of rice: a small mass on springs, with comb-like fingers that sit next to fixed ones.
How it feels a turn↩
Tilt a phone and gravity shifts the accelerometer’s movable fingers by a few nanometers to several tens of nanometers, which changes the capacitance between them; lying flat, it reads about one g pointing down. A MEMS gyroscope keeps a tiny structure vibrating. When the phone rotates, the Coriolis effect pushes on the vibrating part, and measuring that push gives the rotation rate. Software combines the readings and waits for them to settle before it turns the screen.
From airbags to phones↩
The first commercial MEMS accelerometer, Analog Devices’ ADXL50, came out in 1993 for detecting car crashes. MEMS gyroscopes now also go into rollover prevention, airbag and stability control systems. The original iPhone used an accelerometer in 2007 to switch between portrait and landscape, and the iPhone 4 added a MEMS gyroscope in 2010.
The fine print↩
The Coriolis effect sets the direction hurricanes spin; it does not power them. "Smaller than a grain of rice" comes from a tech explainer, and sizes vary by chip. Screen rotation leans mostly on the accelerometer, with the gyroscope helping, and every phone has a rotation lock that we all forget about.
Sources: Make Tech Easier: how phone accelerometers detect orientation; Wikipedia: vibrating structure gyroscope; TechCrunch: inside the iPhone 4's gyroscope
Last fact-checked .