10V 0.5A Polulu stepper motor is not rotating with A4988 Driver

Hey guys!

I bought a 10V 0.5A Polulu stepper motor (LINK)
and a Polulu A4988 driver (LINK)
and a (max.) 12V 1A power supply (LINK)

My problem is that I connected everything well, but the motor doesn’t want to do anything. It doesn’t rotate or vibrate or anything. Could it be because of the power supply is too weak to make the motor work? Do I need to buy a 24V power supply?

I followed this tutorial:

And this is the code I used:

/*     Simple Stepper Motor Control Exaple Code
 *      
 *  by Dejan Nedelkovski, www.HowToMechatronics.com
 *  
 */
// defines pins numbers
const int stepPin = 3; 
const int dirPin = 4; 
 
void setup() {
  // Sets the two pins as Outputs
  pinMode(stepPin,OUTPUT); 
  pinMode(dirPin,OUTPUT);
}
void loop() {
  digitalWrite(dirPin,HIGH); // Enables the motor to move in a particular direction
  // Makes 200 pulses for making one full cycle rotation
  for(int x = 0; x < 200; x++) {
    digitalWrite(stepPin,HIGH); 
    delayMicroseconds(500); 
    digitalWrite(stepPin,LOW); 
    delayMicroseconds(500); 
  }
  delay(1000); // One second delay
  
  digitalWrite(dirPin,LOW); //Changes the rotations direction
  // Makes 400 pulses for making two full cycle rotation
  for(int x = 0; x < 400; x++) {
    digitalWrite(stepPin,HIGH);
    delayMicroseconds(500);
    digitalWrite(stepPin,LOW);
    delayMicroseconds(500);
  }
  delay(1000);
}

Any suggestion would be very very helpful!

Thanks in advance!

Did you pull ENABLE to any level (+5/GND)?

You mean connect anything to the ENABLE pin? Like VDD or GND?

No i did not. Should I? In the tutorial there wasn't anything connected to ENABLE.

Maybe not anything, but GND would be nice.

Thanks for your answer! Should i connect the gnd from arduino or the power supply? (Sorry i'm kinda beginner in electronics)

did you buy a prewired stepper wires bet there wrong dont trust color

Did you follow the instructions to set the current limit to 0.5A?

.. and have you tried a different stepper driver?

Thank you guys. I bought my first multimeter, and I realized I connected the power supply leads inversely. And I didn't set the current limit on the A4988..So I done quite a lot of things bad:D But I learned from my failure, and now the motor is working nicely. Thanks! Problem solved.

Sly97:
Hey guys!

I bought a 10V 0.5A Polulu stepper motor (LINK)
and a Polulu A4988 driver (LINK)
and a (max.) 12V 1A power supply (LINK)

My problem is that I connected everything well, but the motor doesn't want to do anything. It doesn't rotate or vibrate or anything. Could it be because of the power supply is too weak to make the motor work? Do I need to buy a 24V power supply?

Yes, a current driven stepper requires a supply voltage much larger than the product of its current and resistance. Basically you'd be much better off with a low impedance stepper of about 1.5A and 2 ohms, then even 12V would be usable.

That motor could be driven constant voltage (but only slowly, and without microstepping), using 12V and a L293D or L298 dual H-bridge. I think that's why it has that odd impedance.

I have motors that are similar to the OP's and they work fine with A4988 drivers and a 12v power supply. However a higher voltage is better. I normally run mine from a 19v laptop power supply.

...R
Stepper Motor Basics
Simple Stepper Code