Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4536

Beginners • GPIO pins false positives due to digital noise on Buttons

$
0
0
Hi, I need help making a better circuit diagram for 5 switch buttons on a RP4, the buttons are simple two terminals buttons like arcade or cherry switches, the current configuration is giving me a hell of false positives due to the cables being 50cm long, also some other cables coming from a relay are touching the button cables, there are also two 5v and one 12v power supplies close that could influence a little, and as you see in the current diagram the wire I plugged to the 3.3v pin from the raspberry is daisy chained to the left terminal in each button so it also touches the cables on the right terminal, and if I touch the cables with my hand it triggers more false positive, and I'm using 22 awg so they are very thin cables.

The current configuration is: the RP4 3.3v pin connected to the left terminal in each button, a different GPIO pin connected to the right terminal in each button, and I enabled the internal pull down resistor so the default open circuit state goes to ground 0, and when the button is pressed the 3.3v raise it to 1.
Should I use shielded cable? Thicker? an external resistor?, is there a better configuration? I don't know much about electric things so please any help is appreciated.


Image

Statistics: Posted by danilux — Thu Mar 28, 2024 6:14 am — Replies 0 — Views 19



Viewing all articles
Browse latest Browse all 4536

Trending Articles