How does a pedometer distinguish steps?


Inspired by a question on pedometers.

My mom has a pedometer from 2013, I think. It can detect steps fairly well and it does not react to shaking. I tried to shake the pedometer as if I’m walking and it recorded nothing.

I have a Xiaomi smart watch and sometimes when I roll around in my bed it detects the movement as walking and adds ~20 steps.

How can a pedometer distinguish walking from shaking?

In: 1

The sensor it uses is an accelerometer, and you can record the acceleration profiles of multiple people walking and identify what that looks like on a plot, this lets you write software that filters out anything that doesn’t look like steps.