MSHickman
Posts: 30
Joined: Sat Feb 10, 2018 2:38 am

Arcade Game on Pi3

Sat Feb 10, 2018 2:46 am

I have a RaspberryPI3. I recently found some arcade buttons and joysticks in a box in my storage. What I am wanting to do is use the gpio pins of the pi to use the buttons. Is there a way I can do this?

This is the push button switch for the buttons
AA300002-9F69-49A5-A9B8-304F3AF7F6C3.jpeg
AA300002-9F69-49A5-A9B8-304F3AF7F6C3.jpeg (12.75 KiB) Viewed 344 times
The joystick has four of those switches in a roundabout

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Arcade Game on Pi3

Sat Feb 10, 2018 8:28 am

Yes, you can connect those microswitches to the GPIO in the same way as you would a push button switch.

They have three connections as shown in the picture. One marked NC, one marked NO and the other one should be marked C. Use the NO and C connections.

C = Common
NC = Normally Closed (Connected to Common when the switch isn't pressed)
NO = Normally Open (Connected to Common when the switch is pressed).

Just follow any example of how to connect buttons to the GPIOs and you'll be fine.

Return to “General discussion”