niketb:
Now my requirement is to open and shut the door in 1 second. Further, want to open and shut the door in time interval determined by user.
The door? What door?
Anyway you need to output a given number of steps at a given rate, which stepper libraries have you
looked at? Have you gone through some of their examples?