Skip to the content
2 layers62 × 72 mmMsx joyblue v2-build2, the printed circuit board in 3D

Msx joyblue v2-build2

herraa1/msx-joyblue-v25

Use bluetooth joysticks with your MSX computer

Size
62 × 72 mm
Copper layers
2
Thickness
1.6 mm
Parts
64
Nets
82
Pads
259
Tracks, vias
629, 97
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
4 Apr 2024
Updated
27 Feb 2026

Overview

Msx joyblue v2-build2 is an open-source printed circuit board by herraa1, from the herraa1/msx-joyblue-v2 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 62 × 72 mm with 64 parts on 82 nets, routed with 629 tracks and 97 vias.

It is built around the CH340C, ESP32-WROOM-32E and 74LS03P-E, with the AMS1117-3.3 and S8050 among its other parts. Its parts include 16 resistors, 14 capacitors, 7 ICs, 6 diodes and 5 switches. It belongs with the retro computing and games and keyboards and input boards and the ESP32 boards of this library.

Main components

5

README

README.md

Bluetooth controller adapter for MSX (msx-joyblue) v2

Connect Bluetooth controllers to MSX computers

Introduction

The msx-joyblue is an adapter that allows connecting Bluetooth controllers to MSX General Purpose I/O Interfaces (aka joystick ports).

The adapter is based on the unijoysticle2 and bluepad32 projects, both owned by Ricardo Quesada.

The main features of the msx-joyblue v2 adapter are:

  • small size
  • made of widely available electronic components
  • uses SMD components, so good soldering skills are needed to build the adapter
  • emulates up to two MSX joysticks
  • attaches to MSX computers using female standard DE9 connectors
  • formally requires an external USB power supply as the adapter draws slightly more current than two MSX general purpose I/O interfaces can officially provide
  • optionally, can be powered using MSX general purpose I/O interfaces without an external power supply if your MSX can safely supply enough current
  • builtin leds provide information about the operation of the adapter

Hardware

The msx-joyblue v2 adapter uses an ESP32-WROOM-32E chip to convert the Bluetooth controller actions to the MSX joystick standard signalling.

A two-sided printed circuit board (PCB) is used to put together all components:

  • The ESP32-WROOM-32E bluetooth MCU chip
  • A CH340C USB to UART chip, to make it easy to upgrade firmware on the ESP32 chip
  • A pair of S8050 NPN transistors to control the boot and enable signals of the ESP32 from the CH340C
  • An AMS1117-3.3 regulator to convert the 5V from either the USB port or joystick ports to the 3.3V required by the ESP32 chip
  • Four 74LS03 quad 2-input NAND gates with open collectors to completely mimic the standard MSX joystick behavior
  • A pair of PTC fuses to minimize damage to the MSX computer in case something goes wrong with the board
  • Several additional required components (diodes, leds, resistors, ceramic capacitors and an electrolytic capacitor)
  • PH2.0 connectors are used to connect cable extensions
  • A 2.0 pitch I2C header is added for future extensions
  • Jumpers are provided to enable different power options
  • A slider switch is used to enable powering the adapter from the MSX side
  • Three momentary push buttons are used to reset the board, swap joysticks or change the operation mode

Connection to the MSX general purpose I/O interfaces is implemented using DE9 joystick extension cables 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)Signal
5Brown+5v
4OrangeRIGHT
3GreyLEFT
2BlackDOWN
1RedUP
6GreenTRIG1
7WhiteTRIG2
8BlueSTROBE
9YellowGND

[!WARNING] The msx-joyblue v2 adapter uses a different pin order on the PH2.0 header than the msx-joyblue v1 adapter.

Make sure you respect the correct pin order for msx-joyblue-v2.

Recommended Build

Please, use msx-joyblue-v2 Build2c for making new boards.

You can find ready to order PCBs and the complete BoM at the PCBWay community site.

PCB from PCBWay

Build2c

Interactive Bill Of Materials (BoM)

The Build2c adapter implements the following changes since Build2b:

  • move capacitor C3 and resistor R1 closer to the ESP32 EN pin
  • change C3 from 10uF to 22uF to give extra ramp up time to the 3V3 power rail
msx-joyblue-v2 Build2c PCBs front and rear
msx-joyblue-v2 Build2c populated PCB

Build2b

