UK 4 — elektor april 1979 elektor Volume 5 48 decoder Elektor Publishers Ltd., Elektor House, 10 Longport, Canterbury CT1 1PE, Kent, U.K. Tel.: Canterbury (0227) 54430. Telex: 965504. Office hours: 8.30 - 12.45 and 13.30 - 16.45. Bank: 1. Midland Bank Ltd., Canterbury, A/C no. 11014587 Sorting code 40-16-11, Giro no. 3154524. 2. U.S.A. only: Bank of America, c/o World Way Postal Center, P.O. Box 80689, Los Angeles, CA 90080, A/C no. 12350-04207. 3. Canada only: The Royal Bank of Canada, c/o Lockbox 1969, Postal Station A, Toronto, Ontario, M5W 1W9. A/C no. 160-269-7. Please make all cheques payable to Elektor Publishers Ltd. at the above address. Elektor is published monthly. Number 51/52 (July/August) is a double issue. SUBSCRIPTIONS: Mrs. S. Barber Subscription 1979, January to December incl.: U.K. U.S.A./Can. other countries surface mail airmail surface mail airmail £8.50 $21.00 $31.00 £8.50 £14.00 Subscriptions normally run to December incl. Subscriptions from May issue: U.S.A./Can. other countries U.K. surface mail airmail surface mail airmail £5.50 $14.00 $ 20.00 £5.50 £9.00 Back issues are available at original cover price. Change of address: Please allow at least six weeks for change of address. Include your old address, enclosing, if possible, an address label from a recent issue. ASSISTANT MANAGER: R.G. Knapp ADVERTISING MANAGER: N.M. Willis National advertising rates for the English-language edition of Elektor and international rates for advertising in the Dutch, French and German issues are available on request. EDITOR U.K. EDITORIAL STAFF W. van der Horst L Meiklejohn J. Barendrecht G.H.K. Dam P. Holmes E. Krempelsauer G. Nachbar TECHNICAL EDITORIAL STAFF A. Nachtmann J. Oudelaar A.C. Pauptit K. S.M. Wal raven P. de Winter Technical telephone query service, Mondays only, 13.30 - 16.45. For written queries, letters should be addressed to dept. TO. Please enclose a stamped, addressed anvelope or a self-addressed envelope plus an IRC. ART EDITOR: F. v. Rooij Letters should be addressed to the department concerned: TQ = Technical Queries ADV = Advertisements ED = Editorial (articles sub- ADM = Administration mitted for publications etc.) EPS = Elektor printed circuit SUB = Subscriptions board service The circuits published are for domestic use only. The submission of designs or articles to Elektor implies permission to the publishers to alter and translate the text and design, and to use the contents in other Elektor publications and activities. The publishers cannot guarantee to return any material submitted to them. All drawings, photographs, printed circuit boards and articles published in Elektor are copyright and may not be reproduced or imitated in whole or part without prior written permission of the publishers. Patent protection may exist in respect of circuits, devices, components etc. described in this magazine. The publishers do not accept responsibility for failing to identify such patent or other protection. Dutch edition: Elektuur B.V., Postbus 75, 6190 AB Beak (L), the Netherlands. German edition: Elektor Verlag GmbH. 5133 Gangelt, W-Germany French edition: Elektor Sari, Le Doulieu, 59940 Estaires, France. Distribution in U. K. : Seymour Press Ltd.. 334 Brixton Road, London SW9 7 AG. Distribution in CANADA: Fordon and Gotch (Can.) Ltd., 55 York Street, Toronto, Ontario M5J 1S4. Copyright ©1979 Elektor publishers Ltd. - Canterbury. Printed in the UK. contents elektor april 1979 - UK 5 In early TV games, the 'objects' on the screen consisted of little more than two vertical bars ('bats') and a small square ('ball'). Nowadays, complete cowboys, battletships or jet aircraft are more in demand. The pP TV games computer can cater for all tastes, p. 4-06 and p. 4-26 contents selektor 4-01 pP TV games 4-06 An introduction to the microprocessor-controlled TV games computer. For mobile public address systems, in particular, an amplifier that will produce well over 100 watts while running off a standard car battery can be extremely useful. The Stentor was designed to provide a truly 'stentorian' mouthpiece in this type of application. p. 4-14 By fully utilising the available output power in a sound installation, it is often possible to produce clearly intelligible speech in even the noisiest of environments. The Assistentor uses a two- pronged approach: dynamic compression to boost low-level signals and frequency response tailoring to put all the power into the most important part of the speech spectrum. p. 4-20 A few of the possibilities of the TV games computer are illustrated on this month's cover: racing, cards, and even simple arithmetic. Photographs courtesy of Philips Gloeilampen- fabrieken NV, the Netherlands. car light reminder where U = supply voltage RL = loudspeaker impedance. Thus in the case of a 12 V supply and a 4 ft loudspeaker the output power would equal 4.5 W. Naturally this is a ridiculously small figure for a public address system. However, there is another type of output stage which is commonly used in power amplifiers, and that is the bridge configuration. In a bridge amplifier, two output stages tapped choke (e.g. a mains transformer are used, and the input signal is applied with two identical secondaries, the in antiphase to each of their inputs. The primary not being used). The centre tap loudspeaker is connected between the is connected to the positive supply rail, two outputs. The result of employing The change in the current drawn by one this configuration is that the amplitude transistor from the supply line via the of the output signal is doubled, and centre tap induces a voltage in the other the power delivered into the load winding which can be as large as the (i.e. the loudspeaker) is quadrupled, supply voltage. Thus, per half period of Thus assuming our 1 2 V supply and the waveform, a signal whose ampli- 4 S2 loudspeaker, an output power tude is twice the supply voltage can of 18 W is theoretically possible. appear across the loudspeaker, so that There still remains one further trick the peak to peak amplitude of the which we can use, and that is to connect loudspeaker voltage can be as much as a transformer in parallel with the four times the supply voltage (see loudspeaker. The transformer should, as figure 1). The power delivered into the far as possible, have two identical loudspeaker is therefore not 18 W, but windings, and is connected as a centre- 72 W (for a 4 (1 load), and always Figure 1. This figure illustrates the voltage- doubling effect of coupling the output stage to a transformer. Figure 2. Block diagram of the Stentor. Figure 3. Complete circuit diagram of the Stentor. LEDs D2 and D3 set the base bias voltages of T1 and T2, and should light up only very faintly or not at all. The same is true of D1, which is used to set the quiescent current level of the output stages. The adjust- ment procedure for the quiescent current is quite straightforward: an ammeter is connec- ted in series with the supply line (make sure that the wiper of P2 is initially turned fully clockwise and that of P3 fully anticlockwise - i.e. both wipers are at supply common). P2 is now adjusted until a quiescent current of 0.5 A is obtained. P3 is then adjusted until the meter reads 1 A. elektor ril 1979 -4-17 assuming that the supply was capable of providing sufficient current, the theor- etical figure of 144 W could be achieved with a 2 S2 load. One could even im- prove on this figure, since a supply voltage of up to 14 V is not inconceiv- able. Block diagram The block diagram of the Stentor is shown in figure 2. As can be seen, the circuit employs the principle of adding a transformer to increase the output power. The input signal is first fed to a summing amplifier, thus permitting several signals to be mixed together before being amplified (see figure 5). The actual amplifier contains two identical output stages, one of which is driven directly from the output of the summing amplifier, the other being driven via a phase inverter. Since the two output transistors are biased to virtually their cut-off points, each output stage will conduct during alter- nate half cycles of the input waveform. The pre-driver stages are formed by differential amplifiers, whilst the driver and output transistors are connected as current amplifiers. To reduce crossover distortion to a minimum, the output stages are in fact biased to slightly above the cut-off point, so that a quiescent current flows even in the absence of an input signal. The bias levels can be varied between 0 and 1 .4 V by the two potentiometers (P2 and P3 in the circuit diagram). As explained, the output transistors are connected to a trans- former with a centre tap which is connected to the positive supply line. Initially, under quiescent conditions, both ends of the transformer are at positive supply potential. During one half cycle of a signal waveform one of the output transistors, e.g. T7 is turned on, current will be drawn through the upper coil causing the collector voltage of T7 to fall. However the change in current flowing through the upper coil will cause an induced voltage in the lower coil of the opposite polarity to that across the upper coil, i.e. as the latter falls from +14 V to zero, the former will swing up to +28 V (see figure 1). On the second half cycle of the input waveform, the process is reversed. T8 turns on (and T7 turns off) pulling down the lower coil, and in doing so induces an opposite voltage in the upper coil. Thus the total voltage difference across the loudspeaker on each half cycle is 2 x supply, and although the voltage never actually falls below 0 V, since the current reverses on alternate half cycles, the loudspeaker effectively ‘sees’ an AC voltage that swings between +28 V and -28 V. Circuit diagram The complete diagram of the Stentor is shown in figure 3. A1 forms the input summing amplifier, the gain of which is determined by the ratio R4/R3. The voltage divider net- Figure 4. Track pattern and component layout of the p.c.b. for the Stentor (EPS 790701. The output transistors and coupling transformer are not mounted on the board. T7 and T8 should be provided with suitably large heat sinks (taking care to ensure that they are insulated from the heat sink by means of mica washers etc.). Figure 5. This figure illustrates how several input signals can be summed at the input of the Stentor. If only one input signal is used PI can function as a volume control. Figure 6. Wiring diagram for the Stentor. A great deal of care should be taken when wiring up the circuit. The connecting wire should be as heavy and stiff as possible. It is strongly recommended that the diagram shown here is strictly adhered to. s — 2* max. 10 x 79070 -5 work R1/R2 provides a reference voltage of half supply voltage. This is applied to the non-inverting input of the op-amp, so that, in the absence of an input signal, the output of A1 will also equal half supply. Any AC voltage applied to the input of A1 will thus be inverted and summed with half supply voltage. A2 is also connected as an inverting amplifier, so that the signals fed to the two output stages are in antiphase. The output stages, which are identical, consist of a differential amplifier (T9 and T10 respectively), which is biased via the current source provided by T1 and the red LED D2 (T2 and D3) and driver and output transistors T3, T5, T7 (T4, T6 and T8). Note that it is important that a red LED must be used to set the bias voltage of the differential amplifier, since LEDs of other colours have different forward voltage charac- teristics. The collector current of T1 flows through both halves of T9 in relative proportions which are deter- mined by the gate voltages of the two FETs. The input signal is fed via R9 to the left-hand gate of T9, and this gate voltage determines how hard T3, T5 and T7 are turned on. However the current through T7 also flows through R30, so that the voltage dropped across this resistor also determines the gate voltage of the other half of T9, i.e. negative feedback occurs. The collector current of T7 is proportional to the input voltage. As already mentioned, R13 and D1 4-18 — elektor april 1979 provide a DC voltage of 1.4 V. By means of P2 and P3 a portion of this voltage can be used to bias the output stages such that a small quiescent current will flow even in the absence of an input signal. This has the effect of reducing cross-over distortion. Construction Track pattern and component layout of the printed circuit board for the Stentor are shown in figure 4. Construction of the circuit should not present any special problems, however the value of certain components will depend upon | the impedance of the loudspeaker being used. Thus with a 2 S2 loudspeaker the 2N3055’s (T7/T8) should be replaced by the slightly more expensive 40411. The transformer must be able to supply at least 4 A in the case of a 4 loud- speaker, and 8 A into a 2 speaker. It is extremely important that the terminals of the transformer primary are well insulated as the turns ratio between primary and secondaries causes dangerously high voltages to be induced on the primary. A wiring diagram for the Stentor is shown in figure 6. Loudspeakers As was emphasised at the start of the article, the Stentor cannot lay claim to hi-fidelity performance. The total distor- tion of the amplifier is in the region of 10%, although for the most part this is harmonic distortion which has very little effect upon the intelligibility of the spoken word. Having described how the Stentor manages to pump large numbers of Watts into a loudspeaker, it is worth spending just a little time examining what type of loudspeakers should be used. Note the word loudspeakers, for it would be a waste of time and money trying to use a single speaker to handle the output power of the Stentor. A less expensive and more efficient approach is to connect a number of smaller speakers in series/parallel con- figurations, as shown in figure 7. Most I loudspeaker manufacturers market a small diameter speaker costing under £ 5 and with a power rating of anything between 5 to 15 W. By mounting the speakers close together on a panel, or above one another in a column, a further improvement in efficiency can be obtained due to reinforcement effects. Care should of course be taken to ensure that all the speakers are connec- ted in phase. This can be checked by briefly touching a battery across the terminals of the loudspeaker combi- nation. The speaker cones can be seen (and felt) to move in or out and the movement should be in the same direction for all of them. If one is found to be incorrect the connections to its terminals should be reversed. M TAP switch elektor april 1979 - 4-19 TAP switch U. Sussbauer I I The advantage of this circuit for a touch activated switch is that it requires only one set of contacts and uses only two inverters, two resistors and a pair of capacitors. The circuit functions as follows: At switch on, the input of N1 is low, since C 1 is discharged. Since the input of N 1 is low, the input of N2 must be high and the output of N2 low, which of course holds the input of N 1 low — thus the circuit is latched in a stable state. j In the meantime capacitor C2 charges J up, via R2, to logic ‘1’. If the touch J contacts are now bridged, the logic ‘1’ on C2 is applied to the input of N1 (C2 > C 1 ), taking the output low (and the output of N2 high). The state of the Q and Q outputs is thus inverted. Bridging the contacts again causes C 1 to discharge into C2 so that the outputs revert back to their original state. If the contacts are bridged for longer than the time constant R2 • C2, then the outputs will change state again. If the contacts are permanently bridged, the circuit will in fact oscillate at a frequency deter- mined by the above time constant. With the component values shown, the contacts should not be bridged for longer than approx. 1 second. This can be extended by increasing the value of C2. H ■ elektor april 1979 assistentor Everyone must at some time have had the maddening experience of standing on a railway platform and straining anxiously to make out what the station announcer has just said — a situation which provides a good example of the problems facing P.A. systems used in environments with high levels of background noise. One solution is to employ a dynamic range compressor to boost the amplitude of the softer portions of speech above the threshold level of the background noise, without altering the level of the louder speech passages. When used in conjunction with the 'Stentor' power amplifier the result should be a P.A. system which will make itself heard in even the noisiest of crowds. Environments with considerable back- ground noise (open-air gatherings, factor- ies etc.) present a particular problem to P.A. systems. The signal level of speech varies considerably, so that whilst the louder portions may be readily audible, the quieter passages will be swamped. Unfortunately, simply turning up the volume of the P.A. system is not an answer, since increasing the signal level to the point where the softest portion of speech is above the threshold level of the background noise means that the louder passages will be deafening (and more than likely distorted by the amplifier clipping). The dynamic range of speech (i.e. the difference between the loudest shout and the quietest whisper) is around 35 dB. However it is fact that this can be reduced to approximately 5 dB without adversely affecting the intelligi- bility of the speech. Thus it is possible to amplify the low level speech signals above the threshold of the background noise, whilst leaving the high level signals more or less untouched (see figure 1). This process is known as dynamic compression and is the func- tion of the circuit described here. Since it can be used in conjunction with the Stentor power amplifier contained else- where in this issue, the circuit has been dubbed the ‘Assistentor’. However the Assistentor is not just a dynamic range compressor, it utilises another interesting feature of human speech to further reduce the volume required to render a speech signal intelligible. Most of the power in a speech signal is concentrated in the lower frequencies. However these fre- quencies are of little importance for the intelligibility of the signal. For example, passing a speech signal through a 6 dB per octave highpass filter with a cut-off frequency of 1 kHz would reduce the power of the signal by 77%. However the intelligibility of the signal remains virtually unaffected (92% of the orig- The Assistentor imposes the frequency response of figure 2 upon the speech signal. In addition to rolling off the low frequency signal components, a small amount of treble cut is also applied. This has the effect of preventing sibilant hiss in the speech signal. Dynamic range compression The basic principle of a compressor is of controlled attenuation. The input signal is fed to the attenuator and then to an amplifier, the output of which is recti- fied, smoothed, and used to control the attenuator. Thus as the input signal increases, so will the control voltage applied to the attenuator and hence the degree of attenuation will be relative to the input-signal level. The result is that the overall gain of the circuit becomes smaller as the input signal level increases. The rectifier output is smoothed in order to give a control voltage which will follow the envelope of the signal waveform. A number of different non-linear devices could be used to control the attenuator, e.g. FETs, voltage dependent or light dependent resistors, etc. However a simple and effective approach is to employ silicon or germanium diodes. As can be seen from figure 3, the dynamic resistance of a diode decreases as the current through the diode increases. This fact was utilised in the design of the Assistentor as shown in the block diagram of figure 4. The input signal voltage dropped across the diode attenuator is determined by the size of the control current I c . However this control current is itself derived from the output of the attenu- ator (which thus functions as a current- controlled resistor). As the input voltage falls, so does the control current through the diode, with the result that the dynamic resistance of the diode increases and more of the signal voltage is dropped across it. Thus more of the Input signal is amplified and appears at the output of the circuit. The dynamic range of the input signal is reduced from around 35 dB to approxi- mately 6 dB, i.e. the quietest passages of speech are amplified by roughly assistentor elektor april 1979 -4-21 Figure la. In an environment with a high level of background noise the quieter portions of the speech signal are swamped. Figure 1b. By compressing the dynamic range of the speech signal, the quieter passages are lifted above the threshold of the background noise, without affecting the amplitude of the louder passages. Figure 2. By rolling off the low frequency response of the speech signal it is possible to drastically reduce the power of the signal without impairing intelligibility. Figure 3. A dynamic compressor can be obtained by exploiting the non-linear transfer characteristic of a diode. Figure 4. Block diagram of the Assistentor. 30 dB, without the louder passages being affected. Circuit diagram The circuit diagram of the Assistentor is shown in figure 5. As is apparent, not one, but four diodes, arranged in a bridge network, are used to form the current controlled attenuator. The reason why four diodes are employed is that the control current also causes a voltage drop across the diode, which is superimposed upon the signal voltage. Variations in this control voltage can give rise to spurious ‘clicks’. With the arrangement shown in the circuit diagram the signal is applied differen- tially, and is amplified by a differential amplifier at the output of the attenu- ator. The voltage produced by the control current, however, appears in common mode at the amplifier inputs and is rejected. To ensure that the operation of the attenuator is as symmetrical as possible and to optimise control signal rejection, the diodes should ideally be matched pairs. The best solution is to use a monolithic bridge rectifier, of the type employed in power supply circuits. Before the input signal is fed to the diode attenuator, it is amplified by T1 and Al. Several RC networks around A1 ensure that the circuit has the fre- quency response shown in figure 2. The gain of this stage can be varied by means of PI. A2 functions as an inverting amplifier so that antiphase versions of the amplified input signal are fed to the controlled attenuator. A similar configuration is present at the output of the attenuator: A3 amplifies the compressed signal, whilst A4 is again connected as a phase inverter. Antiphase versions of the com- pressed signal are therefore available, assistentor elektor april 1979 - 4-23 Figure 5. Complete circuit diagram. The con- trolled attenuator is formed by a diode bridge network. The output signal is amplified differentially in order to reject the common mode control voltage. Figure 6. Track pattern and component layout of the printed circuit board for the Assistentor (EPS 790711. A number of precautions are necessary to reduce r.f. pick- up — see text. Figure 7. In a number of applications it is useful to provide the Assistentor with a by- pass switch. This can be connected as shown. Figure 8. The transfer characteristic of the Assistentor with PI set for maximum sensi- tivity. As can be seen, full dynamic com- pression occurs at an input voltage of only permitting full-wave rectification via T2 and T3. The output of these transistors is used to charge CIS, the smoothing capacitor. The voltage on this capacitor determines the control current at the emitter of T4. The discharge time of this capacitor, and hence the decay time constant of the compressor, can be varied by means of P2. The Assistentor has two outputs. Out- put A provides a signal level suitable for use with power amplifiers such as the Stentor, whilst output B provides a low level signal. The amplitude of both out- put signals can be adjusted by means of potentiometers P3 and P4 respectively. Since the circuit has a considerable gain (up to approximately 86 dB), it is susceptible to r.f. pick-up. For this reason the input, outputs and supply line are decoupled with the aid of ferrite beads LI . . . L4 and a sprinkling of 1 n capacitors. This precautionary measure is particularly important if the circuit is to be used in the vicinity of an r.f. receiver or transmitter. 7 Q Assistentor ^ V \o* Construction and use The printed circuit board for the Assistentor is shown in figure 6. The ferrite beads LI . . . L4 are printed as coils on the component overlay. The desired self-inductance can be obtained by making a wire link using insulated wire and winding the link through the ferrite bead three or four times. Any type of bridge rectifier will suffice for Bl. However it is best not to use versions with too high a current rating, i.e. a 100 mA type should be preferred to one of several amps. In the circuit diagram and parts list the B30C100 is mentioned, however this is a nominal value, which only serves' as a rough guideline. The sensitivity of the circuit can be adjusted by means of preset P 1 . If the range provided by this potentiometer proves insufficient, then the value of R 1 5 can be altered. Increasing the value of this resistor increases the sensitiviy (and also the level of both output signals). The Assistentor is not restricted to use with the Stentor or other power ampli- fiers of that nature. The provision of a low level output means that it can be employed with dictaphones, intercoms, office- or school loudspeaker systems, or in amateur radio installations to achieve the maximum modulation depth without overmodulating, and thus obtain maximum range. Figure 7 shows how the Assistentor can be provided with a switch, in order to allow the circuit to be switched in and out of operation. This facility is indispensable if using the Assistentor in conjunction with an amateur radio transmitter. Finally, figure 8 shows the transfer characteristic of the Assistentor with P 1 set for maximum sensitivity. The volt- age level at output B is given for various values of the input voltage. As can be seen full-scale compression occurs at as low an input voltage as 1 mV. Lit.: Selektor, Elektor May 1978, P- 5-02. H zero j>F screen In a large number of applications it is necessary to screen signal leads from external interference (mains hum, r.f. pick-up etc.). Unfortunately, between the signal-carrying conductors and the screening metal sheath there is inevitably a certain capacitance. The longer the leads the greater this capacitance will be. It is possible that the capacitance of cables can adversely affect their high frequency transfer characteristic, one example being the influence that the screened lead between pick-up and preamp has on the frequency response of a moving coil cartridge. Although the capacitance cannot be eliminated, fortunately there is a way to overcome its effect. If we ensure that the load on the capacitance remains constant (e.g. is always zero) or at any rate does not depend upon the AC signal voltage, then the disadvantage of screening can be removed. How is this done? The screen is con- nected to the signal conductor via a voltage follower, the output impedance of which is considerably lower than the impedance of the cable. The connection can be made at either end of the signal lead (the other end of the screen is left floating). The result is that the screen no longer has any capacitance effect, since the signal lead and screen are both carrying the same AC voltage. The cable remains effectively screened, however, since the opamp has an extremely low output impedance. If the screen was also used as an earth return, then an alternative means of realising the earth lead must be sought. There are several possibilities: one can use an extra conductor inside, or an extra screen outside the neutralised screen, or both. In the latter case the screen is connected to case earth both at the ‘transmitter’ and ‘receiver’ end, and thus no longer functions as a return lead. K 4-24 - elektor april 1979 quiz mai ster quiz master c iuiz mas ter quiz master g [uiz mas In many quiz games it is important to be able to determine who is the first to reply to a question. To avoid disputes and unseemly family arguments the simplest approach is to use an impartial electronic 'quizmaster'. Figure 1. Circuit diagram of the quiz-master. Figure 2. Using this simple arrangement of gates it is possible to construct a six-input (excluding the reset input) NAND. Figure 3. Track pattern and component layout for the quiz-master printed circuit board (EPS 79033). quizmaster elektor april 1979 -4-25 The diagram of a suitable circuit is shown in figure 1. The arrangement shown is for 4 players, however the design can be extended for any number of competitors. The operation of the circuit is extremely simple. Each of the modules shown in figure 1 consists of a flip-flop which is set by means of a pushbutton switch. The Q output of each of the flip-flops is connected via a NAND gate to the reset input of each of the other flip-flops. As soon as one flip-flop is set, the remaining flip-flops will therefore be inhibited, since their reset inputs are held high. The Q output of the flip-flop which has been set goes high, turning on the as- sociated transistor and lighting a LED, thus providing a visual indication of which pushbutton was pressed first. The circuit is reset for the next round by pressing S5. The RC network at the input of each module is simply a pulse former which prevents undefined logic states occurring in the event of both the set and reset inputs of the flip-flop being high at the same time. It is a simple matter to extend the circuit to accommodate more than four competitors. For each additional person an extra flip-flop circuit is needed and the number of inputs to the NAND gates must be increased accordingly. The printed circuit board was designed to use a CD 4068 which is an 8-input NAND gate. However, it may be more convenient to use a 4-input NAND (MC 14012, CD 4012) and a simple method of extending the number of inputs is shown in figure 2. This con- figuration is equivalent to a 6-input NAND, excluding the reset input, and would therefore be suitable for seven competitors. It must be remembered that any unused inputs should be con- nected to the positive supply rail. Construction of the circuit should not present any problems. If desired, the pushbutton switches can be connected to the board via long lengths of wire. The relatively low impedance of the pulse former networks ensure that hum and other types of inductive inter- ference are sufficiently suppressed. If need be, the resistor values of these networks can be reduced to 1 k. H 4-26 - elektor april 1979 lilding the TV-games computer building the TV-games computer Elsewhere in this issue, an introductory article about the TV games computer describes what the finished unit looks like and what it can do. In this article, our main interest is how to build the unit. After a brief description of the circuit, we will concentrate on the constructional details and calibration procedure. One glance at the main circuit diagram is probably sufficient to scare off all but the hardiest electronics enthusiasts. However, the block diagram is not nearly as bad (figure 1) and, once it has been understood, it will serve as a guide through the main circuit. As explained in the introductory article, the ‘brain’ of the TV games computer is the microprocessor chip, or ‘CPU’. By passing ‘switching signals’ along the ‘address bus’ ( 1 3 wires), it can operate all other sections of the unit as required. Information is passed from one unit to another along the ‘data bus’ (8 wires); finally, several special-purpose control signals are connected direct from the CPU to the unit(s) involved. Without a memory, a brain is fairly helpless. Three distinct types of mem- ory are available in this unit: The Read Only Memory (ROM), containing the pre-programmed ‘monitor software’; the Random Access Memory (RAM), that is used for storing the actual ‘game’ program; and, finally, a cassette or tape recorder for long-term storage of as many different ‘game’ programs as may be desired. The type of memory that is to be used at any particular moment is selected (under CPU control) by the ‘address decoder’; the exact part of that memory from which data is to be retrieved (or in which it must be stored) is selected by the CPU itself, via the address bus. Since most tape and cassette recorders are designed for audio work, using them to store digital signals requires some careful signal handling. The digital output from the computer to the tape must be AC-coupled and filtered to remove the extreme high-frequency components; the input from the tape to the computer must be boosted in level and ‘cleaned up’ to produce a recognisable digital signal. These oper- ations are performed by the section labelled ‘cassette interface’ in figure 1 . The sections described so far are com- mon to virtually any computer system. ‘Intelligence’ - the CPU - and ‘mem- ory’. It may be noted, in passing, that precisely this part of the system is shown on the left-hand page of the main circuit diagram. However, the TV games computer has still to be connected to the ‘player’ controls (joy-sticks and keyboard), the TV set and a loud- speaker. First, the controls. The joy-sticks, being potentiometers, are basically analog devices. To adapt them to the otherwise digital system, some kind of analog-to- digital conversion is required: a ‘joy- stick interface’, which is actually part of the PVI. However, to save space only one ‘interface’ is actually available and so only one joy-stick can be dealt with at a time. For this reason, a ‘joy- stick selector’ is included, to switch to and fro between the two controls. This unit is, of course, under CPU control (via a separate connection); it is also connected to the ‘keyboard interface’. The latter unit feeds the data from the keyboard onto the data bus — again under CPU control (via the address bus). So much for the inputs. The outputs — to TV and loudspeaker — are rather more complicated. Happily, most of the work is done by a single IC: the PVI, or Programmable Video Interface. This unit is comparable to a ‘slave’ micro- computer: under CPU control it stores and supplies data as required; it detects certain situations (e.g. inter-object colli- sions); based on the data stored, it ‘creates’ the corresponding picture and sound signals. In fact, the ‘sound’ in particular is simplicity itself. A single buffer stage, connected to the corre- sponding PVI output, can drive a small loudspeaker. To create the ‘picture’ the PVI must enlist the aid of a few ancillary circuits. A crystal-controlled oscillator produces the basic timing signals. These are fed, through frequency dividers, to another useful IC: the ‘Universal Sync Gener- ator’ (USG). This unit takes care of all the sync signals required for a modern colour TV set, and produces some additional synchronising signals for other parts of the circuit almost as a by-product. One set of outputs from the USG is fed to the PVI, to tell it what part of the picture is actually being ‘written’ at any particular moment. Based in part on this information, the PVI produces a group of output signals that determine what colour must be displayed at that point in the picture, in order to repro- duce the required display of objects, background and score. These outputs are fed, via a ‘gating’ circuit controlled by the USG, to the final section: the building the TV-gar elektor april 1979 - 4-27 ‘digital video summer’. This unit does exactly what its name implies: it sums the outputs from the crystal oscillator, the USG and the PVI to produce the total video output. ‘Summing’, in this case, should be taken in the broadest possible sense: it includes frequency division, gating and level matching. Having a video output is all very well, but most TV sets only have UHF or VHF inputs. This problem is quickly solved, by adding a UHF/VHF modu- lator. The circuit Having discussed the block diagram, we can now risk a quick look at the main circuit diagram (figure 2). However, there is little point in going into great detail. The main point to note is that the layout corresponds, by and large, to that of the block diagram: the various sections are drawn in the same relative positions. The CPU (IC1) is at the left; the address and data busses run along the top. The address decoder for the memory and input/output selectors (IC6 and IC7), the ROM (1C2) and the RAM (IC13 . . . IC28) require little explanation. The only point to watch is that 2 1 1 2’s used in the RAM must be 450 ns versions (or faster). The input- and output selectors (IC8 and IC9, respectively) offer eight ‘serial’ inputs and eight outputs. How- ever, only one of each is used in the basic unit; the other seven in- and out- puts are available for other external devices if required. The ‘output filter’ in the cassette interface consists of three resistors and two capacitors; the ‘input buffer’ uses an opamp to boost the signal to TTL level. So much for the first half of the circuit! This ‘thumbnail’ description should suffice to give a general idea of ‘what does what’. A fuller and more detailed explanation is given in the supplemen- tary information supplied with the printed circuit board. The second half of the circuit is rather more complicated at first sight (well, even at second and third sight . . .). However, it is not too difficult to locate a few important sections, by referring to the block diagram. The ‘heart’ of this part of the circuit is the PVI (IC3): as mentioned earlier, it is almost a ‘slave’ microcomputer in its own right. The fact that it operates in close collab- oration with the CPU is readily appar- ent: it is the only subsection that is connected directly to virtually all the address and data lines. The PVI is flanked (quite litterally, in the circuit) by the joystick selector (1C 10), the ‘loudspeaker interface’ (Tl) and the keyboard with its interface (IC 1 1 and IC12). None of these merit any detailed discussion at this point. The keyboard (or keyboards, depending on how you look at it - them?) will be explained later, from the user’s point of view. Now for the remainder of the circuit. To be honest, this type of circuit should either be described in detail or not at all . . . However, we will attempt to give a very rough outline, without Qs, Qs, logic ones and zeroes. Immediately below the PVI, a crystal oscillator (IC31) is used to generate the main timing signals. One of these goes down and around, passes through a divider stage consisting of IC32, IC35 and IC36, and finishes up as the ‘clock’ input signal for IC4, the ‘USG’. This ‘Universal Sync Generator’ is more important than its relative size in the circuit might lead one to expect: it produces the complicated synchronising signals required for a modem (PAL) colour TV set. Furthermore, it produces reference signals that are used by both the PVI and the CPU; finally, it ‘gates’ the video outputs from the PVI (i.e. turns them on and off, as required) via an intriguing selection of NANDs, inverters and EXORs (IC29, IC30 and IC40). What remains in the circuit was all lumped together in the block diagram as ‘Digital video summer’. This section (consisting of IC33, IC34, IC38, IC39 and assorted NANDs and inverters) combines signals from the crystal oscillator, the gating network at the PVI outputs and the USG to produce the final video output. The correct relative levels of the various signals are determined by the resistor network in the ‘summer’ (R54 . . . R62). The complete circuit shown in figure 2 is contained on a single printed circuit board. More on this later. However, two further units are required: a power supply and (in most cases) a UHF/VHF modulator. Power supply Any stabilised supply, capable of delivering 5V at 2A, is suitable. A simple circuit is shown in figure 3. Although this configuration may seem rather peculiar, especially where Tl and T2 are concerned, the principle is quite straightforward. If the load current increases, the integrated voltage regu- lator (IC1) will attempt to supply this current itself. However, in so doing it will increase the voltage drop across R2, thereby turning on T2 - which then proceeds to deliver the bulk of the current. In the event of a short circuit occurring, Tl limits the current through T2 to a safe value and internal protec- tion circuits maintain the dissipation in the IC within its limits. A suitable printed circuit board is shown in figure 4. UHF/VHF modulator Or rather: ‘VHF/UHF TV-modulator, see Elektor 42, October 1978’. Why design a new one if an existing circuit is good enough? The circuit is shown in figure 5, and the printed circuit board in figure 6. Re- Figure 2. Complete peating the circuit description would be circuit, rather a waste of space, so we can quickly proceed to the Construction details. The TV games computer is built up from four basic units: the main circuit, keyboard (figure 9), power supply and UHF/VHF modulator. The wiring be- tween these units (and various external diagram of the main odds and ends: joy-sticks, loudspeaker) is shown in figure 7. The p.c. board for the main circuit (figure 8) requires some comment. It is a double-sided p.c.b. with plated- through holes. A prime example of modem technology with, regrettably, the associated ‘teething problems’. Technology has not yet reached the point where plated-through holes are 100% reliable (at a reasonable price, building the TV-games computer elektor april 1979 -4-29 that is) and, as an interim solution, manufacturers often simply mount all components on the board and reject any circuits that don’t work. This is rather unsatisfactory for the home constructor, and he is more inclined to ‘trouble-shoot’. For complicated circuits like the TV games computer, this can be extremely time-consuming. For this reason, it is advisable to check the board before mounting the com- ponents. A first, visual, check is poss- ible by holding the board up to the light and looking through the holes: the plating should be clearly visible. To make assurance doubly sure, each hole can be tested individually with a multimeter: with one probe on each side of the board, the resistance should be zero. When mounting the components, it is strongly advised to use a suitable miniature soldering iron and first- class IC sockets. In a unit like this, tracing dud contacts afterwards can be a harrowing experience. The main board has a large number of in- and output connections, most of which however remain unused in the basic tv games computer. The connec- tions between main board and keyboard (see figure 7) are clearly numbered on both boards. Note that the two wire Figure 3. A suitable 5V power supply. Figure 4. Printed circuit board and com- ponent layout for the power supply (EPS 79073-1). Figure 5. The UHF/VHF modulator, orig- inally described in Elektor October 1978. Note that IC1 is not required in this appli- cation. Figure 6. Printed circuit board and com- ponent layout for the UHF/VHF modulator (EPS 9967). links shown as dotted lines on the keyboard p.c.b. should not be mounted in this case. The key numbers shown on the com- ponent layout for the keyboard corre- spond to the actual addresses of the keys. However, for normal use the indications shown in figure 10 are prefer- able, since they correspond to normal use in the monitor program. If the keyboard was only to be used in this application, it would have been more logical to run all the keys together into one 7x4 block; however, the keyboard will often be used as two separate small keyboards for two players. For this reason, the suggested layout is designed for easy ‘cutting along the dotted line’. The only constructional comment regarding the power supply is that all due care should be taken! If, due to a fault occurring at a later date, the supply voltage suddenly jumps to way over 5V, several expensive ICs may die a sudden death. For the same reason, the supply voltage must be adjusted to 5V before connecting it to the rest of the unit. A drop of laquer on the potentiometer will not only keep it from sliding off position, it will also building the TV-games computer elektor april 1979 - 4 31 serve as warning not to touch it at a later date. The UHF/VHF modulator must be adequately screened. Of course. Modu- lators should always be mounted in metal boxes. This unit can be powered from the main +5V supply, so the regulator (IC1) can be omitted and the holes in the board for its two outer pins can be bridged with a wire link. Calibration procedure With everything neatly built and all interconnections made, and after a final visual check of the wiring, it is now time to switch on. Note that, as stated earlier, the power supply must already be tested and adjusted to 5 V. The calibration procedure is simplicity itself. In fact, the modulator contains exactly the same number of adjust- ment points as the rest of the circuit — two, to be precise! UHF/VHF modulator Set PI to its mid-position and tune the TV set to one of the harmonics of the carrier. When the carrier is picked up, the snow-storm effect on the screen of the TV set will disappear. Turn P2 up to maximum. This completes the initial adjustment. Some ‘touching up’ will be dealt with later. Main circuit Operate the reset and start keys. After correct adjustment, this should cause a blue screen to appear with four yellow letters at the lower left-hand comer. The only adjustment points in the main circuit are PI and C9 in the crystal 5 12 ...15 V D1 = 1N4148 oscillator. These can be ‘calibrated’ by looking at the picture: - if PI is incorrectly adjusted, the oscillator will not run at all, in which case no picture will appear. The simplest adjustment procedure is to turn PI a little bit further than necessary to obtain a picture. - C9 determines the oscillator fre- quency, and incorrect adjustment will lead to poor colour or even no colour at all. Final touches Having obtained a picture, it becomes a simple matter to adjust for maximum picture quality: The TV set is tuned to the sideband that gives the best picture; if tuned to the wrong sideband the picture will tend to appear negative. If the picture lacks vertical synchronis- Parts list for UHF/VHF modulator Resistors: R1 = 33 k R2 = 22 k R3.R9 = 470 fl R4 = 1 k R5 = 220 « R6 = 270 n R7 = 150 n R8 = 6k8 R10.R11 = 100 n R12 = 1k5 R13 = 68 St PI = 2k5 (2k2) preset potentiometer P2 = 1 k preset potentiometer Capacitors: Cl ,C7 = 33 p C2 = 120 p C3.C4.C5 = 8p2 C6 - 22 p C8.C9 = 1