Skip to the content
2 layers40 × 46 mmButton, the printed circuit board in 3D

Arcade switch replacement

Size
40 × 46 mm
Copper layers
2
Thickness
1.6 mm
Parts
27
Nets
17
Pads
90
Tracks, vias
201, 32
Pours
5
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
19 Dec 2025
Updated
21 Jan 2026

Overview

Button is an open-source printed circuit board by whowechina, from the whowechina/arcade_pico repository on GitHub. It is a 2-layer board of 40 × 46 mm with 27 parts on 17 nets, routed with 201 tracks and 32 vias.

Its parts include 6 connectors, 6 switches, 4 resistors, 2 capacitors and 2 diodes. It belongs with the retro computing and games boards of this library.

README

README.md

Arcade Pico - An Alternative Switch/Lamp Holder for Arcade Buttons

点这里可以切换到中文版

It's the successor to my sanwa_opt project. With it, you can use regular low-profile keyboard switches (or even optical sensors) on arcade buttons.

Features

  • Compatible with both old Sanwa (push-click) and new Sanwa (twist-lock), Samducksa, and common Chinese buttons;
  • Supports mechanical switches, optical sensors, and magnetic switches (IO Board required);
  • Mechanical switch can be hotswap (Kailh Choc sockets);
  • Feel switch and actuation switch can be separated;
  • RGB LED support (IO Board required);
  • FDM 3D-printing friendly.
  • Multiple connection options to fit different systems.

Thanks

Thanks to many respectful guys/companies who made their tools or materials free or open source (KiCad, OnShape, InkScape, Raspberry things).

Special thanks to community projects and developers. And also these projects:

My Other Projects

You can check out my other cool projects.

Disclaimer

I made this project in my personal time with no financial benefit or sponsorship. I will continue to improve the project. I have done my best to ensure that everything is accurate and functional, there's always a chance that mistakes may occur. I cannot be held responsible for any loss of your time or money that may result from using this open source project. Thank you for your understanding.

About the License

It's CC-NC. So DIY for yourself and for your friend, don't make money from it. And plagiarism that doesn’t even dare to mention the original author is not acceptable. Please note that pooling orders and group buying for raw materials is acceptable.Selling any leftover components at cost (without profit) is also acceptable.

If you're interested in buying from me, or for commercial use, please contact me (Discord, QQ group, Goofish).

Use Cases

Terminology First

  • Main Board - The original controller board or IO board of your arcade system.
  • Button Board - The PCB that contains the switch and LED daughter board. It's the major part of the Arcade Pico project.
  • IO Board - The optional PCB that converts Hall effect switch signals to digital signals, and bridges regular LED signals to WS2812B RGB LED data signals. It's also part of the Arcade Pico project. It cannot replace your original Main Board.
  • Lamp Holder - More accurately, it's a base equipped with both lamp and switch, but commonly referred to as lamp holder.

Case: Replace the Lamp/Switch Holder without the IO Board

It's the most common and easy case. The only thing you need to do is wiring the switch and LED signals from your Main Board to the corresponding connectors on the Button Board. You can use mechanical switches or optical sensors, but you can't use magnetic switches or RGB lights.

Wiring:
  • SW Out (SH1.0 3P) on Button Board → Button Input on Main Board
  • LED In (SH1.0 3P) on Button Board ← Lamp Output on Main Board

Case: Enjoy the Magnetic Switch or the RGB light with the IO Board

With magnetic switch, you can define your trigger and reset distance. With RGB light, you can define your button light color and effect. IO Board is required to drive the magnetic switch and RGB light.

Wiring:
  • Magnetic switch signals

    • SW Out (SH1.0 3P) on Button Board → Hall In (SH1.0 3P) on IO Board
    • Out (XH2.5 2P) on IO Board → Button Input on Main Board
  • RGB LED signals

    • Lamp Output on Main Board → Lamp In (XH2.5 2P) on IO Board
    • LED Out (SH1.0 3P) on IO Board → LED In (SH1.0 3P) on Button Board
    • LED Out (SH1.0 3P) on Button Board → LED In (SH1.0 3P) on next Button Board (if any)
    • LED Out (SH1.0 3P) on last Button Board → LED End (SH1.0 3P) on IO Board for power backup.
  • You can power the IO Board from the Main Board's 5V supply via JST 2P, or directly via Type-C port (USB or power adapter).

