Preliminary learning of stepper motor