Comment on ELI5: how do mobile devices know your movements?
simple@lemm.ee 3 months ago
Your phone has something called an accelerometer in it, it’s a sensor that can tell the orientation of the device. It tracks your rhythm with the phone swinging left and right to tell when you take a step or climbed some stairs. Many apps also use your GPS location to give you a rough estimate if your accelerometer isn’t up for it.
Tywele@lemmy.dbzer0.com 3 months ago
The sensor to detect the orientation of the phone is a gyroscope sensor not the accelerometer, which is only to measure acceleration of the phone.
Bgugi@lemmy.world 3 months ago
Not quite right. The gyroscope tracks rotation. It’s really good at telling when your phone is making rapid turns, but has a a really hard time knowing the difference between a stationary phone and one that’s turning very slowly. It also can’t tell which direction it’s starting from.
The accelerometer is used to tell which way is down, by averaging the acceleration of gravity over time. It can get confused while the phone is in motion, but when things slow down it keeps the gyroscope from wandering around.