Wiring Arcade Buttons and Joysticks: Connectors, Encoders and Which Board for Which System
How arcade buttons and joysticks wire up: microswitch tabs, common ground, 2.8 and 4.8 mm connectors, the 5-pin joystick plug, and the board you need for a PC, Raspberry Pi, Pandora Box, JAMMA board or games console.
Knockout Arcades
Wiring an arcade panel can look complicated at first, but most of the work is repeating the same connection. Each button and joystick direction operates a switch. When you press it, the switch connects an input to ground, and the control board sends that input to the game system. Before you start, you need to check which connectors fit your controls and which board works with your chosen system.
This guide explains those connections, from the tabs on a microswitch to the extra hardware needed for a console. Our components buying guide covers specific parts and prices. Every Knockout Arcades panel lifts out or hinges open so you can reach the controls and wiring. Each product page lists the buttons that fit its 30 mm holes and the joysticks that fit its mounting positions.
From switch to game system: the four things to get right. Diagram, not to scale.
Microswitches: which tabs to use
Under almost every button, and on each side of a conventional joystick, is a microswitch with three flat tabs:
COM (common): connect one wire here.
NO (normally open): connects to COM when you press the button. Connect the second wire here.
NC (normally closed): connects to COM until you press the button. Leave this tab unused.
If you connect a wire to NC by mistake, the game registers the button as held down until you press it. You might see a character firing or jumping on its own. The switch has no polarity, so either wire can go to COM or NO, provided you use those two tabs and leave NC empty. Leaf-switch buttons such as Ultimarc's GoldLeaf have just two tabs, with no NC connection.
Wired correctly: black to COM on the side, red to NO, and the NC tab left empty. The push-on connectors have insulated sleeves so the two cannot touch.
The lettering isn't always right. Some budget switches mark both end tabs NC, as the one below does. The small diagram moulded beside the labels shows which tab the lever rests on: that tab is NC, and the other end tab is NO. If in doubt, a multimeter on its continuity setting shows which pair of tabs connects when you press the button.
The common tab is on the side and the other two are at the end. This switch labels both end tabs NC, but the moulded diagram shows the lever resting on tab 2, so tab 3 is the NO tab.
Common-ground wiring
The I-PAC, GP2040-CE, Brook's fighting boards and a JAMMA harness all use a shared ground connection. The board registers a button press when the switch connects that input to ground. This means you can link the COM tabs with one ground wire, running from switch to switch. Each button then needs a separate coloured wire from its NO tab back to the board. A kit encoder comes with a two-wire lead for each button that carries the ground and the input together, so wire those controls with the supplied leads rather than a chain of your own.
The photograph below shows one player's buttons on one of our two-player panels. The black ground wire runs from the COM tab on one switch to the next, while a separate coloured wire connects each NO tab to the board. The yellow and white buttons are Start and Coin, and are wired in the same way as the play buttons.
Common-ground wiring: the black loop visits every COM tab, and one coloured wire per button goes to the board.
Run a separate ground chain for each player and connect each chain to its own ground terminal on the board. That way, a loose crimp on one chain won't affect both players. Label each wire at both ends as you go. Wire colours can help you trace a connection, but they don't determine what it does; that depends on the terminal it connects to.
Connector sizes: 2.8 mm, 4.8 mm and 6.3 mm
Arcade wiring uses push-on connectors in three common blade widths. Check that your harness matches the tabs on your controls:
2.8 mm, also sold as .110 inch: Sanwa OBSF and OBSN buttons, Seimitsu PS-14 buttons, Ultimarc GoldLeaf buttons and most Japanese-style 30 mm buttons.
4.8 mm, or .187 inch: the microswitches on American-style parts, including SuzoHapp and IL buttons, Ultimarc Classic buttons, the buttons in most kits, and the four separate switches on Zippyy, Ultimarc J-Stik and SuzoHapp joysticks. Seimitsu's LS-32 and LS-40 use 4.8 mm switches too, unless you buy the -01 versions with a circuit board.
6.3 mm, or .250 inch: rare on switches. It turns up on the lamp holders of some illuminated buttons and on power connections.
An American-style button and its separate microswitch. The switch clips between the legs under the plunger, and its 4.8 mm tabs take the larger connector.
Check the tabs before ordering your wiring. A 2.8 mm connector won't fit a 4.8 mm tab, and a 4.8 mm connector won't grip a 2.8 mm tab properly. Short adapter leads are available for both sizes. Some encoder makers also offer mixed harnesses: Ultimarc's Mini-PAC comes with either 4.8 mm connectors throughout or a mix of 2.8 mm for the play buttons and 4.8 mm for the joysticks and Start buttons. The mixed version suits GoldLeaf panels. Choose your buttons and joysticks first, then buy the harness to match.
If you're making your own leads, stranded wire of about 0.35 mm² (22 AWG) is the traditional arcade size and holds well in screw terminals. Thinner wire can be difficult to crimp securely. Fully insulated connectors work with a basic crimp tool and leave no exposed metal. Open-barrel connectors give a tighter crimp but need the correct ratchet tool and a sleeve. For a first build, the leads supplied with an encoder kit are usually the simplest option. They have a 2-pin plug at the board end and a push-on connector at the switch end.
Joysticks: four switches or one plug
A joystick uses four switches, one for each direction. Moving diagonally closes two switches together, as explained in our 4-way or 8-way guide. There are two common wiring arrangements:
Separate switches. Zippyy, J-Stik, SuzoHapp and the standard Seimitsu LS-32 have four microswitches with 4.8 mm tabs. Wire each like a button: COM to the ground chain, NO to the board.
A circuit board and a 5-pin plug. The Sanwa JLF and the Seimitsu -01 models mount their switches on a small board with one 5-pin socket. One lead carries all four directions and ground, so there are no tabs at all.
Separate switches: a Zippyy from below, with four microswitches and their 4.8 mm tabs around the shaft. Each is wired like a button.
The 5-pin connection can be confusing. One end pin is ground; the other four carry the direction inputs. If only some directions work, or they register incorrectly, unplug the lead, turn the plug over and try again. These connections carry switch inputs and ground, rather than power. Harness colours vary between manufacturers and batches, so don't rely on colour alone to identify ground. Sanwa and Seimitsu put ground at opposite ends, which means a lead made for one is turned over for the other. The lead supplied with a USB encoder kit usually plugs straight into a JLF. If the directions are still wrong after turning it over, compare the encoder's printed pin labels with the order of the wires in the lead.
One plug: a Sanwa JLF from below. The switches sit on a circuit board and the only connection is the 5-pin socket at the top left.
We measured the order on a Sanwa JLF with a meter. Stand the stick upright with the 5-pin socket facing you and number the pins 1 to 5 from the left: pin 1 is ground, pin 2 is the direction away from you, pin 3 is towards the socket, pin 4 is to your left and pin 5 is to your right. Those pins do not change, but the panel direction each one gives depends on which way the stick is mounted. With the socket on the player's left, pins 2 to 5 are Right, Left, Up and Down. With the socket nearest the player, the same pins are Up, Down, Left and Right. The plug itself only ever fits two ways, which is why turning it over is the first fix when directions are wrong.
Choosing a board for your system
The board and wiring you need depend on what will run your games. If you're still deciding, our Pandora Box, Pi or PC guide compares those options.
PC or Raspberry Pi: a USB encoder
A USB encoder presents the panel to the computer as a gamepad or a keyboard. No drivers are needed on Windows, Linux, Batocera or RetroPie.
Kit encoders, usually sold as "zero delay" boards, cost roughly £8 to £15 each. You can also buy them in two-player kits with joysticks and buttons. Each board has a 5-pin joystick socket and a row of small button sockets, two- or three-pin depending on the kit, with leads supplied. You'll need one board per player. Leave the Mode, Turbo and Auto sockets unused to avoid autofire. Two identical boards can be difficult to tell apart in the software, so set up player 1 first, then assign each board to the correct player in your front end. The "zero delay" name isn't a latency measurement: one retailer quotes about 15 ms, which is fine for home play.
Ultimarc I-PAC and Mini-PAC boards handle both players on one board, with 32 inputs. They start in keyboard mode with the standard MAME keys already mapped, and also offer gamepad and XInput modes. The I-PAC has screw terminals for bare wire; the Mini-PAC uses a plug-in harness with a choice of connector sizes. A shift function lets you use Player 1 Start with another button for the admin keys. With the default mapping, Start 1 with Player 2 Start sends Escape, with Player 1 Right sends Tab for MAME's menu, with Player 1 Down pauses, and with Player 1 button 1 adds a coin. Expect to pay around £30 for an I-PAC 2 or £25 to £45 for a Mini-PAC, depending on the harness.
GP2040-CE is free, open-source firmware for the Raspberry Pi Pico. A plain Pico costs about £5 from UK stockists, and a screw-terminal breakout board adds about £14. That puts a UK-sourced setup with terminals at just under £20 per player: each Pico is one controller, so a two-player panel needs two of them, each on its own USB lead. Ready-made boards with the firmware installed cost around £30, mostly shipped from China. The buttons connect to the Pico's pins and a shared ground without extra components. The project reports latency of under 1 ms. GP2040-CE also supports Switch and, with extra hardware, PlayStation and Xbox, as covered below. This option needs more setup and some time with the documentation.
An EG Starts kit zero-delay encoder: one socket per button lead, the five-pin socket for the joystick and USB to the Pi or PC. The board names none of its sockets, but the maker's diagram does: the lower row is K1 to K12 for the buttons; the upper row is three red 5 V outputs, the Mode, Clear, Turbo and Auto function sockets, and Up, Down, Right and Left for a joystick with four separate switches. Nothing in this kit uses the 5 V sockets.
Wiring sheet · click it to enlarge
The kit encoder route on one sheet: one supplied lead per control, nothing crimped. Socket names from the maker's diagram of an EG Starts board; other kit boards differ.
The I-PAC's mode is switched on the board itself. Hold Player 1 Start and one of Player 1's first five buttons for ten seconds: button 1 for keyboard, 2 for gamepad, 3 for XInput, and the LED flashes the mode number. The choice survives power-off, and holding Player 1 button 1 while plugging in the USB lead returns the board to keyboard mode. Ultimarc advises against XInput unless a program insists on it, since XInput gives up the trackball and spinner inputs, and RetroPie needs the Multi-Mode firmware that new boards ship with.
Mount the board on standoffs where all the leads can reach it. Leave enough slack to lift or hinge the panel open, and use one USB lead per board.
Wiring sheet · click it to enlarge
Player 1 wired to an I-PAC 2, with terminal names as printed on the board. Player 2 uses the row along the other edge in the same order.An I-PAC 2 wired for two players. Each input has its own screw terminal, the ground terminals are at the bottom corners, and the header in the middle takes a trackball or spinner.
Wiring sheet · click it to enlarge
Which Mini-PAC harness wire goes to which control, with the colours and names from Ultimarc's wiring diagram. The ground harness is separate and chains every switch's COM tab.
Pandora Box: use the supplied loom
A home-version Pandora Box doesn't need a USB encoder for players 1 and 2. Its loom plugs into the box at one end and splits into labelled leads for 1P and 2P Start, Coin and buttons A to F. Depending on the model and seller, the joystick wiring has either a 5-pin plug for a Sanwa or Seimitsu stick or four separate direction leads. Connect each labelled lead to the corresponding control. Check the listing photos before buying, as loom contents vary between generations and you may need adapter leads for buttons with 4.8 mm tabs.
Press the small button on the board to open the settings menu. It includes an input test, a credit setting with a free-play option, and settings for leaving a game. The exit options include an on-screen menu, pressing Start and Coin together, or holding 1P Start for three seconds. The USB ports on home models accept ordinary gamepads for extra players. The manuals say most gamepads work, although the number of ports varies by model.
The JAMMA version uses a cabinet's JAMMA harness instead of the home-version loom.
JAMMA boards: connecting the harness
A JAMMA harness connects the game board's 56-pin edge connector to the controls, power supply, speaker and monitor. Our JAMMA guide explains the standard in more detail. The control wires come in colour-coded bundles for each player, including ground wires. The pin positions are standardised, but the wire colours aren't. Harnesses sold for Pandora and multi-game boards often use this colour scheme:
The cabinet end of a JAMMA harness. The board's gold edge plugs into this; the wires fan out to the controls, the power supply, the speaker and the monitor.
Joystick: red up, orange down, yellow left, green right.
Buttons 1 to 4: blue, violet, grey and white. Where fitted, buttons 5 and 6 use pink and a second black wire. On our harness, the button 6 wire had a knot in it to distinguish it from ground.
Start: brown. Coin: a separate green wire. Ground: black.
Green and black each have more than one use in this scheme. Check the harness maker's pin map against the first few leads before relying on the colours.
The original JAMMA standard provides three buttons per player on the edge connector, with a spare pin per player that later boards used for button 4. Six-button games use either spare pins, as Pandora and most multi-game boards do, or a separate kick harness, as Capcom's CPS2 hardware does. Neo Geo MVS boards use four buttons, with the fourth on the standard's spare pin, so they need no kick harness. The pin used for button 6 varies between boards and harness makers. On a Pandora, that input occupies a pin used for ground in the original standard. The manual for the Pandora Box DX arcade version puts buttons 4 to 6 on pins 25 to 27. It also uses the pin the standard reserves for Coin 2 as Pause, so a harness wired for an original board pauses the game when Coin 2 is pressed. Buy the harness intended for your board and connect the ground chain to the pins specified in the board's manual.
Current Pandora JAMMA boards such as the DX also carry their own HDMI and VGA sockets, so unlike an original board they need no scaler for a modern monitor. The DX switches between 1280×720, 640×480 and a 15 kHz output for a CRT by holding its setting button while the power comes on, and its two LEDs show which mode is set.
Wiring sheet · click it to enlarge
Every pin of the Pandora Box DX JAMMA version, named as in its manual, with the power supply and the two player groups. Harness colours vary, so work by pin.The JAMMA version of a Pandora Box DX with a JAMMA harness on its edge connector. Its HDMI, VGA and USB sockets are on the other side of the case, so it needs no scaler.
A JAMMA board also needs an arcade power supply. The one shown below has screw terminals marked -5V, +12V, GND, +5V, FG, AC1 and AC2. The +5V and +12V outputs connect to the board through the harness's heavier wires. A Pandora needs both supplies; -5V is used only by the sound circuits on older boards.
FG is the earth connection for the metal case. AC1 and AC2 take mains live and neutral, which are brown and blue in UK wiring. Check that the 115/230 V selector is set to 230 V before plugging it in. Buy from a UK seller who states the unit's safety marking, as not every cheap supply carries one.
A small adjuster sets the +5V output. With the board running, measure the voltage at its edge connector and set it to the figure and tolerance in the board's manual. The figure differs between systems: some want exactly 5.0 V, others ask for 5.1 V. If the manual gives nothing, aim for 5.0 to 5.1 V at the connector and no higher. Measuring at the board accounts for the voltage drop along the harness. Mains wiring must be handled by a competent person, using a fused inlet and an earthed case. This guide is not a substitute for professional electrical advice.
An arcade power supply for a JAMMA board. The low-voltage outputs go to the harness; the mains side is for a competent person.
Consoles: compatibility and authentication
The buttons and joysticks are wired in the same way for a console, but the control board must support that console and pass any authentication checks:
Nintendo Switch accepts many USB arcade boards without extra hardware, including Brook boards, GP2040-CE and some kit encoders sold as Switch-compatible. Turn on "Pro Controller Wired Communication" under Controllers and Sensors in the Switch's system settings.
PlayStation 4 checks that the controller is authorised. A board that cannot pass this check stops working after about eight minutes. Brook's compatible fighting boards handle that authentication. Brook's Gen-5 is the current board for both PlayStations: Brook lists it for PS5, PS4, Switch 2, Switch and PC, at about £50. The older Universal Fighting Board supports PS4, PS3, Switch and PC, but is now hard to find in the UK. Brook's P5 boards work on a PS5 only in fighting games that accept PS4-era arcade sticks; the older UFB-UP5 add-on and UFB-Fusion are discontinued. GP2040-CE can pass the PS4 and PS5 checks using a device connected to its USB host port: a licensed PS4 arcade stick or wheel, or an authentication dongle such as Mayflash's MagicBoots for PS4. A DualShock 4 or DualSense won't work as that device on either console. The project's console compatibility page lists the devices known to work.
Xbox One and Series consoles accept licensed hardware only and have blocked unlicensed accessories since late 2023. Brook's older boards, including the Universal Fighting Board, lost Xbox support following that change. The Gen-5X is currently listed for Xbox Series X|S and costs around £65. GP2040-CE needs a specific Xbox authentication dongle connected to its USB host port; an Xbox controller won't work for this. Check Brook's current compatibility page before buying a board for Xbox.
Adapters such as Brook's Wingman and Mayflash's Magic range let you use a controller with another system and handle authentication themselves. They're intended for finished arcade sticks and gamepads rather than bare encoders. The Wingman FGC supports fighting games only on PS5.
Brook and GP2040-CE boards also work as ordinary gamepads when connected to a PC, so a panel wired for a console can also be used with a Pi or PC. A PC encoder won't necessarily work the other way round: kit encoders and I-PAC boards are generally PC-only, although some kit encoders support Switch.
Which console, which board: what each console checks and which boards pass.
Illuminated buttons: a second circuit
An illuminated button has two separate circuits: one for the microswitch and one for the lamp. Wire the microswitch as described above. The lamp has its own two leads and, unlike the switch, must be connected with the correct polarity. Look for a plus or minus marking on the lamp holder or its leads first. If the LED stays dark, swap the leads and try again. A brief reversal is unlikely to damage it, but it isn't guaranteed harmless, especially on 12 V. Don't assume red means positive, as some kit looms use the opposite colours.
An illuminated button is two circuits that share a body and nothing else. Diagram, not to scale.An illuminated button in pieces. The lamp holder with its LED and two tabs is one circuit; the microswitch is the other. The black holder clips both onto the body.
Check the voltage printed on the lamp before connecting it. Kit encoders with LED support supply a constant 5 V from USB through separate sockets, or through a shared button lead where the kit's buttons carry their own circuit board. JAMMA cabinets have both 5 V and 12 V available from the power supply. Illuminated buttons sold with Pandora kits are usually rated for either voltage and have a resistor in the holder. At 12 V they are brighter; at 5 V they last longer. A lamp rated for 5 V only will burn out on 12 V.
The illuminated buttons sold in USB kits carry a small circuit board with one socket, so the switch and the lamp share one lead to the kit's encoder. They are screw-in bodies and fit under our acrylic control-panel cover.The same button assembled. The holder sits on the body with the switch and lamp in place, ready for two sets of connectors.
Don't connect a lamp to an encoder's button input. That pin detects a switch press; it doesn't supply power. Buttons that change colour or respond to the game need a lighting controller, such as Ultimarc's PacLED64, and software to control it.
Illuminated joysticks follow the same rule. The Shigu lever below is a JLF-pattern stick with an LED in the shaft. Its lamp has its own two-pin lead, rated 12 V, so the 5 V LED sockets on a kit encoder won't light it; it needs the same 12 V supply as a marquee strip. The directions come out on separate headers and are wired like any other joystick, with nothing shared between the two circuits.
An illuminated lever. The small two-pin socket at the top left is the 12 V lamp lead; the direction headers along the top are a separate circuit.
Wiring and testing the panel
Fit the buttons and joysticks first. Rest the panel upside down beside the cabinet while you wire it.
Use the same layout for both players: buttons 1 to 3 along the top row from left to right, then 4 to 6 along the bottom, followed by Start and Coin. Button numbering varies between boards, so keeping both players' wiring consistent makes setup easier.
Run each player's ground chain, then connect a coloured lead to each input. Label the wires as you go and push every connector fully into place.
Connect the board last. Disconnect USB or power before changing any wiring: a 5 V lamp feed touching a switch input can damage the board.
Test the controls before refitting the panel. On Windows, run joy.cpl and check the button indicators in the test tab. That only lists game controllers, so for an I-PAC or Mini-PAC in its default keyboard mode, open Notepad and press each button, or use your front end's input setup. To see it in joy.cpl instead, hold Player 1 Start and Player 1 button 2 for ten seconds, which switches it to gamepad mode. On a Pi, use the controller test in Batocera or RetroPie. On a Pandora Box, use the input test in its settings menu. If a direction doesn't work, check the orientation of the 5-pin plug and whether a wire is connected to NC.
Leave enough slack to lift or hinge the panel open with the board connected. Secure the loom away from sharp edges and hot components.
What to buy for each setup
Pi or PC, first build: a two-player kit with zero-delay encoders. Everything matches because it comes in one box.
Pi or PC with Sanwa or other 2.8 mm buttons: a Mini-PAC with the 2.8 mm button harness, or a kit encoder with 2.8 mm leads.
Pandora Box home version: nothing extra. Use its loom and check which stick plug it has.
JAMMA board or Pandora JAMMA version: the six-button harness sold for the board and an arcade power supply.
Switch: a Brook board, a GP2040-CE board or a Switch-compatible encoder.
PlayStation or Xbox: a Brook board with the right console support, or GP2040-CE with the right licensed device or dongle on its host port for authentication.
At the panel, the basic connections are the same whichever board you choose: COM to ground and NO to the board. Match the connectors to the switch tabs and check the orientation of any 5-pin joystick plug.
Make it yours
Plan the parts for your kit.
The Build Configurator asks six questions about your kit, your games and your budget and turns this guide into a parts list for your build, with planning prices and the sections to read.
A full-height two-player upright for monitors up to 27 inches. It is 74.5 cm wide and 168.5 cm tall, and the control panel lifts out for access to the controls and wiring.
A standalone two-player control-panel enclosure, 78.3 cm long, with a hinged lid. It has no screen housing: connect it to your existing monitor or TV.
From £135.00
Analytics cookies
We would like to use Google Analytics cookies to see how people use this website, so we can improve it. No advertising, and we never sell your data. They are only set if you accept. How we use cookies