Modifications

Sauter à la navigation Sauter à la recherche
442 octets ajoutés ,  2 septembre 2017 à 15:32
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Rasp-Hat-Moteur-NAV}}
 
{{Rasp-Hat-Moteur-NAV}}
   −
{{traduction}}
   
== Installation de la partie logicielle ==
 
== Installation de la partie logicielle ==
We have a Python library you can use to control DC and stepper motors, its probably the easiest way to get started, and python has support for multithreading which can be really handy when running multiple stepper motors at onces!
+
Adafruit propose une bibliothèque Python permettant de contrôler les moteurs continus et moteurs pas-à-pas. Il s'agit là de la façon la plus facile de débuter et comme Python  supporte le multithreading, il est très facile de faire fonctionner plusieurs moteurs pas-à-pas en même temps!
    
== Activer I2C ==
 
== Activer I2C ==
[[Rasp-Hack-GPIO_Configurer_I2C|You will have to make I2C support work on your Pi before you begin, visit our tutorial to enable I2C in the kernel!]]
+
[[Rasp-Hack-GPIO_Configurer_I2C|Il sera nécessaire d'activer le support du bus I2C sur le Raspberry-Pi avant de faire foncitonner le shield. N'hésitez pas à visiter notre tutoriel expliquant comment activer I2C dans le noyaux!]]
   −
Before you start, you'll need to have the python smbus library installed as well as 'git', run '''apt-get install python-smbus git'''
+
Avant de démarrer, il sera également nécessaire d'installer la bibliothèque smbus python et "git". Exécuter la commande suivante pour installer ces éléments
 +
 
 +
apt-get install python-smbus git
    
== Télécharger le code depuis GitHub ==
 
== Télécharger le code depuis GitHub ==
The easiest way to get the code onto your Pi is to hook up an Ethernet cable or with a WiFi setup, and clone it directly using 'git', which is installed by default on most distros.
+
La façon la plus simple de placer le code sur le Raspberry-Pi est de brancher un câble éthernet (ou procéder à la configuration WiFi et de cloner le contenu du Git (ce qui fonctionne sur la plupart des distributions).
   −
Simply run the following commands from an appropriate location (ex. "/home/pi"):
+
Exécutez simplement les commandes suivantes depuis le répertoire approprié (ex. "/home/pi"):
    
  <nowiki>git clone https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library.git
 
  <nowiki>git clone https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library.git
 
cd Adafruit-Motor-HAT-Python-Library</nowiki>
 
cd Adafruit-Motor-HAT-Python-Library</nowiki>
   −
Install python-dev if you havent already:
+
Installer python-dev si ce n'est pas déjà fait:
    
  <nowiki>sudo apt-get install python-dev</nowiki>
 
  <nowiki>sudo apt-get install python-dev</nowiki>
   −
Now install it with the setup install command:
+
Nous allons maintenant installer la bibliothèque dans l'environnement Python la commande suivante:
    
  <nowiki>sudo python setup.py install</nowiki>
 
  <nowiki>sudo python setup.py install</nowiki>
   −
{{ADFImage|Rasp-Hat-Moteur-Logiciel-00.png|480px}}
+
{{ADFImage|Rasp-Hat-Moteur-Logiciel-00.png|640px}}
   −
That's it! Now you can get started with testing. Run:
+
Voilà, nous sommes prêt à débuter nos tests. Exécutez la commande suivante depuis le répertoire de la bibliothèque du Hat Moteur :
    
  <nowiki>cd examples</nowiki>
 
  <nowiki>cd examples</nowiki>
   −
from within the Motor HAT library folder, we have a couple examples to demonstrate the different types of motors and configurations. The next few pages will explain them
+
Le répertoire "examples" contient une série d'exemples démontrant le fonctionnement pour différents types de moteur et différentes configuration. Les pages suivantes vont présenter ces différents exemples.
    
{{Rasp-Hat-Moteur-TRAILER}}
 
{{Rasp-Hat-Moteur-TRAILER}}
29 917

modifications

Menu de navigation