Modifications

Sauter à la navigation Sauter à la recherche
726 octets ajoutés ,  16 décembre 2012 à 15:03
aucun résumé de modification
Ligne 97 : Ligne 97 :  
Make sure you have installed the AFMotor library
 
Make sure you have installed the AFMotor library
   −
== How do I install the library? ==
+
== Comment installer une librairie? ==
   −
*** LIEN vers article en français ***
+
Nous pouvons vous proposer notre article [[Installation d'un librairie Arduino]]<br />
 +
[http://www.ladyada.net/library/arduino/libraries.html AdaFruit dispose également d'un tutoriel sur les librairies] (''AdaFruit'' en anglais).
   −
[http://www.ladyada.net/library/arduino/libraries.html Read our tutorial on libraries] (''AdaFruit'' en anglais).
+
== J'ai deux moteurs pas-à-pas que je veux faire fonctionner en même temps! ==
 +
J'ai deux moteurs pas-à-pas que je veux faire fonctionner en même temps... mais le code d'exemple n'en fait fonctionner qu'un seul à la fois (l'un puis l'autre). Comment puis-je faire?
   −
== I have two stepper motors and I want to run them simulaneously but the example code can only control one and then the other? ==
+
La fonction step() de la libraire des moteurs pas-à-pas n'a pas la possibilité de faire fonctionner deux moteurs en même temps.
   −
The stepper motor library step() routine does not have the ability to run both motors at a time. Instead, you will have to 'interleave' the calls. For example, to have both motors step forward 100 times you must write code like this:
+
Vous devrez donc combiner et imbriquer vos appels de fonctions step() pour atteindre ce résultat ('''interleave' the calls'' en anglais).  
 +
 
 +
Par exemple, si vous voulez que vos deux moteurs pas-à-pas avances de 100 fois, vous devez juste écrire votre code comme suit:
    
<nowiki>for (i=0; i<100; i++) {
 
<nowiki>for (i=0; i<100; i++) {
Ligne 112 : Ligne 116 :  
}</nowiki>
 
}</nowiki>
   −
{{ambox | text = No existing stepper motor driver has the ability to 'intelligently' interleave the steps. You will have to write a loop or use interrupts to control the motors the way you'd like. }}
+
{{ambox | text = Il n'existe pas de pilotes de moteurs pas-à-pas capable d'imbriquer les pas de façon "intelligente". Vous aurez besoin d'écrire une boucle ou utiliser le contrôle des interruptions pour atteindre un tel niveau de contrôle de vos moteurs. }}
 
  −
== What are some 'suggested motors'? ==
     −
Most people buy motors from surplus shops and no motor will make everyone happy
+
== Quel sont les moteurs suggérés? ==
 +
Le shield Moteur (MotorShield) d'AdaFruit est capable de faire fonctionner de nombreux moteurs.
   −
However, since its a popular question, I suggest buying motors from Pololu ([http://www.pololu.com/catalog/category/23 DC Servos], [http://www.pololu.com/catalog/category/51 DC motors]) or Jameco ([http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDrillDownView?langId=-1&storeId=10001&catalogId=10001&categoryName=cat_35&subCategoryName=Motors&category=3515&refine=1&jameco_page=54 all sorts]!) As well as the [http://www.ladyada.net/library/procure/hobbyist.html many surplus webshops].
+
Vous pouvez trouver des moteurs:
 +
# Dans la section [http://mchobby.be/PrestaShop/category.php?id_category=17 "moteur et Robotique" de MCHobby].<br />
 +
# Beaucoup de magasins d'électronique sont également capable de vous fournir du matériel satisfaisant.
 +
# Vous pouvez également acheter des moteurs de Pololu ([http://www.pololu.com/catalog/category/23 DC Servos], [http://www.pololu.com/catalog/category/51 DC motors]) ou Jameco ([http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDrillDownView?langId=-1&storeId=10001&catalogId=10001&categoryName=cat_35&subCategoryName=Motors&category=3515&refine=1&jameco_page=54 all sorts]!).
 +
# [http://www.ladyada.net/library/procure/hobbyist.html Cette page d'AdaFruit reprend également quelques WebShops].
    
{{ADF-Accord}}
 
{{ADF-Accord}}
    
{{MCH-Accord}}
 
{{MCH-Accord}}
29 917

modifications

Menu de navigation