-
Notifications
You must be signed in to change notification settings - Fork 4
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
Decrement not working and debouncing problems #4
Comments
Instead of triggering the ISR on FALLING, I trigger it on LOW. Additionally I added some de-bounce in software - this resolves my issues. |
I have had better luck with https://github.com/mathertel/RotaryEncoder - however, it has no support for pushbuttons - As i'm using KY-040 enc's i'm borrowing the button code from this but use the other library for rotation. It might not be pretty. but it works. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I loaded the example code on my Arduino UNO and I have a 470nF capacitor between CLK and GND - this does not seem to be enough for proper de-bouncing.
Also I experience a much stranger issue - no matter which direction I turn my encoder, the value is always going up, it is never being decreased.
I tried with different encoders (of the same type) and they all do the same thing.
Am I missing something?
Those are the encoders I am using => https://www.amazon.de/gp/product/B07T3672VK?ref=ppx_pt2_dt_b_prod_image
The text was updated successfully, but these errors were encountered: