A behaviour which I haven't been able to find an answer for.
Using a Adafruit motor shield (V2) with a R3 Uno driving a bipolar 12V NEMA-17 type motor.
If I use:
ttmotor->step(200, FORWARD, MICROSTEP);
then the motor will move one complete revolution smoothly.
However if I use:
for (int i = 0; i<= 200; i++)
{
ttmotor->step(1, FORWARD, MICROSTEP);
}
then the motor will move two complete revolutions.
As well if I slow the execution by placing a delay() in the for loop, the motor moves in a repeating pattern of dit,dit-dit-dit,dit,dit-dit-dit,... angle moved corresponds to noise pattern, small jump then large jump, then small jump.....and so on.
I thought that both bits of code would do one revolution.
Regards,
Colin