Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Adafruit Motor Shield V2-NAV}}
 
{{Adafruit Motor Shield V2-NAV}}
  −
{{traduction}}
      
== Brancher un moteur continu ==
 
== Brancher un moteur continu ==
Ligne 64 : Ligne 62 :  
Pour faire tourner le moteur, appeler la fonction '''run(la_direction)''' où la_direction est soit '''FORWARD''' (avant), '''BACKWARD''' (arrière) ou '''RELEASE''' (relaché, inactif).  
 
Pour faire tourner le moteur, appeler la fonction '''run(la_direction)''' où la_direction est soit '''FORWARD''' (avant), '''BACKWARD''' (arrière) ou '''RELEASE''' (relaché, inactif).  
   −
Bien entendu, Arduino Of course, the Arduino doesn't actually know if the motor is 'forward' or 'backward', so if you want to change which way it thinks is forward, simply swap the two wires from the motor to the shield.
+
Bien entendu, Arduino ne sait pas à quoi correspond le sens avant/arrière du moteur. Si le moteur ne fonctionne pas dans le sens attendu lorsque vous envoyez l'instruction ''run(FORWARD)'' alors inversez simplement les deux fils de connexion du moteur.
    
  myMotor->run(FORWARD);
 
  myMotor->run(FORWARD);
    
{{Adafruit Motor Shield V2-TRAILER}}
 
{{Adafruit Motor Shield V2-TRAILER}}
29 917

modifications

Menu de navigation