
Retrolink
cristianoag/retrolink
USB Joystick, USB Mouse and Mega Drive adapters for the MSX line of computers

USB Joystick, USB Mouse and Mega Drive adapters for the MSX line of computers
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.
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.
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.

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:
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).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.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):
1N5819 Schottky diode protection to prevent USB-C programming power from feeding back into the MSX.
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.
TH/SELECT polling sequence in firmware and outputs standard MSX directions and Triggers A/B (B → Trigger A, C → Trigger B).| Variant | Input | Hardware | Software and firmware |
|---|---|---|---|
| RetroLink USB | USB HID joystick/gamepad, or USB HID mouse | Latest: revision 1.10; earlier revisions under hardware/usb | Joystick source (firmware 1.10), mouse source (firmware 1.00), and UF2 artifacts |
| RetroLink MD | Mega Drive/Genesis 3-/6-button controller | Latest: revision 1.10; earlier revisions under hardware/md | MD 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.
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).
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.
| Reference | Variant | Component / BOM value | Qty | PCB footprint / selection notes | AliExpress |
|---|---|---|---|---|---|
| RZ1 | USB & MD | RP2040 Zero module | 1 | RP2040-Zero; check module dimensions and pinout against the PCB. | Search RP2040 Zero |
| J1 | USB & MD | DE9 female socket (DE9_Socket) | 1 | DSUB-9_Socket_EdgeMount_P2.77mm; edge-mount, 2.77 mm pitch (MSX side). | Search DB9 female edge-mount |
| J2 | USB only | USB-A receptacle (USB_A) | 1 | TE_6364372-2; through-hole USB-A female socket. Verify shell tabs and pin spacing. | Search USB-A PCB socket |
| J2 | MD only | DE9 male plug (DE9_Pins) | 1 | DSUB-9_Pins_EdgeMount_P2.77mm; edge-mount, 2.77 mm pitch (Mega Drive controller side). | Search DB9 male edge-mount |
| D1 | USB & MD | Schottky diode (1N5819) | 1 | D_SOD-123; must be SMD SOD-123 (an axial DO-41 diode will not fit). Confirm polarity before soldering. | Search 1N5819 SOD-123 |
1.10, which includes the updated ground routing on the MD board.)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.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.J1 and J2):
J1) onto the right edge of the PCB and solder the top and bottom rows of contacts.J2) on the top side and solder its mounting tabs and signal pins on the bottom.J2) onto the left edge of the PCB and solder both rows of contacts.RPI-RP2 USB drive)..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.BOOT mode and drop the other .uf2 file onto the board.Assembled RetroLink USB board (top and bottom views):
| Assembled Top View | Assembled Bottom View |
|---|---|
![]() | ![]() |
3D CAD preview renders (revision 1.10 top and bottom):
| 3D Render (Top) | 3D Render (Bottom) |
|---|---|
![]() | ![]() |
Assembled RetroLink MD board (top and bottom views):
| Assembled Top View | Assembled Bottom View |
|---|---|
![]() | ![]() |
3D CAD preview renders (top and bottom):
| 3D Render (Top) | 3D Render (Bottom) |
|---|---|
![]() | ![]() |
| Path | Purpose |
|---|---|
| software/usb/joystick | USB 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/mouse | USB mouse-to-MSX mouse firmware source for the same USB hardware. |
| firmware/usb | USB joystick and mouse UF2 firmware artifacts. |
| hardware/usb | USB KiCad project files, BOMs, production exports, and 3D-printable cases by hardware revision. |
| software/md, firmware/md, hardware/md | MD controller-to-MSX source, generated UF2 firmware, KiCad hardware revisions, and 3D-printable cases. |
| images | Assembled board photos and PCB preview renders used in this README. |
| docs | Technical specification and version log. |
| software/third_party/Pico-PIO-USB | Git submodule for GPIO-based USB host support on RP2040. |
Initialize submodules after cloning:
git submodule update --init --recursiveBuild from the firmware source folder for the device you will connect:
cd software\usb\joystick # USB joysticks/gamepads
make
cd ..\mouse # USB mice
makeEach build generates a versioned UF2 file for the same USB hardware:
firmware/usb/retrolink-joystick-1.10.uf2
firmware/usb/retrolink-mouse-1.00.uf2On 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.
From the repository root, using the same Pico SDK toolchain:
make -C software\mdOutput: 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.
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
See LICENSE.txt for the full license text. Third-party components retain their respective licenses.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 1N5819 | Diode_SMD:D_SOD-123 | D1 |
| 1 | DE9_Socket | Connector_Dsub:DSUB-9_Socket_EdgeMount_P2.77mm | J1 |
| 1 | G*** | kibuzzard-6AB40DA5 | kibuzzard-6AB40DA5 |
| 1 | G*** | kibuzzard-6AB06415 | kibuzzard-6AB06415 |
| 1 | RP2040-Zero | libraries:RP2040-Zero | RZ1 |
| 1 | USB_A | libraries:TE_6364372-2 | J2 |



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


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

nmur/RP2040-TestPatternGenerator
A simple test pattern generator running on the RP2040 microcontroller

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

It measures 43 × 28 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask cristianoag before reusing the design.