How to wire up buttons without using an AIO?

Hardware-related questions that don't fit into any of the specialized hardware categories go here.
Post Reply
xSP
Posts: 38
Joined: Thu Mar 02, 2017 8:16 pm
Has thanked: 2 times
Been thanked: 1 time

How to wire up buttons without using an AIO?

Post by xSP » Thu May 04, 2017 3:50 pm

So i've decided to wire the buttons directly to the GPIO on my raspberry pi. The problem im having is how to wire them up. I got a SNES controller rubber conductive pads to use and some prototyping board but from here im stumped. I was following this tutorial(https://www.youtube.com/watch?v=bhWTfATkg6w go to 2:20ish for the buttons) and it says to create a common ground which I am stuck on. If anyone could walk me through this I would appreciate it.

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: How to wire up buttons without using an AIO?

Post by HoolyHoo » Thu May 04, 2017 4:19 pm

xSP wrote:
Thu May 04, 2017 3:50 pm
So i've decided to wire the buttons directly to the GPIO on my raspberry pi. The problem im having is how to wire them up. I got a SNES controller rubber conductive pads to use and some prototyping board but from here im stumped. I was following this tutorial(https://www.youtube.com/watch?v=bhWTfATkg6w go to 2:20ish for the buttons) and it says to create a common ground which I am stuck on. If anyone could walk me through this I would appreciate it.
He has 10 buttons (Up, Down, Left, Right, A, B, X, Y, Start, and Select). Each button has two sides. One of the sides is shared by all of them, hence the common ground. You wire that side so they all connect together somehow on the perfboard. The other leg of the switches each go their respective GPIO pin to close the connection when the switch is pressed. ;)

xSP
Posts: 38
Joined: Thu Mar 02, 2017 8:16 pm
Has thanked: 2 times
Been thanked: 1 time

Re: How to wire up buttons without using an AIO?

Post by xSP » Thu May 04, 2017 5:41 pm

HoolyHoo wrote:
Thu May 04, 2017 4:19 pm
xSP wrote:
Thu May 04, 2017 3:50 pm
So i've decided to wire the buttons directly to the GPIO on my raspberry pi. The problem im having is how to wire them up. I got a SNES controller rubber conductive pads to use and some prototyping board but from here im stumped. I was following this tutorial(https://www.youtube.com/watch?v=bhWTfATkg6w go to 2:20ish for the buttons) and it says to create a common ground which I am stuck on. If anyone could walk me through this I would appreciate it.
He has 10 buttons (Up, Down, Left, Right, A, B, X, Y, Start, and Select). Each button has two sides. One of the sides is shared by all of them, hence the common ground. You wire that side so they all connect together somehow on the perfboard. The other leg of the switches each go their respective GPIO pin to close the connection when the switch is pressed. ;)
I understand that, but where do I connect the ground wire and the other wire going to the GPIO on the rubber pad since there is only one contact point?

User avatar
HoolyHoo
Posts: 766
Joined: Sat Jul 09, 2016 9:34 pm
Has thanked: 206 times
Been thanked: 741 times

Re: How to wire up buttons without using an AIO?

Post by HoolyHoo » Thu May 04, 2017 5:53 pm

xSP wrote:
Thu May 04, 2017 5:41 pm
HoolyHoo wrote:
Thu May 04, 2017 4:19 pm
xSP wrote:
Thu May 04, 2017 3:50 pm
So i've decided to wire the buttons directly to the GPIO on my raspberry pi. The problem im having is how to wire them up. I got a SNES controller rubber conductive pads to use and some prototyping board but from here im stumped. I was following this tutorial(https://www.youtube.com/watch?v=bhWTfATkg6w go to 2:20ish for the buttons) and it says to create a common ground which I am stuck on. If anyone could walk me through this I would appreciate it.
He has 10 buttons (Up, Down, Left, Right, A, B, X, Y, Start, and Select). Each button has two sides. One of the sides is shared by all of them, hence the common ground. You wire that side so they all connect together somehow on the perfboard. The other leg of the switches each go their respective GPIO pin to close the connection when the switch is pressed. ;)
I understand that, but where do I connect the ground wire and the other wire going to the GPIO on the rubber pad since there is only one contact point?
He made it to where each contact touched two separate rails of the perfboard. Really your much better off buying one of these as it's much easier and a better solution.

http://www.ebay.com/itm/Gameboy-DMG-01- ... SwvihY~ko4

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest