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
Import
button on the right - Click
Import From GitHub
- Give the project a name of your choice
- Type
github.com/JoshuaJB/pebble-accel-log
in the textbox forGitHub Project
- Leave the
Branch
textbox empty - Press
Import
- Once the IDE loads, choose
Compilation
from the left menu - Press
Run Build
- Once the build finishes do one of the following
- Click
Emulator
andInstall on APLITE
OR - Click
Phone
andInstall and Run
- Install Android Studio
- Either
- Clone this Git repository with your favorite client OR
- Click
Download ZIP
on the bottom right of the GitHub page - In Android Studio, open the project by left clicking the
File
menu and pressingOpen...
. In the dialog that comes up, navigate to the directory where you unziped your download or cloned this repository. Select theandroid
directory 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 Debugging
inDeveloper Settings
on 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 Device
should 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.