Modifications

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}}
29 917

modifications

Menu de navigation