Stepper motor controller and driver