[!NOTE] Build2b was never fabricated and has been marked obsolete. Use the recommended build instead.

The Build2b is similar to Build2 but changes slightly some silkscreen text and graphics.

Build2

[!NOTE] Build2 has been marked obsolete. Use the recommended build instead.

The Build2 adapter mimics completely the standard MSX joystick behavior:

  • When pin8 is HIGH, the adapter puts all stick and triggers signals in high impedance mode irrespective of their status (as if stick and triggers were not hold in the standard MSX joystick schematic), which become HIGH on the MSX side via the MSX PSG related circuitry pull-ups (matching the expected behavior)
  • When pin8 is LOW
    • if a stick direction or trigger is hold, the corresponding signal is pulled down to GND causing it to be LOW (matching the expected behavior)
    • if a stick direction or trigger is not hold, the corresponding signal is put in high impedance mode, which becomes HIGH on the MSX side via the MSX PSG related circuitry pull-ups (matching the expected behavior)

This build uses discrete logic components to honor the pin8 signaling (four 74LS03DR quad 2-input positive-nand gates with open collector outputs) and uses open collector outputs which makes the adapter safer 1 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.

msx-joyblue-v2 Build2 first prototypemsx-joyblue-v2 Build2 first prototype within acrylic case

Firmware

The msx-joyblue v2 adapter firmware uses Ricardo Quesada bluepad32 library to drive Bluetooth controllers. A small modification to the library that enables support for MSX computers has been already commited to the main branch.

See bluepad32 documentation for supported Bluetooth controllers.

Enclosure

A simple yet functional acrylic enclosure design is included.

Powering the msx-joyblue adapter

The msx-joyblue adapter uses about ~107mA when operating, while a single MSX general purpose I/O interface is capable of delivering up to 50mA according to the MSX standard 2. That means that even using two MSX general purpose I/O interfaces (50mA + 50mA = 100mA) we are slightly over (107mA) the max current specification for the MSX general purpose I/O interfaces.

Thus, the safest way to power the msx-joyblue adapter is by powering it via the USB mini connector of the board using an external 5V USB power supply. The board automatically powers up when using the USB mini connector without enabling any switch.

Nevertheless, even if the MSX especification puts such a low limit on the current that can be drawn from a general purpose I/O interface, real MSX hardware usually can safely deliver enough current for the msx-joyblue adapter to work correctly without harming our beloved classic computers.

Taking that into account, the msx-joyblue adapter has been enabled to be optionally powered by the MSX general purpose I/O interfaces port 1 and port 2.

To enable powering the msx-joyblue adapter from Port 1 and/or Port 2, the switch SW5 JOY PWR must be first turned on by sliding the switch handle to the right.

[!NOTE] A 1N5819 SMD Schottky diode D3 is used to avoid leaking current from the msx-joyblue adapter to the MSX in case the msx-joyblue adapter is powered by USB while the JOY PWR switch is ON. Another 1N5819 SMD Schottky diode D2 prevents backpowering the USB side from the MSX side. And two Positive Temperature Coeficient (PTC) resettable fuses F1 and F2 of 50mA each protect the MSX general purpose I/O interfaces port 1 and port 2 from excess of current in case something goes horribly wrong on the msx-joyblue adapter side.

To power the msx-joyblue adapter using the MSX general purpose I/O interfaces we must first understand how the PTC protections on the msx-joyblue adapter are implemented.

The selected PTCs are rated for 50mA which is the so called Hold Current (the maximum current that can flow in normal operation). There is also the Trip Current (the minimum current necessary for the PTC to move to high-resistance state) which for the selected PTCs is around 100mA. Those thresholds are dependent on temperature and voltage. And to make things more undeterministic, the behavior of the PTC when current is between those thresholds is undefined (it may trip or not).

In normal operation and for a room temperature of around 25 degrees Celsius, the selected PTCs in practice never trip below 75mA.

[!NOTE] Depending on the exact PTCs installed, the trip current may be slightly different and the adapter may trip at a different point. Unless you buy the PTCs from a reliable source, it is very difficult to know the exact PTC specifications.

Remember that the PTCs are provided as a safeguard in case something goes really wrong on the adapter, not to act as an exact current limiter to strictly comply with the 50mA per-port MSX specification.

