If you want to actually understand how a Rotary Encoder actually works (and how it knows which direction you are turning the knob) then watch my YouTube video #19 How to use a Rotary Encoder, once you have watched this you will be in no doubt how it all hangs together (and it is so simple too, as most great ideas are).
URL in the footer of this post, enjoy! ![]()