Assignment 1 - Step Counting on an Android Phone

You will build your first Android app that uses the built-in sensors for something useful. This app will count the number of steps that you have taken and show that number on the screen. You will be using the raw data from the accelerometer and/or gyroscope to complete this task. The data will require some very simple signal processing. You can use peak detection, zero crossing, or your own technique for counting. You can assume the user only holds the phone in a fixed posture in their hands. You are welcome to assume a different placement or posture of the phone, but please be sure to document how the device needs to be held somewhere on the interface.

Grading:

Starting Materials:

Starter code: link
Instructions for setting up the Huawei Honor 4 phone: link

Deliverables:

Source code (.zip, .tar, or GitHub link): link
In-class demo