Sunday, June 5, 2016

Detecting exercise type and repetitions using mobile phone gyroscope

Today, I have been experimenting to see if I can detect the EXERCISE pattern and number of REPETITIONS using Android gyroscope:

leaning forward - literally bowing forward, 3 repetitions, phone centered on sternum, upright.

You can see by: 
- X axis (blue) I am clearly doing 3 exercises
- Y axis (green) is not changing, I am not leaning to the side
- Z axis (yellow) is not changing, I am not moving up or down
- Acceleration (orange) I was going faster at first and then slowing down 


Now, I just need to ROUND OFF the numbers to DISCRETE VALUES and DIVIDE the exercise by the reps :)