3-axis Accelerometer¶
Accelerometer data:
Acceleration along x - axis
Acceleration along y - axis
Acceleration along z – axis
Magnitude of 3-D acceleration data:
Sqr(acc_x^2 + acc_y^2 + acc_z^2)
Get the difference in this magnitude from the previous value.
If the value is greater than a particular threshold value, then increment the steps count.
-Threshold for walking = 6
-Threshold for running = 10