When IO Board is connected to a host computer via Type-C:
  • IO Board works as an HID device.
    So if you're fine with this extra USB cable, you might be able to skip the wiring between the IO Board and the Main Board. However, some games require the controller to be a single device, so this won't work in those cases.
  • CLI (command line interface) is on USB CDC (serial).
  • The Type-C port is also for firmware update.

Imagined Case: Interfacing with DJDao PhoenixWAN

This is a theoretical case that probably won't be implemented. If implemented, all that cockamamie wiring between IO Board and Main Board would be eliminated - they'd simply communicate via UART.

Let's hope this happens someday.

How to Build

The Button Board

Common Part

  • The PCB gerber file is Production/PCB/"arcade_pico_button_*.zip. The one with socket is hotswap (for Choc V1 and V2). I always use JLC (https://www.jlcpcb.com) and Jiepei (https://www.jiepei.com), feel free to use your preferred PCB manufacturer. They may ask if you need half-hole pads for the Button Board, just answer "No", it's costy and not necessary.

  • 2X 3P SH1.0 horizontal SMD connector on "SW" and "LED In" footprints.

  • 1X 3P SH1.0 horizontal SMD connector on "LED Out" footprint, only needed when using WS2812B RGB LED daughter board.

  • To connect LEDs:

    • "LED In" connector (+, -) is for regular single color LED signal from your existing Main Board.
    • "LED In" and "LED Out" connectors are for daisy-chain when using WS2812B RGB LED daughter board.

Mechanical Switch

Optical Sensor (IR Diode + Phototransistor)

  • Solder the IR diode (IR908-7C) and phototransistor (PT908-7C) at proper height;

  • Solder R3 (500 ohm for 3.3V supply, 1k ohm for 5V supply);

  • Resistors: R4, R5; Jumpers: c, e; Zener: Z1.

    • Low-active logic (most systems are): R4 (0-10 ohm), R5 (2k ohm), short the jumper e by soldering.
    • High-active logic: R4 (2k ohm), R5 (0-10 ohm), short the jumper c.
    • When power supply is 5V but the target system IO is 3.3V, solder Z1 (3.3V SOD-123F Zener diode) to protect the IO pin.
  • You can solder a mechanical switch on SW1 footprint for some tactile feel, but don't short the jumper sw1.

  • On most systems, LED positive line is a constant 5V or 3.3V power supply, you can borrow that to power the optical sensor - just short the jumper "LEDP-V".

  • To connect to controller's Main Board:

    • "SW" connector (V, Out, GND) is for the switch signal;
  • This example shows a low-active configuration, 5V is borrowed from LED positive line, and optional Choc V1 on SW1 just for the feel.

Magnetic (Hall Effect) Switch

  • Magnetic switch is on SW1 footprint.

  • Solder U1 (SS49E SOT23-3) and C1 (0.1uF 0603).

  • You can install a mechanical switch on SW2 footprint for some tactile feel, but don't solder the jumper.

  • If the Hall effect switch is not mounted tightly, you may need to use some RTV silicone adhesive to secure it.

  • This example uses Hall effect switch on SW2 and optional Choc V1 on SW1 just for the feel.

  • To connect to controller's Main Board:

  • "SW" connector (V, Out, G) connects to the Arcade Pico IO board. Then the IO Board connects to the Main Board.

  • Note that Arcade Pico IO Board is need for this setup.

The LED Daughter Board

  • It is separated from the Arcade Pico Button board by snapping or cutting. There're two versions: single-color LED and WS2812B RGB LED. You can choose either one according to your needs.
  • After soldering the components, insert the LED daughter board back to the button PCB vertically from the top side. Solder one pin first, so you'll have a chance to adjust the height.
  • If it's too low or too high, you won't get even illumination. You can measure the height from your old lamp holder. From my experience with Sanwa, distance from the LED top to the PCB surface is about 37mm.
  • When you finish adjusting the height, solder all pins to secure the connection.

