Problem getting the correct speed on my NEMA17+A4489+potentiometer project

I will do that just now, thanks !
I had a lot of troubles finding the right tutorials using RPM instead of stepDelay values.