Skip to the content
2 layers55 × 32 mmMsx joydolphin v1, the printed circuit board in 3D

A Nintendo Gamecube controller adapter for MSX

Size
55 × 32 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
33
Pads
64
Tracks, vias
83, 0
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
1 Oct 2023
Updated
20 Apr 2024

Overview

Msx joydolphin v1 is an open-source printed circuit board by herraa1, from the herraa1/msx-joydolphin-v1 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 55 × 32 mm with 14 parts on 33 nets, routed with 83 tracks and 0 vias.

It is built around the BSS138. Its parts include 3 connectors, 2 resistors, 1 diode, 1 transistor and 1 fuse. It belongs with the retro computing and games and interfaces and adapters boards of this library.

Main components

1

README

README.md

Nintendo Gamecube controller adapter for MSX (msx-joydolphin) v1

Connect Nintendo Gamecube controllers to MSX computers.

[!NOTE] msx-joydolphin v2 is now available!

Introduction

The msx-joydolphin is an adapter that allows connecting Nintendo Gamecube controllers to MSX general purpose ports.

The main features of the msx-joydolphin v1 adapter are:

  • small footprint
  • made of widely available electronic components
  • behaves as a cord extension between the MSX computer and the Nintendo Gamecube controller
  • uses a female standard DE9 connector on the adapter's MSX joystick side
  • uses a Gamecube Controller socket on the adapter's Nintendo Gamecube controller side
  • no need for external power supply for wired controllers, the adapter draws current from the MSX port
  • low power consumption for wired controllers (<20mA)
  • serial debug provides information about the operation of the adapter
  • supports WaveBird Wireless Controllers (which draw up to 150mA) when powering the adapter via USB

Adapter Name

Why msx-joydolphin? The first part of the name is pretty obvious: "msx" as this is an adapter for MSX computers and "joy" as this is a joystick adapter. The "dolphin" part comes from the project codename assigned to the Nintendo Gamecube during its development.

Hardware

The msx-joydolphin v1 adapter uses an Arduino Nano to convert the Nintendo Gamecube controller signalling to the MSX joystick standard signalling.

A small printed circuit board (PCB) is used to easily bind all components:

  • The Arduino Nano is connected using female headers
  • PH2.0 connectors are used to connect cable extensions
  • A 2.54 pitch debug header is added for convenience
  • Through-hole components are used on the front side
  • Surface mount device (SMD) components are used on the back side
    • The SMD components use footprints optimized for hand-soldering

Connection to the MSX general purpose port is implemented using a DE9 joystick extension cable with a female DE9 connector on one side and a loose end on the other side. The MSX joystick extension cable loose end is wired according to the following pinout mapping.

MSX joystick connector pinout, from controller plug side
MSX side pinCable color (may vary)SignalArduino Nano side (port/pin/number)
5Brown+5v_/5V/27
4OrangeRIGHTPB3/D11/14
3GreyLEFTPB2/D10/13
2BlackDOWNPB1/D9/12
1RedUPPB0/D8/11
6GreenTRIGAPB4/D12/15
7WhiteTRIGBPB5/D13/16
8BlueOUTPD2/D2/5
9YellowGND_/GND/4,29

The msx-joydolphin-v1 adapter ignores the MSX general purpose pin8 (OUT) signal. This is not a problem in general, but can cause incompatibilities with specific software, like MSX-HID 1, which uses pin8 to try to guess which kind of device is connected to a MSX general purpose I/O port. For MSX-HID, holding the Trigger B button, will put the software in FM-Towns compatible mode which will make the adapter functional.

The adapter uses open collector outputs (putting the related Arduino Nano pins in INPUT mode with pull-up registers active when in logic "1" and in OUTPUT mode LOW when in logic "0") which makes the adapter safer 2 than the standard MSX joystick schematic depicted in the MSX Technical Data Book, as it avoids a series of undesired conditions that can lead to bus contention/short circuits.

Power is drawn from the +5V signal of the MSX general purpose port, which is capable of delivering up to 50mA 3. The msx-joydolphin v1 draws below 20mA from the port when a wired controller is connected, so it is on the safe side. Anyway, the msx-joydolphin adapter uses a Positive Temperature Coeficient (PTC) resettable fuse of 50mA (F1) to limit current in case something goes wrong.

Also on the power side, a 1N5817 Schottky diode (D1) is used to avoid leaking current from the msx-joydolphin adapter to the MSX in case the USB port of the Arduino Nano is connected to a computer or power supply while the adapter is plugged into an MSX.

Connection to the Nintendo Gamecube controller is done via a Nintendo Gamecube controller extension cable with a controller socket on one side and a loose end on the other side. The Nintendo Gamecube controller extension cable loose end is wired according to the following pinout mapping.

Nintendo Gamecube connector pinout, from Nintendo Gamecube side
Gamecube socket pinCable color officialCable color actual (may vary)SignalCommentArduino Nano side (port/pin/number)
1YellowWhite+5vrumble, not usedN/C
2RedRedDATdata line, uses 3v3 logic so it connects via a level shifter to PD7/D7/10*( PD7/D7/10 )
3GreenBlackGNDground_/GND/4,29
4WhiteBlueGNDground_/GND/4,29
5N/C
6BlueGreen3.43vpower line, 3v3_/3v3/17
7BlackN/AGNDgroundN/C

