Hi,
I recently ordered two #2981 A4988 Stepper Motor Driver Carrier, Black Edition (Header Pins Soldered) to run a Minnebea hybrid stepper motor (17PM-K442B) minebea.pdf (592.4 KB)
I made the connections as guided by the a4988 sheet.
I had limited my supply Voltage to 24V and current to 1A.
I was able to run the code I found online to test if it works, It did work but for a few seconds and things stopped.
/* Simple Stepper Motor Control Exaple Code
*/
// 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);
}
After connecting the other A4988 I knew it was fried.
I limited my current to 0.7A as the motor was consuming that much. So I limited my supply to 0.75A on the converter. I was able to run to run the motor for couple of times for a minute but again it stopped working.
I am not sure what is wrong.