Before we begin looking at our hardware or Python program for this project, it is worth spending a little bit of time understanding how a pedometer uses the data from an accelerometer to calculate steps taken. If you already use a pedometer and have compared the results from one application or device to that of another, you are probably aware that they will nearly always differ in their readings. This is because each pedometer will be using a slightly different algorithm to calculate steps taken from the data it is receiving from the accelerometer.
Our accelerometer measures acceleration through three different axis, x, y, and z, and it returns these as a measurement relative to the gravitational pull upon the device.
This image displays the three axis of movement which our accelerometer can detect:
Now, if we think about how a person walks, they bounce...