ZX-81 Computer Joystick

See all articles from Sinc-Link v2 n2
Author(s): George Chambers
Publication: Sinc-Link
Pub Details: Sinc-Link v2 n2 (Volume 2, Issue 2)
Pages: 2-4

There have been a number of articles published on fitting a joystick to the ZX-81. Most of these are limited by the fact that they are restricted to a fixed key assignment (usually keys 5 to 8), or work in association with supplementary software. This means that games which have other key assignments require program modificaion. Since the better games are in machine code this is usually out of the question.

I would like to describe a hardware approach I have used to the problem, which provides for complete flexibility of key/joystick assignment. Essentially, it amounts to bringing the 13 keyboard leads from the computer and 10 leads from a joystick out to the terminals of a card edge socket. When the joystick is to be used, the joystick leads are bridged to the appropriate computer leads by means of a small patch card inserted in the card edge socket.

A series of patch cards are made up with cross-connections appropriate to each of the joystick applications (read “games”). To provide the necessary flexibility, i.e. removal of the joystick when not required, it will be necessary to provide a second smaller socket for the joystick connection.

For these two sockets I used what was at hand, a 12-pin card edge socket (10-pin sockets seem uncommon) for the joystick and a 24-pin card edge socket for the patch card assembly. I obtained a Burndy PCS2(?) T6B 24-pin socket suitable for the purpose from Active Surplus, 347 Queen St. W., Toronto.

The question arises as to where to mount these two sockets. In my case, I had equipped my computer with an auxiliary keyboard so I simply mounted both sockets on the keyboard mounting panel. Where this is not possible, consider securing the computer to a base of some sort and fastening the sockets to that. It does not seem practical to secure them to the computer itself; yet it is necessary that they be firmly associated with it.

Critical to the success of the project is the selection of a suitable joystick. I purchased a heavy duty arcade style stick for $20.00 from Ace Computer Supplies Inc., 329 Queen St. W., Toronto. It comes unmounted. The important thing to watch for is that the joystick functions by microswitch operation and not by variable potentiometers. It also makes life easier if the switches are separately wired rather than having a common ground return.

We want both the 10 leads from the joystick and the 13 leads from the computer keyboard to appear on the pins of the patch card socket. Therefore we should cross-connect the joystick socket to a block of 10 pins on the patch card socket. Wire these leads so their numerical appearance at the patch socket corresponds to the lead numbering shown on the joystick schematic. As an example, contacts of the “UP” direction microswitch should appear at pins 1 and 2 of the patching socket; the “DOWN” direction to pins 3 and 4, etc.

If you have an auxiliary keyboard, it will probably be simplest to connect the 13 leads directly to the keyboard. If not, then make a soldered connection to the computer where the sockets for the keyboard ribbon cable appear.

Joystick Assembly

The joystick came unmounted. I made up a wooden case with outer dimensions of 4 x 6 x 3 inches. The joystick has mounting brackets which facilitate mounting in the case.

Also required for the joystick assembly is a “FIRE” button. I used a door bell type button since they were at hand. The “FIRE” button needs to be mounted on the top of the case convenient for operation. I obtained 3 feet of 10 conductor ribbon cable for the joystick (any cable will do). Watch that it is made up of stranded wire and is reasonably flexible. Cut a slotted hole in the case for the ribbon cable and wire it to the joystick and the “FIRE” button. The other end of the cable needs to be terminated to a 10-pin plug. There is nothing special here. You simply want to have a jack and socket arrangement that can handle 10 conductors. Again, I used what was at hand; I etched a piece of circuit board and fashioned it to plug into the joystick socket. The joystick cable was soldered to the PC board and secured with thread and Epoxy glue. A piece of “vero-board” will also do, except make sure its mating socket has the correct pin spacing (there are several “standard” pin spacings).

Making up the Patch Cards

If you elect to use “vero-board” for the patch cards, it is a breeze to make sure your connector has the correct pin spacing to permit this. Otherwise you will need to purchase a scrap of printed circuit board; then cut it in order to plug it into the socket. Leave about 1-1½ inches exposed to allow cross-connections to be soldered and to provide a fingerhold for insertion and removal. I will not get into etching the PC board except to say that the Scotch brand 810 Magic Transparent tape will do a good job of masking the board and etching. Fluid (Etching Acid) can be obtained from any Radio Shack store.

The patch card needs to have cross-connections wired on it to associate the joystick terminals to the appropriate computer leads. I found this assigning process difficult to explain. So difficult, in fact, that I wrote a program to do it for you. To use the program, simply enter the key called for in turn. The program will then display a complete cross-connection list appropriate to that application.

A copy of the program will be available in the club tape library if you are not up to typing this list.

Joystick Schematic
Joystick Schematic
General Layout - joystick, joystick socket, patch card, patch card socket, computer or keyboard
General Layout – joystick, joystick socket, patch card, patch card socket, computer or keyboard
Joystick lead assignment program listing, lines 1-370
Joystick lead assignment program listing, lines 1-370
Joystick lead assignment program listing, lines 380-9999
Joystick lead assignment program listing, lines 380-9999

SAMPLE PRINTOUT FOR MAZOGS

         JOYSTICK X-CONNECTIONS

  GAME              J/S         KEYBOARD
FUNCTION   KEY     LEAD    TO   TERMINAL

  *UP*      W       1 --------- D2
                    2 --------- K1

*DOWN*      S       3 --------- D4
                    4 --------- K1

*LEFT*      A       5 --------- D4
                    6 --------- K0

*RIGHT*     D       7 --------- D4
                    8 --------- K2

*FIRE*      V       9 --------- D6
                   10 --------- K4