Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Motors & Motion
  4. ›Pololu DRV8874 and DRV8876 Single Brushed DC Motor Driver…

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

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Pololu DRV8874 / DRV8876 motor driver isPololu DRV8874 / DRV8876 motor driver pinoutWiring the Pololu DRV8874 / DRV8876 motor driverExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

Pololu DRV8874 / DRV8876 motor driver pinout

The pins on the Pololu DRV8874 / DRV8876 motor driver and what each one does.

PinFunction
VIN / GNDMotor supply
OUT1 / OUT2Motor
PH (IN2)Direction
EN (IN1)PWM speed
PMODEMode select
SLPSleep (high to run)
IPROPICurrent sense
FLTFault output
PinFunction
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
03

Wiring the Pololu DRV8874 / DRV8876 motor driver

Connect the Pololu DRV8874 / DRV8876 motor driver like this.

Pololu DRV8874 / DRV8876 motor driver pinArduino UnoESP32
END9GPIO 25
PHD8GPIO 26
SLP5V3V3
IPROPIA0GPIO 34
GNDGNDGND
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
04

Example code

Leave PMODE at its default (phase/enable) for this code.

Phase/enable control (Uno) · Arduino C++Verify & upload in Electrolark
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);
}
05

Setup and tuning

Current limit

fit or choose the IPROPI resistor for your motor so stall current is clamped; Pololu lists values for each limit.

Control mode

set PMODE for phase/enable (direction pin plus PWM pin) or IN/IN (two PWM pins), and write the code to match.

Sleep

drive SLP high to run. Pull it low when idle to drop the chip to micro-amps on battery projects.

Supply

add a 47 µF or larger capacitor near VIN when the motor supply is above 12 V or the wires are long.

Logic level

any logic from 1.8 V to 5 V works, so ESP32, Pico and Uno connect directly.

06

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
07

Alternatives and when to choose them

  • ✓TB6612FNG: two motors at lower voltage.
  • ✓DRV8833: dual, up to 10.8 V.
  • ✓Motor drivers overview.
08

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.
09

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

  • Pololu Single Brushed DC Motor Driver Carrier (DRV8874 / DRV8876)
    ₹769View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • SMPS Power Supply, Metal Enclosure (5V / 12V / 24V)
    ₹298View
Shop DC Motor Drivers

Keep learning

ComparisonBeginnerMotor Drivers ExplainedA motor driver lets a low-power microcontroller control the speed and direction of motors using an H-bridge.4 min read · Motors & MotionComponent guideBeginnerTB6612FNG motor driverThe TB6612FNG drives two DC motors at up to 1.2 A each (3.2 A peak) with MOSFETs, so it wastes far less voltage than an L298N.4 min read · Motors & MotionComponent guideBeginnerDRV8833 motor driverThe DRV8833 is a tiny dual H-bridge for small DC motors that runs from 2.7 to 10.8 V, so a single Li-ion cell or 2xAA pack can power it.3 min read · Motors & Motion

Sources

  • Pololu DRV8874 and DRV8876 carrier documentation
  • TI DRV8874 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Pololu DRV8874 / DRV8876 motor driver isPololu DRV8874 / DRV8876 motor driver pinoutWiring the Pololu DRV8874 / DRV8876 motor driverExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide (Arduino Uno)2 items · ₹973

Pololu Single Brushed DC Motor Driver Carrier (DRV8874 / DRV8876) · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

PH/EN mode: PH sets direction, EN PWM sets speed. 2 s each way with a pause.

Motor fwd 78%

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question