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

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 29 : Ligne 29 :
 
Two pushbuttons can be soldered to the Zumo Shield:
 
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 '''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.
+
* 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 [[Pololu-Zumo-Shield-Arduino-bibliotheque-Zumo|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 [[Pololu-Zumo-Shield-Arduino-bibliotheque-Zumo|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 [[Pololu-Zumo-Shield-Arduino-bibliotheque-Zumo|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.
  
 
{{Pololu-Zumo-Shield-Arduino-TRAILER}}
 
{{Pololu-Zumo-Shield-Arduino-TRAILER}}

Version du 9 avril 2017 à 14:16

Fonctionnalités principales

The main features of the Zumo Shield (v1.2) are labeled in this diagram:

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

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

Cliquer l'image pour l'agrandir

For the original Zumo Shield, a corresponding diagramme (206k, jpg) is available (the only differences are the on-board inertial sensors).

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.

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 lien pololu, connected by clipping its alligator clips to a pair of jumper wires inserted into the charge connector, works well for charging the 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.

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.


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)