Skip to content

This is all of the code for the wearable toolkit, including code from the microbit output device, and the ios app

Notifications You must be signed in to change notification settings

LaboratoryForPlayfulComputation/AlpacaML

Repository files navigation

ALPACA ML: Automated Learning and Prototyping for Athletics and Creative Activity with Machine Learning

What is this App?

The wearable toolkit is an all purpose wearable that can be used with a variety of different activities. A bluetooth speaking device, in this case the BBC Microbit, is placed on the users body. This board is then connected to an IOS app on the users iPhone. The code for this app is what you see in this Github. This app will allow the user to video tape themselves, or have another person record them, while recieve sensor data from the bluetooth device, which for now is accleration data. The app will graph the data, and with the help of machine learning, learn to classify actions based off of the users criteria. The app could tell you if your swing is too slow, if you are extending to far out to one side, and more, not just with sports but in other fields as well. Please note that work is still in program so the app is far from fully developed.

How to Use this App

Setting up XCode and your iPhone (for first time setup only)

  1. From Xcode: Make sure your iPhone is plugged into your laptop

  2. Select your iPhone as the device you want to test on (this is on the top toolbar)

  3. Update the developer to yourself a. Select LPC Wearable Toolkit at the app level and choose LPC Wearable Toolkit as a target b. Go to General c. Update Signing > Team to be yourself (also pictured above)

  4. Make sure your iphone is unlocked

  5. Press play button on xcode top toolbar

  6. You will need to give the app permission to run on your phone, Xcode will tell you how to do this if it gives you that error

  7. The app should launch on your phone

Setting up for following runs

  1. Navigate to the application on your phone

Setting up the MicroBit

  1. Navigate to https://microbit.org/code/

  2. Click Let's Code

  3. Create a program that looks something like this

    Imgur

  4. Download the file to your MicroBit

Connecting to MicroBit

  1. Click on Connect to a new MicroBit

  2. Choose your MicroBit from the drag down menu

  3. Your MicroBit will display a diamond when you have connected

  4. Now Get Started should turn green-click on it

Setting up New Sports and Actions

  1. Click plus button

  2. Enter sport/activity name

  3. Add a description

  4. Click done when you're finished

  5. Click on your sport

  6. Click select an action and Add new

  7. Click ok when done

  8. Choose your action from the drag down menu

Training Actions

  1. Click train

  2. Click the camera icon to record a video

  3. Allow it to access your camera and microphone

  4. Attach the MicroBit to your wrist/leg/hand

  5. Click record & record a video of yourself doing the action

  6. Click allow to access photos

  7. Using your finger, highlight the areas on the graph which correspond to your action using a dragging motion

  8. Once you have selected a region, label it as good with thumbs up, bad with thumbs down, or no action with no action

  9. Do this for your actions as well as no actions on the graph

  10. When you are done select done

  11. Now select your action again

Testing Actions

  1. Press test

  2. Click go and perform your action you will receive live feedback (good or bad)

  3. When done select done

About

This is all of the code for the wearable toolkit, including code from the microbit output device, and the ios app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published