Single-color LED Board

  • Use high-brightness side emitting LEDs. The footprint is compatible with various packages, such as SMD 4008, SMD 4020, SMD 3014, or even through-hole ones (ones with concave lens are better).
  • If you're using SMD LEDs, you can use two of them, one for each side, to get better light distribution.
  • They're normally rated for 20mA current. So typically you use 100-220 ohm current resistors (R1 and R2) for 5V supply, or 50-100 ohm for 3.3V supply.
  • Here's how it looks after soldered.
  • If the polarity of the LED footprint doesn't match your LED, just cut/break the copper trace right at the "x" mark at both sides, and short the jumpers accordingly. This will reverse the polarity.

WS2812B RGB LED Board

  • Arcade Pico IO Board is required.
  • Use WS2812B 4020 side emitting RGB LEDs. You can use two of them, one for each side, to get better light distribution.
  • 0.1uF 0805 or 0603 capacitor on C2 footprint is highly recommended.
  • Here's how it looks after soldered.

The IO Board

  • The IO Board can convert the analog signals from Hall effect switches into digital signals for your main controller board. It can also bridge traditional LED bulb signals to WS2812B RGB LED data signals.
  • If you don't need one or both of these functions, just skip the corresponding components.

Common Parts

Components for Hall Effect Switch

  • 1x ADG708BRUZ, 8 to 1 analog switch, in TSSOP-16 (U3).
  • 1x LP5907MFX-4.5 or TPS7A2042PDBVR LDO, in SOT23-5 (U2), see next line.
  • 1x LM4040 shunt voltage reference in SOT23-3 (Z2), 2.02.1V (for 4.2V LDO) or 2.22.5V (for 4.5V LDO).
  • 1x 3.3V Zener diode, in SOD-123 or SOD-123F, such as BZT52H-C3V3 (Z1).
  • 3x 0.1uF 0603 capacitors (CC1, CC2, CC3).
  • 8x 3P SH1.0 horizontal SMD connectors (In1~In8), for connecting up to 8 Hall effect Button Boards.
  • 8x 2P JST XH2.54 or XH2.5 vertical connectors (Out1~Out8), for connecting to the main controller board.

Components for RGB LED

  • 8x 220ohm 0603 resistors (R1~R8), for optical isolator current limiting. If your light is 12V, use 1kohm 0805 resistors instead.
  • 8x 1N4148 SOD-323 diodes (D1~D8), to protect from reverse voltage, only needed for 12V light input.
  • 2X PC847 or compatible quad optical isolators (U4, U5), in SOP-16.
  • 2x 0805 x 4 5.1K 8P4R resistor arrays (RN1, RN2), if they're not available, use 8x individual 5.1K 0603 resistors instead.
  • 2x 3P SH1.0 horizontal SMD connectors (LED Out and LED End), to connect to the Button Board equipped with WS2812B RGB LED daughter board.
  • 8x 2P JST XH2.54 or XH2.5 vertical connectors (Lamp In 1~8), for connecting to the main controller board's LED signal.

Notes on PCB and Electronics

Things You May Need to Tinker with

  • Here's how you calculate the LED current limiter, it also applies to the IR emitter diode of the optical isolator:
    • R = (V_supply - V_F) / I
    • V_F for single color LED is usually around 3V, V_F for IR emitter is usually around 1.3V.
    • I for single color LED is usually 10-20mA, I for IR emitter is practically 1-10mA.
  • Here's how you calculate the pull-up or pull-down resistor for phototransistor (the one on the Button Board and the one inside the optical isolator):
    • R >= V_supply / I_C
    • It's difficult to estimate the I_C (collector current) of the phototransistor, so just assume it's around 1mA.
    • So on a 3.3V power supply, R >= 3.3V / 1mA = 3.3K ohm, You can use a 3.3K or 3.9K ohm resistor.
    • You may need to adjust the resistor value according to your actual setup.

Things You May Want to Tinker with

  • For the "feel switch", choose clicky ones, Choc V1 and Choc V2 both have some clikcy options. If you find other low-profile mechanical switches which fit in the footprint, you can try them too.
  • When Hall effect switch and the "feel" switch is both installed, spring force adds up, you may want to use a lighter spring for both of them. You can choose light force switches, or you can change the spring inside them.

