Skip to the content
2 layers43 × 28 mmRetrolink, the printed circuit board in 3D

USB Joystick, USB Mouse and Mega Drive adapters for the MSX line of computers

Size
43 × 28 mm
Copper layers
2
Thickness
1.6 mm
Parts
6
Nets
24
Pads
40
Tracks, vias
51, 1
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Aug 2026
Updated
14 Oct 2026

Overview

Retrolink is an open-source printed circuit board by cristianoag, from the cristianoag/retrolink repository on GitHub. It is a 2-layer board of 43 × 28 mm with 6 parts on 24 nets, routed with 51 tracks and 1 via.

It is built around the RP2040-ZERO. Its parts include 2 connectors and 1 diode. It belongs with the keyboards and input and retro computing and games boards and the RP2040 boards of this library.

Main components

1

README

README.md

The Retro Hacker RetroLink

RetroLink is an open-source hardware and firmware project for connecting controllers to classic MSX computers through the MSX DB9 General Purpose port. RetroLink USB connects USB HID joysticks and gamepads, or USB mice when flashed with the mouse firmware. RetroLink MD translates Mega Drive/Genesis 3-button and 6-button controller signals into MSX joystick signals. Both variants use an RP2040 Zero.

Why RetroLink?

RetroLink started with a frustrating controller compatibility problem on the MSX. While passive or simple Mega Drive-to-MSX adapters (such as JoyMega) often work with older wired pads, they frequently run into trouble with modern wireless setups like the 8BitDo M30 and its Retro Receiver... especially on newer 8BitDo firmware versions. A controller might link up and even pass a diagnostic test like HIDTest, only to fail in actual games, SofaRun, or the Carnivore2 menu (see the MSX Resource Center discussion).

Mega Drive and MSX ports share the same 9-pin connector shape, but their wiring and protocols are fundamentally different.

Instead of relying on passive pin adaptation or custom polling routines inside each MSX program, RetroLink puts an RP2040 Zero microcontroller in charge. The adapter actively polls the controller on one side and presents clean, standard joystick (or mouse) signals to the MSX on the other. That same microcontroller-driven architecture also made RetroLink USB possible... bringing modern USB gamepads, joysticks, and mice to the MSX on a tiny, easily updatable board.

RetroLink USB

RetroLink USB hardware revision 1.10 angled 3D render with RP2040 Zero, USB-A connector, and DE9 socket

One board, two modes... switched with a quick firmware update. RetroLink USB connects standard USB input devices to the MSX General Purpose port, and its behavior depends on the firmware loaded onto the RP2040 Zero:

  • USB Joystick & Gamepad Mode (retrolink-joystick-1.10.uf2): Translates standard USB HID joysticks and gamepads (axes, D-pad hats, and primary buttons) into MSX directional inputs and Triggers A/B. Tested and working with controllers such as the Hyperkin Trooper 2, Dazz Dual Shock, generic USB Super Nintendo pads, and the Datafrog Wireless controller with its USB receiver (see the full compatibility list).
  • USB Mouse Mode (retrolink-mouse-1.00.uf2): Turns the exact same board into an MSX mouse adapter, answering the MSX port's strobe sequence with movement deltas and left/right button states (plus optional MSX-mouse joystick emulation when holding the left button on startup). Tested with Logitech mice, Red Dragon mice, and generic USB mice.
  • Easy Drag-and-Drop Updates: Switching between a USB joystick and a USB mouse (or upgrading to a newer firmware release) takes seconds over USB-C. Hold BOOT while connecting the board to a PC and drop the desired .uf2 file onto the RPI-RP2 drive.

Hardware highlights (latest revision 1.10):

  • USB-A host receptacle for connecting wired or wireless-dongle USB HID devices.
  • Female DE9 connector for the MSX joystick/general-purpose port.
  • Powered directly from the MSX port (+5 V on DB9 pin 5) during normal use.
  • 1N5819 Schottky diode protection to prevent USB-C programming power from feeding back into the MSX.

RetroLink MD

RetroLink MD revision 1.00 angled 3D render with RP2040 Zero and Mega Drive and MSX DE9 connectors

