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.
Building and Running the Pebble App
- Open CloudPebble
- Click the
Importbutton on the right
Import From GitHub
- Give the project a name of your choice
github.com/JoshuaJB/pebble-accel-login the textbox for
- Leave the
- Once the IDE loads, choose
Compilationfrom the left menu
- Once the build finishes do one of the following
Install on APLITEOR
Install and Run
Building and Running the Android App
- Install Android Studio
- Clone this Git repository with your favorite client OR
Download ZIPon the bottom right of the GitHub page
- In Android Studio, open the project by left clicking the
Filemenu and pressing
Open.... In the dialog that comes up, navigate to the directory where you unziped your download or cloned this repository. Select the
androiddirectory and press
- While the project loads (it may take a couple minutes) you can setup your device. Follow Google's Official Guide then turn on
Developer 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. Select
Choose a running device, select your connected device, and press
- 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.
jbak ita at cs z unc z edu where the zs are dots and there are no spaces.