So if our MSX computer can safely provide more than 50mA on each MSX general purpose I/O interface (which is usually the case), we can connect both Port 1 and Port 2 to the MSX computer and turn on the SW5 JOY PWR switch to power the msx-joyblue adapter. Note that we need to connect both ports even if we use just one Bluetooth gamepad, just to meet the power requirements.

Two jumpers JP2 and JP3 can be used to bypass the PTC protections for Port 1 and Port 2 respectively.

[!WARNING] Bypassing the PTC protections may damage your MSX computer. Do not bypass the PTC protections unless you known what you are doing.

By closing JP2 (and/or JP3) and if our MSX computer can safely provide more than 100mA on a single MSX general purpose I/O interface, we can connect Port 1 (or Port 2) to the MSX computer and turn on the SW5 JOY PWR switch to power the msx-joyblue adapter using a single joystick port.

In summary, we can use the following options to power the msx-joyblue adapter (from safest to less safe):

  • via the board USB mini conector
    • leave open jumpers JP2 and JP3
    • turn off the SW5 JOY PWR switch
    • connect a 5V USB power supply to the board USB mini connector
  • via two MSX general purpose I/O interfaces, if your MSX can safely provide slightly more than 50mA on each MSX general purpose I/O interface
    • leave open jumpers JP2 and JP3
    • turn on the SW5 JOY PWR switch
    • connect both Port 1 and Port 2 to the MSX general purpose I/O interfaces
  • via one MSX general purpose I/O interface, if your MSX can safely provide more than 100mA on each MSX general purpose I/O interface
    • close jumpers JP2 and/or JP3
    • turn on the SW5 JOY PWR switch
    • connect Port 1 or Port 2 to a MSX general purpose I/O interface

Switches and Buttons

SwitchStateDescription
JOYPWROffpower from MSX computer via joystick port(s) is off (except logic gates)
JOYPWROnboard electronics get power from MSX computer via joystick port(s)

[!NOTE] If you plug a +5V USB power supply to the USB mini connector, the adapter will turn on unconditionally irrespective of the JOYPWR switch position.

ButtonDescription
MODEchange the operation mode of the connected gamepad between "basic mode" and "twin stick mode"
SWAPswap connected gamepads between MSX joystick ports
RESETrestart the firmware, gamepads get disconnected

LED indicators

LEDStateIndication
POWEROffboard is not receiving 3V3 power
POWERSolid Redboard is receiving 3V3 power
Port1Offno gamepad is controlling Port 1
Port1Solid Greena connected gamepad is controlling Port 1
Port1Blinking GreenEvery 1sec, PTCs are tripping, see Troubleshooting
Port2Offno gamepad is controlling Port 2
Port2Solid Greena connected gamepad is controlling Port 2
BT DISCOffBluetooth discovery is off, no new connections are accepted, existing connections (if any) stay on
BT DISCSolid BlueBluetooth discovery is on, new connections are accepted, both "connects" and "re-connects" are accepted

See also the Unijoysticle user guide, keeping in mind that led colors are slightly different.

Troubleshooting

Q: Just after powering the board POWER led is solid red, Port2 and BT DISC leds are off and the Port1 led is solid green, but the adapter does not work

A: Press the reset button to reinitialize the adapter, the BT DISC led should go solid blue shortly, when the adapter is ready.

Q: I did the reset, but now the Port1 led blinks every second, the BT DISC led is off and the Port2 is solid green but the adapter does not work

A: The PTC fuses are tripping preventing the adapter to properly work. See the Powering the msx-joyblue adapter section: use a USB power supply or install the fuse bypass jumpers.

Q: The BT DISC led went off, what happened?

A: You either have 2 gamepads already connected or have turned on the Twin Stick mode.

This can happen too if the PTC fuses are tripping (see previous question).

Q: My Wiimote does not connect

A: If the adapter was previously connected, try pushing any Wiimote button until the Wiimote connects. If that does not work, open the battery compartment and press the red SYNC button to pair the Wiimote with the adapter.

Compatibility Tests

Build Instructions

Follow these Build instructions in order to assemble the msx-joyblue v2 adapter.

References

Ricardo Quesada bluepad32 library

Ricardo Quesada Unijoysticle2 project

MSX general purpose I/O interface

Image Sources

Footnotes

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

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

Parts

64
QtyValueFootprintReferences
610KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R3, R4, R10, R11, R13
63.3KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR8, R9, R12, R14, R15, R16
4.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C4, C9
40.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC11, C12, C13, C14
422uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C5, C7, C8
474LS03Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU4, U5, U6, U7
4MountingHole_PadMy_Components:Hole_3mmH1, H2, H3, H4
31KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R6, R7
21N5819Diode_SMD:D_SOD-123D2, D3
250mAFuse:Fuse_1206_3216Metric_Pad1.42x1.75mm_HandSolderF1, F2
2S8050Package_TO_SOT_SMD:SOT-23Q1, Q2
11uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC10
12200uFCapacitor_SMD:CP_Elec_10x10.5C6
13K3Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1BOOTUnijoysticle:SW_Push_1P1T_NO_5.1x5.1mmSW2
1BT DISCLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD6
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU3
1ESP32-WROOM-32EMy_Components:ESP32-WROOM-32U1
1I2CConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ4
1J1 Fuse BypassConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP2
1J2 Fuse BypassConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJP3
1JOY PWRMy_Components:SW_SK-12D07G6-1P2T-6mmSW5
1LOGOMy_Components:msx-joyblue-logoG***
1Logo_Open_Hardware_LargeSymbol:OSHW-Logo_7.5x8mm_SilkScreenSYM1
1MODEButton_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx39-2LFSSW3
1MSX Port1Connector_JST:JST_PH_S9B-PH-K_1x09_P2.00mm_HorizontalJ2
1MSX Port2Connector_JST:JST_PH_S9B-PH-K_1x09_P2.00mm_HorizontalJ3
1PWRLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD1
1Port1LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD4
1Port2LED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderD5
1RESETButton_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx39-2LFSSW1
1SWAPButton_Switch_THT:SW_Tactile_SPST_Angled_PTS645Vx39-2LFSSW4
1USB_B_MiniConnector_USB:USB_Mini-B_Lumberg_2486_01_HorizontalJ1

Similar boards

  • 4 layers62.5 × 60 mmUnijoysticle2 c64, the printed circuit board in 3D

    Unijoysticle2 c64

    ricardoquesada/unijoysticle2

    Bluetooth gamepad support for the Commodore 64 / Atari / Amiga, etc.

    58 parts62
  • 2 layers50 × 80 mmESP32-WROOM-32, the printed circuit board in 3D

    ESP32-WROOM-32

    nguyenminh2072006-prog/PCB_ESP32

    26 parts
  • 2 layers60 × 47 mmAstro driver, the printed circuit board in 3D

    Astro driver

    rudnik275/astronaut-lamp

    Ночник «космонавт на луне» → нативное HomeKit-устройство на ESP32 + HAA: разбор родной платы, схема драйвера, конфиг, корпус

    51 parts
  • 2 layers100.7 × 57.4 mmCurrent monitoring board, the printed circuit board in 3D

    Current monitoring board

    joefscholtz/current_monitoring_esp32

    Firmware and hardware design ESP32 and ESP-IDF framework for measuring current and detecting leakage using CT sensors.

    45 parts
  • 2 layers61.3 × 63.3 mmMonitoring Gunung, the printed circuit board in 3D

    Monitoring Gunung

    rafdi03/PCB_Desain

    Schematic PCB Project

    50 parts
  • 4 layers89 × 58 mmSH ESP32, the printed circuit board in 3D

    SH ESP32

    kitspace-test-repos/kicad6-file-collection

    308 partsMIT
  • 2 layers74.2 × 54.2 mmMsx joyduke v1, the printed circuit board in 3D

    Msx joyduke v1

    herraa1/msx-joyduke-v1

    Use original Xbox joysticks with your MSX computer

    54 parts1GPL-3.0
  • 2 layers51.5 × 28.3 mmESP32 DevKit, the printed circuit board in 3D

    ESP32 DevKit

    hackclub/OnBoard

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

    29 parts915

Questions

How big is the Msx joyblue v2-build2 PCB?

It measures 62 × 72 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Msx joyblue v2-build2 use?

64 parts, built around the CH340C, ESP32-WROOM-32E, 74LS03P-E and AMS1117-3.3. 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 joyblue v2-build2 KiCad files?

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

Can I use the Msx joyblue v2-build2 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).