Keyboard Alternatives

See all articles from SYNC v4 n1
Author(s): Lawrence Kelly
Publication: SYNC
Pub Details: SYNC v4 n1 (Volume 4, Issue 1)
Date: January/February 1984
Pages: 81-85

Introduction

Although the membrane keyboard was a major factor in Sir Clive Sinclair’s producing the first personal computer under $200, a full keyboard seems to be the peripheral of most interest to the ZX/TS user. However, it is impossible to do touch-typing on this keyboard.

The Anatomy of The Keyboard

The membrane keyboard is composed of two sheets of plastic imprinted with a gold foil circuit. The sheets are sealed together in such a way that a small air bubble keeps the foils separated. When the key area is pressed, the air bubble is compressed and the gold foils make contact closing the switch. When the pressure is released, the compressed bubble restores the separation of the foil.

The ZX/TS keyboard is a diode matrix. When a key switch is closed, +5V is applied through one of five resistors to the anode side of one of eight diodes (a diode conducts in only one direction). The diodes connect directly to 8 address lines which the Z80 CPU scans via a Sinclair ROM routine which Dr. Ian Logan (the original disassembler of the Sinclair ROM routines) calls KSCAN. The five resistors connected to 5 volts comprise the columns of the matrix and the diodes the row (Figure 1). This 5 x 8 array accounts for the 40 ZX/TS keys.

The Language of the Keyboard

The purpose of any keyboard is to be an interface or an interpreter. It converts the letter, number, or character found on the key into a code of 8 binary bits. The number of possible unique combinations of 1’s and 0’s in 8 bits is 256.

Appendix A of the Manual (either version) explains how the 256 possibilities, numbered from 0 to 255, are used in the Sinclair system. The left most column is the decimal value of the code. This can be very helpful in Basic programming since, if you “PRINT CHR$(N)” where N is that number in the left column, you will print the corresponding character to the screen.

The column labeled “Hex”, for hexadecimal, i.e., 16 (hex=6, decimal=10). Hex numbers are useful here because 4 binary bits of 0 and 1 can code for 16 unique things; i.e., 2^4 = 16. If you follow the table to the end, you will see that it only takes a combination of two hexadecimal numbers to cover the whole range of 256 binary codes. The figures 00 = 00000000 to FF = 11111111b cover all the codes used by the ZX/TS computers.

To get more than 256 codes Zilog cheats a little. The hexadecimal numbers (they are not letters) CB and ED are prefixed and another set of instructions apply. The jibberish in the remaining three column are the mnemonics (short names to assist memory) for the assembly language instructions. The reason for going into this much detail on how the keyboard interprets what is typed on it, is that later we will discuss ASCII encoded keyboards.

It is, therefore, helpful here to explain what the keyboard does in encoding some outside world languages into binary information which the computer can handle. Two main codes are in use today in the world of computers ASCII (say “as-key”), the American Standard Code for Information Interchange, and EBCDIC (say “eb-see-dic”), Extended Binary Coded Decimal Interchange Code. These codes cover the letters (26 capitals, 26 lower case), numbers, and punctuation characters that one usually encounters on a keyboard plus the control characters used in data transmissions as originally established for teletype machines. ASCII does this on 7 bits, allowing the 8th to be free for error checking. In ASCII there are 2^7 = 128 possible items coded.

The bottom line of this discussion is that there are two major codes and the one in Appendix A is neither. Sinclair uses a special code which must be translated to one of the other codes when trying to communicate with other computers. For this reason keyboards that are already encoded are difficult to connect to the ZX/TS computers.

Keyboard Alternatives

A First Approach: Keyboard Overlays

One of the major problems with the membrane keyboard is that you do not feel a key moving under your finger. As a result you can tell only by the screen result that you have connected with a key. The flat membrane feels the same whether you are pressing on a key pad or on a space between. When I was first using the membrane keyboard I often resorted to using two pencils, pressing the key pads with the rubber erasers. This does not do a lot for the “tactile sensation,” but it does give traction and prevent slippage of fat clumsy fingers from the keypad area.

The overlays approach this problem. They are simply plastic sheets with holes bored out over the keypad area. Like braille, these holes can be felt, and the fingers can have the proper key location. These overlays usually come with an adhesive backing which can be peeled off and pressed onto the membrane keyboard.

I have seen a number of these advertised in SYNC with various shaped holes etc. The first one I recall seeing advertised was from Kopak Creations, 119 Peter St., Union City, N.J. I have used the Kopak overlay at their Union City location and found it to be a step toward touch-typing on the membrane keyboard. The cost of the plastic sheet overlay is usually under $10.

A newer overlay approach, also advertised in SYNC, is a “chiclet type” raised key which glues over the membrane keyboard. This innovation is from Filesixty and costs $19.50.

The Second Approach: Beepers

Some people select the ZX/TS computer because of the membrane keyboard. In certain applications it is desirable. For example, kitchen appliances with microprocessors generally employ membrane keyboards to protect the electronics from spills. The IBM 9000 laboratory computer comes standard with the membrane keyboard, and the IBM PC type keyboard is an option.