The Nintendo Gamecube controller uses 3.3V for power and logic, except for the rumble motor which uses 5V.

Power for the Nintendo Gamecube controller is provided by the 3.3V pin of the FT232RL integrated in the Arduino Nano, which is capable of delivering up to 50mA 1, enough to power a wired game controller.

As the Arduino Nano is a 5V logic microcontroller, the msx-joydolphin adapter uses a voltage level shifter based on the BSS138 N-Channel Logic Level Enhancement Mode Field Effect Transistor (Q1) to convert the Nintendo Gamecube controller DAT signal between 3.3V and 5V logic levels.

[!WARNING] Do NOT connect the DAT line of the Nintendo Gamecube controller to the Arduino Nano directly, always use a voltage level shifter. The game controller may get damaged if you connect a 5V signal directly to the 3.3V DAT line.

If a WaveBird Wireless Controller is connected then the msx-joydolphin adapter needs to be powered via the mini USB port of the Arduino Nano, as the power consumption (150mA) is higher than what the MSX joystick port can deliver. Althought it won't work, it is safe to connect a WaveBird Wireless Controller dongle without connecting an external USB power supply thanks to the current limitation of the PTC. Also, connection of an external USB power supply to the Arduino Nano won't back-power the MSX computer thanks to the Schottky diode reverse current protection.

Firmware

The msx-joydolphin v1 adapter firmware uses NicoHood's Nintendo library to read the Nintendo Gamecube controller status, and it is heavily inspired on Daniel Jose Viana "Danjovic" firmware for a similar adapter for Nintendo 64 joysticks.

The following elements are used as inputs:

  • digital pad (D-Pad), as direction arrows
  • analog pad, as direction arrows
  • A button, as Trigger 1
  • B button, as Trigger 2

Those elements' status are processed by the msx-joydolphin firmware and transformed into MSX general purpose port's signals on the fly.

The firmware uses Arduino Nano's sleep capabilities to reduce power consumption when a wired controller is used.

Enclosure

Acrylic

A simple acrylic enclosure design for the project is provided to protect the electronics components and provide strain relief for the extension cords.

The enclosure uses a 3mm acrylic sheet.

Later designs of the enclosure allow access to the USB port of the Arduino Nano without having to open it.

Plastic

Another enclosure option is using an off-the-shelf plastic case of 60x36x17mm.

When using this option, the Arduino Nano must be soldered directly to the msx-joydolphin v1 board and its pin header legs must be trimmed down in order to fit within the reduced space of the case.

References

MSX General Purpose port

Gamecube controller pinout

Arduino Nano pinout

Nico Hood Nintendo Gamecube Joystick arduino library

Daniel Jose Viana "Danjovic" NSX-64 project

Gamecube controller IDs

Image Sources

Footnotes

  1. https://www.mouser.es/datasheet/2/163/DS_FT232R-11534.pdf ↩ ↩2

  2. https://www.msx.org/wiki/Joystick/joypad_controller (see "Undesired Conditions") ↩

  3. https://www.msx.org/wiki/General_Purpose_port ↩

Parts

14
QtyValueFootprintReferences
4HOLEMy_Components:Hole_3mmHOLE1, HOLE2, HOLE3, HOLE4
210KResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2
11N5817Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
150mACapacitor_THT:C_Disc_D7.5mm_W2.5mm_P5.00mmF1
1Arduino Nano v3Module:Arduino_NanoA1
1BSS138Package_TO_SOT_SMD:SOT-23Q1
1DEBUGMy_Components:Conn_Pin_Header_5x1_2.54mmJ3
1J1 MSXConnector_JST:JST_PH_B9B-PH-K_1x09_P2.00mm_VerticalJ1
1J2 GCNConnector_JST:JST_PH_B5B-PH-K_1x05_P2.00mm_VerticalJ2

The 13 most common of 14 parts.

Similar boards

  • 4 layers36 × 50.2 mmRacer, the printed circuit board in 3D

    Racer

    StuckAtPrototype/Racer

    These are structured into their own files. I could have used submodules, but decided against it.

    83 parts3.8kApache-2.0
  • 4 layers95 × 95 mmCube motherboard, the printed circuit board in 3D

    Cube motherboard

    willem-pennings/balancing-cube

    A cube that balances itself in a corner or edge using reaction wheels

    52 parts1.1kGPL-3.0
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 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 layers21.6 × 52.3 mmPs2 pico hat, the printed circuit board in 3D

    Ps2 pico hat

    No0ne/ps2x2pico

    USB keyboard/mouse to PS/2 interface converter using a Raspberry Pi Pico

    17 parts399MIT
  • 2 layers45 × 45 mmAirCube, the printed circuit board in 3D

    AirCube

    StuckAtPrototype/AirCube

    Works standalone out of the box. Pairs with Home Assistant in minutes. Other platforms are supported through community-contributed extensions.

    61 parts379Apache-2.0
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the Msx joydolphin v1 PCB?

It measures 55 × 32 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Msx joydolphin v1 use?

14 parts, built around the BSS138. 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 Msx joydolphin v1 KiCad files?

From the herraa1/msx-joydolphin-v1 repository on GitHub, at the commit this page was made from: the board is hardware/kicad/msx-joydolphin-v1.kicad_pcb and its schematic hardware/kicad/msx-joydolphin-v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Msx joydolphin v1 design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).