Hello Ben. Thanks for responding. The speed of rotation and to have around 120 RPM. I do not know how much until I increase, however would like more, something in 1000 or 2000 RPM. I know that when I lose the speed increase torque, but has no problem because the torque does not interest me. Already tried setting the MS1, MS2 and MS3 according to the table on page 6 of the A4988 datasheet, already made several modifications in the arduino code shown below, already used a font adjustable to provide a higher voltage, but not getting success. I am currently using a source of 12V, 3A.
–Link to the stepper motorhttp://www.robocore.net/modules.php?name=GR_LojaVirtual&prod=362
–Code of arduino
void setup()
{
pinMode(9, OUTPUT); // Motor Dir
pinMode(10, OUTPUT); // Motor Step
}
void loop()
{
Pololu_A4988_Example();
}
void Pololu_A4988_Example()
{
delay(500); // delay for Controller startup
digitalWrite(9, HIGH); // Turn left
for(double i = 0; i < 5000; i++) //5000 steps in one direction
{
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
}
delay(500); // delay for Controller startup
digitalWrite(9, LOW); // Turn left
for(double i = 0; i < 5000; i++) //5000 steps in one direction
{
digitalWrite(10, HIGH);
delay(1);
digitalWrite(10, LOW);
delay(1);
}
delay(1000);
}
