Hi Everyone,
I have searched everywhere on how can I create stepper motor speed. Can anyone show me the formula of creating the speed(frequency)?. Thanks!
Speed of stepper motor is normally in rpm - revolutions per minute. The stepper motor needs x steps to rotate one turn.
So n rpm * x steps is number of ticks/minute. Divide by 60 and you get number of steps/second. That's the frequency of the steps.
So for 600 rpm and 40 steps/revolution you need 24000 steps/minute or 400 steps/second. 400 steps/second is 400Hz. Or 2.5ms / step.
If you then needs to perform multiple pin changes during one step, then you might need to multiply the frequency correspondingly.