stepper-motor-encoder-circuit2