Stepper motor simulation example