Limited range, logarithmic rotary encoder

I know this has probably been asked repeatedly, but I cannot find subjects on it.

I have a 24 step rotary encoder, and have ir working to read steps. The MD_Rencoder library has a speed component in it.

With that here is what I am trying to do - also being very new to arduinos.
Set a limit for the steps the encoder response
So like 0 to 255 as min and max.
And adjust the step increment count based on the speed the encoder is turned.

So if turned slow the steps count 1 at a time.
Turning a little faster increments maybe 5 or 10 steps.
Spinning the encoder may increment 50 or more steps.

Any recommendations for code to map the min/max and speed? I am familiar with cup, but not very much on its syntaxes. So code samples would help.

Thank anyone for the help

Maybe a starting point: How to measure speed, distance, direction and acceleration using encoders? - #9 by jfragos - Sensors - Arduino Forum

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.