Rotary encoders are useful for conveying position input and adjustments. For example, as a tuning knob for software-defined radio (SDR), the rotary control can indicate two things related to frequency tuning.
When a step has occurred
The direction of that step
Determining these two things, the rotary encoder can adjust the tuning in the frequency band in discrete steps higher or lower. This chapter will examine the rotary encoder with the help of the economical Keyes KY-040 device and the software behind it.
Keyes KY-040 Rotary Encoder
While the device is labeled an “Arduino Rotary Encoder,” it is ...