http://howtomechatronics.com/wp-content/uploads/2016/07/Controlling-a-stepper-motor-using-a-Rotary-Encoder.jpg?x57244