Pololu VNH5019 Скачать руководство пользователя страница 6

3. Getting Started with an Arduino

As with virtually all other Arduino shields, connections between the Arduino and the motor driver are made via
extended stackable headers that must be soldered to the through-holes along the top and bottom edges of the
shield. This section explains how to use this motor driver as an Arduino shield to quickly and easily add control
of up to two DC motors to your Arduino project. For information on how to use this board as a general-purpose
motor driver controlled by something other than an Arduino, see

Section 4

.

3.a. What You Will Need

The following tools and components are required for getting started using this motor driver as an Arduino shield:

An Arduino.

Using this product as an Arduino shield (rather than a general-purpose motor driver board)

requires an

Arduino

[http://www.pololu.com/catalog/product/1616]

This shield should work with all Arduino and

Arduino clones that have the standard Arduino pinout. You will also need a USB cable for connecting your
Arduino to a computer. We have specifically tested this shield (using our Arduino library) with:

Arduino Uno

[http://www.pololu.com/catalog/product/1616]

◦ Arduino Duemilanove (both with ATmega168 and ATmega328P)

Arduino Mega 2560

[http://www.pololu.com/catalog/product/1698]

◦ chipKIT Max32 Arduino-Compatible Prototyping Platform (PIC32-based Arduino clone)

A soldering iron and solder.

The through-hole parts included with the shield must be soldered in before

you can plug the shield into an Arduino or before you can connect power and motors. An

inexpensive

soldering iron

[http://www.pololu.com/catalog/product/156]

will work, but you might consider investing in a

higher-performance soldering iron

[http://www.pololu.com/catalog/product/1625]

if you will be doing a lot of

work with electronics.

A power supply.

You will need a power supply, such as a battery pack, capable of delivering the current

your motors will draw. See the

Power Connections and Considerations

portion of

Section 3.c

for more

information on selecting an appropriate power supply.

One or two brushed DC motors.

This shield is a dual motor driver, so it can independently control two

bidirectional brushed DC motors. See the

Motor Connections and Considerations

portion of

Section 3.c

for

more information on selecting appropriate motors.

3.b. Assembly for Use as an Arduino Shield

1.

Stackable Arduino headers:

Before you can use this board as an Arduino shield, you need to solder the

four included Arduino header strips to the set of holes highlighted in red in the picture above. The headers
should be oriented so that the female sockets rest on the top side of the shield and face up while the male pins
protrude down through the board, and the solder connections should be made on the underside of the shield.

Pololu Dual VNH5019 Motor Driver Shield User's Guide

© 2001–2011 Pololu Corporation

3. Getting Started with an Arduino

Page 6 of 25

Содержание VNH5019

Страница 1: ...ming Your Arduino 12 4 Using as a General Purpose Motor Driver 15 4 a Assembly for Use as a General Purpose Motor Driver 15 4 b Board Connections 16 5 Schematic Diagram 19 6 Customizing the Shield 20...

Страница 2: ...ding the two VNH5019 ICs as shown in the picture to the right stackable Arduino headers and terminal blocks for connecting motors and motor power are included but are not soldered in see the Included...

Страница 3: ...0 1 header along the left side When used as a shield the motor power supply can optionally be used to power the Arduino base as well Arduino pin mappings can be customized if the default mappings are...

Страница 4: ...r 16 A and each header pin pair is only rated for a combined 6 A so for higher power applications thick wires should be soldered directly to the board When not using this board as an Arduino shield yo...

Страница 5: ...u com catalog product 2502 If you need technical support or have any feedback you would like to share you can contact us http www pololu com contact directly or post on our forum http forum pololu com...

Страница 6: ...soldering iron and solder The through hole parts included with the shield must be soldered in before you can plug the shield into an Arduino or before you can connect power and motors An inexpensive...

Страница 7: ...ect the shield power to the Arduino s VIN pin You should not use this to power the shield from the Arduino as this connection is not designed to handle high currents and you should never supply power...

Страница 8: ...4 M1INB Motor 1 direction input B Digital 6 M1EN DIAG Motor 1 enable input fault output Digital 7 M2INA Motor 2 direction input A Digital 8 M2INB Motor 2 direction input B Digital 9 M1PWM Motor 1 spee...

Страница 9: ...ng motors A high side reverse voltage protection MOSFET prevents the shield from being damaged if shield power is inadvertently connected backwards Logic power VDD is automatically supplied by the Ard...

Страница 10: ...supply and the Arduino s power supply that could permanently damage both the Arduino and the motor shield In this case it is also important that your shield power supply is an acceptable voltage for y...

Страница 11: ...hat will cause it to exceed 12 A for prolonged periods of time or you take extra steps to keep the motor drivers cool such as increasing air flow or adding heat sinks Exceeding 12 A for long durations...

Страница 12: ...se can typically range from 10 uF to a few hundred uF 3 d Programming Your Arduino Our Arduino library for the dual VNH5019 motor driver shield makes it easy to get started writing your Arduino sketch...

Страница 13: ...2Speed i stopIfFault if i 200 100 Serial print M2 current Serial println md getM2CurrentMilliamps delay 2 for int i 400 i 0 i md setM2Speed i stopIfFault if i 200 100 Serial print M2 current Serial pr...

Страница 14: ...et you can still try out this sketch and use the motor indicator LEDs for feedback that it s working properly Pololu Dual VNH5019 Motor Driver Shield User s Guide 2001 2011 Pololu Corporation 3 Gettin...

Страница 15: ...connections The six large holes twelve small holes on the right side of the board highlighted in yellow in the above diagram are the motor outputs and power inputs You can optionally solder the includ...

Страница 16: ...gnal to the MxINA B pins directly results in drive brake operation outputs drive during the high portion of the PWM and are shorted together during the low portion while supplying the PWM signal to th...

Страница 17: ...ut A clockwise input MxINB FLOATING Motor direction input B counterclockwise input MxCS Current sense output The pin voltage is roughly 140 mV per amp of output current when the CS_DIS pin is low or d...

Страница 18: ...s capable of delivering the current your motors will require For example alkaline cells are typically poor choices for high current applications and you should almost never use a 9V battery the rectan...

Страница 19: ...s schematic is also available as a downloadable pdf dual VNH5019 motor driver shield schematic http www pololu com file download dual_VNH5019_shield_schematic pdf file_id 0J513 87k pdf Pololu Dual VNH...

Страница 20: ...mind we designed the shield to have break points in the connection between the Arduino pins and the motor drivers It is easy to cut the connections at these points and establish new connections to re...

Страница 21: ...for each motor driver in order to decrease the number of I O lines required to monitor motor faults This combined line is sufficient for most applications but you can modify the board to get independ...

Страница 22: ...DIAGB pin or connect it to a microcontroller I O line with a built in pull up resistor enabled Also you might consider adding a 1k current limiting resistor in series with the ENB DIAGB connection as...

Страница 23: ...half bridge A and motor driver M2 into a new half bridge B Using the dual VNH5019 motor driver shield to drive a single more powerful motor Effectively create a new INA pin by connecting M1INA and MI1...

Страница 24: ...o the right show where to cut You can restore these connections with shorting blocks should you want to revert back to the default pin mappings later Next connect Arduino pin 2 to M1INB pin 7 to M2INB...

Страница 25: ...d to check both M1 and M2 faults in order to get an accurate picture of the driver s fault status getM1Fault effectively only returns the fault status of half bridge A and getM2Fault effectively retur...

Отзывы: