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

Decrement not working and debouncing problems #4

Open
stylesuxx opened this issue Nov 26, 2019 · 2 comments
Open

Decrement not working and debouncing problems #4

stylesuxx opened this issue Nov 26, 2019 · 2 comments

Comments

@stylesuxx
Copy link

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

@stylesuxx
Copy link
Author

Instead of triggering the ISR on FALLING, I trigger it on LOW. Additionally I added some de-bounce in software - this resolves my issues.

@Ryder17z
Copy link

Ryder17z commented Jan 3, 2020

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants