Component guide · Intermediate · 3 min read
Pololu VNH5019 Motor Driver Carrier

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The Pololu VNH5019 carrier drives one brushed DC motor at 5.5 to 24 V and about 12 A continuous, with reverse-battery protection and current sense. It accepts 3.3 V or 5 V logic and PWM up to 20 kHz, so motors run quietly. It is a well-protected step up from the VNH2SP30 when you need 24 V.
Key specs at a glance
- Motor supply
- 5.5 to 24 V
- Current
- 12 A continuous, 30 A peak
- PWM
- Up to 20 kHz
- Logic
- 2.5 to 5 V
- Current sense
- About 140 mV per amp
- Protection
- Reverse battery, thermal, over-voltage, under-voltage
This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.
What the Pololu VNH5019 motor driver carrier is
The Pololu VNH5019 carrier is a small board around ST's VNH5019 H-bridge chip. It drives one brushed DC motor in both directions and adds reverse-battery protection and a current sense output.
Control is the same as the VNH2SP30: INA and INB set direction and braking, PWM sets speed. The ENA/DIAG and ENB/DIAG pins pull low on a fault.
At 12 A the board gets warm; airflow helps for continuous high load.
Pololu VNH5019 motor driver carrier pinout
The pins on the Pololu VNH5019 motor driver carrier and what each one does.
| Pin | Function |
|---|---|
| VIN / GND | Motor supply |
| OUTA / OUTB | Motor |
| INA / INB | Direction |
| PWM | Speed |
| CS | Current sense |
| ENA/DIAG, ENB/DIAG | Enable and fault |
| VDD | Logic supply |
- VIN / GND
- Motor supply
- OUTA / OUTB
- Motor
- INA / INB
- Direction
- PWM
- Speed
- CS
- Current sense
- ENA/DIAG, ENB/DIAG
- Enable and fault
- VDD
- Logic supply
Wiring the Pololu VNH5019 motor driver carrier
Connect the Pololu VNH5019 motor driver carrier like this.
| Pololu VNH5019 motor driver carrier pin | Arduino Uno | ESP32 |
|---|---|---|
| INA | D2 | GPIO 26 |
| INB | D4 | GPIO 27 |
| PWM | D9 | GPIO 25 |
| CS | A0 | GPIO 34 |
| VDD / GND | 5V / GND | 3V3 / GND |
- INA
- Arduino Uno:
- D2
- ESP32:
- GPIO 26
- INB
- Arduino Uno:
- D4
- ESP32:
- GPIO 27
- PWM
- Arduino Uno:
- D9
- ESP32:
- GPIO 25
- CS
- Arduino Uno:
- A0
- ESP32:
- GPIO 34
- VDD / GND
- Arduino Uno:
- 5V / GND
- ESP32:
- 3V3 / GND
Example code
For quiet 20 kHz PWM on an ESP32, use ledcAttach with 20000 Hz.
const int INA = 2, INB = 4, PWM = 9;
void setup() { pinMode(INA, OUTPUT); pinMode(INB, OUTPUT); }
void loop() {
digitalWrite(INA, HIGH); digitalWrite(INB, LOW);
for (int s = 0; s <= 255; s += 5) { analogWrite(PWM, s); delay(30); }
for (int s = 255; s >= 0; s -= 5) { analogWrite(PWM, s); delay(30); }
delay(1000);
}Setup and tuning
keep the board's bulk capacitor and add a larger one (470 µF or more) when the battery leads are long.
use up to 20 kHz to remove motor whine. Higher frequencies are not supported.
ENA/DIAGA and ENB/DIAGB are pulled high on the board and go low when the chip shuts down. Read them to detect over-current or over-temperature.
CS gives about 140 mV per amp; average a few readings because it follows the PWM.
at 12 A continuous the board gets hot; add airflow for long runs.
What you need
Shop this list3 of 4 found in our store · ₹4,246
Pololu VNH5019 Motor Driver Carrier: the part this guide coversPololu VNH5019 Motor Driver Carrier₹3,559- Uno R3 development board: the controller used in the wiring tableFind this part
ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
SMPS power supply in metal enclosure (5/12/24 V): a 12 or 24 V supplySMPS Power Supply, Metal Enclosure (5V / 12V / 24V)₹298Closest match, check the specs
Alternatives and when to choose them
- VNH2SP30 monster driver: cheaper, 16 V max.
- BTS7960: higher current, less protection.
- High-current motor drivers.
Common mistakes to avoid
- Forgetting the common ground between the controller and the motor supply, so the inputs do not switch reliably.
- Using long, thin battery wires without an extra capacitor, which causes voltage spikes.
- Ignoring the DIAG pins, so a thermal shutdown looks like a code bug.
- Expecting 30 A continuous: 30 A is a peak, 12 A is the continuous rating.
Frequently asked questions
Can the VNH5019 run a 24 V motor?
Yes. It is rated for 5.5 to 24 V nominal supplies, which is why it is chosen over the 16 V VNH2SP30 for 24 V gear motors.
Does it work with 3.3 V logic?
Yes. The inputs accept logic from about 2.5 V to 5 V, so ESP32, Raspberry Pi Pico and Arduino Uno all work.
Is it protected against reversed battery wires?
Yes. The carrier has reverse-battery protection on the motor supply, but the logic side still needs correct wiring.
How do I measure motor current?
Read the CS pin with an analog input. It gives about 140 mV per amp, so 1.4 V means roughly 10 A.
How do I drive two motors?
Use two carriers, one per motor, or Pololu's dual VNH5019 shield which puts two drivers on one board.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

