How to control a stepper motor with DRV8825 driver and Arduino
Although you can use this driver without an Arduino library, I highly recommend you also take a look at the example code for theAccelStepper libraryat the end of this tutorial. This library is fairly easy to use