Stepper motor + DRV8825 driver + Arduino Duemilanove

hi,

i am trying to run a stepper (http://www.pololu.com/product/1200) with the setup in the subject, but without any luck.

wiring shown in the picture, have been trying with both a 9V, 1,2 A and a 9V, 2 A power supply + 5V logic power.

i would appreciate any hints and comments regarding doing the right thing.

  • E

0J4232.600.png

stepper_dvr8825driver_ver01.ino (418 Bytes)

Try changing the values in this bit of code to the following …

for(int i=0;i<steps;i++){
   digitalWrite(stepperPin, HIGH);
   delayMicroseconds(8); // generally only a short pulse is needed to cause a step
   digitalWrite(stepperPin, LOW);
   delay(200); // this is the delay between steps, and governs the speed.
 }

This will give much slower stepping to get you started.

…R

thanks, i succeed now!

Also checkout the AccelStepper library, allows smooth acceleration and deceleration which will perform better than sudden start/stop.