Jadeit
Member level 5
I have a variable <0-10.000>
I want to use a rotary encoder 30 pulse per revolution to set it up.
Given the range of the variable, I want the variable to be a variable at least three different steps depending on the speed.
For example for low speed 1 , for midle speed 5 and high speed 50.
I think this is a classic requirement that many people have addressed in advance.
Give you an example, a library that can do it?
If not At least at what speeds of rotation to change ranges so that such a change would be fiziologically natural for him who is spinning?
With STM 32, the timer can be set to Encoder mode, but I have to solve the rotational speed measurements.
The first option is to use a second counter to measure the rotation speed. for exampe as
slave counter
Does it seem a bit like a waste of hw resources, some other smart idea?
I want to use a rotary encoder 30 pulse per revolution to set it up.
Given the range of the variable, I want the variable to be a variable at least three different steps depending on the speed.
For example for low speed 1 , for midle speed 5 and high speed 50.
I think this is a classic requirement that many people have addressed in advance.
Give you an example, a library that can do it?
If not At least at what speeds of rotation to change ranges so that such a change would be fiziologically natural for him who is spinning?
With STM 32, the timer can be set to Encoder mode, but I have to solve the rotational speed measurements.
The first option is to use a second counter to measure the rotation speed. for exampe as
slave counter
Does it seem a bit like a waste of hw resources, some other smart idea?