Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
USB arcade encoder board with USB cable and switch connection leads

Commissioning a USB Arcade Encoder: Wiring Checks, Input Mapping and Player Order

An arcade control panel has three separate maps: the physical buttons, the encoder’s inputs and the actions assigned by the game. Confusing these maps is a common reason a controller appears to work in one application but behaves strangely in another.

The PMD Way arcade joystick and button USB encoder kit provides an encoder board, USB cable and switch leads. The listing specifies 4.8 mm crimps for joystick connections and 2.8 mm crimps for buttons; confirm their fit on your actual switches. It is an interface kit, so check the selected package’s contents rather than assuming every pictured control is included.

Other options are listed in the arcade game controller kit collection. Whichever board you choose, bring it up on the bench before installing it inside a finished cabinet.

Start with a labelled physical layout

Give each button a neutral location label such as B1, B2 and B3. Draw the panel from the player’s viewpoint and mark the intended up direction of the joystick. Keep game-specific names such as jump or fire in a separate column because those assignments may change.

Photograph the underside as well. A drawing viewed from above is mirrored relative to the underside wiring view, which can make left and right surprisingly easy to swap.

Leave enough wire slack to open the panel for service, but secure the harness so it cannot pull on terminals or enter moving parts of the joystick. Avoid sharp enclosure edges and unsupported board mounting.

Identify switch contacts before connecting the encoder

With all power disconnected, check the switch documentation and verify its contact behaviour using a continuity meter. Many arcade microswitches offer common, normally open and normally closed contacts, but terminal layout and labelling must be confirmed on the actual part.

For an input intended to register when pressed, use the contact pair specified by the encoder’s wiring instructions. Do not assume that the middle terminal is always common. A normally closed connection can make an input appear held until the button is pressed.

Illuminated buttons introduce another circuit. Their lamp terminals are not automatically the switch terminals, and an encoder input is not necessarily a lamp power output. Keep lighting disconnected until its voltage, current, polarity and power arrangement are documented separately.

Connect one known input first

  1. Inspect the unpowered encoder for loose metal, damaged connectors and ambiguous labels.
  2. Mount it on an insulating support with clearance beneath the board.
  3. Connect one verified switch using the intended lead and board input.
  4. Connect USB and check that the host detects the device.
  5. Observe the input while pressing and releasing the switch.

Use the supplied or another known data-capable USB cable. A power-only cable can make an indicator light while leaving the host unable to detect the controller. Change wiring with USB disconnected and avoid probing neighbouring powered pins with loose terminals.

Once the first input behaves correctly, add the others individually. This makes a fault much easier to locate than connecting the entire panel and then trying to understand several simultaneous surprises.

Inspect raw inputs before configuring a game

On Windows, the game-controller panel opened with joy.cpl is one useful starting point when the device exposes a compatible controller interface. Microsoft’s controller test guidance includes checking device presence and operation there. That check is not a claim that the hobby encoder has passed a certification programme.

Use an appropriate input viewer on your chosen host. Record what each physical action actually reports: a button, axis or directional hat. Do not assume that every encoder presents itself as a keyboard, or that a direction will always appear as an ordinary button.

The Linux gamepad specification describes different event representations and notes that applications must check the capabilities a device actually provides. The practical lesson is to observe the reports before assigning meanings to them.

Build a mapping worksheet

Keep hardware identity separate from software actions
Physical control Encoder connection Observed input Application action
Top-left button Record actual board label Record reported identifier Chosen action
Top-right button Record actual board label Record reported identifier Chosen action
Joystick up Record actual board label Button, axis or hat report Move up

Software can add another mapping layer. SDL’s gamepad mapping documentation distinguishes joystick buttons, axes and hats from named gamepad controls. A game using such a layer may display a different label from a raw input viewer without the wiring being wrong.

Configure one layer at a time. If the raw report is correct but the game action is wrong, inspect the application mapping before moving wires. Save the configuration after a working layout is established.

Test combinations, releases and diagonals

Press each button separately, hold it and release it. Then try the combinations the intended game requires. Watch for an input that remains active after release, an unrelated button that changes or a direction that only works while another control is held.

Move the joystick through all intended directions slowly. Diagonals may involve two switches closing together, but their availability also depends on the joystick’s physical gate and the application. Do not force a four-direction mechanism in an attempt to create eight-direction behaviour.

When a failure occurs, repeat it in the raw viewer. This separates an electrical or mechanical problem from a game’s rules or mapping choices.

Verify reconnect behaviour and multiple players

If the project uses two encoder boards, label their USB leads and record the host ports. Reconnect them in different orders and check which player each controls. Similar devices can be difficult for software to distinguish, so verify the chosen application’s assignment method rather than assuming enumeration order remains fixed.

Test a normal restart and a deliberate unplug/replug cycle. Confirm that the controller returns to a released state and the intended mapping is restored. Keep a copy of the working configuration with the wiring worksheet.

Finally, close the enclosure and repeat the short input test. The panel is ready when the finished mechanical assembly, raw reports and application actions agree—not merely when the first button produces a response.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat