In this tutorial I give a detailed explanation on how to use DRV8825 Stepper Motor Driver with Arduino to control the direction and speed of rotation of small and medium sized bipolar stepper motors like NEMA 17.
The DRV8825 driver is similar to A4988 Stepper motor driver but they have some differences which I have also specified in this tutorial and also show how to find the current limit for DRV8825 Stepper motor driver.
For the code and schematics visit: https://mytectutor.com/drv8825-stepper-motor-driver-with-arduino/
Also check out my tutorial on A4988 Stepper Motor Driver : https://youtu.be/ODREz3vy2_Q