A microscopic weight gives the phone a sense of tilt

Inside many phones, the accelerometer is a tiny chip containing a movable mass held in place by microscopic springs. When the phone tips or speeds up, the chip moves with it, but the mass briefly lags behind because of inertia. That small difference in motion bends the springs and shifts the mass relative to the chip.

The movement is far too small to see. The sensor detects it electrically: as the mass shifts, the spacing between it and nearby electrodes changes, altering their electrical capacitance. The chip turns that change into a measurement of acceleration.

How that becomes a screen rotation

A phone’s software interprets measurements along several axes. When the device is still, Earth’s gravity contributes a steady acceleration signal, letting the phone estimate which way is down. As you turn the phone from portrait to landscape, the direction of that signal changes relative to the device.

The operating system uses this information to decide whether the display should rotate. It generally applies filtering and rules, rather than reacting to every tiny wobble, so a brief hand tremor does not keep flipping the screen. The accelerometer measures motion; software makes the display decision.

A spring, not a miniature switch

The mechanism is a microelectromechanical system, or MEMS: a mechanical structure built at chip scale. Its suspended mass does not need to travel far. A minute shift is enough to produce a detectable electrical change, allowing a component only a few millimeters across to sense how the phone is moving—and help turn a change in tilt into a new screen layout.