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. ›Sensors
  4. ›DRV8825 Stepper Driver

Component guide · Intermediate · 3 min read

DRV8825 Stepper Driver

Pinout, Current Limit 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 DRV8825 driver isDRV8825 driver pinoutWiring the DRV8825 driverExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

The DRV8825 is a small stepper motor driver for bipolar motors such as the NEMA 17. It takes STEP and DIR signals, drives up to about 1.5 A per coil without extra cooling (2.2 A with a heatsink and fan), runs from 8.2 to 45 V and offers microstepping down to 1/32 step. Set the current limit with the trim pot before connecting the motor.

Key specs at a glance

Motor supply
8.2 to 45 V
Current
About 1.5 A per phase cooled passively, 2.2 A max with good cooling
Microstepping
Full, 1/2, 1/4, 1/8, 1/16, 1/32 (M0, M1, M2)
Logic
3.3 V or 5 V signals (no logic supply pin needed)
Current setting
Vref × 2 = current limit (Pololu-style boards)
Protection
Over-current, over-temperature, under-voltage
01

What the DRV8825 driver is

Each pulse on STEP moves the motor one step (or one microstep), and DIR sets the direction. The driver chops the current to the limit you set, so you can run a 3 V motor from 12 or 24 V for better speed and torque without burning it.

It fits the same socket as the A4988 but the pot is on the other side, so check the orientation before plugging it into a CNC shield.

02

DRV8825 driver pinout

The pins on the DRV8825 driver and what each one does.

PinFunction
VMOT / GNDMotor supply 8.2 to 45 V, with a 100 µF capacitor
B2 B1 A1 A2Motor coils: one coil on A1/A2, the other on B1/B2
STEPPulse input, one step per rising edge
DIRDirection
ENLOW = enabled (pulled low on board)
M0 M1 M2Microstep select
SLP / RSTMust be HIGH to run: tie together to 5 V or 3.3 V
FLTLOW on a fault
PinFunction
VMOT / GND
Motor supply 8.2 to 45 V, with a 100 µF capacitor
B2 B1 A1 A2
Motor coils: one coil on A1/A2, the other on B1/B2
STEP
Pulse input, one step per rising edge
DIR
Direction
EN
LOW = enabled (pulled low on board)
M0 M1 M2
Microstep select
SLP / RST
Must be HIGH to run: tie together to 5 V or 3.3 V
FLT
LOW on a fault
03

Wiring the DRV8825 driver

Caution

Never connect or disconnect the motor while the driver is powered; it can destroy the chip. Find the coil pairs with a multimeter: the two wires of one coil show a few ohms between them.

DRV8825 driver pinArduino UnoESP32
VMOT / GND12 V supply + / - (100 µF across)12 V supply + / -
STEPD3GPIO 26
DIRD4GPIO 27
SLP + RSTTied to 5VTied to 3V3
GND (logic)GNDGND
A1 A2 / B1 B2NEMA 17 coilsNEMA 17 coils
VMOT / GND
Arduino Uno:
12 V supply + / - (100 µF across)
ESP32:
12 V supply + / -
STEP
Arduino Uno:
D3
ESP32:
GPIO 26
DIR
Arduino Uno:
D4
ESP32:
GPIO 27
SLP + RST
Arduino Uno:
Tied to 5V
ESP32:
Tied to 3V3
GND (logic)
Arduino Uno:
GND
ESP32:
GND
A1 A2 / B1 B2
Arduino Uno:
NEMA 17 coils
ESP32:
NEMA 17 coils
04

Example code

For 1/16 step tie M2 HIGH (M0 and M1 LOW). The AccelStepper library adds smooth acceleration so the motor does not stall at speed.

Spin a NEMA 17 one turn each way (Arduino) · Arduino C++Verify & upload in Electrolark
const int STEP = 3, DIR = 4;
const int STEPS_PER_REV = 200 * 16;   // 1.8 degree motor at 1/16 microstep

void move(int steps, bool dir, int us) {
  digitalWrite(DIR, dir);
  for (int i = 0; i < steps; i++) {
    digitalWrite(STEP, HIGH); delayMicroseconds(3);
    digitalWrite(STEP, LOW);  delayMicroseconds(us);
  }
}

void setup() {
  pinMode(STEP, OUTPUT);
  pinMode(DIR, OUTPUT);
}

