Différences entre versions de « Pololu-Zumo-Shield-Arduino-fonctionnalites »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 11 : Ligne 11 :
  
 
== Alimentation ==
 
== Alimentation ==
The Zumo chassis has an internal compartment for four AA batteries. We recommend using rechargeable AA NiMH cells, which results in a nominal voltage of 4.8 V (1.2 V per cell). You can also use alkaline cells, which would nominally give you 6V.
+
Le châssis Zumo dispose d'un comportement interne pour 4 piles AA. Pololu recommande l'utilisation de piles NiMH AA rechargeables, ce qui représente une tension nominale de 4.8 V (1.2 V par pile). Vous pouvez également utiliser des piles alcaline, ce qui produit une tension nominale de 6V.
  
A direct connection to the battery terminals is provided by the battery charger connector on the rear edge of the shield, which can be used to recharge the Zumo’s batteries without removing them from the chassis. The positive pin of the charge connector, on the left, is indicated by a plus sign (+). A charger like the iMAX-B6AC {{polpl|2588}}, connected by clipping its alligator clips to a pair of jumper wires inserted into the charge connector, works well for charging the Zumo.
+
La bordure arrière du shield Zumo reprend un connecteur femelle deux pôles connecté directement sur les connecteurs des piles. Ce connecteur peut être utilisé pour recharger les piles du Zumo sans retirer les piles du châssis. La broche positive du connecteur de recharge est sur la gauche  et identifié par un signe (+). Un chargeur tel que le iMAX-B6AC {{polpl|2588}}, connecté sur des fils de prototypage permet de recgarger directement le Zumo.
  
