
ADAPTR
JuergenLeber/ADAPTR
Adapter to connect USB mice and joysticks to C64/C128, Amiga and Atari

Adapter to connect USB mice and joysticks to C64/C128, Amiga and Atari
ADAPTR small is an open-source printed circuit board by JuergenLeber, from the JuergenLeber/ADAPTR repository on GitHub. It is a 2-layer board of 18.1 × 23.6 mm with 26 parts on 22 nets, routed with 132 tracks and 0 vias.
It is built around the BAT43. Its parts include 5 resistors, 2 diodes, 1 IC, 1 transistor and 1 connector. It belongs with the retro computing and games boards and the ESP32 boards of this library.
An adapter to connect USB mice and joysticks to C64/C128, Amiga and Atari computers using a standard DE 9 connector.
This project includes ideas, software and schematics developed by Emanuele Laface (see LICENSES.txt). Many thanks to him for this great idea!
The main differences are:
When producing the PCB make sure the dimensions are according to the Gerber files as otherwise the 3D printed case won't fit. If you want to give CNC milling a chance and need help how to start just contact me. I've already gone through the valley of tears and have a bullet-proof method now with my cheap Cubiko CNC mill to produce great results.
As the metal-housed DE 9 connectors are potentially dangerous (if you don't look when plugging in you could cause a short circuit with the 5V line) it's recommended to remove it:
The easiest way is brute force: Use two pairs of pliers, one to hold and the other one to bend the metal tab (with the hole in it) up and down until it breaks. Then you can open up the connector. Depending on the brand and manufacturer it will either hold together or fall apart. In the latter case just use a little bit of superglue and glue the parts together.
Then solder the DE 9 connector and make sure it's aligned to the center and the PCB behind is levelled. If you already have the 3D printed case you can check with the bottom part if everything fits nicely.
Next solder the five short wire bridges from the upper part of the DE 9 connector and the two longer wire bridges. They are drawn in red in the pcb assembly drawing.
Then continue with the rest and make sure the diodes are in the correct orientation.
After the main PCB is finished, solder the pin headers to the ESP32-S3-Zero and make sure it fits the main PCB without bending any pins or headers.
Press and hold the "boot" button (left button when the USB-C port is facing up) while connecting the ADAPTR via USB-C to your computer. Then you can release the button. This activates the so-called "download" mode to flash firmware.
If you are using PlatformIO or pioarduino you'll probably know what to do next. If not the easiest way is to use the ESP Tool which is a browser application that can locally connect to your ADAPTR and flash the firmware:
Press the "Connect" button and select the corresponding serial port (something with "USB JTAG/serial debug unit"). After successful connection choose the flash address "0x0000", select the firmware file downloaded from releases and click on "Program" to upload the firmware.
If you want to put everything in a case then you have to 3D print the STL files in the case subfolder of this project. Ideally use PLA or other non-warping filament. Print both parts in their natural alignment, meaning the bottom part facing the bottom down and the top part the top up (with supports). Make sure to use a layer height of 0.16mm or below.
The case is designed to fit both the DE 9 connector with and without the metal housing but I still recommend to remove it.
The assembly is easy if you put everything together in the following order:
ATTENTION: Never ever attach the ADAPTR to your C64/C128/Amiga/Atari when the USB-C port is connected to a power source! This may be a computer (e.g. for firmware flashing) but also some (battery) powered controllers (especially wireless base stations etc.). Only use non-powered devices or attach a cable/adapter that removes the power line!
The power consumption from the 5V port in action (button/axis/movement) is about 75mA with an USB joystick and 85mA with a laser mouse attached and is still within the allowed 100mA according to the specifications. Don't connect devices that will draw more power e.g. by charging a battery or similar.
When looking at the ADAPTR from behind, there is the small switch where you can select if a mouse (switch is left) or a joystick (switch is right) is emulated. Set this switch to the device that is connected.
Alternatively ADAPTR is able to emulate a mouse as a joystick and a joystick as a mouse depending on what the switch is set to. The former is also a feature of the original Commodore 1351 mouse and is nice to e.g. play point-and-click adventures with the mouse even if they were programmed for joystick only.
A normal USB mouse should work out-of-the-box. When connecting a joystick you'll have to use the learning mode first to help ADAPTR learn your device's axis and buttons right.
In normal operation after powering or plugging in the LED will first turn red and then
First make sure the Mouse/Joystick switch is set to Joystick mode before anything is connected to be able to test everything after learning is finished.
Then make sure no USB cable or device is connected and connect ADAPTR via the DE 9 plug to your computer. After you see the red LED, you have one second to press the "boot" button to enter the learning mode. If it worked you'll see the red LED flashing quickly and then turning green. Don't press the "boot" button too early or before connecting as this initiates the "download" mode for firmware updates.
Now connect your joystick via the USB-C port and the green LED turns off when the device is being recognized as a USB HID device. Now you'll have to learn the 4 axes and 3 fire buttons by repeating the following steps for UP, DOWN, LEFT, RIGHT, FIRE1, FIRE2, FIRE3 (exactly in this order):
After the seventh (FIRE3) button the LED will turn red and flash and then ADAPTR will reboot and can directly be used. The values are stored in EEPROM and will of course survive a power cycle.
Important: Axis and buttons can't be skipped and even if your joystick doesn't have a second or third button you'll have to learn it e.g. by pressing the same button again.
PS/2 to C64 Mouse Adapter from Viacheslav Skavinsky has some great explanation about the protocol used in Commodore 1351 mice. Source code on GitHub.
U.S. patent 4,886,941 describing "CIRCUIT FOR INTERFACING MOUSE INPUT DEVICE TO COMPUTER SYSTEM"
| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 150R | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical | R4, R5 |
| 2 | 1k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical | R1, R2 |
| 2 | BAT43 | Diode_THT:D_DO-34_SOD68_P2.54mm_Vertical_CathodeUp | D1, D2 |
| 1 | 2N3904 | Package_TO_SOT_THT:TO-92_Inline | Q1 |
| 1 | 5.1k | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Vertical | R3 |
| 1 | DE9_Socket | Connector_Dsub:DSUB-9_Socket_EdgeMount_P2.77mm | J1 |
| 1 | ESP32-S3-ZERO | ADAPTR:MODULE_ESP32-S3-ZERO | U1 |
| 1 | SW_SPDT | Button_Switch_THT:SW_Slide-03_Wuerth-WS-SLTV_10x2.5x6.4_P2.54mm | SW1 |
The 11 most common of 26 parts.

JuergenLeber/ADAPTR
Adapter to connect USB mice and joysticks to C64/C128, Amiga and Atari

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group



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

Testbild-synth/HAGIWO_arduino_oscillator
4HP through hole version of the HAGIWO FM/additive/chord oscillator with mode switch and gain input.

Testbild-synth/Hagiwo_009_030_sequencer
A through-hole PCB conversion of HAGIWO's 6 channel eurorack gate sequencer. Includes Gerbers, Code and building instructions.

bvarner/pi485
An open-source TTL UART <-> RS485 converter, intended for a Raspberry Pi or Arduino

Testbild-synth/HAGIWO-029-033-Eurorack-quantizer
Through hole PCB version of the HAGIWO Dual Quantizer/SH101 Sequencer Eurorack Module-.
It measures 18.1 × 23.6 mm and has 2 copper layers, 1.6 mm thick.
26 parts, built around the BAT43. 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 JuergenLeber/ADAPTR repository on GitHub, at the commit this page was made from: the board is hardware/ADAPTR-small.kicad_pcb and its schematic hardware/ADAPTR.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 JuergenLeber before reusing the design.