-
Notifications
You must be signed in to change notification settings - Fork 107
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
Skips a step on direction change #19
Comments
Just worked out, it only does it when signals are running via the R/C circuit and then inverting Schmitt-trigger that I use in my designs - 74HC14N. Works fine when the 74HC14N is removed from circuit. |
Interesting! I also had the library skip steps when changing direction. I'm using it with a 100PPR manual pulse generator. It has 6 terminals including both positive and inverted A & B outputs. The library skipped a step when connected to positive A & B outputs, but the problem disappeared when inverted outputs were used. Still, IMO it's a bug, the library should handle both cases equally. |
This may be caused by the fact that the version < 1.5.0 only reported a new value on state 3 (not on state 0) Please check with the new parameter on initialization. |
Sorry, why was the issue closed? Had it been fixed? |
I did a lot of testing during implementing the new version and never saw this behavior. Please re-test with new version and maybe you can add more information for the root cause. Feel free to send me a pull request. |
New version works perfectly for me now. Thanks! |
This was the reason it failed for me. |
The library works fine in either direction with a Bourns PEC-12R rotary encoder except when changing direction. When changing direction it takes another click on the encoder to register an increase or decrease.
The text was updated successfully, but these errors were encountered: