Stepper motor control system