A tactile sensation is replaced by an audio sensation. Devices for audio feedback are available for the ZX/TS computers.

The Third Approach: The Full Keyboard

This is the approach that most ZX/TS owners find to be the most gratifying. They then feel like they have a real computer when they feel the solid “click” of a key.

If there is a users group available, contact them for names of members who have done full keyboard conversions. Also, have you noticed the additional bonus with your SYNC subscription, i.e., the reader service card? Look through the magazine, identify keyboard expansions you might be interested in, and circle their numbers on the card. The advertiser will send additional information directly to you.

Installing a Full Keyboard

There are three ways a full keyboard can be installed:

1) Convert a Surplus Keyboard

The main advantage of converting a keyboard is that it allows you to select a keyboard that you really like. However, unless you already have the keyboard, or are well versed in electronics as well as computer keyboard interfaces, I would advise leaving this possibility alone. Computer keyboards are often hooked to terminals via a serial interface (the keyboard to my DEC VT100 terminal connects via a banana plug with 3 connectors, transmit, receive, and ground). To connect that keyboard to the ZX/TS the circuit board would have to be rewired to conform with the matrix shown in Figure 1. If a keyboard is connected by a serial interface it is usually already ASCII encoded, as mentioned earlier. This is a hinderance rather than a help. In general, ASCII encoded, separate keyswitches, and Hall effect keys are all problems. The best bet is a matrix type keyboard with a matrix that closely resembles the one shown in Figures 1 and 2.

2) Purchase a surplus keyboard already converted to the ZX/TS matrix

The keyboards are outlined in Table 1. Those from Double H Electronics, L.J.H. Enterprises, and Kopak fall in this category. Typically these will cost you $10-20 more than a keyboard from a flea market or electronics surplus house. I would say that it is well worth the additional expense to save the rewiring job. You can then get the documentation as well as the support, from the supplier, I have personally installed several keyboards from Double H for myself and friends and have found Herb Hornung to be extremely helpful. I have heard the same thing from people who installed the L.J.H. keyboard from Leonard Holmberg. The Kopak keyboard is only recently introduced, but I have found them to be extremely cordial and helpful.

Figure 1. Keyboard Matrix.
Figure 1. Keyboard Matrix.

Keyboards that do not require soldering do require complete removal of the membrane keyboard. My experience with this is that, once done, it is difficult to reverse. The plastic membranes with the gold foil on them continue out of the keyboard and become the leads which plug into the edge connectors on the circuit board. The foil is very delicate, with about a once in/once out, amount of gold foil on them. Once pulled out to put in the keyboard connectors it is unlikely that all keys will work upon to re-installing the membrane keyboard.

In this regard the keyboards that solder on have an advantage in that both keyboards can be kept operational by soldering the keyboard to the solder side of the circuit board and never touching the membrane keyboard. Figure 3 (I include Figure 3 because usually this view is shown from the opposite side of the board) shows the solder side of the board and where the connections should be made on the keyboard matrix. The printed circuit board does not have to be removed from its case.

Figure 2. Keyboard layout. The customary way of seeing the matrix: the 40 keys in four rows wired to diode lines D1-D8 and to KBD4-KBD0
Figure 2. Keyboard layout. The customary way of seeing the matrix: the 40 keys in four rows wired to diode lines D1-D8 and to KBD4-KBD0
Figure 3. Solder side of computer board. Dotted lines indicate components located on other side of board: diode and KBD resistor connection points and the heat sink
Figure 3. Solder side of computer board. Dotted lines indicate components located on other side of board: diode and KBD resistor connection points and the heat sink

What I usually have done in connecting Double H keyboards is to connect a 25 pin female connector (the type usually used for an RS232 connection) to the side of the computer case and connect the lines from the circuit board to the connector. I then connect the keyboard to a corresponding male connector. If one then wishes to take advantage of the small compact nature of the ZX/TS, the keyboard can be unplugged and the computer is still functional.

I am not sure if the Byte-Back Keyboard falls in the category of a rewired keyboard, but this company also has a long history of successful devices for the ZX/TS computers. The Jameco keyboard is a rewired keyboard. The version I saw had the case, which is quite large and contains the entire computer and RAM pack and there may still be room for your lunch. The ZX/TS computer becomes Apple in stature in this enclosure. The ZX/TS legends are not on the keys but remain marked on the case.

3) Purchase a keyboard specifically manufactured for the ZX/TS.

Quite a number of keyboards are specifically manufactured for the ZX/TS computers both in the UK and US. Again try to see and use the keyboard. Talk with people who have the keyboard and get their impressions. I have examined directly a number of these keyboards but certainly not all of them. Read any available literature carefully, and, if possible, examine a keyboard before you buy it. I have set up and used the Fuller, DK’tronics, and Memotech keyboards.

The Memotech was certainly the easiest to install. It plugs directly onto the expansion port, little fuss, but with a tiny bit of interference on the screen that was not there with the membrane keyboard only. The secret of the Memotech keyboard is that the diode side of the matrix is contained in the interface that plugs on to the expansion port. The frequency of the Z80 is in the radio frequency range bringing these out from the printed circuit board in an interface always runs the risk of interference with an RF modulated TV display. The interference is minimal and the ease of connecting the Memotech should make it the best keyboard for those with no electronic inclinations.

