Skip to content

App implementing a custom algorithm in order to count steps using the accelerometer along with direction tracking.

Notifications You must be signed in to change notification settings

patrickcamargo7/android-pedometer

Repository files navigation

android-pedometer

Requirements:

  1. Count steps in 2 orthogonal directions
  2. Button to reset steps
  3. Calibration
  4. Low error rate

Components/Checklist:

  • Pedometer: steps taken - Pierre
  • Orientation: direction of steps
    • Get acc + mag sensor combo working together to produce an azimuth - Tian
    • Calculate the North and East components of each step taken - Tian
    • Smooth the sensors - Pierre
  • Map - Tian
  • Reset button - Nelson
  • Calibration button/popup - disables steps - Nelson
  • (Optional) Pause step counting when a high angular velocity is detected to reduce false postives.

Implementation:

  • Step detection code will be carried over from previous lab
  • Each time step is updated a method will be called to update the North and East components of the step, from sin(theta) and cos(theta), theta value obtained from orientation sensor

Buttons:

  • reset: changes all steps to 0
  • calibration: disables step registering, show popup dialog to rotate phone

About

App implementing a custom algorithm in order to count steps using the accelerometer along with direction tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages