I got my new Arduino and tried this sketch, I just had to modify the pins, it works well with acceleration.
I don’t know exactly why but I couldn’t reach the speed I had with my first sketch. I changed the value of the pot to :
vspeed = map((analogRead(potPin)), 0, 1023, 200, 4200);
Which should give me between 200 and 420 rpm but the max speed is much lower.
I tried to switch from 1/4 steps to 1/2 steps on the driver, changed STEPS_REVOLUTION to 400 and could have a better speed.
Another question : I don’t really understand what does the enable pin does in this sketch. I only saw it on this line :
myStepper.attachEnable( enaPin, 10, LOW ); // Enable Pin aktivieren ( LOW=aktiv )
Is that disabling the driver when the motor is not running?