Built for high compatibility with original and modern Mega Drive controllers. RetroLink MD replaces the USB-A port with a male DE9 connector for a Mega Drive / Genesis controller or wireless receiver, while keeping the female DE9 connector for the MSX.

  • Works with 8BitDo M30 & Recent Firmware Versions: Designed specifically to solve the compatibility issues seen with passive adapters, RetroLink MD works reliably with 8BitDo M30 wireless controllers and receivers (including recent firmware versions) across MSX games, SofaRun, and flashcart menus like Carnivore2, as well as standard 3-button and 6-button Mega Drive pads.
  • Active Microcontroller Translation: Rather than passing raw multiplexed lines straight through to the MSX, the onboard RP2040 Zero generates the Mega Drive TH/SELECT polling sequence in firmware and outputs standard MSX directions and Triggers A/B (B → Trigger A, C → Trigger B).
  • Safe Port Handling & Updatable Firmware: Monitors the MSX port's common line (pin 8), cancels opposing directions, and automatically releases all directional/trigger outputs if a controller is unplugged. If a future controller or receiver ever needs a timing tweak, the firmware can be updated via USB-C.

Variants and Versions

VariantInputHardwareSoftware and firmware
RetroLink USBUSB HID joystick/gamepad, or USB HID mouseLatest: revision 1.10; earlier revisions under hardware/usbJoystick source (firmware 1.10), mouse source (firmware 1.00), and UF2 artifacts
RetroLink MDMega Drive/Genesis 3-/6-button controllerLatest: revision 1.10; earlier revisions under hardware/mdMD source and UF2 artifacts (firmware 1.10)

See firmware/README.md for tested controllers, docs/log.md for the hardware and firmware version history, and the individual firmware guides (USB Joystick, USB Mouse, and MD) for pinouts and technical details.

DIY Build Guide & Board Previews

Both RetroLink variants are compact, beginner-friendly through-hole/edge-mount builds with just four components per board (one SMD diode, one RP2040 Zero module, and two connectors).

PCB Components (BOM)

Quantities are per board for hardware revision 1.10, matching the interactive BOMs (USB iBOM, MD iBOM) and CSV exports (USB BOM, MD BOM). AliExpress links are search placeholders—always verify dimensions, pinout, package, and ratings before ordering.

ReferenceVariantComponent / BOM valueQtyPCB footprint / selection notesAliExpress
RZ1USB & MDRP2040 Zero module1RP2040-Zero; check module dimensions and pinout against the PCB.Search RP2040 Zero
J1USB & MDDE9 female socket (DE9_Socket)1DSUB-9_Socket_EdgeMount_P2.77mm; edge-mount, 2.77 mm pitch (MSX side).Search DB9 female edge-mount
J2USB onlyUSB-A receptacle (USB_A)1TE_6364372-2; through-hole USB-A female socket. Verify shell tabs and pin spacing.Search USB-A PCB socket
J2MD onlyDE9 male plug (DE9_Pins)1DSUB-9_Pins_EdgeMount_P2.77mm; edge-mount, 2.77 mm pitch (Mega Drive controller side).Search DB9 male edge-mount
D1USB & MDSchottky diode (1N5819)1D_SOD-123; must be SMD SOD-123 (an axial DO-41 diode will not fit). Confirm polarity before soldering.Search 1N5819 SOD-123

