Skip to main content

DRV8825 - Getting started

This page provides the essential information for getting started, including board and library installation and wiring the breakout board to your microcontroller.


Acknowledgement

ℹ️
The Soldered Basic Stepper Driver Arduino Library is based on the popular AccelStepper library by airspayce. As such, its source code is licensed under the GNU General Public License v3.0 (GPL v3). For more details, see the GPL v3 license.
GNU GPL v3

Arduino library

To install the Arduino library, you can use the Arduino library manager or download it from the GitHub repository:

Soldered-Basic-Stepper-Driver-Arduino-Library

Stepper driver Arduino library by Soldered

ℹ️

First time Arduino user? For a detailed tutorial on how to get started with Arduino, see this section of our docs:

Getting started with Arduino

A full, comprehensive tutorial on how to fully set up and upload code for the first time on an Arduino board, from scratch!


Connections

Below is an example connection diagram for Dasduino CONNECTPLUS and NEMA17 Stepper motor. These pins will be used in the examples throughout this documentation.

DRV8825 stepper driver connected to Dasduino CONNECTPLUS
DRV8825 stepper driver connected to Dasduino CONNECTPLUS
Dasduino CONNECTPLUSBreakout board
GNDGND
VCCRST
VCCSLP
IO5STEP
IO4DIR
ℹ️
Pins IO4, IO5 can be any digital output pins on your microcontroller.

You also need to connect VIN and GND on the stepper power supply terminals:

Power SupplyBreakout Board
VCCVCC
GNDGND
⚠️
12V is the maximum supported motor supply voltage!
ℹ️
Powering the stepper motor through the 5V VCC pin on your microcontroller may work but is not recommended due to the high current draw of the motor.

Limiting the current

Before running the motor, maximum current flowing through the stepper coils must be limited so that it doesn't exceed the motor's rated current. The DRV8825 driver includes a small onboard potentiometer for setting the current limit. The easiest way to limit the current is to use the Vref formula: Vref=Current Limit/2. Rated current for NEMA17 is 350mA, so the Vref should be 0.175V.

Limiting the current onDRV8825 stepper driver
Limiting the current onDRV8825 stepper driver
ℹ️
It's not mandatory to use Vref of 0.175V. Depending on the application, if more torque is needed, Vref can be increased!