.step function working with one step but not working with higher numbers of step

Hello,

When I try to rotate my stepper motor using the .step function with higher numbers of steps the stepper just makes a lot of noise and doesn’t move. However when I step it one step at a time it does work. I’m hoping there are some people that can show me what I’m doing wrong.

Ps. I did test the stepper motor with the example code Stepper_OneRevolution where the stepper does move with the .step function.

Thanks in advance!

ControlProgram.ino (10 KB)

Stepper stpr(StepperSteps, 8, 9, 10, 11);

Did you mean:

Stepper stpr(stepsPerRevolution, 8, 9, 10, 11);

200 vs 3000?

Thank you!

Indeed it was supposed to be stepsPerRevolution. This perfectly illustrates why you should have some new people look at a problem once in a while.