Skip to content

jonitef/SensorProject

Repository files navigation

StepCounter

School project, sensor based mobile application. Made by Joni Tefke and Tili Liljeström.

Project done with Android Studio and Kotlin. Utilizes Google ARCore and osmdroid (OpenStreetMap) map.
Application counts daily steps with Android internal sensor (STEP_DETECTOR) and saves them to SQLite DB.
Possibility to collect trophies which are placed to random location on the map based on the user location. If the user location to the trophy is more than 8km, the trophies are replaced. Trophy locations are also saved to SQLite.
Navigation in application is done with fragments (home fragment, statistics fragment, map fragment, ar fragment and settings fragment).
Home fragment shows a progress bar with steps for the day and walked high score and the day it was walked if there is one. Progress bar status is based on preference settings value (from 5000 to 15000).

Picture 1: Home view with progress bar. Preference is set to 5000 step goal for the day.


Picture 2: Home view with progress bar. Preference is set to 10000 step goal for the day.


Statistics fragment shows the user's all time walked steps, level, experience and trophy count as live data. Also maximum 30 days step count history is shown in a graph. Level is based on the walked steps and trophies collected.

Picture 3: Statistics view.


Map view (osmdroid) shows the user's location and the trophies that are able to be collected when the user is near the trophy location (less than 150 meters) and clicking it will open AR view (Google ARCore) and show the 3D trophy. One trophy will give 500 experience points and collecting them will level up faster because we want to motivate the user to walk more.

Picture 4: Map view with trophies placed to random locations (total trophy count at all times is 11). Zooming out will show more trophies on the map.


Picture 5: AR view with the 3D trophy model. Clicking it will "collect" it and give 500 experience points.


Currently there are 4 available color themes: black, blue, green, red which are changed from the settings. Also the user can change the daily step goal from settings. This step goal value is then updated to progress bar on home view (pictures 1 and 2).

Picture 6, 7: Settings view where the user can change step goal for the day and/or application color theme.


Picture 8: Application color theme changed to blue.


Team Team

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages