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

A Nintendo Gamecube controller adapter for MSX
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.
Connect Nintendo Gamecube controllers to MSX computers.
[!NOTE] msx-joydolphin v2 is now available!
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:
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.
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:
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 side pin | Cable color (may vary) | Signal | Arduino Nano side (port/pin/number) |
|---|---|---|---|
| 5 | Brown | +5v | _/5V/27 |
| 4 | Orange | RIGHT | PB3/D11/14 |
| 3 | Grey | LEFT | PB2/D10/13 |
| 2 | Black | DOWN | PB1/D9/12 |
| 1 | Red | UP | PB0/D8/11 |
| 6 | Green | TRIGA | PB4/D12/15 |
| 7 | White | TRIGB | PB5/D13/16 |
| 8 | Blue | OUT | PD2/D2/5 |
| 9 | Yellow | GND | _/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.
| Gamecube socket pin | Cable color official | Cable color actual (may vary) | Signal | Comment | Arduino Nano side (port/pin/number) |
|---|---|---|---|---|---|
| 1 | Yellow | White | +5v | rumble, not used | N/C |
| 2 | Red | Red | DAT | data line, uses 3v3 logic so it connects via a level shifter to PD7/D7/10 | *( PD7/D7/10 ) |
| 3 | Green | Black | GND | ground | _/GND/4,29 |
| 4 | White | Blue | GND | ground | _/GND/4,29 |
| 5 | N/C | ||||
| 6 | Blue | Green | 3.43v | power line, 3v3 | _/3v3/17 |
| 7 | Black | N/A | GND | ground | N/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.
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:
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.
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.
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.
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
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | HOLE | My_Components:Hole_3mm | HOLE1, HOLE2, HOLE3, HOLE4 |
| 2 | 10K | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1, R2 |
| 1 | 1N5817 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1 |
| 1 | 50mA | Capacitor_THT:C_Disc_D7.5mm_W2.5mm_P5.00mm | F1 |
| 1 | Arduino Nano v3 | Module:Arduino_Nano | A1 |
| 1 | BSS138 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | DEBUG | My_Components:Conn_Pin_Header_5x1_2.54mm | J3 |
| 1 | J1 MSX | Connector_JST:JST_PH_B9B-PH-K_1x09_P2.00mm_Vertical | J1 |
| 1 | J2 GCN | Connector_JST:JST_PH_B5B-PH-K_1x05_P2.00mm_Vertical | J2 |
The 13 most common of 14 parts.

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

willem-pennings/balancing-cube
A cube that balances itself in a corner or edge using reaction wheels

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


lachlanA/eagle-to-kicad
Eagle SCH/LIB to KiCad SCH/LIB ULP conversion script

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

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

It measures 55 × 32 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).