Step-by-Step Assembly

  1. Order or Fabricate the PCB: Use the KiCad project or production files under hardware/usb/1.10 for RetroLink USB or hardware/md/1.10 for RetroLink MD. (Make sure to use revision 1.10, which includes the updated ground routing on the MD board.)
  2. Open the Interactive BOM: Download and open hardware/usb/1.10/bom/ibom.html or hardware/md/1.10/bom/ibom.html locally in a web browser for interactive component placement and orientation checks.
  3. Solder the Protection Diode (D1): On the bottom of the PCB, solder the 1N5819 (SOD-123) Schottky diode first while the board lies flat, aligning the cathode mark with the silkscreen footprint.
  4. Mount the RP2040 Zero (RZ1): Solder the RP2040 Zero onto the top of the PCB using pin headers or directly via its castellated pads, with the USB-C port facing the board edge.
  5. Solder the Connectors (J1 and J2):
    • Slide the MSX-side female DE9 edge-mount socket (J1) onto the right edge of the PCB and solder the top and bottom rows of contacts.
    • On RetroLink USB, insert the USB-A receptacle (J2) on the top side and solder its mounting tabs and signal pins on the bottom.
    • On RetroLink MD, slide the controller-side male DE9 edge-mount connector (J2) onto the left edge of the PCB and solder both rows of contacts.
  6. Flash the Firmware:
    • Connect the RP2040 Zero to your computer with a USB-C data cable while holding the BOOT button (it will mount as a RPI-RP2 USB drive).
    • Copy the appropriate .uf2 file from firmware/usb (retrolink-joystick-1.10.uf2 or retrolink-mouse-1.00.uf2) or firmware/md (retrolink-md-1.10.uf2) to the drive.
    • To switch a RetroLink USB board between joystick and mouse modes later, simply re-enter BOOT mode and drop the other .uf2 file onto the board.
  7. Print the Enclosure (Optional): 3D-printable two-piece snap-fit PLA cases (STLs, STEP files, and print instructions) are available in hardware/usb/1.10/case and hardware/md/1.10/case.

Assembled Boards & PCB Previews

RetroLink USB

Assembled RetroLink USB board (top and bottom views):

Assembled Top ViewAssembled Bottom View
Assembled RetroLink USB board top view showing RP2040 Zero, USB-A socket, and DE9 female connectorAssembled RetroLink USB board bottom view showing soldered D1 Schottky diode, RP2040 Zero pins, and DE9 pads

3D CAD preview renders (revision 1.10 top and bottom):

3D Render (Top)3D Render (Bottom)
RetroLink USB revision 1.10 PCB bottom render showing the diode, connector pads, and RetroLink USB brandingRetroLink USB revision 1.10 PCB top render with RP2040 Zero, USB-A connector, and DE9 socket
RetroLink MD

Assembled RetroLink MD board (top and bottom views):

Assembled Top ViewAssembled Bottom View
Assembled RetroLink MD board top view showing RP2040 Zero and both male and female DE9 connectorsAssembled RetroLink MD board bottom view showing soldered D1 Schottky diode, RP2040 Zero pins, and DE9 pads

3D CAD preview renders (top and bottom):

3D Render (Top)3D Render (Bottom)
RetroLink MD front render showing RP2040 Zero and both DE9 connectorsRetroLink MD back render showing the diode, connector pads, and routing

Repository Layout

PathPurpose
software/usb/joystickUSB joystick/gamepad firmware source using the Raspberry Pi Pico SDK, TinyUSB, and Pico-PIO-USB; also hosts sources shared with the mouse and MD builds.
software/usb/mouseUSB mouse-to-MSX mouse firmware source for the same USB hardware.
firmware/usbUSB joystick and mouse UF2 firmware artifacts.
hardware/usbUSB KiCad project files, BOMs, production exports, and 3D-printable cases by hardware revision.
software/md, firmware/md, hardware/mdMD controller-to-MSX source, generated UF2 firmware, KiCad hardware revisions, and 3D-printable cases.
imagesAssembled board photos and PCB preview renders used in this README.
docsTechnical specification and version log.
software/third_party/Pico-PIO-USBGit submodule for GPIO-based USB host support on RP2040.

Firmware Build

USB firmware

Initialize submodules after cloning:

powershell
git submodule update --init --recursive

Build from the firmware source folder for the device you will connect:

powershell
cd software\usb\joystick   # USB joysticks/gamepads
make
cd ..\mouse                # USB mice
make

Each build generates a versioned UF2 file for the same USB hardware:

text
firmware/usb/retrolink-joystick-1.10.uf2
firmware/usb/retrolink-mouse-1.00.uf2

On Windows, the Makefile discovers Pico SDK-managed tools under %USERPROFILE%\.pico-sdk. Override PICO_SDK_ROOT, PICO_SDK_PATH, PICO_TOOLCHAIN_PATH, CMAKE, CMAKE_MAKE_PROGRAM, PYTHON3_EXECUTABLE, PICOTOOL_DIR, PIOASM_DIR, or PICO_PIO_USB_PATH if your toolchain is installed elsewhere.

