View Full Version : Any sample program for Pololu DRV8825 Stepper Motor Driver

04-01-2015, 07:38 PM
Hello, I am a newbie. Is there a sample program on how to control stepper motor using the DRV8825 stepper motor driver and Arduino? I want to be able to change the direction, speed, move the motor at specific location and keep it on hold at that specific location. Thanks.

04-01-2015, 08:40 PM
I found this as a very basic example: http://www.geeetech.com/wiki/index.php/DRV8825_Motor_Driver_Board#Arduino_Example_Code

Changing direction is given in the example. Speed could be regulated by adjusting the delay between steps taken. Then when it comes to moving to a location and holding you'd want to add a variable for the current position. Use that value to determine number of steps needed to take at any given point of your program.

Hope this helps.

04-02-2015, 12:04 AM
The top hit on Google for "pololu drv8825 example" is this: http://forum.pololu.com/viewtopic.php?f=15&t=6776