Stepper motor

How to run stepper motor for different specific durations ?

The question is too vague, can you ask it differently?

You just need to get the motor to move different numbers of steps.

Have a look at these links Stepper Motor Basics Simple Stepper Code

...R

Thanks all, I solved it using while loop reducing duration to zero.