(SKU:RB-01C066)Pololu Dual VNH5019 Motor Driver Shield for Arduino

From ALSRobot-Wki
Jump to: navigation, search
RB-01C066.jpg

Contents

Product overview

Pololu VNH5019 dual dc motor driven expansion board, can be easily inserted into the Arduino various compatible controller, such as commonly used Arduino UNO R3, Carduino, Seeeduino, expanded plate driven by ST company's VNH5019 chip, working voltage from 5.5 V to 24 V, current of each provide a size 12 to 30 a peak current, grade is a hummer dc motor drive board. The whole board with SMD table elements, small volume, light weight, controlled by the Arduino can easily control the two bidirectional, high power dc motor. Onboard pull-up resistance and resistance and FET reverse battery protection. This default IO interface Settings extension plate is not convenient, also can custom mapping Arduino pins, this drive is simple and easy to use, performance and power far beyond a beginner L298 drive series. This expansion board, terminal and bulk carrier was not welded, lovers can choose custom connection mode, recommend a connection mode: can use electric welding machine output leads directly, instead of terminal blocks, because terminals will increase the resistance influence the motor performance, if you want to change motor use, often can use terminals, so convenient change motor wiring.

specification

  1. Product name: Arduino VNH5019 dc motor driven expansion board
  2. Products: the article number of RB - 01 c066
  3. Working voltage range: 5.5 V and 24 V
  4. Drive chip: VNH5019
  5. Drive channel: 2 way
  6. Single channel continuous output current value: 12 a
  7. Single channel maximum output current value:30A
  8. Current values:0.14 V/A
  9. The biggest PWM frequency:20KHZ
  10. Reverse voltage protection mode: yes

Method of use

VNH5019 dual drive expansion board with arduino connection diagram

RB-01C0661.jpg

VNH5019 dual drive expansion board with other micro controller connection diagram

RB-01C0662.jpg

VNH5019 dual drive expansion board schematic diagram

RB-01C0663.jpg

Application of routine

sample code

#include "DualVNH5019MotorShield.h"
DualVNH5019MotorShield md;
void stopIfFault()
{
if (md.getM1Fault())
{
Serial.println("M1 fault");
while(1);
}
if (md.getM2Fault())
{
Serial.println("M2 fault");
while(1);
}
}
void setup()
{
Serial.begin(115200);
Serial.println("Dual VNH5019 Motor Shield");
md.init();
}
void loop()
{
for (int i = 0; i <= 400; i++)
{
md.setM1Speed(i);
stopIfFault();
if (i%200 == 100)
{
Serial.print("M1 current: ");
Serial.println(md.getM1CurrentMilliamps());
}
delay(2);
}
for (int i = 400; i >= -400; i--)
{
md.setM1Speed(i);
stopIfFault();
if (i%200 == 100)
{
Serial.print("M1 current: ");
Serial.println(md.getM1CurrentMilliamps());
}
delay(2);
}
for (int i = -400; i <= 0; i++)
{
md.setM1Speed(i);
stopIfFault();
if (i%200 == 100)
{
Serial.print("M1 current: ");
Serial.println(md.getM1CurrentMilliamps());
}
delay(2);
}
for (int i = 0; i <= 400; i++)
{
md.setM2Speed(i);
stopIfFault();
if (i%200 == 100)
{
Serial.print("M2 current: ");
Serial.println(md.getM2CurrentMilliamps());
}
delay(2);
}
for (int i = 400; i >= -400; i--)
{
md.setM2Speed(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.println(md.getM2CurrentMilliamps());
}
delay(2);
}
}

Application effect

The example of no. 1 motor speed ramp from zero to maximum speed, and then from the maximum speed reverse, back to zero after about 3 seconds, when check the motor fault and printing when the motor current is serial monitor on a regular basis. Dc motor 2 in the repeat the same process.

Products related to recommend

Buy address:[1]

Personal tools
Namespaces

Variants
Actions
Navigation
Tools