Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RotaryEncoder - Increase resolution feature request #1086

Open
KevWal opened this issue Aug 3, 2023 · 2 comments
Open

RotaryEncoder - Increase resolution feature request #1086

KevWal opened this issue Aug 3, 2023 · 2 comments

Comments

@KevWal
Copy link

KevWal commented Aug 3, 2023

The Rotary Encoder currently increments 'steps' once per full High / Low, on A and B event. The resolution of the encoder could be increased by incrementing (/ decrementing) 'steps' for each and every High / Low event on both encoder A and B - increasing the resolution available by a multiple of 4 for any specific encoder.

Using an encoder to measure motor speed, and measuring it at a rate of 10hz, I don’t get a lot of 'steps' per 1/10th second currently to accurately determine speed.

The feature would quadruple the available resolution.

Thanks very much
Kevin

@lurch
Copy link
Contributor

lurch commented Aug 3, 2023

I've only got a very basic understanding of rotary encoders, but does what you're asking for assume that the rotary encoder is only moving in one direction? 🤷

@KevWal
Copy link
Author

KevWal commented Aug 3, 2023

Hi, no, can still turn both ways, inc'ing or dec'ing the steps as needed. I guess in a change of direction situation you might get a couple of pulses wrong.

See the section "Achieving higher resolution with Quadrature Encoders" here: https://www.dynapar.com/technology/encoder_basics/quadrature_encoder/

Or actually a google brings up quite a few interesting results:
https://www.google.com/search?q=quadrature+encoder+resolution+interpolation

Thanks very much
Kev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants