I’m primarily talking about stuff like step counters, but also health apps measuring your heart rate, how many stairs you take, the length of your steps, and so on. I’m honest when you tell me to explain it to me like I’m five years old, this one boggles my mind.

  • Tywèle [she|her]
    link
    fedilink
    6
    edit-2
    4 months ago

    The sensor to detect the orientation of the phone is the gyroscope sensor not the accelerometer, which is only there to measure acceleration of the phone.

    • @Bgugi@lemmy.world
      link
      fedilink
      44 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.