Building a Trackball Input Interface for the X68000
The Sharp X68000 is best known for its arcade-quality graphics and sound, but its input hardware also makes it an interesting platform for custom peripherals. A trackball can provide a natural control method for arcade ports, drawing programs, desktop navigation, and experimental software that benefits from continuous two-axis movement.
Building such an interface is less about inventing a new protocol than matching the electrical behavior expected by the X68000 mouse port. A suitable trackball mechanism, clean quadrature signals, correctly wired buttons, and a reliable connector are the foundations of the project. The safest design keeps the original computer untouched and places all adaptation in an external enclosure or short converter cable.
There are several possible approaches. A passive adapter can connect a compatible arcade trackball directly to the computer. A small microcontroller can translate a different encoder format when the mechanism does not match the original mouse signals. An enthusiast can also build a complete USB-to-X68000 bridge, although that introduces unnecessary firmware and timing problems for a first project.
Choosing The Trackball Mechanism
A conventional arcade trackball normally contains two rotary encoders, one for horizontal movement and another for vertical movement. Each encoder produces two square-wave signals in quadrature. The phase relationship between the two signals indicates direction, while the number of transitions indicates distance. This is the same general principle used by many mechanical and optical mice.
For an X68000 project, a trackball with exposed A and B outputs for each axis is preferable. Avoid models that provide only USB unless there is a strong reason to use a protocol converter. USB trackballs require a host controller, enumeration support, and firmware capable of presenting movement in the format expected by the computer. An arcade unit with direct quadrature outputs is simpler to inspect and easier to repair.
Mechanical trackballs vary considerably. Large steel-ball assemblies are durable and provide a familiar arcade feel, but their encoder shafts may require more force than a small desktop mouse circuit can handle. Optical arcade mechanisms generally offer better long-term reliability than rubber rollers, especially in a dusty workshop. Check the supply voltage, output type, shaft arrangement, and button connections before purchasing a unit.
The two push buttons found on many arcade trackballs can usually serve as left and right mouse buttons. A third button may be left disconnected, assigned through a custom interface, or connected to another input only if the target software supports it. Avoid assuming that every game interprets buttons identically; the X68000 mouse driver, game-specific routines, and application software may each handle input differently.
Understanding The X68000 Mouse Signals
The first task is to identify the exact connector and pin assignment for the X68000 model being modified or supported. Different revisions and third-party accessories deserve verification rather than assumptions. Use the service manual, a trusted pinout reference, and a multimeter to locate ground and supply voltage. Never rely on connector shape alone, since a visually similar plug can have a different wiring arrangement.
The interface normally needs power, ground, two signals for horizontal quadrature, two signals for vertical quadrature, and switch inputs. The computer reads the changing states of the encoder lines and derives movement from them. It does not need a high-level mouse packet when the trackball is electrically compatible with the original input device.
Direction is determined by signal order. If the X axis moves in the wrong direction, swap the A and B wires for that axis. The same remedy applies to the Y axis. Do not swap power and ground while experimenting, and do not use trial-and-error with an energized connector. Label every wire before connecting it, particularly when working with a replacement cable or an undocumented arcade mechanism.
The X68000 community has documented other unusual input interfaces, and protocol research can help when a direct electrical match is unavailable. The detailed keyboard protocol research is especially useful as a model for careful signal observation, timing analysis, and evidence-based wiring decisions, even though a keyboard bus is different from a mouse interface.
Designing The Electrical Adapter
A passive adapter is the cleanest option when the trackball provides voltage levels and signal behavior compatible with the X68000. The circuit may consist of the appropriate connector, a small terminal board, current-limiting or pull-up components where required, and switches wired to the expected button inputs. Include strain relief so that movement of the external cable cannot pull on solder joints.
The output stage deserves close attention. Some encoders use open-collector outputs that need pull-up resistors, while others drive a logic-high level directly. Determine whether the trackball’s output voltage is safe for the X68000 before connecting it. A 5 V system should not be fed signals from a 12 V encoder supply, and a modern 3.3 V output may need verification before it is treated as a valid high level.
If the trackball is electrically incompatible, add a buffer or microcontroller rather than gambling with the computer’s input circuitry. A small logic buffer can translate voltage levels and improve edge quality. A microcontroller offers more flexibility, including adjustable sensitivity, button remapping, and inversion of one axis, but it must preserve the pulse timing and polarity expected by the host.
| Interface approach | Hardware needed | Benefits | Main risks |
|---|---|---|---|
| Passive quadrature adapter | Connector, wiring, switches, optional resistors | Simple, low latency, easy to repair | Requires compatible signal levels |
| Buffered adapter | Logic buffer, protection, regulated supply | Cleaner edges and improved protection | Incorrect voltage reference can still damage hardware |
| Microcontroller translator | MCU, firmware, level shifting, power regulation | Supports unusual encoders and custom features | Timing, firmware, and startup faults |
| USB conversion | USB host hardware and protocol firmware | Works with many modern devices | Highest complexity and least authentic behavior |
Add protection where it has a clear purpose. Series resistors can reduce fault current during accidental shorts, while clamping devices may protect against external electrostatic discharge. These parts should be selected with the logic thresholds and signal speed in mind. Excessive capacitance or filtering can round the quadrature edges and cause missed steps at high ball speeds.
Building The Cable And Enclosure
A trackball enclosure should be stable enough that rolling the ball does not move the entire assembly. A broad base, rubber feet, and a low center of gravity make a larger difference than decorative styling. Arcade trackballs are often designed to be mounted from below, so provide a rigid top panel and enough clearance for the encoder shafts, mounting screws, and wiring.
Keep the signal cable separate from motors, switching regulators, fluorescent displays, and other noisy wiring. Quadrature inputs are digital, but long unshielded leads can still pick up transitions that appear as false movement. Use a shielded multi-core cable when the trackball is placed far from the computer, and connect the shield according to the grounding strategy of the enclosure rather than creating an accidental ground loop.
Buttons should have a clear mechanical action and should not flex the circuit board when pressed. Panel-mount arcade switches are convenient, but their common, normally open, and normally closed terminals must be identified correctly. If the original X68000 mouse expects an active-low switch, connect the button in the equivalent arrangement rather than assuming that a positive voltage represents a press.
A small interface board makes future repairs easier. Use labeled test points for power, ground, X-A, X-B, Y-A, and Y-B. Mount the connector so its contacts cannot touch the metal case, and check for continuity from the connector to the trackball before applying power. A removable internal harness also allows the encoder assembly to be replaced without rebuilding the entire unit.
Testing Movement And Compatibility
Begin testing with the trackball disconnected from the X68000. Confirm supply voltage and polarity at the adapter, then rotate the ball slowly while observing each encoder channel with a logic probe or oscilloscope. The two channels on each axis should alternate in a consistent sequence. A dirty encoder, loose bearing, or damaged optical sensor may produce irregular pulses before the device is ever connected to the computer.
Next, verify that the button inputs change state cleanly. Mechanical switches may bounce for a few milliseconds, and the original mouse hardware or software may already tolerate that behavior. If the host responds with repeated clicks, add appropriate hardware or firmware debouncing. Do not debounce quadrature channels with a slow software delay, because that can discard legitimate movement when the ball is spun quickly.
Test each axis independently. Move the ball slowly to confirm direction, then increase speed to check whether the cursor or game object keeps up. If diagonal movement is inconsistent, inspect the grounding and channel order before changing firmware. If movement continues while the ball is stationary, look for floating inputs, damaged encoder components, cable interference, or a pull-up value that is too weak for the wiring environment.
Software compatibility is part of the design. Desktop applications may interpret relative motion differently from games, and some older titles may read mouse hardware directly rather than relying on a common driver. A trackball that works correctly in the X68000 operating environment may still require testing in arcade conversions, drawing tools, and menu-driven software.
Preserving Storage And Serviceability
A custom input device becomes more useful when the computer itself remains easy to maintain. Keep the adapter external and reversible, with no permanent cuts to the X68000 case or original harness. This preserves the machine’s historical configuration and makes it possible to return to an original mouse, joystick, or other accessory.
Document the build alongside other hardware changes. Record the connector pinout, encoder part number, supply voltage, button polarity, wire colors, and any firmware version. Photographs of the completed wiring and a simple schematic can save hours when the project is revisited years later. A label inside the enclosure is worthwhile even when the builder expects to remember every connection.
The same documentation habit applies to the computer’s storage and operating environment. If testing software is kept on a compact flash device, the procedure described in installing a CF card adapter can provide a practical way to maintain a separate working disk without repeatedly modifying the original drive setup. Keeping development files and test programs on a removable medium also reduces wear on aging storage hardware.
Use a known-good mouse as a control sample during troubleshooting. If both devices fail, investigate the computer, connector, or software first. If the original mouse works while the trackball does not, compare signal timing, polarity, and button behavior. This method separates host faults from interface faults and avoids replacing working components unnecessarily.
A Practical Build Sequence
A staged build limits the chance of damaging a rare computer. Start with a paper schematic and continuity checks, then test the encoder on a bench supply. Build only one axis first, confirm the quadrature sequence, and add the second axis after the electrical behavior is understood. Buttons can be connected last because they are easier to diagnose independently.
Keep a written test record. Note the measured supply voltage, idle signal states, direction of movement, behavior at low and high speed, and results with several applications. If a microcontroller is used, save the source code and compile settings with the hardware notes. Firmware that exists only on an old development computer is a future repair problem.
Useful build priorities include:
- Choose a direct quadrature trackball before considering USB conversion.
- Verify the X68000 connector pinout and logic levels with documentation and a meter.
- Add strain relief, labeled test points, and a reversible external cable.
- Test movement and buttons with a known-good mouse as a reference.
- Record the schematic, encoder model, polarity, and firmware in the project archive.
A finished interface should feel predictable rather than merely functional. The ball should move the pointer smoothly, both axes should have the intended direction, buttons should register once per press, and rapid movement should not produce random jumps. If those conditions are met, the project has achieved a useful balance between arcade character, electrical safety, and maintainability.
Build the adapter as a documented companion to the X68000 rather than an isolated experiment. Share the pinout verification, enclosure details, test results, and any software compatibility notes through the enthusiast community so that future owners can reproduce the interface and keep unusual input hardware in active use.
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.