I need to accelerate a stepper motor really fast using 1/16 stepping
Half-stepping, quarter-stepping, etc. are for more precise positioning. 1/16th stepping is for very accurate positioning. Very accurate positioning is not compatible with 1000 RPM (or more).
PaulS:
Half-stepping, quarter-stepping, etc. are for more precise positioning. 1/16th stepping is for very accurate positioning. Very accurate positioning is not compatible with 1000 RPM (or more).
Why do you think you need both?
Actually, micro-stepping is used primary to provide smoother motion, and mostly to reduce mid-band resonance, which can cause lost steps and even stalling. And at higher speeds, many modern drives reverse to full steps at higher RPM, for improved torque. Micro-stepping does little to improve resolution or precision, while it DOES reduce torque.
Regards,
Ray L.,
brightstar12:
I need to accelerate a stepper motor really fast using 1/16 stepping and A4988 driver. snip
I do not need to get the stepper motor to run that fast but about 1000-1500RPM would be sufficient.
At 1500rpm with a 200step motor, that would be 300ksteps/min, 5000steps/sec
Trying to use 1/16 stepping means a drive frequency of 80kHz !
The code you posted generates a maximum of ~ 78kHz on an Arduino Pro Mini.