After passing through reverse protection, the battery voltage is connected to the rest of the shield by the power switch. The switched battery voltage is designated VBAT and provides power to the motors through the DRV8835 motor driver. An on-board boost regulator, also supplied from VBAT, generates 7.45 V to power the Arduino through its Vin pin. In turn, the Arduino’s regulated 5V and 3.3V voltages supply power to the motor driver logic, buzzer circuit, and compass module on the Zumo Shield.
+
Après la protection contre la polarisation inverse accidentelle, la tension des piles est connecté sur le reste du shield par l'intermédiaire de l'interrupteur d'alimentation. Cette tension d'alimentation (derrière l'interrupteur) est désigné comme VBAT et fournit la puissance aux moteurs par l'intermédiaire du DRV8835. Un régulateur boost est également alimenté par VBAT et produit une tension de 7.45 V permettant d'alimenter votre Arduino par l'intermédiaire de la broche Vin. Par la suite, les régulateurs 5V et 3.3V de votre Arduino fournira la tension d'alimentation au contrôleur moteur (étage logique), au buzzer et à la boussole du Zumo Shield.
  
{{ambox-stop|text=Warning: When powering the Arduino from the Zumo Shield, you must never connect a different power supply to the Arduino’s VIN pin or plug a power supply into the Arduino’s power jack, as doing so will create a short between the shield’s power supply and the Arduino’s power supply that could permanently damage both the Arduino and the Zumo Shield.}}
+
{{ambox-stop|text=Attention: lorsque vous alimentez votre Arduino depuis le shield Zumo, vous ne devez JAMAIS connecter une source d'alimentation différente sur la broche VIN -ou- connecteur d'alimentation de votre Arduino. Si vous le faites cela créera un court-circuit entre l'alimentation du shield et l'alimentation de l'Arduino, ce qui pourrait endommager votre Arduino et le shield Zumo de façon permanente.}}
  
{{ambox|text=When the Arduino is connected to a computer via USB, it will receive power (and supply 5V and 3.3V to the shield) even when the Zumo Shield’s power switch is off. This can be useful if you want to test your Arduino program without allowing the motors to run, since turning the power switch off disconnects motor power (VBAT).}}
+
{{ambox|text=Lorsque votre Arduino est connecté sur votre ordinateur par l'intermédiaire du port USB, votre Arduino sera alimenté (et produira du 5V et 3.3V sur le shield) même si l'interrupteur du shield Zumo est coupé. Cette fonctionnalité est bien pratique si vous voulez tester votre programme Arduino sans permettre aux moteurs de fonctionner (puisque l'interrupteur ouvert déconnecte l'alimentation VBAT des moteurs.}}
  
 
== LEDs ==
 
== LEDs ==

Version du 9 avril 2017 à 20:05

Fonctionnalités principales

Les fonctionnalités de base du shield Zumo (v1.2) sont indiqués sur le diagramme suivant:

Pololu-Zumo-Shield-Arduino-fonctionnalites-00.jpg

Zumo Shield, v1.2, vue du dessus avec identification des composants

Cliquer l'image pour l'agrandir

Pour le shield Zumo original, un diagramme correspond est disponible ici (206k, jpg) (la seule différence concerne le senseur intertiel placé sur la carte).

Alimentation

Le châssis Zumo dispose d'un comportement interne pour 4 piles AA. Pololu recommande l'utilisation de piles NiMH AA rechargeables, ce qui représente une tension nominale de 4.8 V (1.2 V par pile). Vous pouvez également utiliser des piles alcaline, ce qui produit une tension nominale de 6V.

La bordure arrière du shield Zumo reprend un connecteur femelle deux pôles connecté directement sur les connecteurs des piles. Ce connecteur peut être utilisé pour recharger les piles du Zumo sans retirer les piles du châssis. La broche positive du connecteur de recharge est sur la gauche et identifié par un signe (+). Un chargeur tel que le iMAX-B6AC lien pololu, connecté sur des fils de prototypage permet de recgarger directement le Zumo.

Après la protection contre la polarisation inverse accidentelle, la tension des piles est connecté sur le reste du shield par l'intermédiaire de l'interrupteur d'alimentation. Cette tension d'alimentation (derrière l'interrupteur) est désigné comme VBAT et fournit la puissance aux moteurs par l'intermédiaire du DRV8835. Un régulateur boost est également alimenté par VBAT et produit une tension de 7.45 V permettant d'alimenter votre Arduino par l'intermédiaire de la broche Vin. Par la suite, les régulateurs 5V et 3.3V de votre Arduino fournira la tension d'alimentation au contrôleur moteur (étage logique), au buzzer et à la boussole du Zumo Shield.

LEDs

There are five LEDs on the Zumo Shield:

  • A set of power LEDs, one bleu and one rouge, is located in each of the two rear corners of the shield.
  • A jaune user LED is located on the right edge of the shield. It is connected to digital pin 13 on the Arduino, in parallel with the Arduino’s onboard user LED.

Boutons poussoirs

Two pushbuttons can be soldered to the Zumo Shield:

  • The reset pushbutton is located on the left edge of the shield. It is connected to the Arduino’s RESET pin and can be pressed to reset the Arduino.
  • The user pushbutton is located on the rear edge of the shield. It is connected to digital pin 12 on the Arduino; pressing the button pulls the pin low, and we recommend enabling the Arduino’s internal pull-up to pull the pin high otherwise. The Pushbutton library, included with our Zumo Shield libraries, makes it easy to detect and debounce button presses with this pushbutton.

Pilote moteur

An integrated DRV8835 dual motor driver on the Zumo Shield drives the Zumo’s two micro metal gearmotors. Four Arduino pins are used to control the driver:

  • Digital pin 7 controls the right motor direction (LOW drives the motor forward, HIGH drives it in reverse).
  • Digital pin 8 controls the left motor direction.
  • Digital pin 9 controls the right motor speed with PWM (pulse width modulation).
  • Digital pin 10 controls the left motor speed with PWM.

The ZumoMotors library provides functions that allow you to easily control the motors, and it can optionally take care of flipping a direction signal for you if you accidentally soldered in a motor backwards.

Buzzer

The Zumo Shield comes with a buzzer that can be used to generate simple sounds and music (for example, you could use it to produce an audible countdown at the beginning of a sumo match). The buzzer control line is labeled BZ on the shield; if you alternate between driving it high and low at a given frequency, the buzzer will produce sound at that frequency.

The ZumoBuzzer library uses hardware PWM to play notes on the buzzer, with digital pin 3 (OC2B) on an Arduino Uno or an older Arduino, or with digital pin 6 (OC4D) on an Arduino Leonardo or A-Star 32U4 Prime. A jumper is provided to connect the BZ input to the appropriate Arduino output, as detailed in Section 3.c.

Zone d'extension avant

A number of I/O, power, and ground connections are brought to the front of the Zumo Shield to allow the mounting of additional sensors and other components. The pinout of this front expansion area is detailed in Section 3.b.

Senseurs Inertiels

The Zumo Shield includes on-board inertial sensors, which can be used to sense acceleration and orientation for advanced applications:

  • The v1.2 Zumo Shield features an LSM303D 3-axis accelerometer and magnetometer and an L3GD20H 3-axis gyroscope.
  • The original Zumo Shield features an LSM303DLHC 3-axis accelerometer and magnetometer.

The inertial sensors are detailed in Section 3.d.


Basé sur "Zumo Shield for Arduino" de Pololu (www.pololu.com/docs/0J57) - Traduit en Français par shop.mchobby.be CC-BY-SA pour la traduction
Toute copie doit contenir ce crédit, lien vers cette page et la section "crédit de traduction". Traduit avec l'autorisation expresse de Pololu (www.pololu.com)

Based on "Zumo Shield for Arduino" from Pololu (www.pololu.com/docs/0J57) - Translated to French by shop.mchobby.be CC-BY-SA for the translation
Copies must includes this credit, link to this page and the section "crédit de traduction" (translation credit). Translated with the Pololu's authorization (www.pololu.com)