Bridging Eras: An X68000 Mouse to USB Adapter Board
The Sharp X68000 remains one of the most distinctive Japanese home computers of the late 1980s and early 1990s, celebrated for its Motorola 68000 CPU, arcade-quality sprite hardware, and a devoted community that keeps the platform alive three decades later. A recurring frustration for anyone restoring one today is the original mouse. Period-correct units have become genuinely scarce, and the proprietary 9-pin mini-DIN connector rules out a simple swap to a modern rodent. Building an adapter board solves both problems in one stroke, keeping vintage hardware usable on a desk next to a current PC for cross-development and screen capture.
The X68000 mouse is fundamentally a quadrature encoder device. Inside the shell, two slotted wheels spin against a ball or tracking surface, producing two square waves per axis that are phase-shifted so direction can be inferred. Three push-buttons feed back through the same cable, and the assembly expects 5 volts from the host. None of this maps cleanly onto modern USB, which expects a HID-compliant device that periodically sends structured reports of relative X and Y movement and button state. Bridging the gap requires real hardware and a few hundred lines of firmware, but neither side of the translation is exotic, which makes it an ideal project for hobbyists comfortable with a soldering iron but new to embedded USB.
What follows walks through the design decisions behind an adapter board that fits inside a small 3D-printed shell, plugs into the X68000 on one end, and exposes a standard USB-C receptacle on the other. It targets Australians who source components locally from Jaycar Electronics or Core Electronics in Adelaide, or who import bare PCBs through familiar freight forwarders. The article also highlights local realities that shape the build, from RCM labelling rules enforced by the ACMA to shipping lead times across Bass Strait.
Understanding the Sharp X68000 Mouse Hardware
A genuine Sharp CZ-6 mouse, or any third-party reproduction that surfaced through the 1990s, talks to the X68000 through a 9-pin mini-DIN plug. The pinout is unique, and the cable carries only raw quadrature. Two pins deliver +5V and ground, four pins carry the A and B phase signals for X and Y, and the remaining pins tie back to three buttons. There is no clock line, no serial stream, and no acknowledgement protocol. The host CPU simply polls the ports at high frequency and counts transitions.
That absence of higher-level signalling is a blessing for adapter design. A modern microcontroller only needs to detect rising edges on each phase line, look up which way the pair moved, and accumulate a delta in a small buffer. Mechanical bounce is a concern with original equipment, especially if the ball mouse has been sitting unused for twenty years in a Brisbane garage, so the schematic should reserve generous debouncing. Optical mice from the later X68000 era are cleaner and rarely need more than a modest RC filter per input line.
The buttons deserve separate thought. The X68000 expects active-low logic with internal pull-ups on the host side, and most Japanese games treat the right mouse button as a special function key. The adapter must preserve this mapping so titles such as Akumajō Dracula register clicks without reconfiguration. Mapping two buttons to left and right is straightforward. Adding a third for middle-click on modern PCs requires either a chord gesture or a small toggle that the firmware interprets.
Choosing the Right Microcontroller Platform
Every choice in the adapter flows from the controller at its heart. The four platforms most Australian hobbyists reach for in 2024 and 2025 are the Teensy 4.0, the Raspberry Pi Pico, the Arduino Pro Micro, and the ESP32-S3. Each exposes USB device hardware, costs less than forty Australian dollars in single quantities, and can enumerate as a HID mouse without external crystals or level shifters. The differences lie in clock speed, available flash, community libraries, and where you can actually buy one without weeks of overseas waiting.
The Teensy 4.0 is the gold standard for low-latency USB HID, with a Cortex-M7 running at 600 MHz and excellent support for keyboard, mouse, and joystick reports. The catch is price and availability. PJRC ships from the United States, and while Mouser Australia carries the part intermittently, hobbyists often pay closer to fifty Australian dollars after conversion and shipping. The Raspberry Pi Pico drops the price to around eight dollars for the bare board and supports USB HID through both the official SDK and the Pico SDK. It is stocked at Jaycar stores in Sydney, Melbourne, and Brisbane, and at Core Electronics nationwide.
Arduino Pro Micro boards remain attractive for newcomers because the IDE hides complexity. They appear at swap meets hosted by retro groups in Adelaide and at community workshops organised through libraries in Hobart. The ATmega32U4 controller is well known and the HID library is mature, but the AVR core lacks the headroom of an RP2040 or an ESP32. The ESP32-S3 is a newer entrant with native USB OTG, generous RAM, and wireless features that are surplus to requirements for a mouse adapter but useful for future expansion. Sourcing is slightly trickier in regional areas, though Core Electronics and larger Jaycar outlets generally carry at least one variant.
| Board | USB HID Support | Typical Cost (AUD) | Availability in Australia | Firmware Complexity |
|---|---|---|---|---|
| Teensy 4.0 | Native, very low latency | $48–$55 | Limited, mostly online | Moderate |
| Raspberry Pi Pico | Native via Pico SDK | $8–$12 | Excellent, Jaycar and Core | Moderate |
| Arduino Pro Micro | Native, mature libraries | $22–$28 | Good, including swap meets | Low |
| ESP32-S3 | Native USB OTG | $14–$18 | Good, larger suppliers | Higher |
For a first revision the Pico is hard to beat on cost, support, and the fact that a buyer in Cairns or a workshop in Geelong can usually walk into a shop the same day and walk out with one. The Teensy earns its keep if the same board will later be reused for keyboard adapters or joystick projects. Arduino Pro Micro keeps the firmware readable for anyone who learned on Arduino first.
Designing the Adapter Board Schematic
A clean schematic routes every quadrature pin through a 10 kiloohm pull-up to 3.3 volts, then through a Schmitt-trigger buffer so the microcontroller sees crisp logic levels even when fed by a long original cable. The X68000 supplies 5 volts on its mouse port, which feeds a small LDO regulator that drops the rail to 3.3 volts for the controller. A ferrite bead on the supply line keeps electrical noise from the host's switching power supply away from the analog side, a consideration that becomes more annoying when the host PC is a modern ATX unit rather than the original Sharp PSU.
Button inputs can be read directly by the microcontroller when internal pull-ups are enabled in firmware, but a small RC network on each line keeps things tidy. An LED on a free GPIO pin doubles as a power indicator and a diagnostic aid when something refuses to enumerate. The USB-C receptacle should include the required 5.1 kiloohm pull-down resistors on the CC lines; without them, modern cables refuse to provide power, which catches even experienced designers on their first revision. Australian builders should also add an RCM logo silkscreened to the board before giving adapters away at community events, since the ACMA treats anything drawing power from a mains-connected host as regulated equipment even when fully USB-powered.
Connector choice on the Sharp side is the trickiest part. Original mini-DIN plugs surface occasionally at Japanese auctions and small batches are stocked by specialty suppliers. An acceptable substitute is the more common mini-DIN 9 socket, which shares the same shell but reverses the gender. Whichever path is taken, retaining the original cable makes the adapter behave like an inline dongle rather than a curiosity strapped to the back of a console.
PCB Layout and Prototyping Considerations
The PCB fits comfortably on a two-layer 50 by 30 millimetre board. The microcontroller sits near the centre, the USB-C receptacle anchors one short edge, and the 9-pin connector drops onto the opposite edge with a notch to clear the cable strain relief. Ground should be poured on both layers with generous vias stitching the planes, keeping the quadrature traces quiet and giving the switching regulator somewhere to dump its harmonics. Differential routing is unnecessary at mouse speeds, but keeping the four phase traces short and matched in length makes life easier when the first prototype turns up with an itchy cursor.
Most Australian makers send Gerbers to JLCPCB or PCBWay. Five test boards from Shenzhen typically take two to three weeks to arrive in Sydney by Australia Post, and freight forwarders run by Chinese fab houses occasionally shave a week off that figure. There is no harm in ordering extras; spares are cheap, and gift units tend to find homes quickly at X68000 meetups in Melbourne or at conventions run by groups like the Australian Retro Computing Association. For those in a hurry, PCBWay's Australian branch fulfils a small run inside a week at a premium, which can matter when a project must be ready for a public demo.
Assembly is straightforward with hot air or a soldering iron. The Pico, the Pro Micro, and most ESP32 modules come with castellated pads that accept either paste and a hot plate or hand soldering through the edge contacts. Through-hole versions of the Pro Micro are friendlier for anyone working without magnification. The mini-DIN connector is the only awkward component, but a little flux and a 2.4 millimetre chisel tip handle it on the first attempt.
Firmware Development for HID Compliance
The firmware layer is what makes the adapter behave like a real USB mouse. In its simplest form, an interrupt routine samples the four quadrature pins at one kilohertz, updates a pair of sixteen-bit counters, and clears a flag that the main loop checks. Whenever the flag is set, the main loop composes a four-byte HID report containing a signed X delta, a signed Y delta, and a button bitmask, then writes the report to the USB endpoint. The host sees nothing more than an ordinary mouse, with no driver required on Windows, macOS, or any current Linux distribution.
Libraries shorten the journey. Adafruit TinyUSB supports Pico, ESP32-S3, and several other cores. The Arduino HID library shields developers from the descriptor quirks of the Pro Micro. Teensyduino adds a polished Mouse object on top of the same plumbing. A working build can be brought up in an evening, and refinement to reach the snappy feel that arcade ports demand takes a weekend at most. Public libraries in Brisbane and Melbourne are running short courses on the RP2040, so local tuition is available if the datasheet feels intimidating.
A final touch worth implementing is a configurable scaling factor. Original X68000 mice counted 200 counts per inch, while modern optical mice operate closer to 800 or 1600. A scaling setting in firmware lets the same adapter feel precise inside an arcade port and comfortable inside a modern code editor. Flash-backed user settings handle this nicely on the Pico and on the Pro Micro.
The full schematic, board files, and firmware for this adapter are progressing at x68k.net, alongside notes on the Nereid-X expansion and power supply repairs that often accompany the build. Drop in, share what is on your bench, and borrow from the work already on the site to keep your own adapter off the slow track. The X68000 community has always been generous with its knowledge, and projects like this one only move forward when more than one person refines the design.
Nereid-X Expansion Board
A personally-produced LAN+USB+Memory expansion board for Sharp X68000 series computers. Multiple production runs were offered, including a final batch and a later revival reproduction run.
Power Supply Repair
X68 power supply repair and modification services were offered by the site owner, with documentation shared through diary entries spanning 2001–2006.
Server & Networking
Notes on FreeBSD administration, ISP changes, server migration, and networking topics. The site itself ran on FreeBSD with the hns diary system and Namazu search integration.
Get in touch
X68K.NET connects Sharp X68000 enthusiasts through community links and shared projects. Reach out with questions about the Nereid project or X68 resources.