MD firmware

From the repository root, using the same Pico SDK toolchain:

powershell
make -C software\md

Output: firmware/md/retrolink-md-1.10.uf2. The MD build does not use Pico-PIO-USB. See MD build instructions and tests. Use the UF2 for the correct hardware variant.

License

This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

  • You may remix and adapt the material with proper attribution.
  • Derivative works must be shared under the same license.
  • Commercial use is not permitted without explicit authorization.

See LICENSE.txt for the full license text. Third-party components retain their respective licenses.

Parts

6
QtyValueFootprintReferences
11N5819Diode_SMD:D_SOD-123D1
1DE9_SocketConnector_Dsub:DSUB-9_Socket_EdgeMount_P2.77mmJ1
1G***kibuzzard-6AB40DA5kibuzzard-6AB40DA5
1G***kibuzzard-6AB06415kibuzzard-6AB06415
1RP2040-Zerolibraries:RP2040-ZeroRZ1
1USB_Alibraries:TE_6364372-2J2

More from cristianoag/retrolink

2
  • 2 layers43 × 28 mmRetrolink, the printed circuit board in 3D

    Retrolink

    cristianoag/retrolink

    USB Joystick, USB Mouse and Mega Drive adapters for the MSX line of computers

    5 parts4
  • 2 layers50.2 × 26 mmRetrolink, the printed circuit board in 3D

    Retrolink

    cristianoag/retrolink

    USB Joystick, USB Mouse and Mega Drive adapters for the MSX line of computers

    5 parts4

Similar boards

  • 2 layers132.3 × 94.9 mmCheapino, the printed circuit board in 3D

    Cheapino

    tompi/cheapino

    An affordable split 36 keys keyboard

    59 parts1.2kCC-BY-4.0
  • 2 layers321 × 92.3 mmMx40, the printed circuit board in 3D

    Mx40

    zzeneg/stront

    Split keyboards with 38 or 40 keys, LCD display and Cirque trackpad

    181 parts353MIT
  • 2 layers255.9 × 99.3 mmZerosprey42, the printed circuit board in 3D

    Zerosprey42

    beekeeb/zerosprey42

    Zerosprey42 Keyboard is a wired, beginner friendly, choc hotswap, MonoBlockSplit (Unibody), column-staggered, DIY mechanical keyboard.

    96 parts140
  • 2 layers146.3 × 69.5 mmStress, the printed circuit board in 3D

    Stress

    GroooveBob/Stress

    Pocket Arcade Fight Pad

    22 parts102MIT
  • 2 layers54 × 64 mmDonConIOmini, the printed circuit board in 3D

    DonConIOmini

    ravinrabbid/DonCon2040

    RP2040 based firmware and hardware for DIY Taiko no Tatsujin Drum Controllers

    96 parts66MIT
  • 2 layers52 × 50 mmRP2040-TestPatternGenerator VGA, the printed circuit board in 3D

    RP2040-TestPatternGenerator VGA

    nmur/RP2040-TestPatternGenerator

    A simple test pattern generator running on the RP2040 microcontroller

    12 parts64GPL-3.0
  • 2 layers120 × 40 mmBuinchiez40, the printed circuit board in 3D

    Buinchiez40

    ChrisChrisLoLo/bunchiez40

    A pocket keyboard that makes use of mouse switches to achieve a miniscule size

    90 parts56GPL-3.0
  • 2 layers305.2 × 76.2 mmSoroka, the printed circuit board in 3D

    Soroka

    kapee1/soroka

    40% DIY-keyboard with base kit support

    126 parts47Unlicense

Questions

How big is the Retrolink PCB?

It measures 43 × 28 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Retrolink use?

6 parts, built around the RP2040-ZERO. 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 Retrolink KiCad files?

From the cristianoag/retrolink repository on GitHub, at the commit this page was made from: the board is hardware/usb/1.10/retrolink.kicad_pcb and its schematic hardware/md/1.00/retrolink.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Retrolink design in my own project?

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