swehner / foos

Instant replay system for foosball table
GNU General Public License v3.0
169 stars 34 forks source link

Button Pins dont work.... #67

Closed Essilor84 closed 5 years ago

Essilor84 commented 5 years ago

Hi, if i use smd push Buttons i works well. Now i want to use LED-Arcade push Buttons. I Check Every Connection with multimeter, its Looks perfect nur the Pins works only sporadically. image I use raspi only Version. WHO has a Idea? Thanks and Greets ,Jochen

Essilor84 commented 5 years ago

If i Hammer the buttons (2-3 Times per Second ) its works...??

Essilor84 commented 5 years ago

its possible to log something? Whats Happen Wehen i Push the Button?

Essilor84 commented 5 years ago

i think there is a Problem with debounce:/ if i solder microswitches all works....

swehner commented 5 years ago

It's hard to tell... you don't happen to have something like an oscilloscope to see what the switch is actually doing, right? I would try to put a print statement here https://github.com/swehner/foos/blob/master/plugins/io_raspberry.py#L26 to see how often this callback function is actually triggered. You can try to set bouncetime to 0 see how often it's actually triggering (maybe it's constantly). Maybe you can try the suggestions to add a capacitor around the switch like it's suggested here: https://sourceforge.net/p/raspberry-gpio-python/wiki/Inputs/

Essilor84 commented 5 years ago

8863DE02-FE16-4C20-86D1-70D0C1DFC915 i Play with debounce Time = no change. I try Hardware Solution (capacitator)= no change. Now i solder a not quick but very,very Dirty Solution ;). It works :)!! ![Uploading C86A6D7A-A504-4F05-A4E1-7DE22633C1E3.jpeg…]()