As Robin states most motors need to ramp up and ramp down.
Grbl uses the parameters you gave it to do those in a seamless manner and is optimised for that aspect.
I noticed you changed a parameter in GRBL but did not take note of what the other parameters were in regards to that axis ?
I dont use accelstepper myself but trust Robins approach.
ballscrewbob:
As Robin states most motors need to ramp up and ramp down.
Grbl uses the parameters you gave it to do those in a seamless
The only stepper motor I've seen that can get to top speed without ramping was 6mm in diameter,
so unless your stepper is ultra-compact, you always need ramping to get to top speed. Physical
objects have inertia, and that larger the more inertia (for rotating objects its moment of inertia
which scales with size to the power 5, so the ramping rate is very dependent on motor size)
MarkT:
The only stepper motor I've seen that can get to top speed without ramping was 6mm in diameter,
so unless your stepper is ultra-compact, you always need ramping to get to top speed. Physical
objects have inertia, and that larger the more inertia (for rotating objects its moment of inertia
which scales with size to the power 5, so the ramping rate is very dependent on motor size)
Thanks guys. This sounds very logical. I will give the Accelstepper library a try.
JCA34F:
Do you have a pullup or pulldown resistor on the reverse button pin? If it's floating it may be randomly reversing the motor.