-
Notifications
You must be signed in to change notification settings - Fork 98
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
Rising Edge Detection innacurate #26
Comments
Same problem here. When configuring, for example PIN26, to the rising edge: It fires an Interrupt 2times for one change at Pin26. But it seems it depends on the IO Port Code:
|
I think this probably needs some form of debounce behaviour to make it work as you expect. There is an outstanding task for that, see issue #10 |
Hello,
I wanted to use a RPi script to use a rotary dialer, https://github.com/Szpeja/RotaryPi/blob/master/modules/RotaryDial.py
But it seem that rising edge detection is somewhat inaccurate, sometime detecting one less change in input than it should.
While I don't know much about Python at all, I tried a simple script to actively monitor the "button"
I've ran both at the same time, and while the output of that small script was what I expected (10 "Button Pressed" for 10 impulsion)
The output of the one depending on rising edge detection only detected 9 changes
You can especially see at the line 5 and 6 that it didn't detect one of the change.
It get it right sometime, but not always, and it doesn't seem to be an hardware issue as monitoring the pin manually give me the correct number of value change, I don't know if it's fixable but the problem definitively seem to be around rising edge detection.
The text was updated successfully, but these errors were encountered: