Rotary encoder module improvements #641
codexnovus
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been implementing a project in kaluma that uses a rotary encoder and noted it was quite noisy. While obviously part of the problem is the low quality encoders I procured, a better algorithm would compensate quite a lot.
Based on some documentation I found on the web (the code was for arduino and compatibles), I wrote a replacement onChange event. I tested the code and the noise reduction is dramatic (0 false rotations), while only experiencing some misses (about 1 of every 15 "clicks" in my crappy encoder)
(the onChange event follows)
I was wondering if it would be better to submit it as a pull request or make a separate module, in case someone wants to use it.
Beta Was this translation helpful? Give feedback.
All reactions