A example application of Pebble's Data Logging API which sends accelerometer data to an Android app. The data is saved as CSV files, which can be analyzed by the sister project (https://github.com/JimmyWuUNC/ActivityRecognition), which performs human activity recognition using MATLAB.
- Open CloudPebble
- Click the
Importbutton on the right - Click
Import From GitHub - Give the project a name of your choice
- Type
github.com/JoshuaJB/pebble-accel-login the textbox forGitHub Project - Leave the
Branchtextbox empty - Press
Import - Once the IDE loads, choose
Compilationfrom the left menu - Press
Run Build - Once the build finishes do one of the following
- Click
EmulatorandInstall on APLITEOR - Click
PhoneandInstall and Run
- Install Android Studio
- Either
- Clone this Git repository with your favorite client OR
- Click
Download ZIPon the bottom right of the GitHub page - In Android Studio, open the project by left clicking the
Filemenu and pressingOpen.... In the dialog that comes up, navigate to the directory where you unziped your download or cloned this repository. Select theandroiddirectory and pressOpen. - While the project loads (it may take a couple minutes) you can setup your device. Follow Google's Official Guide then turn on
USB DebugginginDeveloper Settingson your phone. - If you haven't done so yet, connect your device to your computer.
- Press the play icon in Android Studio's main toolbar and wait for the build to complete.
- Once the build finishes, a dialog titled
Choose Deviceshould appear. SelectChoose a running device, select your connected device, and pressOK. - The application should be automatically loaded onto your device and run.
- Start the Android App
- Start the Pebble App
- Begin recording on the Pebble App
- Finish recording on the Pebble App
- The Pebble's accelerometer readings are displayed on the Android app in a scrollable list.
- Save the data.
Contact jbak ita at cs z unc z edu where the zs are dots and there are no spaces.