Outils pour utilisateurs

Outils du site


start:arduino:emg:diy

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
start:arduino:emg:diy [2023/02/14 12:24] – [Fichier GitHub] gerardadminstart:arduino:emg:diy [2023/02/14 12:27] (Version actuelle) – [Fichier GitHub] gerardadmin
Ligne 122: Ligne 122:
 [[https://github.com/AdvancerTechnologies|Fichier GitHub]] [[https://github.com/AdvancerTechnologies|Fichier GitHub]]
  
-[[https://github.com/AdvancerTechnologies/MuscleSensorV3/blob/master/Documents/Muscle%20Sensor%20v3%20Users%20Manual.pdf|{{ :start:arduino:emg:muscle_sensor_v3_users_manual.pdf }}+{{ :start:arduino:emg:muscle_sensor_v3_users_manual.pdf|}} 
 + 
 +{{ :start:arduino:emg:muscle_sensor_v3_schematic.pdf |}} 
 + 
 + 
 +===== Code Exemple ===== 
 + 
 +<code c exemple_EMG_Arduino.ino> 
 +// reads analog input from the five inputs from your arduino board  
 +// and sends it out via serial 
 + 
 +// variables for input pins and 
 +int analogInput[6]; 
 +   
 +// variable to store the value  
 +int value[6];  
 +  
 +void setup() 
 +
 +  // declaration of pin modes 
 +  for(int i=0;i<6;i++) 
 +  { 
 +    analogInput[i] = i+1; 
 +    value[i] = 0;      
 +    pinMode(analogInput[i], INPUT);     
 +  } 
 +   
 +  // begin sending over serial port 
 +  Serial.begin(9600); 
 +
 + 
 +void loop() 
 +
 +  // read the value on analog input 
 +  for(int i=0;i<6;i++) 
 +  { 
 +    value[i] = analogRead(analogInput[i]); 
 +  } 
 + 
 +  // print out value over the serial port 
 +  for(int i=0;i<6;i++) 
 +  { 
 +    Serial.println(10000 + i + 1); //prefix 
 +    Serial.println(value[i]); 
 +    Serial.println(10010); //end signal 
 +  } 
 +  // wait for a bit to not overload the port 
 +  delay(10); 
 +
 + 
 + 
 +</code>
/home/chanteri/www/fablab37110/data/attic/start/arduino/emg/diy.1676373899.txt.gz · Dernière modification : de gerardadmin