DRV8825 Stepper Driver + Wantai motor makes noise but no steps!

Hello,

I just bought a stepper motor (Wantai) and driver (Pololu DRV8825). But I can't get them to work properly. I've got it hooked up to my arduino uno rev 3 like this:

I have used these pins:
Pin 5 = DIR
Pin 6 = Step
Pin 10 = Sleep
Pin 11 = Reset

I'm using a 12V adapter to power the motor and I've got a LED connected to Pin 12 to check the cycles.

Now I'm trying to run this code (that I found some were on the web):

int dir = 5;
int steps = 6;
int sleep = 10;
int reset = 11;



void setup()
{       
  pinMode(sleep,OUTPUT);
  pinMode(reset,OUTPUT);
  pinMode(dir,OUTPUT);
  pinMode(steps,OUTPUT);
  
  pinMode(12,OUTPUT);

  digitalWrite(sleep, HIGH);
  digitalWrite(reset, HIGH);
  digitalWrite(dir, HIGH);
  
}



void loop() 
{
      digitalWrite(12, HIGH);
      digitalWrite(steps, HIGH);
      delay(1000);
      digitalWrite(12, LOW);
      digitalWrite(steps, LOW);
      delay(1000);
}

The LED seems to indicate it cycles properly but the motor is making a screechy sound and isn't making any steps at all. Could someone tell what I'm doing wrong?

Thanks

Your power supply may not be providing enough current for the motor. What motor do you have and what is the voltage and current rating of the power supply?

Have you adjusted the current limit of the driver?

+1 to above....

I quickly put together a setup like yours, and downloaded your exact code...and it works for me.(one step every 2 seconds)
There is only one difference however, but I dont think it is the issue. That is I am using a different step driver......this one:

which appears to uses the exact same IC as yours. And from what I can tell from the documentation of both drivers, they are pin compatible.

Also, a pic of your actual wiring may allow others to see some mistake you may have overlooked.

For what its worth, I also tried it this way and it worked similarly.

int dir = 5;
int steps = 6;
int sleep = 10;
int reset = 11;

void setup()
{       
  pinMode(sleep,OUTPUT);
  pinMode(reset,OUTPUT);
  pinMode(dir,OUTPUT);
  pinMode(steps,OUTPUT);
  pinMode(12,OUTPUT);
  digitalWrite(sleep, HIGH);
  digitalWrite(reset, HIGH);
  digitalWrite(dir, HIGH);
 }
void loop() 
{
      digitalWrite(12, HIGH);
      digitalWrite(steps, HIGH);
      delayMicroseconds(10);
      digitalWrite(12, LOW);
      digitalWrite(steps, LOW);
      delay(2000);
}

Oh I over looked that one :stuck_out_tongue: I used a 12V 1.5 A power supply but my Motor needs 2.5 A. So I just ordered an other one and we will see if it works next week.

Thanks