void loop() {
  move(STEPS_PER_REV, HIGH, 200);
  delay(500);
  move(STEPS_PER_REV, LOW, 200);
  delay(500);
}
05

Setup and tuning

Set the current first

power the logic and VMOT with no motor, measure Vref between the pot and GND, and set Vref = current ÷ 2 (0.5 V for 1 A).

Capacitor

fit 100 µF or more across VMOT and GND close to the driver.

Cooling

stick on the heatsink; above 1.2 A add airflow.

Missed steps

lower the speed, add acceleration, or raise the current slightly.

06

What you need

Shop this list6 of 7 found in our store · ₹1,217

  • DRV8825 Stepper Motor Driver with Heatsink: the part this guide coversDRV8825 Stepper Motor Driver with Heatsink₹92
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • NEMA 17 stepper motor (42HS48): the motor to driveNEMA 17 Stepper Motor 42HS48-2504 AF-01 (5.6 kg-cm)₹794
  • Electrolytic capacitor: bulk capacitance across the supplyElectrolytic Capacitor₹16
  • CNC Shield V3 for Arduino Uno: to plug in up to four driversCNC Shield V3 for Arduino UNO – A4988 DRV8825 Compatible₹89Closest match, check the specs
  • Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
07

Alternatives and when to choose them

  • ✓A4988 vs DRV8825 vs TMC2209: which driver to pick for noise, current and microstepping.
  • ✓TB6600 stepper driver: larger enclosed driver for bigger motors.
  • ✓28BYJ-48 with ULN2003: the small geared stepper for light jobs.
08

Common mistakes to avoid

  • !Plugging the motor in or out while powered.
  • !Skipping the current limit setting, so the motor or driver overheats.
  • !Leaving SLP and RST floating, so the motor does not move.
  • !Inserting it into a CNC shield the wrong way round (the pot sits opposite to the A4988's).
09

Frequently asked questions

How do I set the DRV8825 current limit?

Measure Vref at the pot and set it to half the motor current: 0.5 V for 1 A.

DRV8825 or A4988?

DRV8825 handles a little more current, higher voltage and 1/32 step; the A4988 is quieter at low speed. A TMC2209 is quieter than both.

Why does my motor only vibrate?

The coil pairs are mixed up; swap the middle two wires.

Does it work with ESP32?

Yes, 3.3 V STEP and DIR signals work.

Can it drive a NEMA 23?

Small ones at low current, but a TB6600 or a bigger driver suits most NEMA 23 motors.

Parts for this guide

  • DRV8825 Stepper Motor Driver with Heatsink
    ₹92View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • NEMA 17 Stepper Motor 42HS48-2504 AF-01 (5.6 kg-cm)
    ₹794View
  • Electrolytic Capacitor
    ₹16View
  • CNC Shield V3 for Arduino UNO – A4988 DRV8825 Compatible
    ₹89View
  • Digital Multimeter
    ₹177View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop Stepper Motor Drivers

Projects that use it

Put this into practice: 3 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hoursNEMA 17 stepper speed and direction controlView projectAdvanced · 4–6 hoursMotorised camera slider for time-lapseView projectIntermediate · 1 dayBuild a belt-driven linear axis on 2020 extrusion with a CNC shieldView project
Browse all 3 projects

Keep learning

ComparisonIntermediateA4988 vs DRV8825 vs TMC2209All three are StepStick-size drivers controlled by STEP and DIR pins.4 min read · Motors & MotionComponent guideIntermediateStepper Motors and DriversA stepper motor turns in precise fixed steps, so you can position it accurately without a sensor.4 min read · Motors & MotionComponent guideIntermediateExternal Stepper DriversExternal stepper drivers such as the TB6600 and DM542 drive larger NEMA 17, 23 and 24 motors at higher currents and voltages than small A4988 boards.3 min read · Motors & Motion

Sources

  • DRV8825 stepper motor controller IC datasheet (Texas Instruments)
  • Pololu DRV8825 stepper motor driver carrier documentation

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 DRV8825 driver isDRV8825 driver pinoutWiring the DRV8825 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 guide4 items · ₹1,079

DRV8825 Stepper Motor Driver with Heatsink · NEMA 17 Stepper Motor 42HS48-2504 AF-01 (5.6 kg-cm) · Electrolytic Capacitor · Digital Multimeter

Run itChange the inputs and watch the output

1/16 microstepping: 3200 steps per turn. One turn one way, pause, one turn back.

Motor 0 / 3200 steps

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