Stepper motor interfacing