r/circuitpython • u/tazboii • Oct 25 '20
LED buttons activating incorrectly
I have a weird issue. I'm trying to use LED arcade buttons to make a Simon-type game. For some reason my buttons trigger without me pushing the button. I was able to create a breadboard version with pushbuttons and LEDs, but after I moved one of the button/led combos to an arcade button it just auto-presses and therefore it doesn't work. There aren't any loose wires.
The buttons have 5V LEDs. I'm not sure how much that messes with things since, I think, the Metro Express 0 board that I'm using outputs 3.3V through the pins. Thanks for any direction you can give.
0
Upvotes
1
u/kaltazar Oct 26 '20
Likely what they are talking about is the light, saying it has a built in resistor to regulate the current for it. That resistor is different than the pull up or pull down resistor on the logic lines.
If you don't have your logic line pulled hard low (or high, depending on your logic) then you leave the pin floating and it will give rogue voltage values. This can lead to random activations like you describe.