Projets:Finger Starter

De wikilab

Description du projet

Le projet est de réaliser un finger starter proposé par Inmoov : finger starter

Cahier des charges

Utiliser un kit de capteurs afin de contrôler le finger starter de manière originale.

Analyse de l'existant

http://inmoov.fr/finger-starter/

Equipe (Porteur de projet et contributeurs)

  • Concepteurs/contributeurs : Alix
  • Fabmanager référent : Yo
  • Responsable de documentation : Yo

Matériel nécessaire


Outils nécessaires

  • Un ordinateur

Coût

  • - de 50€

Fichiers source

finger starter


Image des différentes versions réalisée avec le code correspondant

  • 1 - Joystick
int muscle;
//servo library
#include <Servo.h>
Servo myservo;  // create servo object to control a servo
int val;    // variable to read the value from the analog pin

void setup()
{
  myservo.attach(7);  // attaches the servo on pin 9 to the servo object
  Serial.begin(57600);
  pinMode(A0,INPUT);
    myservo.write(0);
}
void loop()
{
//muscle
muscle=analogRead(A0);
Serial.println(muscle);

 //action of the finger
 if(muscle>20){
  kikoo();
  }
  else{
  myservo.write(50);
  delay(100);
  }
 }

//action of the finger : the last point is without tension (90 degrees).
void kikoo(){
  myservo.write(100);
  delay(100);   
}