
A
t first glance, you could easily mistake the
rotary encoder for a potentiometer, but
give it a quick twist and it becomes clear that it
has a few tricks to it. One of the first things you
may notice is that the shaft of this device does
not have a limit to how far it can be rotated. It
can be moved in either a forward or a backward
direction indefinitely.
Second, as you rotate the rotary encoder,
you may hear or feel the device tick as you
move the knob. This means that with a little
bit of software, we can count the number of
ticks in either direction and get an accurate
reading of how far the rotary encoder has
moved. This makes it a perfect ...