http://howtomechatronics.com/wp-content/uploads/2016/07/How-Rotary-Encoder-Works-and-How-To-Use-It-with-Arduino.jpg