The Holder Body

  • Use any FDM printer to print the body.

    • Material: PLA, PETG, ABS, you name it.
    • Layer Height: 0.2mm is recommended.
    • Infill: 20% is enough.
    • Walls: 2-4 perimeters.
    • Support: Yes, tree support.
  • Files are in the "Production/3DPrint" folder.

    • Sanwa_push.stl - old style Sanwa lamp holder (push-click type).
    • Sanwa_twist.stl - new style Sanwa lamp holder (twist-lock type).
    • Samducksa.stl - Samducksa lamp holder.
    • Chinese.stl - common Chinese button lamp holder.
  • Use M2*6mm screws to secure the PCB to the button.

Parts

27
QtyValueFootprintReferences
4~button:M2_ScrewS1, S2, S3, S4
2200Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R3
2200Resistor_SMD:R_0805_2012MetricR4, R5
2Gold Fingerbutton:GoldFingerJ6, J7
10.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2
10.1uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1
13.3VDiode_SMD:D_SOD-123FZ1
1Choc and IR Pairbutton:SW_Kailh_Choc_IR_ComboSW2
1Conn_01x03_Socketbutton:SH1.0_3P_Solder_ComboJ2
1LEDbutton:DIPLEDD1
1LEDP-Vbutton:SolderJumpJP6
1Lamp Seatbutton:LampSeatJ3
1RGB Inbutton:SH1.0_3P_Solder_ComboJ4
1RGB Outbutton:SH1.0_3P_Solder_ComboJ5
1SS49E_SOT23button:SOT-23-FATU1
1WS2812B_Unifiedbutton:WS2812B-DIPD3
1cbutton:SolderJumpJP3
1ebutton:SolderJumpJP4
1sw1button:SolderJumpJP5
1sw2button:SolderJumpJP7
1~button:Choc_HESW1

More from whowechina/arcade_pico

2
  • 2 layers85 × 50 mmIo8, the printed circuit board in 3D

    Io8

    whowechina/arcade_pico

    Arcade switch replacement

    61 parts13
  • 2 layers40 × 46 mmButton, the printed circuit board in 3D

    Button

    whowechina/arcade_pico

    Arcade switch replacement

    32 parts13

Similar boards

  • 2 layers47.6 × 27.3 mmMmc usb 1, the printed circuit board in 3D

    Mmc usb 1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    27 parts1.2k
  • 2 layers77.4 × 77.4 mmCORAZON LEDS CON FADE, the printed circuit board in 3D

    CORAZON LEDS CON FADE

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    27 parts915
  • 2 layers44.2 × 29.3 mmI2c tiny usb, the printed circuit board in 3D

    I2c tiny usb

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    27 parts454
  • 2 layers22 × 42 mmNvme bm to e, the printed circuit board in 3D

    Nvme bm to e

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    27 parts253GPL-3.0
  • 2 layers80 × 61 mmPicoProducer, the printed circuit board in 3D

    PicoProducer

    pjgpetecodes/pico-streamdeck

    This project is an OBS Controller using a Raspberry Pi Pico and CircuitPython.

    27 parts230MIT
  • 2 layers186 × 45 mmAddOnD, the printed circuit board in 3D

    AddOnD

    freeDSP/freeDSP-aurora

    freeDSP ADAU1452 with 8 analog input, 8 analog outputs, S/P-DIF I/O, ADAT I/O, USB Audio Class2, WiFi, Bluetooth

    27 parts226CC-BY-SA-4.0
  • 2 layers29.6 × 40.6 mmDbwifi revB, the printed circuit board in 3D

    Dbwifi revB

    ugcs/ddc

    Drone Show Software is software designed for drone shows, allowing flight path planning as well as control of dozens of drones simultaneously in a synchronized manner.

    27 parts223

Questions

How big is the Button PCB?

It measures 40 × 46 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Button use?

27 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Button KiCad files?

From the whowechina/arcade_pico repository on GitHub, at the commit this page was made from: the board is PCB/button_dip_led/button.kicad_pcb and its schematic PCB/button/button.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Button design in my own project?

Its repository states no licence, so its author keeps all rights: ask whowechina before reusing the design.