The Fuller and the DK’tronic keyboards both require disassembly of the computer to install in the enclosure. The DK’tronics model is of good quality and has a handy numeric keypad. However, it presents one problem. Because of the way the computer board is mounted in the case, the edge connector does not stick out but rather plugs into a motherboard. The motherboard does not stick out far enough to put the RAM pack on. The recommendation is to disassemble the RAM pack and mount it unfolded on an extension of the motherboard inside the case. This I found to be highly unsatisfactory, but the problem could be solved by using one of the cable RAM pack extenions. The Fuller and Memotch keyboards have a nice feature which puts a shift key right along side the delete key. One can then very easily delete by hitting the two keys simultaneously. My major criticism of these three keyboards is that all the keys are the same size. I am used to using a keyboard with a space bar and a large “RETURN” key.

Table 1 reviews a number of keyboards that have been advertised in various publications. Examine some of these before you buy.

Table 1. Keyboard roundup.

Keyboard                    #     Enclosure Solder     Numeric   Sinclair  Price    Comments
    Suppliers               Keys                      Pad       Legend
Double H Electronics        53    NO        YES        NO        NO        $56.00   Typewriter Style
195 Lelani                                                                          Excellent keyboard action
San Antonio, TX 78242                                                               Full Space bar

LJH Enterprises             41    NO        YES        NO        NO        $85.00   One of the first wired
PO Box 6305                                                                         for the Sinclair
Orange, CA 92667                                                                    Full Space bar

JAMECO Electronics          62    YES       YES        NO        Legend    $99.95   + Case
1355 Shoreway Rd.                 optional                       on        $59.95   Keyboard only
Belmont, CA 94002                                                Case      $49.95   Case only

DK' Tronics                 52    YES       NO         YES       YES       $89.95   Good quality
23 Sussex Rd.                     Computer                                          RAM must be
Great Yarmouth                    inside                                            disassembled to
Norfolk, UK                                                                         attach

K-2 Electronics Design      50    YES       N/A        NO        YES       $195.00  Called "Kradle"
3990 Varsity Dr.                                                                    Comes with 64k RAM
Ann Arbor, MI 41804                                                                 Expansion ports

Sinclair Place              52    YES       NO         YES       YES       N/A      Sculptured keys
Indescomp                         Computer                                          On/Off Switch
PO Box 2288                       inside
Redmond, WA 98052                 Ext. RAM

"Compact"                   56    YES       NO         YES       YES       $88.80   Contact SP
Sinclair Place                    Computer                       Color              for info.
PO Box 2288                       inside                         Codes
Redmond, WA 98052                 Metal

Research Applications Prod. 73    NO        YES        Pad       YES       $80.00   Contact
4561 Paloma Lane                                       for                          for info.
Yorba Linda, CA 92686                                  shifted

Kopak Inc.                  48    YES       NO         Optional  YES       $99.95   Typewriter Style
119 Peter St.                     Optional                                          High quality
Jersey City, NJ 07087                                                               Full Space bar

E-Z Key                     60    YES       NO         YES       YES       $84.95   Not typewriter
Suite 75 STX                      Two                                               but large enter
711 Southern Artery               Options                                           5" Space bar
Quincy, MA 02169

Zebra Systems Inc.          40    YES       NO         NO        YES       $69.95   Contact
78-06 Jamaica Ave. Dept. B                                                          for info.
Woodhaven, NY 11421

Suntronics Co. Inc.         41    YES       NO         NO        YES       $59.95   Full Space bar
12621 Crenshaw Blvd.              Computer
Hawthorne, CA 90250               inside

Gladstone Electronics       47    YES       NO         NO        YES       $79.95   Full Space bar
1585 Kenmore Ave.                 Computer
Buffalo, NY 14217                 inside

Byte-Back Co.               41    YES       N/A        NO        YES       $59.95   Full Space bar
1702 Oak Knoll Dr.                For Keys
Leesville, SC 29070               only

Memotech Corporation        41    YES       NO         NO        YES       $99.95   Buffered Interface
7550 West Yale Ave.               For Keys  Interface                               Plugs on like
Denver, CO 80227                  only      on back                                 RAM Pack

Toptronics Company          N/A   N/A       N/A        N/A       N/A       $54.81   No info.
4018-A W. Chandler Ave.                                                             available
Santa Ana, CA 92704

KAYDE Electronics Systems   41    YES       N/A        NO        YES       $75.90   Repeat key
The Conge                         Optional                                 $55.90
Dept. SY-3                        Computer                                 $21.90
Norfolk NR30, UK                  inside

Fuller Keyboard             42    YES       NO         NO        YES       $49.95   RAM pack
Ramex Intl.                       Computer                                          can be easily
48945 Van Dyke                    inside                                            attached
Utica, MI 48087

Synergistic Design          59    YES       NO         NO        YES       $85.95   Auto Repeat
PO Box 411023
Chicago, IL 60641