Project in progress
SmartInsoles

SmartInsoles

Play games on the go with a SmartInsole! Presenting at Bay Area MakerFaire 2014!

  • 5,230 views
  • 2 comments
  • 5 respects

Components and supplies

659 08
Adafruit Flora
×1
BLE Mini
×1
Conductive Thread
×1
Thread
×1
Button Clasps
×8
Velostat
×1
Battery 3.3 Volt
×1
Ribbon Cable
×1

About this project

Info

The Ninja jumps correctly - Test 3

Success!

Adafruit Flora Smart Insoles Hackathon Code

adafruit_flora_smart_insoles_hackathon_code.
Adafruit Flora Smart Insoles Hackathon Code

Warning: Embedding code files within the project story has been deprecated. To edit this file or add more files, go to the "Software" tab. To remove this file from the story, click on it to trigger the context menu, then click the trash can button (this won't delete it from the "Software" tab).

No code.

Maker Faire Arduino Code

Fabric touch pad feasibility test



maker_faire_adruino_code.
Maker Faire Adruino Code

Warning: Embedding code files within the project story has been deprecated. To edit this file or add more files, go to the "Software" tab. To remove this file from the story, click on it to trigger the context menu, then click the trash can button (this won't delete it from the "Software" tab).

#include <SPI.h>
#include <boards.h>
#include <services.h>
#include <ble_mini.h>

int RT=A7;
int RB=A9;
int LB=A10;
int LT=A11;

void setup(){
  BLEMini_begin(57600);
  Serial.begin(9600);
}

void loop(){
  while(BLEMini_available()==3) {

    int rtRead=analogRead(RT);

    int rbRead=analogRead(RB);
    int ltRead=analogRead(LT);
    int lbRead=analogRead(LB);
    BLEMini_write(0x0A);
    BLEMini_write(rtRead>>8);
    BLEMini_write(rtRead);
    BLEMini_write(0x0B);
    BLEMini_write(rbRead>>8);
    BLEMini_write(rbRead);
    BLEMini_write(0x0C);
    BLEMini_write(ltRead>>8);
    BLEMini_write(ltRead);
    BLEMini_write(0x0D);
    BLEMini_write(lbRead>>8);
    BLEMini_write(lbRead);
  }
}

Code for Ninja Hurdles iOS game

TapTap

iOS Game - Ninja Hurdles

SmartInsoles in action - Test 2

Still a work in progress (flip the action), but overall It works!

Ninja Hurdles Game -Test 1

Yes! the ninja actually jumps!

Team Photo

Warning: embedding parts within the project story has been deprecated. To edit, remove or add more parts, go to the "Hardware" tab. To remove this list from the story, click on it to trigger the context menu, then click the trash can button (this won't delete it from the "Hardware" tab).
659 08
Adafruit Flora
BLE Mini
Conductive Thread
Thread
Button Clasps
Velostat
Battery 3.3 Volt
Ribbon Cable

Prototype v2 of the Insoles

Code

adafruit_flora_smart_insoles_hackathon_code.Plain text
adafruit_flora_smart_insoles_hackathon_code.
#include <CapPin.h>
#include <SPI.h>
#include <boards.h>
#include <services.h>
#include <ble_mini.h>
#define FSR_SENSE A7

CapPin cPin_10 = CapPin(12);    // read pin 10 (D10 on Flora) - connect to NES B
CapPin cPin_9  = CapPin(9);
CapPin pins[] = {
  cPin_10, cPin_9};

unsigned long currentMillis;        // store the current value from millis()
unsigned long previousMillis;       // for comparison with currentMillis
int samplingInterval = 0;          // how often to run the main loop (in ms)

void setup(){
  BLEMini_begin(57600);
  Serial.begin(57600);
}

void loop() {

  while(BLEMini_available()==3) {
   
    byte pinColor=BLEMini_read();
    byte pinState=BLEMini_read();
    //delay(20);
    Serial.println("Pushing Data");
    /*Serial.println(pinColor);
     Serial.println(pinState);*/
    switch (pinColor){
    case 0xA7:
      {
        uint16_t fsrRead = analogRead(FSR_SENSE);
        //Serial.println(fsrRead);
        BLEMini_write(0x0B);
        BLEMini_write(fsrRead >> 8);
        BLEMini_write(fsrRead);
        delay (10);
       // Serial.println("WE ARE HERE 1");
        break;
      }
    case 0xAB:
      {
        uint16_t frontFoot =  pins[0].readPin(2000);
         BLEMini_write(0x0B);
         BLEMini_write(frontFoot >> 8);
         BLEMini_write(frontFoot);
         delay(10);
        break;
      }
    case 0xA9:
      {
       uint16_t  backFoot  = pins[1].readPin(2000);
         BLEMini_write(0x0B);
         BLEMini_write(backFoot >> 8);
         BLEMini_write(backFoot);
         delay(10);
        break;
      }
    }

  }

}
maker_faire_adruino_code.Plain text
maker_faire_adruino_code.
#include <SPI.h>
#include <boards.h>
#include <services.h>
#include <ble_mini.h>

int RT=A7;
int RB=A9;
int LB=A10;
int LT=A11;

void setup(){
  BLEMini_begin(57600);
  Serial.begin(9600);
}

void loop(){
  while(BLEMini_available()==3) {

    int rtRead=analogRead(RT);

    int rbRead=analogRead(RB);
    int ltRead=analogRead(LT);
    int lbRead=analogRead(LB);
    BLEMini_write(0x0A);
    BLEMini_write(rtRead>>8);
    BLEMini_write(rtRead);
    BLEMini_write(0x0B);
    BLEMini_write(rbRead>>8);
    BLEMini_write(rbRead);
    BLEMini_write(0x0C);
    BLEMini_write(ltRead>>8);
    BLEMini_write(ltRead);
    BLEMini_write(0x0D);
    BLEMini_write(lbRead>>8);
    BLEMini_write(lbRead);
  }
}

Comments

Team members

Screen shot 2014 03 29 at 4.44.54 pm
Karen Yee
  • 2 projects
  • 4 followers
Dsc 2302
Anupam Jindal
  • 2 projects
  • 3 followers
Default
Manny Karyampudi
  • 2 projects
  • 3 followers
Default
serena xu
  • 2 projects
  • 1 follower
Default
Daniel Chen
  • 2 projects
  • 0 followers
Screen shot 2014 03 30 at 1.21.59 pm
Alex Yee
  • 2 projects
  • 2 followers
Default
Chuck Huie
  • 1 project
  • 0 followers

Published on

March 30, 2014

Members who respect this project

7bee03bf1775022be8d3eae650d35c59Default

and 3 others

See similar projects
you might like

Similar projects you might like

Bluetooth Security System

Project tutorial by Victor Carreño

  • 10,989 views
  • 2 comments
  • 35 respects

GitFit

Project in progress by 6 developers

  • 2,161 views
  • 0 comments
  • 4 respects

IoT Garage Door Monitor/Opener with Finger Print Scanner

Project tutorial by PlastiBots.com

  • 14,785 views
  • 8 comments
  • 41 respects

Paper Instruments

Project in progress by 6 developers

  • 8,472 views
  • 2 comments
  • 17 respects

Distinguish walking and running using Machine Learning

Project tutorial by Jayraj Desai

  • 4,753 views
  • 2 comments
  • 23 respects

Magoo

Project in progress by 4 developers

  • 9,019 views
  • 12 comments
  • 35 respects
Add projectSign up / Login