I am designing a rotary encoder to send data via I2C to another board. The encoder controls across the range of 1-255 counts, and if each click controls one count it takes many turns of the encoder to go from 1 to 255.
If possible, I would like to design the software so that as the speed of rotation of the encoder knob increases, so too does the number of counts per click of the encoder. Thus, a slow rotation results in one count per click and delivers fine resolution, but a fast rotation delivers up to five counts per click for rapid movement from one end of values to the other.
I can't think of a way to accomplish this, but surely there is something out there? How do you measure the rate of clicking of an encoder??
If possible, I would like to design the software so that as the speed of rotation of the encoder knob increases, so too does the number of counts per click of the encoder. Thus, a slow rotation results in one count per click and delivers fine resolution, but a fast rotation delivers up to five counts per click for rapid movement from one end of values to the other.
I can't think of a way to accomplish this, but surely there is something out there? How do you measure the rate of clicking of an encoder??