Component guide · Beginner · 3 min read
Pololu DRV8874 and DRV8876 Single Brushed DC Motor Driver Carriers

Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These tiny Pololu carriers drive one brushed DC motor from 4.5 to 37 V. The DRV8874 handles about 2.1 A continuous and the DRV8876 about 1.1 A, both with adjustable current limiting and a current sense output. A mode pin selects phase/enable (direction plus PWM) or IN/IN control, and they accept 1.8 to 5 V logic.
Key specs at a glance
- Motor supply
- 4.5 to 37 V
- Current
- DRV8874 about 2.1 A, DRV8876 about 1.1 A continuous
- Modes
- PH/EN or IN/IN (PMODE pin)
- Logic
- 1.8 to 5.5 V
- Current limit
- Set by resistor on IPROPI
- Sense
- IPROPI analog current output
What the Pololu DRV8874 / DRV8876 motor driver is
These Pololu carriers put a TI DRV8874 or DRV8876 single H-bridge on a small breadboard-friendly board. Each drives one brushed DC motor with built-in current limiting and a current-sense output.
The wide voltage range suits 24 V gear motors that do not draw much current, valves and small pumps. Sleep pin low puts the chip in a micro-amp sleep, handy for battery projects.
The current limit chops the drive when a threshold is reached, protecting gearboxes from stall torque.
Pololu DRV8874 / DRV8876 motor driver pinout
The pins on the Pololu DRV8874 / DRV8876 motor driver and what each one does.
| Pin | Function |
|---|---|
| VIN / GND | Motor supply |
| OUT1 / OUT2 | Motor |
| PH (IN2) | Direction |
| EN (IN1) | PWM speed |
| PMODE | Mode select |
| SLP | Sleep (high to run) |
| IPROPI | Current sense |
| FLT | Fault output |
- VIN / GND
- Motor supply
- OUT1 / OUT2
- Motor
- PH (IN2)
- Direction
- EN (IN1)
- PWM speed
- PMODE
- Mode select
- SLP
- Sleep (high to run)
- IPROPI
- Current sense
- FLT
- Fault output
Wiring the Pololu DRV8874 / DRV8876 motor driver
Connect the Pololu DRV8874 / DRV8876 motor driver like this.
| Pololu DRV8874 / DRV8876 motor driver pin | Arduino Uno | ESP32 |
|---|---|---|
| EN | D9 | GPIO 25 |
| PH | D8 | GPIO 26 |
| SLP | 5V | 3V3 |
| IPROPI | A0 | GPIO 34 |
| GND | GND | GND |
- EN
- Arduino Uno:
- D9
- ESP32:
- GPIO 25
- PH
- Arduino Uno:
- D8
- ESP32:
- GPIO 26
- SLP
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- IPROPI
- Arduino Uno:
- A0
- ESP32:
- GPIO 34
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
Example code
Leave PMODE at its default (phase/enable) for this code.
const int EN = 9, PH = 8;
void setup() { pinMode(PH, OUTPUT); }
void loop() {
digitalWrite(PH, HIGH); analogWrite(EN, 200); delay(2000);
analogWrite(EN, 0); delay(500);
digitalWrite(PH, LOW); analogWrite(EN, 200); delay(2000);
analogWrite(EN, 0); delay(500);
}Setup and tuning
fit or choose the IPROPI resistor for your motor so stall current is clamped; Pololu lists values for each limit.
set PMODE for phase/enable (direction pin plus PWM pin) or IN/IN (two PWM pins), and write the code to match.
drive SLP high to run. Pull it low when idle to drop the chip to micro-amps on battery projects.
add a 47 µF or larger capacitor near VIN when the motor supply is above 12 V or the wires are long.
any logic from 1.8 V to 5 V works, so ESP32, Pico and Uno connect directly.
What you need
Shop this list3 of 4 found in our store · ₹1,456
Pololu Single Brushed DC Motor Driver Carrier (DRV8874 / DRV8876): the part this guide coversPololu Single Brushed DC Motor Driver Carrier (DRV8874 / DRV8876)₹769- 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
- TB6612FNG: two motors at lower voltage.
- DRV8833: dual, up to 10.8 V.
- Motor drivers overview.
Common mistakes to avoid
- Leaving SLP low, so the driver stays asleep and nothing moves.
- Expecting 2 A from the DRV8876, which is rated for about 1.1 A.
- Setting PMODE for one control style and writing code for the other.
- Skipping the current-limit resistor, so a stalled gearbox takes full stall current.
Frequently asked questions
Should I choose the DRV8874 or the DRV8876?
Choose the DRV8874 for motors that need up to about 2.1 A continuous and the DRV8876 for up to about 1.1 A. Check the motor's running current, not just its stall current.
Can it drive 24 V motors?
Yes. Both chips accept motor supplies from 4.5 to 37 V, which covers 12 V and 24 V gear motors, valves and small pumps.
Does it work with 3.3 V boards?
Yes. The logic inputs accept 1.8 to 5.5 V, so ESP32 and Raspberry Pi Pico pins can drive it directly.
How do I read the motor current?
The IPROPI pin outputs a current proportional to motor current; with the board's resistor it becomes a voltage you can read on an analog pin.
Why does the motor not move at all?
The most common cause is the SLP pin left low or floating. Drive it high, then check PMODE matches the way your code drives the inputs.
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.

