![Pololu Zumo Shield For Arduino Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/pololu/zumo-shield-for-arduino/zumo-shield-for-arduino_user-manual_1574974032.webp)
the Arduino’s internal pull-up to pull the pin high otherwise. The Pushbutton part of our
[https://www.pololu.com/docs/0J57/6]
, makes it easy to detect and
debounce button presses with this pushbutton.
Motor driver
An integrated
[https://www.pololu.com/product/2135]
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
object in the
[https://www.pololu.com/docs/0J57/6]
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
object in the
[https://www.pololu.com/docs/0J57/6]
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
Front expansion area
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
Inertial sensors
The Zumo Shield includes on-board inertial sensors, which can be used to sense acceleration and
orientation for advanced applications:
Pololu Zumo Shield for Arduino User’s Guide
© 2001–2019 Pololu Corporation
3. The Zumo Shield in detail
Page 32 of 52