intermitant gpio buttons #335
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I have the Enclosure plug in all set up on a Raspberry Pi 4, 4Gb. Pressing a button (Connected between +3.3 and gpio pi via a resistor, on pin 17 BCM) only works on "rare" occasions. I can see the gpio input is changing every time I press the button by using "GPIO readall" on the command line, but octoprint does not respond very often.
Obviously the connections are correct because it does occasionally work if I sit there constantly pressing the button.
On the rare times it does work, it then sometimes works multiple times for one click.
I am running the latest version of the plugin, 4.13.1, the raspberry pi is only running octoprint. The command the button is sending is a g-code for "Home" (I have 4 other buttons set up and they all behave with the same indifference to me pressing them)
I have turned on the debugging mode but nothing seems to appear in the logs except the command (when it does pickup the gpio change)
Any ideas if there is anything else required to get this to work correctly?
Thanks,
Tony
I must say that this is probably because of wiring as I never seen this issue....
are you using pull up / down resistors?
have pictures of your wiring?
This is not likely a wiring issue. Looks like there were some errors related to threading:
Restarting Octoprint resolves the issue.
Hi everyone, the recently merged PR #504 should have fixed this issue. Could you please reinstall the plugin and, if confirmed, close the issue?