Anda di halaman 1dari 121

simple

copybit killer
enables limitless digital copying
The Serial Copy
Management
System (SCMS)
prevents digital
copying of audio
material from the
second generation
onwards.
Unfortunately, this
protection also
works on home
recordings and so
prevents home
recordists from
digitally copying
their own
musical work more than
GENERAL is easily set up;
once without degradation DESCRIPTION has good clock regeneration
by the SCMS. This prob- The circuit described in this article is
intended for the digital recording or
through the use of PLLs (jit-
terkiller);
lem has been highlighted copying and playback of non-com- gives clear indication (LEDs) of the
mercial musical work. Such recording sampling frequency (32 kHz,
before in this magazine, or copying is possible only when the 44.1 kHz, or 48 kHz);
but it has not gone away copy-prohibit has been eliminated automatically recognizes, and
without any other effect on the audio switches over to, the correct sam-
reason enough to signal. pling frequency;
describe a simple and The design of the circuit is such draws a small current owing to the
that there are no modifications use of CMOS ICs.
inexpensive circuit for required in the existing audio installa-
tion. The circuit is simply inserted in CIRCUIT DESCRIPTION
permanently removing the series with the digital (optical or coax- The block diagram of the copybit killer
copy-prohibit-bit from the ial) link between the relevant record- is shown in Figure 1. It shows that the
ing and playback equipment. copybit killer consists of:
S/PDIF* audio signal. Briefly, the circuit: optical-to-electrical convertor for
requires no modification to the dig- the S/PDIF signals;
ital audio equipment; differentiating network;
is suitable for use with signals on phase-locked loop (PLL) to regen-
optical as well as coaxial lines; erate the clock frequency;
uses readily available components; network for recognizing and pro-
operates without programmable cessing the clock frequency;
Design by H. Hanft ICs such as PALs and EPLDs; network for recognizing and dis-

* Sony/Philips Digital Interface Format the consumer version of the WARNING. The information contained in this article is intended solely for the record-
AES/EBU standard. This standard was devised by the American Audio ing, processing, and copying, of private musical work. The Editor and Publishers dis-
Engineering Society and the European Broadcasting Union to define claim all responsibility for its use that infringes any copyright vested in commercial
the signal format, electrical characteristics, and connectors, to be compact disks and (digital) tape cassettes. Such infringement is entirely the respon-
used for digital interfaces between professional audio products. sibility of the perpetrator.

Elektor Electronics 7-8/98


22
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Figure 1. Block diagram FVCO1

of the copybit killer. 1 TORX


173
differentiating
circuit
PLL1
VCO1
The core of the circuit, FDEM1

decoding and disabling


of the copy-prohibit-bit, recognition
uses an EPROM. S/PDIF | U diff | of the
S/PDIF
clock
frequency
FVCO2

abling the copy-prohibit-bit; decoding PLL2


and disabling VCO2 FPLL 2
electrical-to-optical convertor for TOTX of the
173 copy-prohibit bit
the S/PDIF signals.
CLOCK
The circuit diagram proper is shown in
970069 - 12
Figure 2. The operation of the various
networks outlined above is described
in the following sections. and pass this on to the decoder. It con- that the PLL locked in at that moment
sists of IC5aIC5d and four NOR gates, is included in the sigal processing.
The optical-to-electrical conversion of IC6aIC6d. The comparators recognize Also, when the sampling frequency is
the S/PDIF signal is carried out by IC1, the incoming S/PDIF signal and ensure 48 kHz or 44.1 kHz, the VCO control
which is the well-known Type
TORX173 integrated receiver. It con-
verts the signal input from the fibre-
glass cable into an electrical signal at 2 5V 5V

L1 R3 R14 R23 R22


TTL level. There is, of course, also a IC1

4k7

10k

1k2
15k

IC2c
facility for inputting signals from a TORX173
R1
47H
C2
R5
4
IC2b
R6
9
8
1 680 6 10 =1 11
standard coaxial cable. This is possible 100
P1
5 =1 680
13
D2
100n IC5d
via audio connector K1 in parallel with 3
IC2a C3 C4
C10 10
R15 D3
the output of IC1 via resistor R2. 1 10n

150
2 4 5 6 10k 3 33p 33p 2x
2 =1
R4 BAT85
C1 D4
10k

6
D5
The differentiating circuit, consisting K1 R2 IC5b
1
100n
of XOR gates IC2aIC2c and RC net- 100
7

works R5-C3 and R6-C4, serves to C9


R13 R16
C11

10k

4k7
detect the rising or falling edges of the 5V 5V 10n
D6

incoming S/PDIF signal. For each and C18 C19


100n
D7
3x
every edge, a positive pulse of defined 100n 100n
D1
BAT85
16 16 5V D8
length is generated and used for syn- BAT85
14 10 14 10

10k
R20
chronizing the following PLL. 3
SIN
CIN

PLL
DEM
3
SIN
CIN

PLL
DEM
R17
4 1 4 1 5
VCOUT PCP VCOUT PCP 1k2 D9 R24
6 2 6 2 2
CX PC1 CX PC1 IC5a
The regeneration of the clock fre- C5
IC3
PC2
13
R8 C7
IC4
PC2
13
R11 R18
4
1k2
2k2

2k2

1k0

quency contained in the S/PDIF signal 100p 7


CX
74HCT4046
PC3
15 100p 7
CX
74HCT4046
PC3
15
5V
11 9 11 9
is carried out by two discrete phase- P2 12
R1 VCOIN
P3 12
R1 VCOIN
R12
9
D10 R25
R2 R9 R2 14
locked loops (PLLs). The first one is IC5c
220

1k2
220

INH INH 8
1k 1k
for frequencies 6.144 MHz (sampling 8 5 8 5
R19 R21
rate 48 kHz) and 5.6448 MHz (sam- R7 C6 R10 C8 C13 C12 C14
4k7

8k2

10k

1k8

pling frequency 44.1 kHz), and the sec- 10n 10n 10n 10n 100n

ond for frequency 4.096 MHz (sam-


pling frequency 32 kHz)
So as to keep the circuit simple, K2 R26 C15
270
both PLLs are Type 74HCT4046 ICs 100n
5V
100

R27
(IC3 and IC4). These circuits contain C23 28
IC7
1

not only a phase comparator, but also 100n


A0
10 3 1D & 2
9 4
a voltage-controlled oscillator (VCO). 5V
A1
A2
8 5

The PLLs circuits are virtually identi- IC10 R28


IC9
74HC574
A3
7
6
6
10
5V
TOTX173 IC8 A4
cal and differ only as far as the value
47

19 2 11 5 11
4 1D D0 A5
of the resistor that sets the central fre- 2
R29
8k2
A8
A9
18
17
3
4
12
13
D1
EPROM
A6
4
3
12
13
R37 5V
3 D2 A7 10k
quency of the VCO is concerned (R7 A14 16 5 15
D3 A8
25 A8
12 11
A13 15 6 16 24 A9 9
and R10). 1 C16
A12 14 7 17
D4 27C512 A9
21 A10
SRG8 R
8 1
D5 A10 C1/ IC6d
100n A11 13 8 18 23 A11
D6 A11 13
A10 12 9 19 2 A12 74HC164
The network for recognizing the clock D7 A12
A13
26 A13 6 5 9 8

frequency serves to detect the sam- IC2 = 74HC86 C1


11 A14
27 A14
1 1
1
pling frequency of the S/PDIF signal IC5 = LM339 EN
1
CE OE
A15

IC6b
4 10
IC6c
20 14 22 3 2
IC6 = 74HC02
1
IC2d
13 IC6a 1
11
=1
R30 A11
R31 A12
R32 A13
R33 A14
R34 A10

12
R35 A9
R36 A8

Figure 2. Circuit dia- IC11


D11
gram of the copybit 1N4002 78L05 5V 5V
10k
10k
10k
10k
10k
10k
10k

killer. All components 5V


K3
are readily available IC2
14 C17 3
IC5
C20
C27 C26 C25
14
IC6
C21
IC7
14 C22 20
IC9
C24

and the circuit is easy 7 100n 12 100n


220 100n 1 7 100n 7 100n 10 100n

to build and set up. 25V 63V

970069 - 11

Elektor Electronics 7-8/98 23


C12
3 P1 R3 R24 R25 R23

H1
H2

D6
D7
D8
D3
R22
R37

R14
R15
R16
R7 R17
C18 R10

R4
D10 D9 D5 D2
C17

K1
C19

C10
D4 C20
C2

C14
P2 P3
C4

R2

IC3

IC4
R12
R11

R21
R20

R18
R19
R13
R9
R8

R6
R5

IC2

IC5
IC1

D1
C6
C8
Parts list C9

R1
C5 C7
C3
L1

C11
C1
Resistors:

C13
C16
R34

IC10
R1, R2, R27 = 100 R30

IC7

IC6
R3 = 15 k R29 R31

C22
R32

OUT1

IC9
R4, R13, R19, R29, R23, R33
R28 C21
R30R37 = 10 k R35 C25

C15
R5, R6 = 680

OUT2

IC8
R36 K3

K2
R7, R14, R16 = 4.7 k R26 IC11
R8, R11 = 2.2 k R27 C27

D11
970069-1
R9, R12 = 220 1-960079 C24 C23 C26
R10, R29 = 8.2 k

H3
H4

tnemgeS )C(
R15 = 150
R17, R22, R24, R25 = 1.2 k
R18 = 1.0 k
R21 = 1.8 k
R26 = 270 (C) Segment

R28 = 4.7
970069-1

P1 = 10 k preset poten-
tiometer
P2, P3 = 1 k preset poten-
tiometer

Capacitors:
C1, C2, C9, C14C24, C26 =
0.1 F, ceramic
C3, C4 = 33 pF
C5, C7 = 100 pF
C6, C8, C10C13 = 0.01 F
C25 = 1 F, 63 V, radial
C27 = 220 F, 25 V, radial

Inductors:
L1 = 47 H

Semiconductors:
D1, D3, D4, D6D8 = BAT85
D2, D5, D9, D10 = LED, high
efficiency
D11 = 1N4002

Integrated circuits:
IC1 = TORX173
IC2 = 74HC86
IC3, IC4 = 74HCT4046
IC5 = LM339
IC6 = 74HC02
IC7 = 74HC164
IC8 = 27C512 (available
ready programmed: Order
no 976516* see Readers
Services towards the end of
this issue)
IC9 = 74HC574
IC10 = TOTX173
IC11 = 78L05

Miscellaneous:
K1, K2 = audio socket for
PCB
K3 = mains adaptor socket
for PCB
PCB Order no. 970069* see
Readers Services towards
the end of this issue

* These items may be pur-


chased as a combination:
Order no. 970069-C Figure 3. The printed-circuit board for the copybit killer is avail-
able ready-made.

24 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Frame / Block Format


Preambles

X Channel A Y Channel B Z Channel A Y Channel B X Channel A Y Channel B X

Sub-frame Sub-frame

Frame 191 Frame 0 Frame 1

Start of Channel Status Block

Sub-frame Format
Sub-frame

Bit 0 1 2 3 4 5 6 7 8 9 26 27 28 29 30 31
Preamble Aux Data LSB Audio Data MSB V U C P

Validity
User Data
Channel Status Data
Parity Bit

Preamble Forms Consumer Channel Status Block Structure block


byte bit bit
Preamble X 0 1 2 3 4 5 6 7
Ch. A 0 7
PRO=0 Audio Copy Emphasis Mode
1 1 1 0 0 0 1 0 1 Category Code L 15
2 Source Num. Channel Num. 23
Preamble Y 3 Fs Clock Acc. Reserved 31
Ch. B
1 1 1 0 0 1 0 0 4 39
5
Preamble Z 6
Ch. A + 7
Block Start 1 1 1 0 1 0 0 0 Reserved
8
970069 - 13

Bit management As far as the copy-prohibit-bit is concerned, these are the sub-
frames of frame number 2.
The digital part of the circuit, in conjunction with the associated In short, it is necessary that the status of bit number 30
programming code in the EPROM, provides a sequence con- in the two sub-frames of frame 2 be recognized and, if this bit
trol that recognizes and, if necessary, alters the status of the has been erased, that it is set. If one of these bits is altered, the
copy-prohibit-bit. The process attenuation of the S/PDIF signal next parity bit (bit position 31) of the sub-frame must be inverted.
is equal to one clock cycle. Shift register IC7 continuously sep- This may give rise to eight different situations, which have to be
arates the last eight biphase-bit halves from the serial data taken into account in the programming code in the EPROM
stream and arranges that the halves are available at A0A7. see Table.
The feedback of the data lines to
the address lines via latch IC9 divides the User Data Channel Status Data Parity Bit
memory of the EPROM into 128 blocks of Bit 29 30 31
256 bytes each. In this way it becomes pos- Bi-Bit 58 59 60 61 62 63
sible within a block, depending on the sta- * * 0 0 1 0
tus of address lines A0A7, to select the Case 1
same or another block which is then C=0, P=1 * * 0 1 0 0
enabled at the rising edge of the next clock * * 0 0 1 1
pulse. This arrangement provides process- Case 2
ing control in up to 128 steps. C=0, P=0 * * 0 1 0 1
From the format of the S/PDIF sig- * * 0 1 0 0
nal in the diagram above, it is seen that a Case 3
transfer block consists of 192 frames, each C=1, P=0 * * 0 1 0 0
of which is composed of two sub-frames. * * 0 1 0 1
These sub-frames start with a preamble (X, Case 4
Y, Z) and contain 32 bits. The preambles C=1, P=1 * * 0 1 0 1
serve to mark the onset of a sub-frame; pre- * * 1 0 1 0
amble Z also indicates the start of a new Case 5
C=1, P=1 * * 1 0 1 0
transfer block.
* * 1 0 1 1
Bit 2 of the Consumer Channel
Case 6
Status Block is of special importance for the
C=1, P=0 * * 1 0 1 1
present copybit killer, because unlimited dig- * * 1 1 0 0
ital copying can be carried out only when Case 7
this bit is set. The Channel Status Bit is C=0, P=0 * * 1 0 1 0
located at bit position 30 (biphase-bit-half * * 1 1 0 1
positions 60 and 61) of a sub-frame and Case 8
therefore occurs twice during each frame. C=0, P=1 * * 1 0 1 0

Elektor Electronics 7-8/98 25


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

voltage at the relevant PLL (IC3) is the (modified) S/PDIF signal is effected Figure 4. Illustration
measured by comparators IC5b and by IC10, an integrated transmitter from of the completed pro-
IC5d. At the same time, the appropri- the same stable as the integrated input totype board.
ate sampling frequency is indicated by receiver.
D2 or D5. The TTL output signal from latch
IC9 is converted by IC10 into an equiv- is set to 6 V, it is advisable to actually
The core of the copybit killer is the cir- alent optical signal that can be passed measure the output.
cuit for decoding and disabling the on via a standard fibre-glass cable. Just The circuit draws a current of about
copy-prohibit-bit. This digital circuit as at the input, IC10 is shunted by a 80 mA.
consists of edge-triggered 8-bit shift coaxial audio connector, K2.
register IC7, 32 kbyte EPROM IC8, and SETTING UP
edge-triggered 8-bit latch IC9. Th trigger level at the input of the
Address lines A0A7 of the EPROM CONSTRUCTION copybit killer is set with P1. This is best
are controlled via the shift register, The copybit killer is best built on the done with the aid of an oscilloscope by
while latch IC9 provides the feedback printed-circuit board in Figure 3. Pop- making the pulses at the output (pin 8)
of databits D1D7 to addresses A8A14. ulating the board is straightforward by of differentiating network IC8 coincide
This arrangement, in conjunction with consulting the circuit diagram and with one another. This setting, which
the software in the EPROM, ensures parts list as well as the board itself. gives the least jitter., may be checked
that the copy-prohibit-bit is recognized All components are standard items. with other signal sources and sam-
and disabled. The modified S/PDIF sig- As mentioned earlier, IC8 is available pling frequencies so as to obtain a
nal is available at pin 19 of the latch. ready-programmed through our Read- good average.
It would have been possible to use ers Services. Setting the VCO (IC3) with P2 is a
a programmed controller for this part precise operation. It has to be ensured
ofthe copybit killer, but the cicuit as is The functions of the four LEDs are: that the voltage variation of about
forms a less expensive, readily avail- D2 sampling frequency is 48 kHz; 220 mV at the output (pin 10) of IC3 is
able alternative to an EPLD. Moreover, D5 sampling frequency is 44.1 kHz; symmetrical with respect to the input
programming an EPROM with con- D9 sampling frequency is 32 kHz; voltage to IC5b and IC5d (a window of
ventional means is straightforward, D10 input signal is absent or poor. about 80 mV) when the sampling fre-
which is an advantage that must not quency is switched from 44.1 kHz to
be underestimated. When the board has been completed, 48 kHz and vice versa. This measure-
The data for the EPROM is pro- compare it with the photograph of the ment is best carried out with a digital
vided by a small Pascal program that prototype in Figure 4. voltmeter.
produces a binary file of 32768 bytes. The copybit killer may be powered The setting of the second VCO
Constructors need not concern them- by a mains adaptor via K3. The adap- with P3 is not so critical. Make sure,
selves with this since the programmed tor output must not exceed 910 V to however, that the lighting of the rele-
EPROM is readily available through avoid the dissipation limit of IC11 vant LED accords with the sampling
our Readers Services. being exceeded. Since the output of frequency in use.
The electrical-to-optical conversion of some adaptors is already 9 V when it [970069]

Elektor Electronics 7-8/98 27


developments in
battery chargers
for NiCd, NiMH & Li+ batteries
Electronic equipment is
increasingly becoming 1
smaller, lighter, and more
functional, thanks to the
push of technological
advancements and the
pull from customer
demand. The result of
these demands has
been rapid advances in
battery technology and
in the associated cir-
cuitry for battery charg-
ing and protection. Figure 1. Designed for
single lithium-ion
cells, this battery-
charging circuit is
For many years, nickel-cadmium impedance is attractive ideal for use in a hour at more than C, or
(NiCd) batteries have been the stan- in applications that stand-alone cradle charge at C for more
dard for small electronic systems. A require high current for charger. than an hour. Charging
few larger system, such as laptop com- short periods. Power losses vary with the
puters and high-power radios, oper- tools, for example, will charging rate and from
ated on sealed lead-acid batteries. probably continue to use NiCd packs battery to battery.
Eventually, the combined effects of indefinitely. When a NiCd battery is being
environmental problems and increased Though similar to NiCd types, charged, its terminal voltage peaks and
demand on the batteries led to the NiMH batteries have greater capacity. then declines as the battery reaches
development of new battery technolo- This advantage is offset somewhat by capacity. An applied fast charge should
gies: nickel-metal hydride (NiMH), the NiMH batterys higher self-dis- therefore terminate when this voltage
rechargeable alkaline, and lithium-ion charge rateapproximately double starts to drop (that is, when U/t
(Li+). These new battery technologies that of the NiCd battery, which is rela- becomes negative). Otherwise, the
require more sophisticated charging tively high to begin with (about 1% of charging current delivers excess energy,
and protection circuitry. capacity per day). So, NiMH batteries which acts on the battery electrolyte to
are not suitable for applications in dissociate water into hydrogen and
NICD AND NIMH which the battery is expected to hold oxygen. This results in a rise in internal
BATTERIES its charge for a long time. pressure and temperature and a
NiCd has long been the preferred tech- NiMH batteries also differ from decrease in terminal voltage. If fast
nology for rechargeable batteries in NiCd batteries in the method required charging continues, the battery can
portable electronic equipment, and in to fast-charge them. Both types can be vent (explode).
some ways NiCd batteries still outper- fast-charged with a current equal to or As a secondary or backup measure,
form the newer technologies. NiCd greater than the capacity (C) in NiCd and NiMH battery chargers often
batteries have a smaller capacity than ampere-hours. This technique allows monitor the batterys temperature (in
Li+ or NiMH types, but their low you to charge a battery in about an addition to its voltage) to ensure that
hour or less. Because of internal losses, fast charging is terminated before the
a battery charged at C for one hour battery is damaged. Fast charging
cannot reach full capacity. For full should stop when a NiCds U/t
A Maxim Report capacity, you must either charge for an becomes negative. For NiMH batteries,

Elektor Electronics 7-8/98


32
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

fast charging should stop when the ter-


minal voltage peaks, that is when 2
U/t goes to zero.
Trickle-charging is simple for NiCd
and NiMH batteries. As an alternative
to fast charging, the use of a small
trickle current produces a relatively
small rise in temperature that poses no
threat of damage to the battery. There
is no need to terminate the trickle-
charge or to monitor the battery volt-
age. The maximum trickle current
allowed varies with battery type and
ambient temperature, but C/15 is gen-
erally safe for typical conditions.

LITHIUM-ION
BATTERIES
The most popular innovation in bat-
tery technology over the past few years
has been the introduction of Li+ bat-
teries. These batteries have a higher
capacity than other rechargeable types
now in mass production, such as NiCd
and NiMH. The advantage of Li+ over Figure 2. This four-cell
NiMH is only 1030% when measur- cuit the battery in the NiCd or NiMH battery voltage power source
ing capacity as energy per unit volume, presence of undervolt- charger can be incor- and the battery) across
but volumetric capacity is not the only age or overvoltage. porated into a larger a pass transistor oper-
property to consider: weight is also These protections MOS- system. ating in its linear
important in portable devices. When FETs also enable an alter- region (hen ce the
the capacity is measured as energy per native charging method name linear regulator).
unit mass, Li+ batteries are clearly (applying a constant current with no However, the dissipated power (the
superior (NiMH batteries are relatively voltage limit) in which the MOSFETs are charging current times the drop across
heavy). Because they are lighter, Li+ turned on and off as necessary to this transistor) can cause overheating if
batteries have nearly twice as much maintain appropriate battery voltage. the charger is confined to a small space
capacity per unit mass. The batterys capacitance helps to slow without airflow.
Li+ batteries also have many limi- the rise of battery voltage, but use cau- For example, consider a four-cell
tations. They are highly sensitive to tion: battery capacitance varies widely NiCd battery being charged at 1 A.
overcharging and undercharging. You over frequency, as well as from battery NiCd batteries usually terminate
must charge to the maximum voltage to battery. charging at approximately 1.6 1.7 V
to store maximum energy, but exces- In some applications, intermittent per cell, but the voltage can be as high
sive voltage can cause permanent loads can exceed the main batterys as 2 V per cell, depending on the bat-
damage to a Li+ battery, as can an power capability. A solution to this terys condition and its charging rate.
excessive charging or discharge cur- problem is to provide an additional, The d.c. source voltage must therefore
rent. Discharging the battery also car- rechargeable battery to supply the be greater than 4 2 V = 8 V. The volt-
ries a caveat: repeated discharges to a excess current during a high-load tran- age level of cells in a fully discharged
sufficiently low voltage can cause a loss sient. The main battery then recharges battery can measure as low as 0.9 V
of capacity. Therefore, to protect the the auxiliary battery in preparation for each; in this case, the battery voltage is
battery, you must limit its current and the next transient. Two-way pagers are 4 0.9 V = 3.6 V. If the d.c. source volt-
voltage when it is being discharged as a good example of this arrangement. age is 8 V, the pass transistor sees
well as when it is being charged. Most Pagers generally run from a single AA 83.6 = 4.4 V.
Li+ battery packs include some form alkaline battery, but the load during When a fully discharged battery is
of undervoltage- and overvoltage-dis- transmission is to high for an AA bat- being charged, the dissipated power is
connect circuitry. Other typical features tery to handle. An additional NiCd bat- 4.4 W in the charger and 3.6 W in the
include a fuse to prevent exposure to tery powers the transmitter, and it can batteryan efficiency of only 45%!
excessive current and a switch that be recharged when the transmitter is The actual efficiency is even lower,
opens-circuits the battery if high pres- off, which is most of the time. because the source voltage must be
sure causes it to vent. higher than 8 V to account for dropout
Unlike NiCd and NiMH batteries, CRADLE CHARGERS voltage in the pass transistor and toler-
which require a current source for For cell phones and many other small ance in the source.
charging, Li+ batteries must be devices, the preferred battery-charging A linear, single-cell Li+ battery
charged with a combination current- method involves the use of a separate charger is suitable for use in a cradle
and-voltage source. To achieve the cradle charger into which you place charger (Figure 1). It drives an external
maximum charge without damage, the device or the battery pack. Because power transistor, Q1, that drops the
most Li+ battery chargers maintain a the charger unit is separate, its gener- source voltage down to the battery
1% tolerance on the output voltage. ated heat of less concern than it would voltage. The external transistor
(The slight additional capacity gained be if the charger were integrated into accounts for most of the circuits power
with a tighter tolerance is generally not the device. dissipation; the controller temperature
worth the extra difficulty and expense The simplest circuit for use in a cra- therefore remains relatively constant.
required to achieve it.) dle charger is usually a linear-regulator The result is a more stable internal ref-
For protection, a Li+ battery pack charger. Linear regulators drop the dif- erence, yielding a more stable battery-
usually includes MOSFETs that open- cir- ference voltage (between the direct voltage limit.

Elektor Electronics 7-8/98 33


D1: fast charge, pulse trickle charge,
3 and top-off charge (Table 1). In the fast-
charge mode, the charging current is
150 mV divided by the current-sense
resistor value (0.1 ) or 1.5 A in this
case. In top-off-charge mode, the volt-
age at SET produces 24.5% of the fast-
charge current, or 381 mA in this case.
The current in pulse-trickle-charge
mode is the same as in top-off mode,
but it is pulses with a 12.5% duty cycle.
Frequency is determined by the resis-
tor connected at TOFF (68 k). In this
case, the frequency is 3.125 MHz/
R3 = 46 Hz. The average pulse-trickle
current is therefore 0.125 381 =
4.76 mA.
The circuit in Figure 2 should ter-
minate a charge when U/t equals
zero or becomes negative (according to
whether a NiMH or a NiCd battery is
being charged). However, if termina-
tions fails to occur, the circuit imposes
Figure 3. This charger a secondary voltage limit to prevent
generates a 1%-accu- Resistors batterys capacitance can vary greatly the battery voltage from rising too
rate charging voltage R1 and R3 with frequency. Determine it carefully high. As an absolute maximum, the
suitable for charging determine the before committing to a design. charging voltage for NiCd and NiMH
two lithium-ion batter- output current: Another drawback of switching reg- batteries should not exceed 2 V per cell,
ies in series. R1 senses the ulators is the noise generated by their or 8 V for the 4-cell battery in this cir-
charging cur- switching action. This problem can cuit. Resistors R6 and R7 establish this
rent and R3 sets usually be avoided with proper layout voltage limit as Ulimit = Uref
the level at which the current is regu- techniques and shielding. For applica- [R7/(R6+R7)].
lated. The current out of the ISET ter- tions in which certain frequencies A similar circuit charges two Li+
minal is equal to 1/1000 of the voltage should be avoided, many switching cells in series (Figure 3). It differs
between CS+ and CS. The current chargers can be synchronized to an mainly in the accuracy of its charging
regulator controls the ISET voltage at external signala capability that voltage, which is better than the 1%
2 V; in this case, the current limit, allows you to shift the charger s required by Li+ batteries. Also unlike
2000/(R1 + R3), is 1 A. switching noise away from sensitive the charger in Figure 2, this one uses
Control loops for the voltage and frequency bands. an n-channel MOSFET for the high-side
current limits have separate compen- A linear regulator is generally larger switching transistor. When turned on,
sation points (VVC and CCI), which than an equivalent switching regulator this transistors source and drain volt-
simplifies the task of stabilizing these because it dissipates more power and ages are approximately equal to VIN,
limits. The ISET and VSET terminals requires a larger heat sink. Conse- but the gate voltage must be higher
allow for adjustment of the current quently, the extra time necessary to than VIN to allow the use of inexpen-
and voltage limits. design a smaller, more efficient switch- sive n-channel MOSFETs. This elevated
ing charger is usually justified. One gate drive is achieved by charging C7
B U I L T- I N B A T T E R Y such design is the 4-cell NiCd/ NiMH and adding its voltage to VIN.
CHARGERS charger in Figure 2. It has no provision Charging current for the circuit
In some larger systems, including lap- for terminating the charging; it oper- shown in Figure 3 is determined by
top computers, the battery charger is ates in conjunction with a controller current-sense resistor R1: 185 mV/R1 =
built in as part of the system. The that monitors the voltage across the 925 mA for the 200 m value shown.
charger s efficiency in this arrange- battery and shuts off the charger when This current can be adjusted linearly to
ment is criticalnot to ensure maxi- conditions are met. Many systems lower values by varying the voltage at
mum energy transfer, but simply to already include a controller suitable for the SET1 terminal. Similarly, you can
minimize heat generation. Heat ele- this purpose. If your system does not adjust VOUT by varying the voltage at
vates temperature, and operation at have one, you will need a low-cost, the VADJ terminal. Because varying VADJ
elevated temperatures shortens a bat- stand-alone microcontroller (C) that over its full range (04.2 V) changes
terys life. Because this application includes an on-board analogue-to-dig- VOUT by only 10% (0.4 V per cell), you
requires high efficiency over the entire ital converter (ADC). A number of such can achieve better than 1% output
battery-voltage range, the charger Cs are available. accuracy with 1% resistors. (One-per-
should rely on a switching regulator, The charger IC chops the input cent-accurate resistors degrade the out-
whose power dissipation is relatively voltage with a switching transistor, put accuracy by only 0.1%).
low and independent of the input-to- N1A and a synchronous rectifier, N1B. Terminals CELL0 and CELL1 set the
output voltage drop. This chopped voltage is placed across batterys cell count as shown in Table
The main drawback of switching the inductor to form a current source. 2. (VL indicates the 5 V level that pow-
regulators is the need for a passive LC When the charger is turned off, diode ers the IC.) The charger can handle as
filter, which converts the switched out- D2 prevents current flow from the many as four Li+ cells in series.
put voltage to a direct voltage whose charged battery back into the voltage Though not shown in Figure 3, the
level is suitable for the battery. In some source. MAX745 can also terminate charging
case, the battery capacitance is suffi- In addition to off , the MAX1640 upon reaching a temperature limit
cient to replace the capacitor in the fil- operates in one of three modes as monitored by a thermistor. When the
ter; however, as mentioned earlier, a determined by digital inputs D0 and battery temperature exceeds this limit

34 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

(determined by an external resistor


and thermistor connected to the 4
THM/SHDN terminal), the charger
shuts off. Hysteresis associated with
this threshold enables the system to
resume charging when a declining bat-
tery temperature causes the THM/
SHDN voltage to fall 200 mV below its
2.3 V threshold.

S M A R T- B A T T E R Y
CHARGERS
Smart batteries represent a new tech-
nology that is helping designers and
consumers alike. Smart-battery packs
include a controller that can talk
through its serial port to tell an exter-
nal charger what kind of charging rou-
tine the battery requires. This arrange-
ment helps designers, because they can
design a single charger that handles all
batteries compliant with the smart-bat-
tery standard.
Smart batteries also benefit con-
sumers, who can replace a given bat-
tery without regard to its type, as long
as the replacement is smart-battery
compliant. The smart-battery specifi-
cation allows any manufacturer to par-
ticipate in the market, and the result-
ing competition leads to standard
products and lower prices. rent source when pro- Figure 4. This charger source does not exceed
The smart-battery specification was grammed for output is compliant with the 5 V; therefore, the
defined by a consortium of companies currents of 32 mA or smart-battery specifi- power dissipation in
that manufacture batteries, computers, higher. However, the cation, and communi- the current source
and related products. It defines the linear source remains cates with the host remains below 160 mW.
way the battery pack connects to the on to ensure monoto- computer and a smart A diode, D3, is
host system and the way it communi- nicity in the output cur- battery via the placed in series with
cates with the host. It communicates rent regardless of the SMBus interface. the inductor to prevent
via a two-wire serial interface known current-sense resistors a flow of reverse cur-
as the System Management Bus value or offset in the rent out of the battery.
(SMBus), which is derived from the current-sense amplifier. Transistor Q1 The high switching frequency
I2C protocol. A large base of I2C-com- off-loads an otherwise heavy power (250 kHz) of IC2 permits the use of a
pliant Cs capable of controlling dissipation in the internal linear regu- small inductor. The circuit accepts
peripherals on the SMBus is available. lator, which occurs when the the input inputs as high as 28 V, and provides
Smart batteries also provide an ele- voltage is much greater than the bat- pin-selectable maximum output cur-
gant solution to the problem of fuel tery voltage. The base of Q1 is held rents of 1 A, 2 A, and 4 A.
gauging. In a system run by ordinary about 5 V below the input voltage. The [984128]
non-communication batteries, the host voltage across the internal current SMBus is a trademark of Intel Corp.
knows the state of the battery only
when it has been fully charged or dis-
charged. Smart batteries, on the other Table 1. Charging states for the MAX1640
hand, remember their charge state.
When such batteries are switched in
and out of the host, the fuel gauge is D0 D1 Mode Output current
able to maintain the same level of accu- 0 0 off
racy as it would under continuous 0 1 top-off charge VSET/13.3 RSENSE
operation. 1 0 pulse-trickle VSET/13.3RSENSE
In the smart-battery compliant
charger shown in Figure 4, the con- charge (12.5% duty cycle)
troller IC includes an SMBus interface 1 1 fast charge VREF/13.3RSENSE
that allows it to communicate with the
host computer and the smart battery
being charged. Because the switching Table 2. Cell-count setting for the MAX745
regulator and its small, power-efficient
current-sense resistor cannot achieve a
Cell 0 Cell 1 Number of cells
1 mA (min) resolution in charging cur-
rent, the first 31 mA (five LSBs) of out- GND GND 1
put current are supplied by an internal VL GND 2
linear current source. GND VL 3
To preserve high efficiency (89%), VL VL 4
the system actuates a switch-mode cur-

Elektor Electronics 7-8/98 35


ESD protection
for I/O ports
APPLICATION NOTE

1
Electrostatic dis-
charge (ESD) can
threaten an electronic
system when some-
one replaces a cable
or even touches an
I/O port. Discharges Figure 1. ICs with inadequate ESD
ESD GENERATION
that accompany these Electrostatic discharge appears
protection are subject to cata-
strophic failureinluding ruptured
routine events can when two dissimilar materials passivation, electrothermal migra-
come together, transfer charge, tion, splattered aluminium, contact
disable the port by and move apart, producing a spiking, and dielectric failure.
destroying one or voltage between them. Walk-
ing on a rug with leather soles,
more of its interface for example, can generate voltages as that produced when an IC makes con-
high as 25 kV. The level of electrostatic tact with its handling machinery. By
ICs (see Figure 1). voltage induced depends on the rela- mimicking the ESD events caused by
Such failures can also tive charge affinity between rug and charges that accumulate on moving
shoe leather, the humidity, and other parts, the waveform simulates static
be costlythey raise factors. discharges seen during machine
the cost of warranty ESD TEST
assembly.
The two methods are complemen-
repairs while diminish- METHODS tary, so you shouldnt choose one over
Two methods are commonly used for the other. Because ESD can affect ICs
ing the products per- testing the ESD susceptibility of inte- during manufacturing, during PC
ceived quality. These grated circuits. The oldest, MIL-STD- board assembly, and after the end
833 Method 3015.7, was developed as product is put into service, a test based
and other factors, an aid to understanding the precau- on the human body model and the
coupled with the tions necessary for packaging and
handling ICs. This method tests each
machine model together provides ade-
quate assurance regarding the ICs tol-
increasing amount of package pin against other groups of erance to the rigours of manufacturing
manufacturers
not
received from manufacturers
does not

pins, and classifies the device accord- and insertion.


electrical communica-
and does

ing to the lowest voltage for which Some ICs, whose pins are exposed
tion between comput- failure occurs. to the outside world through connec-
their representatives and
its consultants.

The applied signal in this test is a tors, can encounter ESD even when
ers and computer- current waveform derived from a cir- mounted on a PC board within an
cuit called the human body model (see enclosure. ESD exposure is less likely
related equipment,
on information received

Figure 2), which simulates the capaci- for the other pins, which are connected
or its

lend emphasis to the tance and source impedance typical of to circuitry on the board. For this class
Electronics or

a human body. Circuit layout is critical, of IC, a test method such as 3015.7
or their
by Elektor Electronics

need for engineers to because the actual waveform delivered (which tests pin combinations) does
industries or

understand ESD. at the IC depends also on parasitic not provide an adequate representa-
electronics industries

inductance and capacitance associated tion of ESD susceptibility for the


with the test connections and PC board. input/output (I/O) pins.
based on

The resulting current waveform repre- Both offer ratings according to the
is based
and electronics

sents the ESD that occurs when a per- lowest-voltage failure on any pinan
experience by
practical experience

son touches an object, such as an IC. approach that may not do justice to the
note is
of this note

The other method, which differs higher levels of internal ESD protection
from the above only in the values for required by the I/O pins (and provided
electrical and

R and C, was developed by the Elec- by some manufacturers). A device


the electrical
imply practical
content of

tronic Industries Association of Japan might have I/O pins that withstand
The content

(EIAJ). Called IC-121 and based on a 15 kV, for example, and non-I/O pins
circuit called the machine model, it that fail at 2 kV. With the methods
in the
imply
The

A Maxim Application applies a current waveform similar to stated, the devices ESD rating would

Elektor Electronics 7-8/98


42
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

be less than 2 kV. Fortunately, how-


ever, better test methods are now avail- 2
able for rating the I/O pins.

NEW ESD TEST FOR


I/O PORTS
An I/O port allows communication
with other pieces of equipment. I/O
ports for ICs comprise logical groups
of pins that give access to equipment
external to the system that contains
the IC. These pins are subject to static
discharge and other abuse as operators
connect and disconnect cables from
the system. For the I/O pins of an
RS-232 or RS-485 interface IC, an ideal
test method for ESD susceptibility
should:

Test the I/O pins in ways that sim-


ulate exposure to ESD events in
actual equipment.
Apply test waveforms that model
electrostatic discharges produced Figure 2. Substituting different
by the human body. Different cir- IEC 1000-4-2. Originally intended component values as shown yields
cuit models specify different values as an acceptance condition for discharge circuits known as the
of amplitude, rise/fall time, and equipment to be sold in Europe, human body model, the machine
transferred power. it is rapidly gaining acceptance model, and the IEC 1000-4-2 model
Test the IC with and without power as a standard criterion in the (human holding a metallic object).
applied. United States and Japan as well.
Define IC failures to include Though not originally intended
latchup (a momentary loss of oper- as an IC specification, it now does pendicular, and as quickly as possible).
ation), as well as catastrophic or extra duty as an ESD test for ICs. Like The second technique produces a
parametric failure. Latchup is con- the modification to 3015.7, it tests only spark at some critical distance from the
sidered a failure mechanism the I/O pins. test unit.
because if left undetected, it can The model for IEC 1000-4-2 is again ESD produced by air discharge
lead to reliability problems and sys- the circuit of Figure 2, but with differ- resembles actual ESD events. But, like
tem malfunctions. ent component values. Resistor R2 rep- actual ESD, the air-discharge variety is
resents a human holding a screwdriver not readily duplicated. It depends on
Two methodsboth compliant with or similar metallic object, and C1 rep- many variables that are not easily con-
the requirements listedhave seen resents another estimate of human- trolled. Thus, attesting to the general
increasing use by equipment manu- body capacitance. This circuit pro- importance of repeatability in testing,
facturers in testing the ESD suscepti- duces a current waveform (Fig-ure 3) IEC 1000-4-2 recommends contact dis-
bility of I/O ports. The first is a modi- with a rise time steeper than that pro- charge, and the modified 3015.7
fication of Method 3015.7, MIL. STD duced by Method 3015.7.
883. It makes use of the same circuit IEC 1000-4-2 specifies ESD testing
model and waveforms as the original both by contact discharge and by air Figure 3. Parameters
method, but applies ESD pulses only discharge. ESD evens caused by actual 3 for this ESD waveform
to the I/O pins of a device. Its intent is contact are more repeatable but less (rise time, peak cur-
to simulate the fault currents seen by realistic, and air discharge is more real- rent, amplitude at
an IC installed on a board and oper- istic but subject to wide differences in 30 ns, and amplitude
ating in the target system. waveform shapeaccording to varia- at 60 ns) are specified
Like the original Method 3017.7, the tions in temperature, humidity, baro- by IEC 1000-4-2.
modified method defines only an ESD metric pressure, distance between IC
waveform and the criteria for failure: and electrode, and rate of approach to
after exposure to the waveform, a the IC pin. This change of shape can
failed IC must either exhibit latchup or have a significant effect on the mea-
fail one or more data sheet specifica- sured level of tolerance for ESD.
tions. The modified method stipulates
no particular operating code for the IC CONTACT OR AIR
during test.. DISCHARGE?
Similarly, the modified method Testing ICs for ESD ruggedness per
3015.7 does not compel products to IEC 1000-4-2 requires the use of an
withstand particular levels of ESD; it ESD gun, which allows testing with
only defines classes of protection. New either contact discharge or air dis-
transceivers from Maxim, however, charge. Contact discharge requires
generally provide protection levels to physical contact between the gun and
15 kV. the I/O pin before test voltage is
applied by a switch internal to the
IEC 1000-4-2 MODEL gun. Air discharge requires the gun to
The second, more stringent, method be charged with test voltage before it
for testing ICs that include I/O pins is approaches the I/O pin (from the per-

Elektor Electronics 7-8/98 43


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Figure 4. High-ESD current in an IC can


4 spike a junction by partially dissolving the
aluminium contact in silicon, causing a
permanent short to the layer below.

must withstand high levels of ESD.

What level of ESD voltage is the IC


method requires contact discharge its progress through an IC is strongly guaranteed to withstand, and by what
only. In either case, the test procedure affected by the circuits distributed par- test method was that level established?
calls for at least ten discharges at each asitic impedances. Therefore, attention Different test methods yield differ-
test level. to the external layout will ensure max- ent voltage ratings. Currently, the
The main difference between the imum performance by the ICs internal recommended approach includes
two ESD standards just discussed is in protection networks. both IEC 1000-4-2 and the modified
the peak currents they produce in the 3015.7 method.
device on test. Different component Follow standard analogue layout
values can cause these peak currents techniques, placing all bypass Will ESD cause latchup in the IC?
to differ by a factor greater than five. (decoupling) and charge-pump Latchup is a critical problem. The
Because peak currents produce the capacitors as close to the IC as pos- IC might stop functioning if ESD
unwanted power that an IC must dis- sible. causes latchup in the circuit. The
sipate, IEC 1000-4-2 is usually the more Include a ground plane on the PC resulting supply current (as much
demanding test method for ESD. board. as 1 A) may destroy the IC.
High current can damage an IC in Minimize trace (track) inductance
various ways: and capacitance. Does the ICs ESD protection affect
Place the IC as close to the I/O port normal operation?
Excessive local heating. as possible. Normal operation can cause
Melted silicon. latchup in the internal protection
Spiked junctions, caused by a short In testing, ensure that the test setup structure if it is poorly designed.
that dissolves aluminium in the sil- causes ESD currents to flow along the
icon (Figure 4). same paths as they would in that Must you observe special precautions
Damaged metal lines. equipment. Step through the specified when applying the IC?
Gate-oxide failure owing to exces- ESD range in increments of 200 V, and Bipolar ICs might require expen-
sive voltage. at each level provide the device ten sive, low-ESR (equivalent series
Transistor damage owing to elec- times with each polarity of this volt- resistor) capacitors or a ground
trothermal migration (Figure 5). age, about once per second. The volt- plane with low a.c. impedance. Its
age should be applied with respect to best to learn of these requirements
the IC s ground pin. at the outset.
PROTECTION METHODS Check for failures by monitoring
To protect against ESD, a designer can three parameters after each zap. What is the ICs maximum specified
either add the protection externally or First, the supply current should slew rate?
choose ICs with high levels of protec- remain constant (an increase may indi- An IC susceptible to latchup
tion built in. Protection circuitry cate latchup or internal damage). because of its ESD-protection struc-
includes metal-oxide varistors and sil- Second, the transmitter output volt- ture might specify an unusually
icon avalanche suppressors. These age should continue to meet the 5 V low maximum slew rate to avoid
devices are effective but expensive. minimum levels for RS-232 transmis- triggering the latchup condition.
External ESD protection also takes up sion.
valuable board area and adds capaci- Third, the receiver input resistance How does the IC respond to an ESD
tance to the I/O line. should remain between 3 k and 7 k test that covers the entire range for
To overcome these limitations, (ideally, it should remain at a constant which voltage protection is guaranteed?
manufacturers have repeatedly raised level in that range). Apply the voltage Trigger mechanisms for an ESD-
the level of ESD protection in their ICs. as described and test the device in all protection structure can kick in at
Maxim, for exam[le, now provides its modes: normal operation, shut- different voltage ranges, leaving
15 kV protection for RS-232 ICs, down, power off, transmitter high/low, open windows with no protection.
whether tested in accordance with and so on. Such a device might survive
IEC 1000-4-2 or the human body 10 kV, but fail at 5 kV, for
model. GUIDELINES FOR instance. That is why it is recom-
SELECTING ICS mended that an ESD test covers the
RECOMMENDATIONS The following questions should be entire range in 200 V increments.
An ESD current waveform is charac- resolved before choosing an IC (par- [984101]
terized by extremely fast rise times, so ticularly an RS-232 transceiver) that

Figure 5. Electrothermal migration (ETM) in


5 an IC can set the stage for damage in the
presence of an ESD event. The resulting
high current and high voltage can cause a
short circuit or low-impedance path
between the terminals of a transistor.

Elektor Electronics 7-8/98 45


maintenance charger
for 6 V and 12 V lead-acid batteries
If there is one thing
that a lead-acid bat-
tery does not like it is
persistent neglect.
When such a battery
is being discharged,
its energy is pro-
duced by the acid in
the electrolyte gradu-
ally combining with
the active material of
the plates. This com-
bination produces
lead sulphate in both
negative and positive
plates. A cell is com-
pletely discharged
when both plates are
entirely sulphated.
Since the plates are When a lead-acid battery used for LONG -TERM STORAGE
then (irreversibly) starting a motorcycle or car is charged
and discharged regularly it will not
It is sometimes unavoidable for a lead-
acid battery to be put into cold storage,
composed of identi- easily become deep-discharged since it for instance, when the car or motorcy-
is constantly being recharged by the cle is laid up for the winter. How can
cal material the termi- alternator (or, in very old vehicles, the the battery then be saved from the fate
nal voltage collapses. dynamo). This is, of course, true only just described?
if the vehicle is used regularly. If the battery is new or in very good
In normal practice, If the battery is not cycled regu- condition, it may be sufficient to cycle
larly, it deteriorates more and more (charge/discharge) it a couple of times
discharging would be rapidly. This is quite clear from the and then store it at room temperature
stopped long before chemical reaction formulas in the (about 20 C). However, this is a risky
box. If you are not familiar with thing to do even with a new(ish) bat-
this condition is such formulas, they show, simply, tery, let alone with an older one, and
reached. that the acid in the electrolyte grad-
ually combines with the active
certainly so if the period of non-activ-
ity is likely to be extended. This is
material of the plates. This combi- because batteries all suffer from self-
nation produces lead sulphate discharge, which causes a fully
(PbSO 4 ) in the plates. When dis- charged battery to become flat within
charge is allowed to continue, the a few months.
plates will soon become entirely sul- The only sure way of preventing a
phated, a process that is, unfortu- battery to be ruined in that situation is
Design by K. Walraven nately, irreversible. to ensure that it is charged regularly.

Elektor Electronics 7-8/98


52
A 2V1 / 2V3
1 * zie tekst IC1
D7 RE1 B 0V87 / 1V05
see text 7805
* siehe Text C 0V / 4V
* voir texte
* R1
C2
R2
C6
1N4001

10k

2k7
RE1 = V23127-A0002-A101

10 63V REF 100n A

D5 R12
R4

82
15k

D1
A R7
22
3
1
7
C CHARGE
R8 *
R9 R11
C1 5

100k

100k

10k
6
D3 IC2
K1 2 BT1
470 R5
1N 2x 1% 1%
25V 4
4001

10k
8
1N4148 D4

TLC271
B
R3

680
T1
D2 C3 C4 C5

R6 R10 D6
10 220 470

5k6

10k
63V P1 16V BC337 25V

500 1% A
POWER BATTERY OK
970092 - 11

Figure 1. Circuit diagram of the maintenance


This has to be done in an intelligent present charger. In charger, which is powered by a standard 6 V or 12 V
way, however, because overcharging is this, the battery is mains adaptor connected to socket K1.
almost as bad as deep-discharging. charged to a certain
This means that a standard battery potential, whereupon
charger cannot be used, because it the charger is
delivers such a large current that the switched off. When the battery e.m.f. Power is supplied via a standard,
battery needs to be charged for limited has dropped to an appreciably lower unregulated 12 V mains adaptor rated
periods only. Such a charger can be level, the charger is switched on again. at 1 A The adaptor is linked to jack K1
used only in conjunction with a timer. When this process is continued, and and charges battery Bt1 via the contact
Another way is, of course, to con- provided the switch-over voltages are of relay Re1. This is possible, because
stantly trickle-charge the battery. well selected, the charger is perfectly the average 12 V mains adaptor pro-
The present maintenance charger suited to maintaining the battery. It vides an e.m.f. of 1718 V, which is
combines the functions of a standard can, of course, also be used as a stan- more than enough to charge a battery
charger and timer to monitor and dard battery charger. to 13.8 V. Moreover, such an adaptor is
replenish the charge of the battery. The above assumes that the charger inexpensive and safe, and its internal
has a facility for monitoring the battery resistance provides automatic limiting
MONITORING AND voltage constantly and accurately. of the charging current. For instance,
CHARGING After all, this voltage is a guide to the the charging current from a 1 A adap-
Although trickle-charging is a good state of charge. tor at 12.3 V is 700 mA and at 13.8 V
alternative to the method described in The nominal voltage of a lead-acid only 400 mA. In other words, when
this article, it has a few draw-backs. cell is about 2 V, which does not the charging voltage increases, the
One of these is that the charging cur- depend on the number of plates or charging current drops. This is excel-
rent has to be set very accurately, and their capacity. When charging is com- lent, because at higher voltages the
another that it cannot charge a flat bat- menced, there is an immediate rise in battery can be charged less and less.
tery, which means that the procedure the cell voltage. When this voltage The electronic networks ensure that
has to be started with a fully charged reaches a level of about 2.3 V, there is charging is started and stopped at the
battery. a fairly sharp rise, followed a little later correct times. A hysteresis of 1.2 V has
Although there are various ways of by a levelling off, after which there is been provided, which means that
designing a maintenance charger, One no further increase. Recharge of a cell charging continues until the battery
of the most frequently used is based is complete when the voltage and rel- voltage is 13.8 V, whereupon the relay
on an accurate voltage source that ative density of the electrolyte remain switches off the charging current.
delivers a voltage equal to the end-of- constant for about 3 hours. When the battery voltage drops to
charge voltage of the battery. In the In case of a 12 V battery, the above about 12.6 V, the charging current is
case of a 12 V battery, this is usually means that charging should com- switched on again. In practice, this
taken as 13.8 V. mence when the e.m.f. of the battery means that charging lasts only a few
There are people who do not think is about 12.5 V and finish when the minutes, while the intervals between
this is a sufficiently safe method, since e.m.f. reaches a level of about 13.8 V. In consecutive charges amount to a cou-
there is the (theoretical) risk that per- the present charger, these switch-over ple of hours.
manent connection to a fixed voltage points are adopted. Moreover, these The monitoring and control circuit
may in the long run lead to an over- points are temperature-compensated is based on operational amplifier IC2,
charge, however slight this may be. to preclude under-charging or over- which is arranged as a comparator
This may, however, be prevented by charging owing to temperature varia- with hysteresis. This IC compares part
discharging the battery at regular tions. of the battery voltage with a preset ref-
intervals. It should be borne in mind, erence voltage. Depending on the
though, that this cycling does age the CIRCUIT DESCRIPTION result, the level at the output of the IC
battery. The circuit in Figure 1 may be split causes relay Re1 to be energized or not
This ageing can be prevented, and into two sections: the charger proper, via transistor T1.
the battery held properly charged at and the monitoring and control net- In the comparison, the e.m.f. of one
all times by the method used in the work. cell of the battery is used. The accurate

Elektor Electronics 7-8/98 53


Part list

H6
2 R8 Resistors:

H4
H3

C4
+A
R9 IC2 R1, R11 = 10 k (12 V) or 3.9 k
R10 (6 V)

R11
-A
D6
R4 R2 = 2.7 k
R3 = 680
R7
R4 = 15 k
D3 C3 C6
C5
R2
R5 = 10 k
D4 R6 = 5.6 k
RE1 REF
D1 D7
D2 R3 R7 = 22
R1 R12
R5 R8 = 100 k (12 V) or,20 k (6 V),
K1 D5
R6 1%
P1 R9 = 100 k (12 V), 1%; not used
C2
C1 IC1 (6 V)
T1
H5

H2
H1

1-290079 R10 = 10 k , 1%
970092-1
R12 = 82
tnemgeS )C(

P1 = 500 , preset potentiometer


(C) Segment
970092-1
Capacitors:
C1, C5 = 470 F, 25 V
C2, C3 = 10 F, 63 V, radial
C4 = 220 F, 16 V, radial
C5 = 220 F, 25 V, radial
C6 = 0.1 F

Semiconductors:
D1, D7 = 1N4001
D2 = LED, yellow, high efficiency
D3, D4 = 1N4148
D5 = LED, red, high efficiency
D6 = LED, green, high efficiency
T1 = BC337

Integrated circuits:
IC1 = 7805 (12 V) or 4805 (6 V)
IC2 = TLC271CP
Figure 2. The
1:6 divider R8R10 printed-circuit board output of the mains Miscellaneous:
ensures that this volt- for the maintenance adaptor to prevent any K1 = socket to suit mains adaptor
age is applied to the charger is available damage to the charger. Re1 = 12 V or 6 V relay (see text)
with single change-over contact
ve (inverting) input of ready-madesee The short-circuit may Non-regulated mains adaptor, 12 V
IC2. Readers Service sec- well irreparably dam- or 6 V output
The reference volt- tion towards the end age the adaptor, PCB Order no. 970092 (see Read-
age of 2.12.3 V is of this issue. though. ers Services towards end of this
applied to the +ve It must also be said issue)
(non-inverting) input that when during
of the IC. The reference voltage is charging the mains adaptor is
derived from the 5 V line, which is reg- switched off, D2 continues to light
ulated by IC1, via potential divider since it is then supplied by the battery course, it will not be charged. In the
R2-R3-P1-D3-D4. Diodes D3 and D4 via the closed relay contact. unlikely case that the relay contact
provide the requisite temperature A red diode, D5, is in series with the closes just at the moment the battery
compensation. relay to indicate that the battery is is being connected with wrong polar-
The hysteresis of the comparator is being charged. ity, the battery may be discharged via
held at a fixed value of 0.2 V by R4. A green LED, D6, in parallel with D1. This will, however, be of short
the battery, indicates whether or not duration since the relay contact opens
DISPLAY AND this is connected correctly (polarity!). only briefly when there is no battery
PROTECTION If the battery is connected with wrong connected to the charger..
polarity, not much can go awry, but, of
The various modes of operation of the
charger are indicated by three light-
emitting diodes (LEDs).
A yellow one, D2, is linked in par- 3
allel with K1 via resistor R1. It lights
when the mains adaptor is connected
and switched on. If the mains adaptor
is not, or wrongly (almost impossible),
connected, the diode does not light. In
this case, diode D1 short-circuits the

Figure 3. Photo-
graph of the com-
pleted prototype
board.

54 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Figure 4. Photograph
of a typical setup for 4
setting the reference
voltage. Note that
although the battery
is shown connected,
it should not be
when setting takes
place.

USING THE CHARGER


When the battery is connected to the
maintenance charger for the first time,
check that D6 lights before connecting
and switching on the mains adaptor. If
it does, all is well.
Note that the charger has no addi-
tional short-circuit protection. This
means that when the battery terminals
are accidentally short-circuited, or the
mains adaptor is connected the wrong
way around (which is virtually impos-
sible), the only protection is the cur-
rent limiting action in the adaptor. As
already described, this is provided by nect the mains adaptor to K1 and then close and open at four-second
just a few resistors, and these will not switch it on. Do not connect a battery intervals. Adjust P1 for a meter read-
hold out for very long. to the charger. If all is well, the relay ing of 2.1 V at the moment the red
When the reference voltage is set to should close for one second, and then LED does not light. If this test is car-
2.1 V, charging commences when the open again, and repeat this process ried out at an ambient temperature
potential at the ve (inverting) input every four seconds. other than 20 C, reduce the meter
of IC2 is 2.1 V and, owing to the in- When all is found in order, the by 4 mV for each C the temperature
built hysteresis, stops at 2.3 V. Referred board should be housed in a suitable is higher and increase it by the same
to a 12 V battery, charging starts at a enclosure. The prototype is housed in amount for each C it is lower.
terminal voltage of 12.6 V and stops a small metal case with holes drilled as
at 13.8 V. In practice, this arrangement appropriate for the LEDs, the socket 6 V BATTERY
ensures that the battery is charged for connecting the mains adaptor, and The charger described so far is
briefly a couple of times per day. the terminals to which the battery is to intended for use with a12 V battery.
It is, of course, possible to modify be connected. It is, however, readily adapted for
the reference voltage. If, for instance, The battery is best linked to the use with a 6 V battery as follows.
this is set to 2.05 V, the intervals charger via two lengths of flexible, Set the mains adaptor to 6 V out-
between charging periods are larger. well-insulated, not-too-thin multi- put, or use a 6 V model.
However, these intervals should not be strand circuit wire. It is advisable to Replace IC1 by a low-drop type,
made too long to ensure that you have use red wire for linking the +ve ter- such as the 4805.
a fully charged battery available at all minals, and black for the ve termi- Replace the relay by a 6 V type.
times. nals. Remove R9 and replace R8 by a
If the battery does not appear to Before taking the charger into use, 20 k, 1% type.
charge properly, badly sulphated connect a multimeter, set to the 10 V If D2 and D6 light too faintly,
plates may be indicated. The voltage direct voltage range, between REF replace R1 and R11 by 3.9 k
across the battery then increases and A on the board. Connect the types.
rapidly, whereupon charging ceases. mains adaptor and switch it on. Do [970092]
In a bad case, charging will stop after not connect a battery. The relay will
only four seconds. If the sulphation is
not too serious, the battery may
recover to some extent, so that it is
worthwhile to leave it connected to
the maintenance charger for a day and Basic cell reactions in lead-acid battery
then check the charging again. Sul-
phation of the plates cannot be The chemical reactions in a standard lead-acid battery are:
reversed: the battery is then a write off
and must be replaced. Discharge PbO2+Pb+2H2SO4 2PbSO4+2H2O
at +ve electrode PbO2+3H++HSO4+2c 2H2O+PbSO4
CONSTRUCTION AND
TEST at ve electrode Pb+HSO4 PbSO4+H++2c
The maintenance charger is best built
on the printed-circuit board shown in Charging 2PbSO4+2H2O PbO2+Pb+2H2SO4
Figure 2. Completing the board is sim- at +ve electrode 2H2O+PbSO4 PbO2+3H++HSO4+2c
plicity itself: provided the drawing is
followed closely, nothing can go at ve electrode PbSO4+H++2c Pb+HSO4
wrong, but mind the polarity of the
various capacitors and diodes. PbSO4 = lead sulphate
When the board is completed, con-

Elektor Electronics 7-8/98 55


International
PC Software Competition
Measurement
Development
Communications
Who writes the best PC program for one of the three above
mentioned subjects? Participate in this years Competition
and go for one of those magnificent prizes donated by our
advertisers. Whats more, an International First Prize is up for
grabs worth more than 3,000! Read the Competition Rules,
look at the prizes and switch on your computer!

These days, with technology all around us every day, its hard to think of a world without
computers, and in particular, PCs. In the electronics area, too, many professional work-
ers as well as hobbyists regularly use the number-crunching abilities of a PC. In view of
the huge interest among our readers in computers, processors and controllers, we once
again launch a Contest based on the PC.
The aim of the Contest is to encourage you to design a project covering one of three
themes, measurement, development or communications. Your project may consist of
just software, or a combination of hardware and software. So, start programming and
compete for one of the magnificent prizes our advertisers have donated for the Compe-
tition. The first 100 contestants supplying a working program that meets the Competition
Rules will receive, in January 1999, a free CD-ROM containing all winning projects.

Almost anyone with a keen n interest in to the active electronics designer: into one of the above categories: the
technology has a PC available these PC as a data logger, temperature
days. No matter if you are a construc- Measurement measurement using the PC (optionally
tion engineer or a worker in the elec- Development with a heating control system), an
tronics field, there are lots of occasions Communications insertion card with software enabling
where a computer proves to be very the PC to act as an oscilloscope,
helpful indeed. To help you get oriented in case you process control simulation using the
This year three subject areas were cho- have no subject in mind, here are a PC, designing printed circuit boards,
sen which we feel are sure to appeal few examples of programs that fall drawing schematics, simulating digital

56 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

and/or analogue circuits, a lathe con- BASIC and Q-BASIC, runtime modules, known file formats (e.g., GIF or TIF).
trol system, infrared control of the PC, Pascal units, and DLL files for programs
wireless communication between like Visual BASIC. Any runtime modules Program Documentation
PC(s) and peripherals, or software for needed by the program should be Many readers will be interested in the
reception and processing of weather included. operation and general design of your
satellite images. The computer used should be an IBM program. Thats why you should
As you will appreciate from the above compatible PC running MS-DOS (5.0 include a source code file containing
list, each of the three themes is open or later) or Windows (3.1, 3.11 or 95). concise comment on the workings of
to a fairly wide interpretation! The minimum system requirements the program. If you object to the
Send your programs and pertinent are: 486 processor, 4 MB RAM and a source code being published, then
documentation (and, if applicable, 256-colour VGA screen. If a sound omit it, and instead supply a text
any schematics and PCB artwork) to card is used, it should be SoundBlaster description only.
compatible. Files intended for the Jurys eyes only
Elektor Electronics (Publishing) may be stored in a separate folder
1998 Software Competition Supplying the program (A:\JURY).
P.O. Box 1414 The program should be supplied on
Dorchester DT2 8YH one or more 3.5-inch floppy disks, Language
England 1.44-MB DOS format, or on a CD-ROM All software, source files and docu-
(CD-R, ISO-9660 format). Compressed mentation should be in English.
Your project should reach the above (zipped) files are not allowed. More-
address before 20 September 1998. over, each disk you send in has to be Publication
Do not enclose built-up prototypes or checked for viruses using an up-to- The list of winners will be printed in the
any other hardware. If necessary, the date virus checker. December 1998 issue of Elektor Elec-
Jury will ask you to do so. The program should be supplied with tronics. Next, a selection of prize-win-
a short description on paper. This file ning programs will be published in the
GENERAL POINTS should also be present on the disk(s) spring issues of this magazine. Finally,
you supply. It should contain the fol- the complete collection of all prize-
k Only submissions received by post on lowing information: winning projects will be published on
or before 20 September 1998 qualify k program title CD-ROM by early February 1999.
for participation. k authors name, email address and
k Programs are judged mainly on their postal address (if you do not want Checklist
originality, look, technical quality, and your address published on the Com- Before sending us your project, we rec-
ease of use. petition CD-ROM in case your pro- ommend using the checklist below.
k The Jury consists of members of the ject wins a prize, then omit the
Elektor Electronics design team and address from the file(s) on disk); , My program complies with the
international editorial staff. The Jurys k short functional description of the Competition Rules.
decisions are final and not open to program;
discussion, argument or correspon- k description of hardware used (if , All files are contained on one or
dence. applicable); more 3.5-inch floppy disks or a CD-
k By participating in the Contest, the k the software used to produce or ROM. File compression has not been
contestant confirms that he/she is compile the program; applied.
the rightful author of the software k a list of all files on the disk(s).
and associated hardware (if applic- , All files are virus-free.
able), and that he/she assigns all The author(s) should include a copy-
publication rights, without restrictions, right statement in the program ( , A short description of the program is
to Segment b.v., Beek (L), the Nether- 1998 John Doe), while the authors included this text is supplied on
lands, but only in case the project is name should also appear (briefly) paper as well as on disk (ASCII, Word-
awarded a prize. when the program is started. Perfect or Word format).
k The Competition is open to anyone
except employees of Segment b.v. Types of program , All files are in English
and their relatives. The only condition as regards the func-
tion of the program is that it is clearly , Documentation and disks have
related to one of the three themes been properly packaged and sent
COMPETITION Measurement Development Com- by post, in time to reach our Dorch-
RULES munications. ester office before 20 September
Projects may consist of just software, or 1998.
The Program software and hardware. The hardware
The program(s) you supply must be should, however, be either standard for , (Only if hardware of your own design
able to operate on its own, without the PCs (and commercially available), or is included with the project) A circuit
help of commercially available soft- of your own design. In the latter case, diagram, PCB layout and compo-
ware. So, a macro designed for Excel the circuit diagram and PCB artwork nent mounting plan are supplied on
only will not be acceptable. Excep- should also be supplied on floppy disk paper and on disk.
tions to this rule are programs for GW- or CD-ROM using one of the generally

Elektor Electronics 7-8/98 57


READERS
Letters

our readers, and (2) the author This problem is simple to One of the rules of thumb that Submitting Articles for
has transferred the relevant solve. Locate the file also applies to NiMH batteries Publication
file(s) and copyrights to us. MSAJT110.DLL on your sys- is that the charging current is Dear Editor I have devel-
tem, and rename it to 1.4 to 1.5 times the specified oped a small project which I
MSAJT200.DLL. The EIT capacity. So, your 1100 mAh would like to offer you for pub-
installer should then work batteries will require a total lication. However, looking at the
Monacor/Monarch Parts properly. charge of 1500 to 1650 mAh. high quality of your ar ticles I
Dear Editor a fair number of A few other readers have In other words, you should fear that what I have wrought
recently published articles are reported that the EIT will not charge them for 12 hours at on my kitchen table is just not
based on components supplied launch after an otherwise suc- 130 mA, or for 32 hours at good enough because of my
by a company called Mona- cessful installation. An error 50 mA. limited skills at technical writ-
cor/Monarch (or even Merca- report File not found then For safe charging a charging ing and my inability to design
tor). To date I have been unable appears. Because this is a rare period of 14 to 15 hours is a high-quality printed circuit.
to locate their representative in problem, we have been unable commonly applied, using a Since I do not find a Call for
the UK and, indeed, any of the so far to discover the exact current equal to 1/10th of the Designs or similar section in
Monacor par ts you specify. cause. A makeshift solution is battery capacity. So, your 130- your magazine, how does one
Where can I obtain these parts to rename the file mAh charger is almost the per- actually go about submitting an
(mostly connectors, trans- MSAJT110.DLL into fect companion for these ar ticle for publication in Elek-
formers and moving-coil MSAJT112.DLL before running batteries. The one advantage tor Electronics?
meters)? the EIT installer. of the 50-mAh charger is that
F. Anderson, Ipswich it allows the batteries to given Well its much simpler than
a much longer charge without you would expect, and theres
any danger. Even continuous no need to have reservations
By most standards, Monacor Charging charging should be without risk about low design standards
is a large supplier of electron- NiMH Batteries at this low current. because we will do the touch-
ic parts with distributors in Dear Editor I have a query ing up if your article is accept-
nearly all European countries. on charging the new NiMH pen- ed for publication.
Until recently, the parent com- light batteries from Philips. On Content is far more important
pany, the German Inter-Mer- the label it says that these bat- Electronic Code Lock than looks. Basically, your cir-
cador GmbH, did not have an teries can be used in any Dear Editor I wish to bring cuit has to be original and
outlet in the UK. Fortunately, charger. With a suspicious to your attention that the out- innovative, and other readers
Monacor UK (Ltd) are now in mind I called the Philips Con- put NAND gate of the Electron- should be able to reproduce it
business and can be reached sumer Information Desk, only ic Code Lock (September as well as grasp its theory of
on the following numbers: tel. to be told that there was no 1997) suffers to a small extent operation. Once your design
(01908) 217100, fax (01908) danger of the batteries being from contact bounce. I was has been accepted for publi-
217900. We should also men- damaged by over-charging. able to prove this by adding a cation, you will receive a remu-
tion that most Monacor com- My actual questions to you are: JK flip-flop set to toggle state neration proposal from the
ponents we refer to can be I have a charger supplying a to the output. Ideally, this flip- Publisher, via our editorial sec-
supplied as one-offs by two of current of 50 mA. The NiMH flop should toggle at every retariat.
our advertisers, Stippler Elec- batteries have a capacity of pulse from IC2d. Unfortunate- Contrary to what you seem to
tronics and C-I Electronics, 1100 mAh. How long should I ly, the application of a NAND think, we do not mind the odd
mainly because they also carry leave them in the charger? I gate with Schmitt trigger inputs spelling mistake or slip of the
kits for many of the projects also have another charger with is no guarantee for complete pen in your writs because most
featured in Elektor Electronics. 130 mA output capacity. How elimination of pulses resulting articles are virtually rewritten
long should I leave it on to from contact bounce. I was by our editorial staff in close
recharge my NiMH batteries? able to cure this problem by co-operation with one of our
My questions may appear very connecting a 1-F electrolytic internal design engineers
Elektor Item Tracer simple, but I am fully aware of capacitor between pin 12 of appointed to oversee your pro-
Dear Editor I recently the fact that the total amount of IC2d and ground. In this way, ject technically. So, theres
ordered and received the Elek- energy needed to charge the the input remains logic low suf- absolutely no need to submit
tor Item Tracer (EIT). However batteries is greater than the ficiently long (approx. 1 s), and any mil-spec documents!
I have not been able to run the energy I can drain from them. bounce pulses generated when What we do need, however, is
program despite the fact that I would also like to fully charge S4 is released do not reach the a clear circuit diagram, short
all files are present according the batteries without any risk of output any more. descriptions of the circuit oper-
to your checking program. over-charging. C. Tribolet ation and software (if used),
I get the message Cannot find S. van Rhijn, Netherlands and sources for all compo-
MSAJT200.DLL when I try to nents used.
run the program, and then the Contact bounce pulses are Although not strictly required,
installation program terminates. One of the major differences notorious troublemakers in dig- article proposals should be
I remember seeing something between NiCd and NiMH bat- ital circuits. For the problems supplied on disk, using any of
about this in a past issue but teries is that the latter are you report with the Electronic the popular file formats for
can not now locate the relevant slightly less robust and less Code Lock, the addition of a 1- word processing and PCB
issue. Please tell me how to get tolerant of high charging and F cap is a possible solution. design. Why not give it a try?
the missing file, preferably discharging currents. The lat-
through the Internet. ter fact is important for fast
Michail Kalognomos, by email charging only.

Elektor Electronics 7-8/98 67


Battery tester
for all 1.5V and 9V batteries
This battery tester
does the job properly
by evaluating the bat-
tery state under
loaded conditions.
The project is easy to
build and contains
regular components
only. The battery
read-out is a solid-
state LED display
rather than an expen-
sive and fragile mov-
ing-coil meter. A spe-
cial design feature
enables the tester to
make voltages below
1 volt light an LED.

Sure, there must be properly working a battery. So, during the measurement a totally electronic alternative: an array
testers around, but the ones we a certain current must be drawn from of LEDs with different colours. How-
picked up and examined were not up the battery. Not a lot, mind you, but ever, to make an LED light, you need
to much. Okay, the designs may be not so little either that no response is a voltage between 1.6 V and 2.4 V. A bit
simple (so is ours presented here), but seen to the load. of a problem, obviously, if you use a
most off-the-shelf testers are so poorly The second important aspect to 1.5-V battery as the power source!
dimensioned that their battery condi- observe is to set up realistic values for The problem was solved by calling
tion indications are of little or no use. the reference levels used during the in the help of an astable multivibrator
Some testers already indicate that the voltage measurements. The present (AMV). Here, the AMV is built around
battery is okay if the thing produces design is based on three test levels: T1 and T2, and converts the 1.5-V bat-
any voltage at all, while others do not 1.3 V, 1 V and 0.7 V. A measured volt- tery voltage connected to K1 into an
produce a good verdict until a volt- age of 1.3 V or higher indicates a alternating voltage with a level of more
age of 2 V is measured; a cell voltage good cell condition; between 1.3 and than 5 Vpp which is developed across
no dry battery will ever be able to 1 V indicates acceptable; below 1 V choke L1. The output frequency of the
produce! indicates poor, and below 0.7 V indi- AMV is about 11 kHz.
So what are the must have features cates flat. The voltage across L1 is ample for
of a good battery tester? Well, things our application because a usable
are simpler than you might expect. TWO TRANSISTORS tester may, in principle, be built by
Firstly, the voltage measurement AND THREE LEDS shunting the choke with an LED and
should take place when a certain load A look at Figure 1 will convince you a properly dimensioned series resis-
is connected to the battery. Thats that the circuit diagram of the battery tor. As you can see from the circuit
because the no-load cell voltage does tester is pleasantly simple. Well, it diagram, two LEDs are connected in
not tell us everything about the state of could have been even simpler had we parallel with L1. Series resistor R4
used the traditional moving-coil meter belongs with the red LED, D1. Its
for the read-out. Because of the vul- value is such that the LED lights
nerability and cost of such a mechani- when the input voltage is just over
Design by W. Zeiller cal meter, we decided to replace it by 1 V. The green LED, D2, has a zener

Elektor Electronics 7-8/98


68
Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

than that of a matchbox. Construction


1 R4 *
D3
L1
R2 R1 R3
should take less than half an hour. The
C2 only point to pay attention to is the

470
1V5

100

10k

10k
47n
polarity of the LEDs and the zener
1V4 470H diodes, in particular, D3. In general,
D1 D2 K1
zener diodes for low voltages are actu-
C1 C4 ally stabistors, or series-connected
rood groen
zener diodes. As compared with real
A 22n 22n
rouge vert C3 zener diodes, stabistors are fitted the
red
rot
green
grn
T2 47n T1 R6 wrong way around on the printed cir-
cuit board. Dont worry, you cant

10
B damage the circuit if you fit D3 the
BC550C BC550C wrong way around: only D2 will then
9V D5
refuse to light.
K2 5V6 Our final remark also concerns D3.
* zie tekst
Because of the rather loose tolerance
R5
* see text

* siehe Text
100

on the forward voltage of green LEDs,


* voir texte slightly better results may be obtained
D4 geel 5V3 0V 0V7
jaune A B 2V4
by using the next higher or lower
yellow value for the zener diode.
gelb f 11kHz
970076 - 11 (970076-1)

Figure 1. The circuit


diode instead of a diagram of the battery course, fit a load switch
resistor. The diode tester is simplicity to select between the
enables the LED to itself. Any 1.5-V dry two resistor values. Figure 2. A circuit like
light at a battery volt- cell may be connected this lends itself very
age of 1.3 V or higher. to K1, while K2 is IN PRACTICE well to miniaturisation
Although the tester used for PP3 style 9-V Actually using the cir- (board not available
draws a current of batteries. cuit is straightforward. ready-made).
about 30 mA , it is a too Use two short, flexible
light load for battery
test purposes. Thats why resistor R6 is 970076-1 K1
tnemgeS )C(

connected in parallel with the battery


R2 C2
2
T2 C1 C4 C3 T1 - 970076-1 (C) Segment

terminals. The value of 10 indicated +


in the circuit diagram should be R3 R1
1-670079

looked upon as a useful average for R4 L1 D3 R5 D5 R6 K2 -


the most commonly used battery +
types. If you only test lady or pen- D1 D2 D6
light cells, then the load current may
be made a little smaller, and R6 may be
increased somewhat to, say, 15 . For wires to connect the 1.5-V battery you
baby and mono cells, on the other wish to examine to connector K1 on
hand, it may be better to adopt a the board. Watch the polarity! LEDs
slightly higher load current, and you D1 and D2 then indicate the state of
may consider dropping the value of the battery. A battery is only deemed COMPONENTS LIST
R6 to 6.8 or so. Purists may, of good if the green LED lights at rea-
sonable intensity. A more detailed Resistors:
explanation of the LED R1,R2 = 10k
indication may be R3 = 470
R4,R5 = 100
readout found in the table.
R6 = 10 1W
To make the tester
D1 D2 as versatile as possible,
red green 1.5-V battery a test option for 9-volt
Capacitors:
C1,C4 = 22nF
(PP3) batteries has C2 = 4nF7
> 1V3 both bright: good been added. These bat- C3 = 47nF
teries may be con-
weak green: reasonable nected to K2, and the Inductor:
test circuit consists of L1 470H choke

1V red only: poor no more than a yellow Semiconductors:


LED (D4) with a zener D1 = low-current LED, red
< 0V7 no red: flat diode (D5) and a resis- D2 = low-current LED, green
tor (R5) in series. The D3 = 1.4V zener diode, 0.4W
relevant component D4 = low-current LED, amber (yel-
D4
yellow 9-V battery values enable the LED low)
to light if the battery D5 = 5.6V zener diode, 0.4W
T1,T2 = BC550C
> 7V5 bright yellow: good voltage is greater than
7.5 V. Miscellaneous:
no yellow: bad The size of the K1,K2 = PCB terminal block, pitch
< 7V5
printed circuit board 5mm
for the battery tester
970076 - 13 (Figure 2) is smaller

Elektor Electronics 7-8/98 69


001
4-bit analogue-to-digital
converter
Design: G. Baars R6
49k9 5V
The operation of the converter is 1%
R7
based on the weighted adding 100k C1 14

and transferring of the analogue R8


1% IC1
100n
input levels and the digital out- 200k
7

put levels. It consists of com- R3 1%

parators and resistors. In theory, 49k9

the number of bits is unlimited, R4 1% IC1e IC1f


but each bit needs a comparator 100k 11
1
10 13
1
12
1%
and several coupling resistors. R1
49k9
The diagram shows a 4-bit ver- IC1a 1% IC1b IC1c IC1d
sion. 1 2
R2
3 4
R5
5 6
R9
9 8
The value of the resistors 1 100k 1 200k 1 200k 1 Q0
1% 1% 1%
must meet the following criteria:
Q1

R1:R2 = 1:2; IC1 = 74HC04 Q2


R3:R4:R5 = 1:2:4;
R6:R7:R8:R9 = 1:2:4:8. Q3

The linearity of the converter


984009-11
depends on the degree of preci-
sion of the value of the resistors
with respect to the resolution of ments affects the linearity of the If standard comparators are the tap of a a divider consisting
the converter, and on the accu- converter adversely. If the value used, take into account the out- of two 10 k resistors across the
racy of the threshold voltage of of the resistors is not too low, the put voltage range and make sure supply lines.
the comparators. This threshold use of inverters with an FET that the potential at their non- It is essential that the con-
level must be equal, or nearly (field-effect transistor) input inverting inputs is set to half the verter is driven by a low-resis-
so, to half the supply voltage. leads to a near-ideal situation. supply voltage. tance source. If necessary, this
Moreover, the comparators must In the present converter, If high accuracy is a must, can be arranged via a suitable
have as low an output resistance complementary metal-oxide comparators Type TLC3074 or op amp input buffer.
as possible and as high an input semiconductor (CMOS) invert- similar should be used. This The converter draws a cur-
resistance with respect to the ers are used, which, in spite of type has a totem-pole output. rent not exceeding 5 mA.
load resistors as feasible. Any their low gain, give a reasonably The non-inverting inputs should [984009]
deviation from these require- good performance. be interlinked and connected to
002

bi-directional I2C level shifter


Philips Semiconductor enhancement MOSFET, T1, for
3V3 5V
Application Rp Rp Rp Rp
the serial data line, SDA, and T2
The advantages and ease of use G
T1
for the serial clock, SCL. The
of an I2C link are well known. S D gates (g) have to be connected to
SDA1 SDA2
Since its introduction almost 20 G the lowest supply voltage, VDD1,
T2
years ago, it has been applied in the sources (s) to the bus lines
S D
more than 1000 types of IC. All SCL1 SCL2 of the lower voltage section, and
these ICs are designed for oper- the drains (d) to the bus lines of
ation from a 5 V power supply. the higher voltage section. Many
3V3 3V3 5V 5V
However, more and more ICs IC IC IC IC
MOSFETs have the substrate
coming on to the market use a internally already connected
3.3 V supply. The bi-directional 984019-11 with the source; if not, it should
shifter described in this appli- be done externally. The diode
cation note is intended to inter- between the drain and substrate
connect two sections of an and devices connected to a I/Os with supply voltage related is inside the MOSFET and rep-
I2C-bus system, each section 3.3 V supply voltage, whereas logic input levels and an open resents the n-p junction of drain
with a different supply voltage the right section has pull-up drain output configuration. and substrate.
and different logic levels. In the resistors and devices connected The level shifters for each Three situations may arise.
bus system in the diagram, the to a 5 V supply voltage. The bus line are identical and con-
left section has pull-up resistors devices of each section have sist of one discrete n-channel 1. The bus is not used and is,

16 Elektor Electronics 7-8/98


001
4-bit analogue-to-digital
converter
Design: G. Baars R6
49k9 5V
The operation of the converter is 1%
R7
based on the weighted adding 100k C1 14

and transferring of the analogue R8


1% IC1
100n
input levels and the digital out- 200k
7

put levels. It consists of com- R3 1%

parators and resistors. In theory, 49k9

the number of bits is unlimited, R4 1% IC1e IC1f


but each bit needs a comparator 100k 11
1
10 13
1
12
1%
and several coupling resistors. R1
49k9
The diagram shows a 4-bit ver- IC1a 1% IC1b IC1c IC1d
sion. 1 2
R2
3 4
R5
5 6
R9
9 8
The value of the resistors 1 100k 1 200k 1 200k 1 Q0
1% 1% 1%
must meet the following criteria:
Q1

R1:R2 = 1:2; IC1 = 74HC04 Q2


R3:R4:R5 = 1:2:4;
R6:R7:R8:R9 = 1:2:4:8. Q3

The linearity of the converter


984009-11
depends on the degree of preci-
sion of the value of the resistors
with respect to the resolution of ments affects the linearity of the If standard comparators are the tap of a a divider consisting
the converter, and on the accu- converter adversely. If the value used, take into account the out- of two 10 k resistors across the
racy of the threshold voltage of of the resistors is not too low, the put voltage range and make sure supply lines.
the comparators. This threshold use of inverters with an FET that the potential at their non- It is essential that the con-
level must be equal, or nearly (field-effect transistor) input inverting inputs is set to half the verter is driven by a low-resis-
so, to half the supply voltage. leads to a near-ideal situation. supply voltage. tance source. If necessary, this
Moreover, the comparators must In the present converter, If high accuracy is a must, can be arranged via a suitable
have as low an output resistance complementary metal-oxide comparators Type TLC3074 or op amp input buffer.
as possible and as high an input semiconductor (CMOS) invert- similar should be used. This The converter draws a cur-
resistance with respect to the ers are used, which, in spite of type has a totem-pole output. rent not exceeding 5 mA.
load resistors as feasible. Any their low gain, give a reasonably The non-inverting inputs should [984009]
deviation from these require- good performance. be interlinked and connected to
002

bi-directional I2C level shifter


Philips Semiconductor enhancement MOSFET, T1, for
3V3 5V
Application Rp Rp Rp Rp
the serial data line, SDA, and T2
The advantages and ease of use G
T1
for the serial clock, SCL. The
of an I2C link are well known. S D gates (g) have to be connected to
SDA1 SDA2
Since its introduction almost 20 G the lowest supply voltage, VDD1,
T2
years ago, it has been applied in the sources (s) to the bus lines
S D
more than 1000 types of IC. All SCL1 SCL2 of the lower voltage section, and
these ICs are designed for oper- the drains (d) to the bus lines of
ation from a 5 V power supply. the higher voltage section. Many
3V3 3V3 5V 5V
However, more and more ICs IC IC IC IC
MOSFETs have the substrate
coming on to the market use a internally already connected
3.3 V supply. The bi-directional 984019-11 with the source; if not, it should
shifter described in this appli- be done externally. The diode
cation note is intended to inter- between the drain and substrate
connect two sections of an and devices connected to a I/Os with supply voltage related is inside the MOSFET and rep-
I2C-bus system, each section 3.3 V supply voltage, whereas logic input levels and an open resents the n-p junction of drain
with a different supply voltage the right section has pull-up drain output configuration. and substrate.
and different logic levels. In the resistors and devices connected The level shifters for each Three situations may arise.
bus system in the diagram, the to a 5 V supply voltage. The bus line are identical and con-
left section has pull-up resistors devices of each section have sist of one discrete n-channel 1. The bus is not used and is,

16 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

therefore, not made low by one The transistor conducts, so that the transistor, since the potential the gate-source potential is less
of the ICs. The gate and source the 5 V section is pulled low by at the source is a few volts below than 2 V. Also, its channel resis-
are both at 3.3 V so that the the transistor and the relevant that at the gate. Since FETs can tance must be lower than
transistor is cut off. The I2C bus IC. This means that the low conduct in two directions, the 100 , and it must be able to
at the right section is not level at the left section is trans- left section is made low via the carry a current of at least
affected and this line is also ferred to the right section. transistor and the relevant IC in 10 mA. Its input capacitance
high, but here the high level is the right section. So, again the should not exceed 100 pF and it
5 V (in the left section, it is 3. An IC in the right section low level is transferred. should be capable of switching
3.3 V). makes the bus low. The left sec- within 5 ms. Suitable Philips
tion is pulled low via the diode It is obvious that the FETs types are the BSN10, BSN20,
2. An IC in the left section in the transistor, not necessarily used must have some specific BSS83, and BSS88.
makes the bus low. The level at to zero but to a level a diode volt- properties. One of the most [984019]
the source of the transistor is age above zero. This level is, important of these is that the
0 V and that at the gate, 3.3 V. however, low enough to switch on transistor must conduct when
003

100-watt single-IC amplifier


pushed the output power to no vices. Note that the radial elec-
less then 108 watts. In practice, trolytic capacitors are rated at
these power levels can be taken 40 volts, so you have to make
to mean music power, but do sure that the supply voltage can
remember that the amplifier will never exceed that level. The
not normally be powered from a performance of the prototype
regulated supply! amplifier built and tested in our
Great attention should be paid design lab is expressed by the
to the cooling of the amplifier Specifications box.
IC. The cooling capacity offered (984062-1)
by a heatsink as specified in the
parts list is really only sufficient
for load impedances of 6 ohms COMPONENTS LIST
or more. Even if a heatsink with
a thermal resistance lower than Resistors:
1 K/W is employed, the ampli- R1,R3 = 1k
R2,R4,R5,R8,R9 = 22k
fier IC will cause a hot spot on
R6 = not fitted, see text
the heatsink surface where the R7 = 10, 5W
actual thermal resistance is
Specifications (8 /1 kHz unless otherwise noted) much higher locally than the Capacitors:
specification! With this in mind, C1 = 2F2, MKT (Siemens),
it is recommended to drop the pitch 5mm or 7.5mm
Input sensitivity: 1 Vrms (63 W into 8 ) supply voltage to about 30 V C2 = 220pF, 160V, axial, poly-
Output power, 8 : 63 W (THD <1%) if the amplifier is used to drive styrene (Siemens)
a 4-ohm load. Also, bear in C3 = 22F, 40V, radial
Output power, 4 : 108 W (THD <1%) mind that heatsink isolating C4 = 47pF, 160V, axial, poly-
Damping factor (8 ) >450 at 1 kHz materials like mica and even styrene (Siemens)
ceramics tend to raise the ther- C5 = 100F, 40V, radial
>170 at 20 kHz C6 = not fitted, see text
mal resistance by 0.2 K/W to
Slew rate: >10 V/s (rise time = 5 s) 0.4 K/W. The metal tab at the C7,C8 = 100nF
Power bandwidth: 8 Hz to 90 kHz C9,C10 = 2200F, 40V, radial,
back of the IC is at the negative max. diameter 16mm
Signal/noise ratio: 94 dBA (1 W into 8 ) supply potential.
Boucherot network C6-R6 is not Inductor:
normally required in this appli- L1 = 0.7H, 13 turns of 1.2-
Design: T. Giesberts comes in an 11 (staggered-) lead cation, and should be omitted mm diameter (#18 SWG)
According to National Semicon- non-isolated TO220 package. unless the amplifier is found to enamelled copper wire,
ductor, the LM3886 is a high- We put the LM3886T through be unstable as a result of an 10mm internal diameter,
performance 150W Audio Power its paces, using two earlier pub- application which is widely dif- wound around R7.
Amplifier with Mute. The per- lications (Ref. 1, 2) and an exist- ferent from the one shown here.
formance of the LM3886, say ing printed circuit board as a Populating the amplifier board Semiconductor:
NS, utilising its Self Peak basis. For test purposes, the pro- itself will be a piece of cake, and IC1 = LM3886T (National
Semiconductor)
Instantaneous Temperature totype of the amplifier was pow- most of the time required to
(Ke) (SPIKe) protection cir- ered by a stabilised 35-V sup- build the amplifier will go into Miscellaneous:
cuitry, puts in a class above dis- ply. A maximum undistorted drilling, cutting, mounting and Heatsink for IC1: specification
crete and hybrid amplifiers by output power of about 63 watts isolating the heatsink. The Rth < 1K/W
providing an inherently, dynam- into 8 ohms was obtained at a printed circuit board shown here Printed circuit board, order
ically protected Safe Operating drive level of 1 Vrms. Dropping is available ready-made through code 954083-1.
Area (SOA). The LM3886T the load impedance to 4 ohms the Publishers Readers Ser-

Elektor Electronics 7-8/98 17


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

therefore, not made low by one The transistor conducts, so that the transistor, since the potential the gate-source potential is less
of the ICs. The gate and source the 5 V section is pulled low by at the source is a few volts below than 2 V. Also, its channel resis-
are both at 3.3 V so that the the transistor and the relevant that at the gate. Since FETs can tance must be lower than
transistor is cut off. The I2C bus IC. This means that the low conduct in two directions, the 100 , and it must be able to
at the right section is not level at the left section is trans- left section is made low via the carry a current of at least
affected and this line is also ferred to the right section. transistor and the relevant IC in 10 mA. Its input capacitance
high, but here the high level is the right section. So, again the should not exceed 100 pF and it
5 V (in the left section, it is 3. An IC in the right section low level is transferred. should be capable of switching
3.3 V). makes the bus low. The left sec- within 5 ms. Suitable Philips
tion is pulled low via the diode It is obvious that the FETs types are the BSN10, BSN20,
2. An IC in the left section in the transistor, not necessarily used must have some specific BSS83, and BSS88.
makes the bus low. The level at to zero but to a level a diode volt- properties. One of the most [984019]
the source of the transistor is age above zero. This level is, important of these is that the
0 V and that at the gate, 3.3 V. however, low enough to switch on transistor must conduct when
003

100-watt single-IC amplifier


pushed the output power to no vices. Note that the radial elec-
less then 108 watts. In practice, trolytic capacitors are rated at
these power levels can be taken 40 volts, so you have to make
to mean music power, but do sure that the supply voltage can
remember that the amplifier will never exceed that level. The
not normally be powered from a performance of the prototype
regulated supply! amplifier built and tested in our
Great attention should be paid design lab is expressed by the
to the cooling of the amplifier Specifications box.
IC. The cooling capacity offered (984062-1)
by a heatsink as specified in the
parts list is really only sufficient
for load impedances of 6 ohms COMPONENTS LIST
or more. Even if a heatsink with
a thermal resistance lower than Resistors:
1 K/W is employed, the ampli- R1,R3 = 1k
R2,R4,R5,R8,R9 = 22k
fier IC will cause a hot spot on
R6 = not fitted, see text
the heatsink surface where the R7 = 10, 5W
actual thermal resistance is
Specifications (8 /1 kHz unless otherwise noted) much higher locally than the Capacitors:
specification! With this in mind, C1 = 2F2, MKT (Siemens),
it is recommended to drop the pitch 5mm or 7.5mm
Input sensitivity: 1 Vrms (63 W into 8 ) supply voltage to about 30 V C2 = 220pF, 160V, axial, poly-
Output power, 8 : 63 W (THD <1%) if the amplifier is used to drive styrene (Siemens)
a 4-ohm load. Also, bear in C3 = 22F, 40V, radial
Output power, 4 : 108 W (THD <1%) mind that heatsink isolating C4 = 47pF, 160V, axial, poly-
Damping factor (8 ) >450 at 1 kHz materials like mica and even styrene (Siemens)
ceramics tend to raise the ther- C5 = 100F, 40V, radial
>170 at 20 kHz C6 = not fitted, see text
mal resistance by 0.2 K/W to
Slew rate: >10 V/s (rise time = 5 s) 0.4 K/W. The metal tab at the C7,C8 = 100nF
Power bandwidth: 8 Hz to 90 kHz C9,C10 = 2200F, 40V, radial,
back of the IC is at the negative max. diameter 16mm
Signal/noise ratio: 94 dBA (1 W into 8 ) supply potential.
Boucherot network C6-R6 is not Inductor:
normally required in this appli- L1 = 0.7H, 13 turns of 1.2-
Design: T. Giesberts comes in an 11 (staggered-) lead cation, and should be omitted mm diameter (#18 SWG)
According to National Semicon- non-isolated TO220 package. unless the amplifier is found to enamelled copper wire,
ductor, the LM3886 is a high- We put the LM3886T through be unstable as a result of an 10mm internal diameter,
performance 150W Audio Power its paces, using two earlier pub- application which is widely dif- wound around R7.
Amplifier with Mute. The per- lications (Ref. 1, 2) and an exist- ferent from the one shown here.
formance of the LM3886, say ing printed circuit board as a Populating the amplifier board Semiconductor:
NS, utilising its Self Peak basis. For test purposes, the pro- itself will be a piece of cake, and IC1 = LM3886T (National
Semiconductor)
Instantaneous Temperature totype of the amplifier was pow- most of the time required to
(Ke) (SPIKe) protection cir- ered by a stabilised 35-V sup- build the amplifier will go into Miscellaneous:
cuitry, puts in a class above dis- ply. A maximum undistorted drilling, cutting, mounting and Heatsink for IC1: specification
crete and hybrid amplifiers by output power of about 63 watts isolating the heatsink. The Rth < 1K/W
providing an inherently, dynam- into 8 ohms was obtained at a printed circuit board shown here Printed circuit board, order
ically protected Safe Operating drive level of 1 Vrms. Dropping is available ready-made through code 954083-1.
Area (SOA). The LM3886T the load impedance to 4 ohms the Publishers Readers Ser-

Elektor Electronics 7-8/98 17


References: 1995.
35V 1. LM3886 150W Audio Power 2. Single-chip 50 W AF Ampli-
Amplifier with Mute (Application fier, Elektor Electronics December
C7 C9
Note), Elektor Electronics May 1995.
zie tekst
* 100n 2200
40V
* see text C2
ROTKELE )C( C9 IC1
* voir texte R5

* siehe Text 22k C7

R2
R4 C4

R1
22k
+ R5
47p
0

R4
R3
R7
1
L1
* C8 C10
C4
C1
C3
R1 5 0H7
10

R6
1k
C2 R7
- C5 C1
C6

R8
22 IC1 3
10 R9 T
LM3886
220p
9 - +
7 954083-1
1-380459 LS1 MUTE
R2 R3 R6 LS+
MUTE 4
LS1
*
22k

1k

8
954083-1
8
LS
C3 C5 C6

22 100
*
40V 40V

R8 C8 C10
22k
MUTE 100n 2200
40V

R9
22k
(C) ELEKTOR
984062 - 11 35V
004

thrifty voltage regulator


Design: F. Hueber 1
9V 4V8
One of the drawbacks of a three- T1
pin voltage regulator is that the
input voltage needs to be
2.53 V higher than the output 8V4
R1 R2 C2 D1
voltage. This makes these inte- 4k7 6k8
grated regulators unsuitable for S1 330p
R3 D4*
D2
battery power supplies. If, for
2k2

instance, the output voltage is A B 7V5


T2 4V8
5 V, a 9 V battery could be dis- D3
5V1
charged to 7.5 V or thereabouts
only. On top of this, most of R4 0V7
C3
these regulators draw a current 820k
T3
of about 2 mA. Special low-drop BT1
47
versions sometimes offer a solu- 0V7 25V
tion, but they are not ideal R5
C1
either.
220

9V
The regulator described here
100
* see text
is rather thriftier: it draws a cur- 25V
rent of only 300 A and the dif- * voir texte
ference between its input and
output is only 100200 mV * siehe Text P1
In the circuit diagram, T1 is * zie tekst 10k
arranged as a series regulator,
which means that the difference T1 = BC558B/ T2,T3 = BC548B/
between input voltage and out- BC557B BC547B 984015-11
put voltage is limited to the tran-
sistors saturation potential.
Therefore, a 9 V battery can be ulator. variable reference voltage drops below a desired level, the
discharged to about 5 V, which Diodes D1-D2-D3, or a suit- source, which is used as the base potential of T3 also drops.
is quite an improvement on the able zener diode (D4), in con- (output-dependent) base poten- The transistor then conducts
situation with an integrated reg- junction with R5 and P1, form a tial of T3. If the output voltage less hard and its collector volt-

18 Elektor Electronics 7-8/98


References: 1995.
35V 1. LM3886 150W Audio Power 2. Single-chip 50 W AF Ampli-
Amplifier with Mute (Application fier, Elektor Electronics December
C7 C9
Note), Elektor Electronics May 1995.
zie tekst
* 100n 2200
40V
* see text C2
ROTKELE )C( C9 IC1
* voir texte R5

* siehe Text 22k C7

R2
R4 C4

R1
22k
+ R5
47p
0

R4
R3
R7
1
L1
* C8 C10
C4
C1
C3
R1 5 0H7
10

R6
1k
C2 R7
- C5 C1
C6

R8
22 IC1 3
10 R9 T
LM3886
220p
9 - +
7 954083-1
1-380459 LS1 MUTE
R2 R3 R6 LS+
MUTE 4
LS1
*
22k

1k

8
954083-1
8
LS
C3 C5 C6

22 100
*
40V 40V

R8 C8 C10
22k
MUTE 100n 2200
40V

R9
22k
(C) ELEKTOR
984062 - 11 35V
004

thrifty voltage regulator


Design: F. Hueber 1
9V 4V8
One of the drawbacks of a three- T1
pin voltage regulator is that the
input voltage needs to be
2.53 V higher than the output 8V4
R1 R2 C2 D1
voltage. This makes these inte- 4k7 6k8
grated regulators unsuitable for S1 330p
R3 D4*
D2
battery power supplies. If, for
2k2

instance, the output voltage is A B 7V5


T2 4V8
5 V, a 9 V battery could be dis- D3
5V1
charged to 7.5 V or thereabouts
only. On top of this, most of R4 0V7
C3
these regulators draw a current 820k
T3
of about 2 mA. Special low-drop BT1
47
versions sometimes offer a solu- 0V7 25V
tion, but they are not ideal R5
C1
either.
220

9V
The regulator described here
100
* see text
is rather thriftier: it draws a cur- 25V
rent of only 300 A and the dif- * voir texte
ference between its input and
output is only 100200 mV * siehe Text P1
In the circuit diagram, T1 is * zie tekst 10k
arranged as a series regulator,
which means that the difference T1 = BC558B/ T2,T3 = BC548B/
between input voltage and out- BC557B BC547B 984015-11
put voltage is limited to the tran-
sistors saturation potential.
Therefore, a 9 V battery can be ulator. variable reference voltage drops below a desired level, the
discharged to about 5 V, which Diodes D1-D2-D3, or a suit- source, which is used as the base potential of T3 also drops.
is quite an improvement on the able zener diode (D4), in con- (output-dependent) base poten- The transistor then conducts
situation with an integrated reg- junction with R5 and P1, form a tial of T3. If the output voltage less hard and its collector volt-

18 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

age rises. The base voltage of T2 the collector potential of T2 to 2


also rises, so that T1 is driven drop rapidly to 0 V, since T2 A A
harder. This results in the near- tries to make T1 conduct hard. T4 = BC558B/
R6 R6 BC557B 9V
instantaneous restoration of the The large drop in the collec-

22k

22k
output voltage. tor potential of T2 may be used IC1 1
T4 T4 4049
The design of the reference to drive a BATT-LOW indicator. 3 2
voltage source is clearly of para- This may be done in three ways 1
mount importance. The current as shown in Figure 2. R7a D5 R7a R7b 8
through the LEDs or the zener When network a is con-

82k

82k

2M2
diode is of the order of only nected between terminals A and R8a R8b
100 A. This means that the B, transistor T4 will normally be

270

10k
drop across a 5.1 V zener diode held cut off by divider R6-R7a. B B B
is only 4.3 V and across each If then the voltage at B drops 984015-12
LED, only about 1.43 V. For a suddenly, T4 conducts, where-
wanted output voltage of 4.8 V, upon D5 indicates that the bat-
the three LEDs proved very tery is nearly flat.
effective, whereas the zener did The network in b is similar damaged. The regulator can provide a
not. It may well be necessary, if to that in a, but is intended for a When the regulator has been current of up to about 25 mA.
a zener diode is used, to try one liquid-crystal display of BATT built, connect it to a variable With a fresh 9 V battery, the dis-
rated at 4.7 V. If, however, an LOW. The collector of T4 is power supply via a multimeter sipation of T1 does not exceed
output voltage of 5 V is wanted, linked to the IC that drives the set to the mA range and set P1 100 mW. If the input voltage is
it will be necessary to carefully decimal point and the BAT- roughly at its mid-position. Turn higher, it may be necessary to
select a zener diode. LOW segment of the display. P1 slowly until the desired out- mount the transistor on a suit-
When the battery voltage has Network c may be used if put voltage is obtained. able heat sink or replace it by a
dropped to a level where it is there is an unused inverter or If with an output voltage of power transistor, for instance, a
only marginally higher than the gate in the circuit to be pow- 4.8 V the regulator draws a cur- Type BD138.
wanted output voltage, T1 and ered. The high value of resistor rent of more than 250300 A, [985015]
T2 conduct hard. A further drop R7b prevents the internal pro- the three LEDs or zener diode
in the battery voltage will cause tection diodes of the IC being must be replaced.
005

two-wire temperature sensor


National Semiconductor age is applied to the signal line
application in the two-core cable via cou-
Remote temperature measure- pling capacitor C6.
R6 R5 R4
ments have to be linked by some 12V 6k8 6k8 6k8
The sensor contains a volt-
sort of cable to the relevant test age-doubling rectifier formed by
C9 C8 C7
instrument. Normally, this is a 8
D1-D2-C1-C2. This network
three-core cable: one core for IC2 200p 200p 200p converts the applied alternating
the signal and the other two for 4 voltage into a direct voltage.
the supply lines. If the link is 2
Resistor R2 isolates the output
required to be a two-core cable, 12V 1 from the load capacitance, while
IC2a
one of the supply lines and the IC2 = LM6218 3 choke L1 couples the output sig-
signal line have to be combined. LM45C nal of the sensor to the signal
This is possible with, for +VS 1
R7 line in the cable. Choke L1 and
instance, temperature sensors 3 GND
30k capacitor C2 protect the output
LM334 and LM335. However, VO 2
against the alternating voltage
5
these devices provide an output 7
present on the line.
top view
that is directly proportional to bovenaanzicht
6
IC2b At the other end of the link,
Ansicht von oben
absolute temperature and this is Vu du dessus R8
C6 network R3-L2-C4 forms a low-
not always a practical proposi- pass section that prevents the
10k

10n
tion. 2x 1N914 C1 alternating supply voltage from
If an output signal that is D1 10n
combining with the sensor out-
D2
directly proportional to the cel- L1 L2 put. Capacitor C5 prevents a
sius temperature scale is IC1 1 100mH 100mH direct current through R3, since
desired, the present circuit, +VS liaison bifilaire
two-wire line R3
this would attenuate the temper-
C3 R2
which uses a Type LM45 sensor, VO 2 ature-dependent voltage.
1k

1k tweedraads-verbinding
offers a good solution. The 100n LM45C The output load should have
GND
LM45 sensor is powered by an 3
C2 C4 C5 a high resistance, some 100 k
alternating voltage, while its out- 100n 100n 1
or even higher.
put is a direct voltage. The circuit draws a current
The supply to the sensor is 984025 - 11 of a few mA.
provided by a sine-wave gener- [984025]
ator, based on A1 and A2 (see
diagram). The alternating volt-

Elektor Electronics 7-8/98 19


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

age rises. The base voltage of T2 the collector potential of T2 to 2


also rises, so that T1 is driven drop rapidly to 0 V, since T2 A A
harder. This results in the near- tries to make T1 conduct hard. T4 = BC558B/
R6 R6 BC557B 9V
instantaneous restoration of the The large drop in the collec-

22k

22k
output voltage. tor potential of T2 may be used IC1 1
T4 T4 4049
The design of the reference to drive a BATT-LOW indicator. 3 2
voltage source is clearly of para- This may be done in three ways 1
mount importance. The current as shown in Figure 2. R7a D5 R7a R7b 8
through the LEDs or the zener When network a is con-

82k

82k

2M2
diode is of the order of only nected between terminals A and R8a R8b
100 A. This means that the B, transistor T4 will normally be

270

10k
drop across a 5.1 V zener diode held cut off by divider R6-R7a. B B B
is only 4.3 V and across each If then the voltage at B drops 984015-12
LED, only about 1.43 V. For a suddenly, T4 conducts, where-
wanted output voltage of 4.8 V, upon D5 indicates that the bat-
the three LEDs proved very tery is nearly flat.
effective, whereas the zener did The network in b is similar damaged. The regulator can provide a
not. It may well be necessary, if to that in a, but is intended for a When the regulator has been current of up to about 25 mA.
a zener diode is used, to try one liquid-crystal display of BATT built, connect it to a variable With a fresh 9 V battery, the dis-
rated at 4.7 V. If, however, an LOW. The collector of T4 is power supply via a multimeter sipation of T1 does not exceed
output voltage of 5 V is wanted, linked to the IC that drives the set to the mA range and set P1 100 mW. If the input voltage is
it will be necessary to carefully decimal point and the BAT- roughly at its mid-position. Turn higher, it may be necessary to
select a zener diode. LOW segment of the display. P1 slowly until the desired out- mount the transistor on a suit-
When the battery voltage has Network c may be used if put voltage is obtained. able heat sink or replace it by a
dropped to a level where it is there is an unused inverter or If with an output voltage of power transistor, for instance, a
only marginally higher than the gate in the circuit to be pow- 4.8 V the regulator draws a cur- Type BD138.
wanted output voltage, T1 and ered. The high value of resistor rent of more than 250300 A, [985015]
T2 conduct hard. A further drop R7b prevents the internal pro- the three LEDs or zener diode
in the battery voltage will cause tection diodes of the IC being must be replaced.
005

two-wire temperature sensor


National Semiconductor age is applied to the signal line
application in the two-core cable via cou-
Remote temperature measure- pling capacitor C6.
R6 R5 R4
ments have to be linked by some 12V 6k8 6k8 6k8
The sensor contains a volt-
sort of cable to the relevant test age-doubling rectifier formed by
C9 C8 C7
instrument. Normally, this is a 8
D1-D2-C1-C2. This network
three-core cable: one core for IC2 200p 200p 200p converts the applied alternating
the signal and the other two for 4 voltage into a direct voltage.
the supply lines. If the link is 2
Resistor R2 isolates the output
required to be a two-core cable, 12V 1 from the load capacitance, while
IC2a
one of the supply lines and the IC2 = LM6218 3 choke L1 couples the output sig-
signal line have to be combined. LM45C nal of the sensor to the signal
This is possible with, for +VS 1
R7 line in the cable. Choke L1 and
instance, temperature sensors 3 GND
30k capacitor C2 protect the output
LM334 and LM335. However, VO 2
against the alternating voltage
5
these devices provide an output 7
present on the line.
top view
that is directly proportional to bovenaanzicht
6
IC2b At the other end of the link,
Ansicht von oben
absolute temperature and this is Vu du dessus R8
C6 network R3-L2-C4 forms a low-
not always a practical proposi- pass section that prevents the
10k

10n
tion. 2x 1N914 C1 alternating supply voltage from
If an output signal that is D1 10n
combining with the sensor out-
D2
directly proportional to the cel- L1 L2 put. Capacitor C5 prevents a
sius temperature scale is IC1 1 100mH 100mH direct current through R3, since
desired, the present circuit, +VS liaison bifilaire
two-wire line R3
this would attenuate the temper-
C3 R2
which uses a Type LM45 sensor, VO 2 ature-dependent voltage.
1k

1k tweedraads-verbinding
offers a good solution. The 100n LM45C The output load should have
GND
LM45 sensor is powered by an 3
C2 C4 C5 a high resistance, some 100 k
alternating voltage, while its out- 100n 100n 1
or even higher.
put is a direct voltage. The circuit draws a current
The supply to the sensor is 984025 - 11 of a few mA.
provided by a sine-wave gener- [984025]
ator, based on A1 and A2 (see
diagram). The alternating volt-

Elektor Electronics 7-8/98 19


006 microgate logic
Design: K. Walraven keted under the name Microgate chips by the addition of 1G to
This magazine regularly pub- Logic. Although they are not the type number. For instance, a
lishes news about new families SOP-5 revolutionary, they offer several Type AHC1G00 is a single-gate

3.0 mm
of logic circuits. Last year, for (DBV) real advantages. Designers no logic 74AHC00, that is, a single
instance, attention was drawn to longer need to worry about gates NAND gate.
SOP-5
(DBV)

the AHC (advanced high-speed not being used. Also, it becomes The AHC series is further
CMOS) series. Logic circuits in 3.1 mm possible to locate the gate at a extended by much larger
this series are three times as fast 984016 - 11
more suitable space on a board devices to meet the require-
as similar circuits in the HC than quad gates. All this makes ments of 16-bit or 32-bit wide
(high-speed CMOS) series. An the devices more functional and buses. These chips have more
important benefit of the series only one gate and not four or six more compact, which improves gates than before, and are mar-
is that devices can work from as had become usual. Single- their EMC properties. The plac- keted as Widebus circuits. For
3.3 V and 5 V supplies. gate logic circuits are housed in ing of quad-gate or six-gate instance, a Type 74AHC16244
Later last year, Texas Instru- SOP-5 5-pin cases, which mea- devices on a board is almost is a dual 244, that is, a 16-bit
ments and Philips Semiconduc- sure only 33.1 mm (quad-gate invariably a compromise which data buffer.
tors brought out a number of circuits housed in makes signal lines unnecessar- More information on these
new, single-gate logic, devices TSSOP 14-pin cases occupy ily long. new circuits may be found on
in the AHC series. As the name 33.66 mm2). Microgate Logic devices are Internet page www.ti.com/-
indicates, these devices provide The new devices are mar- distinguished from normal AGC sc/docs/as1/lit.htm. [984016]
007

universal
lead-acid battery protector
1 TOP VIEW 2 F1 B
2x 1N4148
REFERENCE
OUTPUT 1 8 REFERENCE
FEEDBACK
P1 R4 R5
D1 D2
1N4148
*
100k

100k

OP AMP 220k
INPUT () 2 LM10(C) 7 V+ C4 D3 RE1
C1
OP AMP R1
INPUT (+) 3
6 OP AMP
100
OUTPUT
* 12V
470k

50V
10n
(>100)
V 4 5 BALANCE 7
8
R3
1 2 T1
IC1a RL1
BALANCE OUTPUT
REFERENCE
FEEDBACK V+
100k
IC1b
6
R8
*
2k2
5 6 8 7
3

intern. BD139
ref. R7
REFERENCE

2 R2 4 R6 100k R9
*
OUTPUT
INPUTS

S1 C2 C3
OP AMP REF AMP 1
10k

100k

2k2

3
47 22 B
REFERENCE 200mV 50V 50V

4 IC1 = LM10(C) 984020 - 11


LM10(C) V 984020 - 12 * zie tekst * see text * siehe Text * voir texte
Design: L. Lalic is intended to be placed op amp and a reference ampli- The supply voltage range of
Lead-acid batteries must not be between the battery and its load. fier. The pin out and circuit dia- the IC is 1.140 V and the
discharged deeply. In the best It decouples the load from the gram are shown in Figure 1. device draws a current of only
case, this leads to an irreversible battery when this is nearing the The IC has an integral volt- 270 A. Note that the Type
loss of capacity; in the worst discharged state. age reference source of 200 mV LM10CL cannot be used in this
case, the likelihood of serious, The circuit draws a current which is internally linked to the application since it is suitable for
irreparable damage is great. It not exceeding 1 mA and is read- non-inverting (+ve) input of a supply voltages of up to 7 V only.
is, therefore, rather odd that ily adapted for use with 6 V, reference amplifier. In the circuit diagram in
there are several circuits aimed 12 V, or 24 V lead-acid batteries. The integral op amp has an Figure 2, A1 is the reference
at protecting these batteries to It may be equipped with an auto- output stage that can be driven amplifier, which functions as
being overcharged, but hardly matic or a manual reset function almost up to the level of the sup- monitor of the battery voltage.
any to protect them against to override the decoupling of the ply voltage. This means that it The battery voltage is lowered
being discharged too deeply. load from the battery. can provide a current of by voltage divider R1-R2-P1 to
This situation is put right by The circuit is based on a 20 mA at a saturation voltage the level of the reference poten-
the protector described here. It Type LM10C that contains an of only 400 mV. tial of 200 mV. As long as the

28 Elektor Electronics 7-8/98


006 microgate logic
Design: K. Walraven keted under the name Microgate chips by the addition of 1G to
This magazine regularly pub- Logic. Although they are not the type number. For instance, a
lishes news about new families SOP-5 revolutionary, they offer several Type AHC1G00 is a single-gate

3.0 mm
of logic circuits. Last year, for (DBV) real advantages. Designers no logic 74AHC00, that is, a single
instance, attention was drawn to longer need to worry about gates NAND gate.
SOP-5
(DBV)

the AHC (advanced high-speed not being used. Also, it becomes The AHC series is further
CMOS) series. Logic circuits in 3.1 mm possible to locate the gate at a extended by much larger
this series are three times as fast 984016 - 11
more suitable space on a board devices to meet the require-
as similar circuits in the HC than quad gates. All this makes ments of 16-bit or 32-bit wide
(high-speed CMOS) series. An the devices more functional and buses. These chips have more
important benefit of the series only one gate and not four or six more compact, which improves gates than before, and are mar-
is that devices can work from as had become usual. Single- their EMC properties. The plac- keted as Widebus circuits. For
3.3 V and 5 V supplies. gate logic circuits are housed in ing of quad-gate or six-gate instance, a Type 74AHC16244
Later last year, Texas Instru- SOP-5 5-pin cases, which mea- devices on a board is almost is a dual 244, that is, a 16-bit
ments and Philips Semiconduc- sure only 33.1 mm (quad-gate invariably a compromise which data buffer.
tors brought out a number of circuits housed in makes signal lines unnecessar- More information on these
new, single-gate logic, devices TSSOP 14-pin cases occupy ily long. new circuits may be found on
in the AHC series. As the name 33.66 mm2). Microgate Logic devices are Internet page www.ti.com/-
indicates, these devices provide The new devices are mar- distinguished from normal AGC sc/docs/as1/lit.htm. [984016]
007

universal
lead-acid battery protector
1 TOP VIEW 2 F1 B
2x 1N4148
REFERENCE
OUTPUT 1 8 REFERENCE
FEEDBACK
P1 R4 R5
D1 D2
1N4148
*
100k

100k

OP AMP 220k
INPUT () 2 LM10(C) 7 V+ C4 D3 RE1
C1
OP AMP R1
INPUT (+) 3
6 OP AMP
100
OUTPUT
* 12V
470k

50V
10n
(>100)
V 4 5 BALANCE 7
8
R3
1 2 T1
IC1a RL1
BALANCE OUTPUT
REFERENCE
FEEDBACK V+
100k
IC1b
6
R8
*
2k2
5 6 8 7
3

intern. BD139
ref. R7
REFERENCE

2 R2 4 R6 100k R9
*
OUTPUT
INPUTS

S1 C2 C3
OP AMP REF AMP 1
10k

100k

2k2

3
47 22 B
REFERENCE 200mV 50V 50V

4 IC1 = LM10(C) 984020 - 11


LM10(C) V 984020 - 12 * zie tekst * see text * siehe Text * voir texte
Design: L. Lalic is intended to be placed op amp and a reference ampli- The supply voltage range of
Lead-acid batteries must not be between the battery and its load. fier. The pin out and circuit dia- the IC is 1.140 V and the
discharged deeply. In the best It decouples the load from the gram are shown in Figure 1. device draws a current of only
case, this leads to an irreversible battery when this is nearing the The IC has an integral volt- 270 A. Note that the Type
loss of capacity; in the worst discharged state. age reference source of 200 mV LM10CL cannot be used in this
case, the likelihood of serious, The circuit draws a current which is internally linked to the application since it is suitable for
irreparable damage is great. It not exceeding 1 mA and is read- non-inverting (+ve) input of a supply voltages of up to 7 V only.
is, therefore, rather odd that ily adapted for use with 6 V, reference amplifier. In the circuit diagram in
there are several circuits aimed 12 V, or 24 V lead-acid batteries. The integral op amp has an Figure 2, A1 is the reference
at protecting these batteries to It may be equipped with an auto- output stage that can be driven amplifier, which functions as
being overcharged, but hardly matic or a manual reset function almost up to the level of the sup- monitor of the battery voltage.
any to protect them against to override the decoupling of the ply voltage. This means that it The battery voltage is lowered
being discharged too deeply. load from the battery. can provide a current of by voltage divider R1-R2-P1 to
This situation is put right by The circuit is based on a 20 mA at a saturation voltage the level of the reference poten-
the protector described here. It Type LM10C that contains an of only 400 mV. tial of 200 mV. As long as the

28 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

battery voltage remains above switched off. This enables the arrangement ensures that when straightforward. Connect a vari-
the cell level of 1.831.85 V, the circuit to be reactuated again the battery voltage recovers after able power supply in place of
output of A1 (pin 1) is low. This quickly when necessary. the load has been decoupled, the battery with a multimeter set
is of no consequence, since the The high level at the output the protector is not reset auto- to the 20 V direct voltage range
inverting (ve) input of op amp of A2 causes T1 to conduct, so matically. Such a reset would parallel across its terminals.
A2 is held at half the supply that the relay is energized. The almost always be undesired, Adjust P1 until the relay opens
voltage by R4. impedance of the relay coil since as soon as the load would at a voltage of 5.5 V (6 V bat-
Op amp A2 is arranged as a should not exceed 100 . be reconnected, it would be tery); 11 V (12 V battery) or
Schmitt trigger with switching When the battery voltage uncoupled again. The result 22 V (24 V battery).
levels at 1/3 and 2/3 of the sup- drops below the critical level, would be an oscillatory process. The component values in the
ply voltage level via R5, R6 and the output of A1 changes from It is clear that a manual reset circuit diagram are for a 12 V
R7. The output of the op amp, low to high, whereupon the level is better and this is effected by battery version. In case of a 6 V
pin 6, should go high immedi- at the inverting input of A2 short-circuiting C2 briefly by battery, the value of R1 must be
ately the supply is switched on (pin 2) rises above the level of operating push-button switch S1. lowered to 220 k, that of R8 to
and remain so as long as the 2/3 the supply voltage. The out- Note that a reset also occurs 1.2 k, and that of P1 to
battery is not discharged. This is put of A2 goes low, T1 is cut off, when the supply is switched off 100 k. For a 24 V battery, the
arranged by C2, C3, D1 and D2. and the relay is deenergized, and then on again. If, neverthe- value of R1 must be increased to
Since the value of C3 is only whereupon the load is decou- less, an automatic reset is 1 M and that of R8 to 4.7 k.
half that of C2, the potential at pled from the battery. desired, this is easily arranged Finally, the voltage rating of
pin 2 rises more slowly than that Resistor R4 limits any volt- by the removal of R4. Be the relay coil must, of course, be
at pin 3. The output of A2 thus age variations at pin 2 of A2 to warned, however, that this the same as the nominal battery
goes high and remains so. the upper half of the supply volt- makes sense only if the charging voltage. [R. Lalic 984020]
Diodes D1 and D2 ensure age. This means that when the of the battery is started when the
that C2 and C3 are discharged output of the op amp goes low, it auto reset occurs.
rapidly after the supply is stays so until a reset. This Calibrating the circuit is
008

dc-dc converter

9V

C6 C7
10

R1
470 16V 100n

R2
1k

8 4
7 R
DIS
R3 IC1 C3 9V
33k

D2
3
OUT
6 TLC
THR 555 100
2 TR 10V
CV
5 1
C1 C2 D1 C4 C5

1n 10n 1000 100n


16V

2x BAT85 984027 - 11

This design is based on the cel- circuit requiring a symmetrical COMPONENTS LIST C2 = 10nF
ebrated 555 timer IC, and supply rails. C3 = 100F 10V radial
changes a positive voltage of 9 V The TLC555 is a CMOS ver- Resistors: C4 = 1000F 16V radial
into a negative one. A low-power sion of the older bipolar NE555. R1 = 10 C5,C7 = 100nF
R2 = 1k C6 = 470F 16V radial
dc-dc converter like the one If you can not get hold of a
R3 = 33k
shown here may be required TLC555, you may use the 7555 Semiconductors:
sometimes when working with instead. Here, the TLC555 is Capacitors: D1,D2 = BAT85
battery-powered equipment or connected up as an astable mul- C1 = 1nF IC1 = TLC555 or 7555
older ICs that somehow call for tivibrator with R2, R3 and C1
a low-current negative bias. The acting as the frequency deter-
circuit is also fine if you want to mining components. The oscil- 20 kHz. The squarewave pro- factor of about 0.5 and is fed to a
use a single battery to power a lation frequency is about duced by the oscillator has duty cascade rectifier, C3-D1-D2-C4.

Elektor Electronics 7-8/98 29


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

battery voltage remains above switched off. This enables the arrangement ensures that when straightforward. Connect a vari-
the cell level of 1.831.85 V, the circuit to be reactuated again the battery voltage recovers after able power supply in place of
output of A1 (pin 1) is low. This quickly when necessary. the load has been decoupled, the battery with a multimeter set
is of no consequence, since the The high level at the output the protector is not reset auto- to the 20 V direct voltage range
inverting (ve) input of op amp of A2 causes T1 to conduct, so matically. Such a reset would parallel across its terminals.
A2 is held at half the supply that the relay is energized. The almost always be undesired, Adjust P1 until the relay opens
voltage by R4. impedance of the relay coil since as soon as the load would at a voltage of 5.5 V (6 V bat-
Op amp A2 is arranged as a should not exceed 100 . be reconnected, it would be tery); 11 V (12 V battery) or
Schmitt trigger with switching When the battery voltage uncoupled again. The result 22 V (24 V battery).
levels at 1/3 and 2/3 of the sup- drops below the critical level, would be an oscillatory process. The component values in the
ply voltage level via R5, R6 and the output of A1 changes from It is clear that a manual reset circuit diagram are for a 12 V
R7. The output of the op amp, low to high, whereupon the level is better and this is effected by battery version. In case of a 6 V
pin 6, should go high immedi- at the inverting input of A2 short-circuiting C2 briefly by battery, the value of R1 must be
ately the supply is switched on (pin 2) rises above the level of operating push-button switch S1. lowered to 220 k, that of R8 to
and remain so as long as the 2/3 the supply voltage. The out- Note that a reset also occurs 1.2 k, and that of P1 to
battery is not discharged. This is put of A2 goes low, T1 is cut off, when the supply is switched off 100 k. For a 24 V battery, the
arranged by C2, C3, D1 and D2. and the relay is deenergized, and then on again. If, neverthe- value of R1 must be increased to
Since the value of C3 is only whereupon the load is decou- less, an automatic reset is 1 M and that of R8 to 4.7 k.
half that of C2, the potential at pled from the battery. desired, this is easily arranged Finally, the voltage rating of
pin 2 rises more slowly than that Resistor R4 limits any volt- by the removal of R4. Be the relay coil must, of course, be
at pin 3. The output of A2 thus age variations at pin 2 of A2 to warned, however, that this the same as the nominal battery
goes high and remains so. the upper half of the supply volt- makes sense only if the charging voltage. [R. Lalic 984020]
Diodes D1 and D2 ensure age. This means that when the of the battery is started when the
that C2 and C3 are discharged output of the op amp goes low, it auto reset occurs.
rapidly after the supply is stays so until a reset. This Calibrating the circuit is
008

dc-dc converter

9V

C6 C7
10

R1
470 16V 100n

R2
1k

8 4
7 R
DIS
R3 IC1 C3 9V
33k

D2
3
OUT
6 TLC
THR 555 100
2 TR 10V
CV
5 1
C1 C2 D1 C4 C5

1n 10n 1000 100n


16V

2x BAT85 984027 - 11

This design is based on the cel- circuit requiring a symmetrical COMPONENTS LIST C2 = 10nF
ebrated 555 timer IC, and supply rails. C3 = 100F 10V radial
changes a positive voltage of 9 V The TLC555 is a CMOS ver- Resistors: C4 = 1000F 16V radial
into a negative one. A low-power sion of the older bipolar NE555. R1 = 10 C5,C7 = 100nF
R2 = 1k C6 = 470F 16V radial
dc-dc converter like the one If you can not get hold of a
R3 = 33k
shown here may be required TLC555, you may use the 7555 Semiconductors:
sometimes when working with instead. Here, the TLC555 is Capacitors: D1,D2 = BAT85
battery-powered equipment or connected up as an astable mul- C1 = 1nF IC1 = TLC555 or 7555
older ICs that somehow call for tivibrator with R2, R3 and C1
a low-current negative bias. The acting as the frequency deter-
circuit is also fine if you want to mining components. The oscil- 20 kHz. The squarewave pro- factor of about 0.5 and is fed to a
use a single battery to power a lation frequency is about duced by the oscillator has duty cascade rectifier, C3-D1-D2-C4.

Elektor Electronics 7-8/98 29


Note that type BAT85 Schottky age is smoothed by C4, while C5 1
984027-1
-720489 984027-1
R2
diodes are used because of their serves to eliminate higher-fre- R1
R3

+
lower forward voltage drop of quency noise.
about 0.4 V as against 0.7 V for The input supply voltage to

0
IC1
silicon diodes like the ubiqui- the TLC555 is decoupled by

C7
C6

C3
C1
tous 1N4148. The rectified volt- R1, C6 and C7. Current con-

-
D1
C2
C4 C5 D2
Battery voltage: 9.1 V

RL IS V Efficiency sumption of the converter will For easy incorporation in


depend largely on the load con- equipment in which space is at
inf. 4.8 mA 8.89 V 0% nected to the 9 V output. As a premium, the converter is best
evidenced by the measurement built on the miniature circuit
6.8 k 6.0 mA 8.3 V 18% data in the table, the output board whose artwork is shown
should be capable of supplying here (board not available ready-
1.5 k 9.55 mA 7.2 V 40% up to about 10 mA before the made).
680 13.43 mA 5.93 V 42%
output voltage plummets. (984027-1)
009

overload protection
Design: T. Giesberts K1 K2 uring T1 as a diode reduces the
R1
Although the protection circuit 150 number of components needed
is fairly simple, it forms an D3 D1 to a minimum: not even a volt-
effective guard against overload age divider or potentiometer is
4x
of the input of amplifiers and 1N4148 required.
loudspeakers. Why these inputs Measurements on the pro-
may need protection now that D4 D2 T1 totype show that the input signal
line levels have been standard- remains virtually undistorted at
ized is because there are signal levels up to 700 mV r.m.s. At the
sources on the market that gen- BC617
threshold of 1 V r.m.s., the dis-
erate outputs of several volts tortion is about 0.02%. Above
instead of the standardized 1 V this level, limiting is well-
984042 - 11
r.m.s. Also, in some applica- defined. The peak output volt-
tions, the loudspeaker signal is age of the circuit is about 3 V
applied to the line output of a series resistor and zener diode. values, which gives rise to with an input voltage of about
separate amplifier via a voltage Here, however, the zener is con- unwanted distortion. 13 V r.m.s. If the limiting level
divider, in which case the levels structed from a small rectifier The constructed zener makes is required to be slightly higher,
may be well above 1 V r.m.s. and a transistor, since commer- a well-defined limitation possi- consideration should be given to
The diagram shows a circuit cial zeners appear to start con- ble and does not affect signals replacing T1 by three or four
that resembles the familiar ducting way below their rated below the critical level. Config- cascaded diodes. [984042]
010

rear light afterglow


(For bicycles with a dynamo) traffic safety it is advisable (in ods of time only, a battery is not the bulb). The current is set with
Design: H. Bonekamp UK obligatory) for cyclists to required: a large value capaci- series resistor R1.
This article is of interest only to have the rear lamp of their bicy- tor, say, 1 F, is quite sufficient. The LEDs are shunted by the
readers whose bicycle lights are cle to light even when they are As the diagram shows, in the 1 F capacitor, C1. Since the
powered by a dynamo. The laws at standstill. In principle, it is present circuit, the normal rear working voltage of this compo-
on bicycle lights in the United not very difficult to modify the light bulb is replaced by two nent is only 5.5 V, it is, in spite of
Kingdom are stricter than in existing rear light with afterglow: series-connected bright LEDs, its high value, physically small.
other countries and a dynamo is, all this needs is a large enough D2 and D3. These are clearly An effective regulator is
therefore, a rarity in this country. energy reservoir. Since the after- visible with a current of only needed to limit the dynamo volt-
From the point of view of glow is required for short peri- 6 mA (compared with 50 mA of age adequately. Normal regula-

30 Elektor Electronics 7-8/98


Note that type BAT85 Schottky age is smoothed by C4, while C5 1
984027-1
-720489 984027-1
R2
diodes are used because of their serves to eliminate higher-fre- R1
R3

+
lower forward voltage drop of quency noise.
about 0.4 V as against 0.7 V for The input supply voltage to

0
IC1
silicon diodes like the ubiqui- the TLC555 is decoupled by

C7
C6

C3
C1
tous 1N4148. The rectified volt- R1, C6 and C7. Current con-

-
D1
C2
C4 C5 D2
Battery voltage: 9.1 V

RL IS V Efficiency sumption of the converter will For easy incorporation in


depend largely on the load con- equipment in which space is at
inf. 4.8 mA 8.89 V 0% nected to the 9 V output. As a premium, the converter is best
evidenced by the measurement built on the miniature circuit
6.8 k 6.0 mA 8.3 V 18% data in the table, the output board whose artwork is shown
should be capable of supplying here (board not available ready-
1.5 k 9.55 mA 7.2 V 40% up to about 10 mA before the made).
680 13.43 mA 5.93 V 42%
output voltage plummets. (984027-1)
009

overload protection
Design: T. Giesberts K1 K2 uring T1 as a diode reduces the
R1
Although the protection circuit 150 number of components needed
is fairly simple, it forms an D3 D1 to a minimum: not even a volt-
effective guard against overload age divider or potentiometer is
4x
of the input of amplifiers and 1N4148 required.
loudspeakers. Why these inputs Measurements on the pro-
may need protection now that D4 D2 T1 totype show that the input signal
line levels have been standard- remains virtually undistorted at
ized is because there are signal levels up to 700 mV r.m.s. At the
sources on the market that gen- BC617
threshold of 1 V r.m.s., the dis-
erate outputs of several volts tortion is about 0.02%. Above
instead of the standardized 1 V this level, limiting is well-
984042 - 11
r.m.s. Also, in some applica- defined. The peak output volt-
tions, the loudspeaker signal is age of the circuit is about 3 V
applied to the line output of a series resistor and zener diode. values, which gives rise to with an input voltage of about
separate amplifier via a voltage Here, however, the zener is con- unwanted distortion. 13 V r.m.s. If the limiting level
divider, in which case the levels structed from a small rectifier The constructed zener makes is required to be slightly higher,
may be well above 1 V r.m.s. and a transistor, since commer- a well-defined limitation possi- consideration should be given to
The diagram shows a circuit cial zeners appear to start con- ble and does not affect signals replacing T1 by three or four
that resembles the familiar ducting way below their rated below the critical level. Config- cascaded diodes. [984042]
010

rear light afterglow


(For bicycles with a dynamo) traffic safety it is advisable (in ods of time only, a battery is not the bulb). The current is set with
Design: H. Bonekamp UK obligatory) for cyclists to required: a large value capaci- series resistor R1.
This article is of interest only to have the rear lamp of their bicy- tor, say, 1 F, is quite sufficient. The LEDs are shunted by the
readers whose bicycle lights are cle to light even when they are As the diagram shows, in the 1 F capacitor, C1. Since the
powered by a dynamo. The laws at standstill. In principle, it is present circuit, the normal rear working voltage of this compo-
on bicycle lights in the United not very difficult to modify the light bulb is replaced by two nent is only 5.5 V, it is, in spite of
Kingdom are stricter than in existing rear light with afterglow: series-connected bright LEDs, its high value, physically small.
other countries and a dynamo is, all this needs is a large enough D2 and D3. These are clearly An effective regulator is
therefore, a rarity in this country. energy reservoir. Since the after- visible with a current of only needed to limit the dynamo volt-
From the point of view of glow is required for short peri- 6 mA (compared with 50 mA of age adequately. Normal regula-

30 Elektor Electronics 7-8/98


Note that type BAT85 Schottky age is smoothed by C4, while C5 1
984027-1
-720489 984027-1
R2
diodes are used because of their serves to eliminate higher-fre- R1
R3

+
lower forward voltage drop of quency noise.
about 0.4 V as against 0.7 V for The input supply voltage to

0
IC1
silicon diodes like the ubiqui- the TLC555 is decoupled by

C7
C6

C3
C1
tous 1N4148. The rectified volt- R1, C6 and C7. Current con-

-
D1
C2
C4 C5 D2
Battery voltage: 9.1 V

RL IS V Efficiency sumption of the converter will For easy incorporation in


depend largely on the load con- equipment in which space is at
inf. 4.8 mA 8.89 V 0% nected to the 9 V output. As a premium, the converter is best
evidenced by the measurement built on the miniature circuit
6.8 k 6.0 mA 8.3 V 18% data in the table, the output board whose artwork is shown
should be capable of supplying here (board not available ready-
1.5 k 9.55 mA 7.2 V 40% up to about 10 mA before the made).
680 13.43 mA 5.93 V 42%
output voltage plummets. (984027-1)
009

overload protection
Design: T. Giesberts K1 K2 uring T1 as a diode reduces the
R1
Although the protection circuit 150 number of components needed
is fairly simple, it forms an D3 D1 to a minimum: not even a volt-
effective guard against overload age divider or potentiometer is
4x
of the input of amplifiers and 1N4148 required.
loudspeakers. Why these inputs Measurements on the pro-
may need protection now that D4 D2 T1 totype show that the input signal
line levels have been standard- remains virtually undistorted at
ized is because there are signal levels up to 700 mV r.m.s. At the
sources on the market that gen- BC617
threshold of 1 V r.m.s., the dis-
erate outputs of several volts tortion is about 0.02%. Above
instead of the standardized 1 V this level, limiting is well-
984042 - 11
r.m.s. Also, in some applica- defined. The peak output volt-
tions, the loudspeaker signal is age of the circuit is about 3 V
applied to the line output of a series resistor and zener diode. values, which gives rise to with an input voltage of about
separate amplifier via a voltage Here, however, the zener is con- unwanted distortion. 13 V r.m.s. If the limiting level
divider, in which case the levels structed from a small rectifier The constructed zener makes is required to be slightly higher,
may be well above 1 V r.m.s. and a transistor, since commer- a well-defined limitation possi- consideration should be given to
The diagram shows a circuit cial zeners appear to start con- ble and does not affect signals replacing T1 by three or four
that resembles the familiar ducting way below their rated below the critical level. Config- cascaded diodes. [984042]
010

rear light afterglow


(For bicycles with a dynamo) traffic safety it is advisable (in ods of time only, a battery is not the bulb). The current is set with
Design: H. Bonekamp UK obligatory) for cyclists to required: a large value capaci- series resistor R1.
This article is of interest only to have the rear lamp of their bicy- tor, say, 1 F, is quite sufficient. The LEDs are shunted by the
readers whose bicycle lights are cle to light even when they are As the diagram shows, in the 1 F capacitor, C1. Since the
powered by a dynamo. The laws at standstill. In principle, it is present circuit, the normal rear working voltage of this compo-
on bicycle lights in the United not very difficult to modify the light bulb is replaced by two nent is only 5.5 V, it is, in spite of
Kingdom are stricter than in existing rear light with afterglow: series-connected bright LEDs, its high value, physically small.
other countries and a dynamo is, all this needs is a large enough D2 and D3. These are clearly An effective regulator is
therefore, a rarity in this country. energy reservoir. Since the after- visible with a current of only needed to limit the dynamo volt-
From the point of view of glow is required for short peri- 6 mA (compared with 50 mA of age adequately. Normal regula-

30 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

tors cannot be used here, since IC1 tifier D1 and buffer capacitor
they do not work at low voltages. LP2950CZ5.0 D2, D3 = C2. Diode D1 is a Schottky type
Moreover, such a device would super-luminosity-LED to keep any losses low impor-
D1 R1
discharge the capacitor when tant for this application, because
270
the cycle is at standstill. Fortu- the ground connection via the
D2
nately, there is a low-drop type BYV40-10 bicycle frame usually causes
that meets the present require- some losses as well.
C2 C1
ments nicely: the Type D3
The value of buffer capacitor
LP2950CZ5.0. 1000 1F
has been chosen well above
Of course, the dynamo out- 25V 5V5 requirements to ensure that C1 is
put voltage needs to be rectified charged during the negative half
before it can be applied to the cycles of the dynamo voltage.
regulator. In the present circuit, 984045 - 11 [984045]
this is effected by half-wave rec-
011

chip card as security key


Design: P. Lay
The chip card consists of a 9V
9V' 9V'
small board on which an inte-
grated circuit, IC1, forms the 14

key. The logic circuit for the IC1


key is hard-wired. The inputs 9V 7

and outputs of this circuit are IC1a


x
1
terminated in a socket, St1. It is, 14 16 16
1 3
IC1c IC1d
2
of course, advisable to use a sur- IC2 IC3 IC4 8
10
12
11
face-mount device (SMD) for 7 8 8 9 1 13 1
5
IC1 (as well as for the other ICs 6 1 4

in the circuit) and a micro-


IC1b
miniature or miniature type of IC1 = 4001
socket (and matching plug,
Bu1), to keep the safety key as
small as possible. x
An identical circuit, based
on IC2, must be built for the 9
COMP

lock into which the key fits. 11


0
7 CTR14
9V
3
Added to this are 4-bit com- 14 Q IC3 5 IC4 R1
4 R3
parator IC3, and 14-stage binary 1
3
4
5
470k D1 RE1
470

counter IC4. 2
P<Q P<Q
7 6
6
!G
RCX
11
R2
The comparator likens the 3
P=Q P=Q
6 14
7 + RX
10
47k D2
CT
logic circuit in the lock with that 4
P>Q P>Q
5 13
8 CX
9
10 15 C1 1N4148
in the key. To that end, both cir- 0 9
12 1 12
cuits are fed with a 4-bit signal 13 P 2
11 CT=0
10n
by the binary counter. If the two 15
4063
3
12
4060
3 13
match, the output of IC3 goes T1
high and switches on transistor R4
4k7
T1, whereupon the relay is ener-
C2
gized and diode D2 lights. Any BC547B
short, l9w-level pulses caused 1 16V
IC2a
by the difference in transit times 1
3
are suppressed by capacitor C2. 2 1 IC2c IC2d
8 12
It is, of course, essential that 9 1
10
13 1
11
the hard-wiring in the key and 5
4
1
lock are identical. It is advisable 6

to protect the wiring in the key IC2b IC2 = 4001


from prying eyes by removing 984047 - 11
the typecoding from IC1 before
it is wired in, and additionally to
use opaque casting resin for
embedding the key. son between the key and lock is voltage of 515 V, but care ing state a current wholly deter-
In the circuit as shown, there not 100 per cent right. This may should be taken to ensure that mined by the relay.
is a remote possibility that, be obviated by shunting R4 with the rated voltage for the relay is [984047]
owing to a spurious voltage a Type 1N4148 diode (anode to available. In the quiescent state,
across R4-C2, the relay is ener- base of T1). the circuits draw a current of
gized even though the compari- The circuits need a supply about 1 mA, and in the operat-

Elektor Electronics 7-8/98 31


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

tors cannot be used here, since IC1 tifier D1 and buffer capacitor
they do not work at low voltages. LP2950CZ5.0 D2, D3 = C2. Diode D1 is a Schottky type
Moreover, such a device would super-luminosity-LED to keep any losses low impor-
D1 R1
discharge the capacitor when tant for this application, because
270
the cycle is at standstill. Fortu- the ground connection via the
D2
nately, there is a low-drop type BYV40-10 bicycle frame usually causes
that meets the present require- some losses as well.
C2 C1
ments nicely: the Type D3
The value of buffer capacitor
LP2950CZ5.0. 1000 1F
has been chosen well above
Of course, the dynamo out- 25V 5V5 requirements to ensure that C1 is
put voltage needs to be rectified charged during the negative half
before it can be applied to the cycles of the dynamo voltage.
regulator. In the present circuit, 984045 - 11 [984045]
this is effected by half-wave rec-
011

chip card as security key


Design: P. Lay
The chip card consists of a 9V
9V' 9V'
small board on which an inte-
grated circuit, IC1, forms the 14

key. The logic circuit for the IC1


key is hard-wired. The inputs 9V 7

and outputs of this circuit are IC1a


x
1
terminated in a socket, St1. It is, 14 16 16
1 3
IC1c IC1d
2
of course, advisable to use a sur- IC2 IC3 IC4 8
10
12
11
face-mount device (SMD) for 7 8 8 9 1 13 1
5
IC1 (as well as for the other ICs 6 1 4

in the circuit) and a micro-


IC1b
miniature or miniature type of IC1 = 4001
socket (and matching plug,
Bu1), to keep the safety key as
small as possible. x
An identical circuit, based
on IC2, must be built for the 9
COMP

lock into which the key fits. 11


0
7 CTR14
9V
3
Added to this are 4-bit com- 14 Q IC3 5 IC4 R1
4 R3
parator IC3, and 14-stage binary 1
3
4
5
470k D1 RE1
470

counter IC4. 2
P<Q P<Q
7 6
6
!G
RCX
11
R2
The comparator likens the 3
P=Q P=Q
6 14
7 + RX
10
47k D2
CT
logic circuit in the lock with that 4
P>Q P>Q
5 13
8 CX
9
10 15 C1 1N4148
in the key. To that end, both cir- 0 9
12 1 12
cuits are fed with a 4-bit signal 13 P 2
11 CT=0
10n
by the binary counter. If the two 15
4063
3
12
4060
3 13
match, the output of IC3 goes T1
high and switches on transistor R4
4k7
T1, whereupon the relay is ener-
C2
gized and diode D2 lights. Any BC547B
short, l9w-level pulses caused 1 16V
IC2a
by the difference in transit times 1
3
are suppressed by capacitor C2. 2 1 IC2c IC2d
8 12
It is, of course, essential that 9 1
10
13 1
11
the hard-wiring in the key and 5
4
1
lock are identical. It is advisable 6

to protect the wiring in the key IC2b IC2 = 4001


from prying eyes by removing 984047 - 11
the typecoding from IC1 before
it is wired in, and additionally to
use opaque casting resin for
embedding the key. son between the key and lock is voltage of 515 V, but care ing state a current wholly deter-
In the circuit as shown, there not 100 per cent right. This may should be taken to ensure that mined by the relay.
is a remote possibility that, be obviated by shunting R4 with the rated voltage for the relay is [984047]
owing to a spurious voltage a Type 1N4148 diode (anode to available. In the quiescent state,
across R4-C2, the relay is ener- base of T1). the circuits draw a current of
gized even though the compari- The circuits need a supply about 1 mA, and in the operat-

Elektor Electronics 7-8/98 31


012 electronic spirit-level
1g

984038 - 11

Design: H. Bonekamp
This is an electronic equivalent
of the traditional builders spirit- D10
<<<
level using a small glass tube 8V4 5V
D9
nearly filled with alcohol but D1
IC1 <<
3
containing an air-bubble whose 1N4001 78L05 C5
D8
9 10
position allows you to test a sur- MODE L10 <
11
face for horizontality. 1 100n
R1
5
SIG
L9
12
D7
The heart of the circuit is an C4 2 9 IC3 L8 =
DC1 VOUT 1M8 6 13
S1 L7
ADXL05 gravity force (g) sen- 7
RHI
14 D6
==
REFOUT L6
sor from Analog Devices (1,2). 3
DC2 VIN
10
R4
L5
15
22n IC2
This sensor will detect a relative D5
3k9

C1 C2 R2 16
7 8 L4 =
ST VPR 47k LM3914 17
BT1 R3 L3
100 100n ADXL05 8 18
D4
16V REFADJ L2 >
270k

4 6
ODC VREF
COMPONENTS LIST 4
RLO L1
1
D3
9V >>
5
Resistors: 2
C3 D2
P1
R1 = 1M8 >>>
20k
R2 = 47k 22n MT
R3 = 270k 984038 - 12
R4 = 3k9
Hsensor = 200mV/g
P1 = 20k multiturn preset, Hamp = R1/R2 = 1.8/0.047 = 38.3
horizontal HLM3914 = 8 LED/V
H = Hsensor Hamp HLM3914 = 0.2 38.3 8 = 61.3 LED/g
1/H = 16.3mg/LED
Capacitors: /LED = arcsin(1/H) ~ 1 degree/LED
C1 = 100F 16V radial
C2 = 100nF Sibatit (Siemens)
C3,C4 = 22nF MKT (Siemens) gravitational force of 0 g when buffer is set to supply a gain The output of the ADXL05,
C5 = 100nF MKT (Siemens) positioned horizontally. The sen- equal to (R1/R2) or about 38.3 pin 9, drives the signal input of
sor has a sensitivity of about times, so that the standard sen- an LM3914 ADC annex LED-
Semiconductors: 200 mV/g. Its internal output sitivity is increased to 7.66 V/g. bar driver, IC3. The one resistor
D1 = 1N4001
D2,D10 = LED, red, high effi-
ciency
D3,D4,D8,D9 = LED, yellow, 984038-1 P1 <<< << < = == = > >> >>>
high efficiency R1 R3
C1 C2
D5,D6,D7 = LED, green, high S1 D2 D3 D4 D5 D6 D7 D8 D9 D10
D1

efficiency R2
H2

H1

+ IC3
IC1 = 78L05 IC2 R4
IC2 = ADXL05JH (Analog BATT1 C5
Devices)
- IC1 C3 C4 tnemgeS )C( 1-830489

IC3 = LM3914N

Miscellaneous: 984038-1 (C) Segment


S1 = on/off switch, 1 make
contact.
9-V PP3 battery with clip-on
connector and wires.
Printed circuit board, order
code 984038-1.

36 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

connected to the LM3914, R4, per degree Celsius at unity gain, sensor is held exactly horizontal again the error with respect
determines that the full-scale the rate of change (temperature (0-g potential). The preset, P1, to D6 should be equal but in the
LED, D10, lights at an input drift gradient) at the output is then adjusted until D6 lights. opposite direction. The all-solid
voltage of 1.25 V. Consequently, equals 15 mV/C for a gain of Assuming that the sensor is on a state spirit-level draws a current
the LED bar has a step size of 38.3 times. This, in turn, equals fairly horizontal surface, you of about 20 mA from a 9-volt
0.125 V, while the sensitivity of a gradient of 8 C per LED, so then turn the instrument 180 PP3 battery. (984038-1)
the spirit-level works out at the circuit has to be calibrated degrees. The number of active
16.32 mg per LED, or one LED before use. LEDs which is then shifted to References:
for each degree of slant angle. Preset P1 and resistor R3 the left or to the right is divided 1. Accelerometer Type ADXL05
It should be noted that the double as a network for offset by two, and P1 is carefully (Application Note), Elektor Elec-
operation of the circuit is compensation (approx. 0.3 V) adjusted until this number is tronics April 1997.
affected by temperature varia- as well as for ensuring that the shifted around D6. Check by 2. Electronic Accelerometer, Elek-
tions. The drift being 0.4 mV centre LED, D6, lights when the turning the circuit 180 degrees tor Electronics June 1998.
013

low-drop 5 V regulator
Linear Technology Application 6V C2 D1 5V the input voltage, Vin, and acts
L1
A 4-cell pack is a convenient, 27H
as a level shift between the two
popular battery size. Alkaline 100 1N5817 220mA sections. The switch toggles
manganese batteries are sold in between ground and Vin+Vout,
retail stores in packs of four, 6 5 while the junction of L2, C2 and
L2
which usually provide sufficient BT1 V IN I LIM D1 toggles between Vin and
energy to keep battery replace- 2
SELECT SW
7 Vout+Vd1.
ment frequency at a reasonable C1
IC1
Efficiency is directly related
4x 1V5 27H
level. 100 3
LT1300 to the quality of the capacitors
4
Generating 5 V from four SHDN SENSE and inductors used. Better qual-
batteries is, however, a bit tricky. GND PGND
C3 ity capacitors are more expen-
A fresh set of four batteries has 1 8
sive. Better quality inductors
100
a terminal voltage of 6.4 V, but need not cost more, but nor-
at the end of their life, this volt- mally take up more space. The
age is down to 3.2 V. Therefore, 984017 - 11 Sanyo capacitors used in the
the voltage needs to be stepped prototype (C1C3) specify a
GND 1 8 PGND
up or down, depending on the LT1300 maximum ESR (effective series
state of the batteries. SEL 2 7 SW resistance) of 0.045 and a
A flyback topology with a SHDN 3 6 V IN maximum ripple current rating
costly, custom designed trans- of 2.1 A. The inductors used
SENSE 4 5 I LIM
former could be used, but the specify a maximum DCR (direct
circuit in the diagram gets current resistance) of 0.058 .
around the problem by using a Worst-case r.m.s. current
flying capacitor together with a shutdown. step-up section, and inductor through capacitor C2 occurs at
second inductor. The circuit can be divided L2, diode D1 and capacitor C3 minimum input voltage, that is,
The circuit also isolates the conceptually into boost and form the buck or step-down sec- 400 mA at full load with an
input from the output, allowing buck sections. Inductor L1 and tion. input voltage of 3 V.
the output to go to 0 V during switch IC1 comprise the boost or Capacitor C2 is charged to [984017]
014

liquid-crystal display (LCD) tester


Design: K. Walraven needed, and a small tester to through at right or near-right ization of the incident light. In
Liquid-crystal displays come in all unravel the terminals may, there- angles, these tracks cannot be this way, segments may appear
sorts and sizes, and this applies fore, be found very handy. seen. At certain viewing angles, light or dark and give rise to the
also to their pinouts. In fact, many A liquid-crystal display con- they become visible, however. display of lines or shapes.
of these displays cannot be used sists of two thin sheets of glass, The space between the A segment may be tested by
properly without the manufactur- the facing surfaces of which sheets of glass is filled with a applying an alternating voltage
ers documentation. But, of course, have been given thin conducting liquid that, stimulated by an of a few volts across it. Note that
this can never be found when it is tracks. When the glass is looked electric voltage, alters the polar- the application of a direct volt-

Elektor Electronics 7-8/98 37


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

connected to the LM3914, R4, per degree Celsius at unity gain, sensor is held exactly horizontal again the error with respect
determines that the full-scale the rate of change (temperature (0-g potential). The preset, P1, to D6 should be equal but in the
LED, D10, lights at an input drift gradient) at the output is then adjusted until D6 lights. opposite direction. The all-solid
voltage of 1.25 V. Consequently, equals 15 mV/C for a gain of Assuming that the sensor is on a state spirit-level draws a current
the LED bar has a step size of 38.3 times. This, in turn, equals fairly horizontal surface, you of about 20 mA from a 9-volt
0.125 V, while the sensitivity of a gradient of 8 C per LED, so then turn the instrument 180 PP3 battery. (984038-1)
the spirit-level works out at the circuit has to be calibrated degrees. The number of active
16.32 mg per LED, or one LED before use. LEDs which is then shifted to References:
for each degree of slant angle. Preset P1 and resistor R3 the left or to the right is divided 1. Accelerometer Type ADXL05
It should be noted that the double as a network for offset by two, and P1 is carefully (Application Note), Elektor Elec-
operation of the circuit is compensation (approx. 0.3 V) adjusted until this number is tronics April 1997.
affected by temperature varia- as well as for ensuring that the shifted around D6. Check by 2. Electronic Accelerometer, Elek-
tions. The drift being 0.4 mV centre LED, D6, lights when the turning the circuit 180 degrees tor Electronics June 1998.
013

low-drop 5 V regulator
Linear Technology Application 6V C2 D1 5V the input voltage, Vin, and acts
L1
A 4-cell pack is a convenient, 27H
as a level shift between the two
popular battery size. Alkaline 100 1N5817 220mA sections. The switch toggles
manganese batteries are sold in between ground and Vin+Vout,
retail stores in packs of four, 6 5 while the junction of L2, C2 and
L2
which usually provide sufficient BT1 V IN I LIM D1 toggles between Vin and
energy to keep battery replace- 2
SELECT SW
7 Vout+Vd1.
ment frequency at a reasonable C1
IC1
Efficiency is directly related
4x 1V5 27H
level. 100 3
LT1300 to the quality of the capacitors
4
Generating 5 V from four SHDN SENSE and inductors used. Better qual-
batteries is, however, a bit tricky. GND PGND
C3 ity capacitors are more expen-
A fresh set of four batteries has 1 8
sive. Better quality inductors
100
a terminal voltage of 6.4 V, but need not cost more, but nor-
at the end of their life, this volt- mally take up more space. The
age is down to 3.2 V. Therefore, 984017 - 11 Sanyo capacitors used in the
the voltage needs to be stepped prototype (C1C3) specify a
GND 1 8 PGND
up or down, depending on the LT1300 maximum ESR (effective series
state of the batteries. SEL 2 7 SW resistance) of 0.045 and a
A flyback topology with a SHDN 3 6 V IN maximum ripple current rating
costly, custom designed trans- of 2.1 A. The inductors used
SENSE 4 5 I LIM
former could be used, but the specify a maximum DCR (direct
circuit in the diagram gets current resistance) of 0.058 .
around the problem by using a Worst-case r.m.s. current
flying capacitor together with a shutdown. step-up section, and inductor through capacitor C2 occurs at
second inductor. The circuit can be divided L2, diode D1 and capacitor C3 minimum input voltage, that is,
The circuit also isolates the conceptually into boost and form the buck or step-down sec- 400 mA at full load with an
input from the output, allowing buck sections. Inductor L1 and tion. input voltage of 3 V.
the output to go to 0 V during switch IC1 comprise the boost or Capacitor C2 is charged to [984017]
014

liquid-crystal display (LCD) tester


Design: K. Walraven needed, and a small tester to through at right or near-right ization of the incident light. In
Liquid-crystal displays come in all unravel the terminals may, there- angles, these tracks cannot be this way, segments may appear
sorts and sizes, and this applies fore, be found very handy. seen. At certain viewing angles, light or dark and give rise to the
also to their pinouts. In fact, many A liquid-crystal display con- they become visible, however. display of lines or shapes.
of these displays cannot be used sists of two thin sheets of glass, The space between the A segment may be tested by
properly without the manufactur- the facing surfaces of which sheets of glass is filled with a applying an alternating voltage
ers documentation. But, of course, have been given thin conducting liquid that, stimulated by an of a few volts across it. Note that
this can never be found when it is tracks. When the glass is looked electric voltage, alters the polar- the application of a direct volt-

Elektor Electronics 7-8/98 37


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

connected to the LM3914, R4, per degree Celsius at unity gain, sensor is held exactly horizontal again the error with respect
determines that the full-scale the rate of change (temperature (0-g potential). The preset, P1, to D6 should be equal but in the
LED, D10, lights at an input drift gradient) at the output is then adjusted until D6 lights. opposite direction. The all-solid
voltage of 1.25 V. Consequently, equals 15 mV/C for a gain of Assuming that the sensor is on a state spirit-level draws a current
the LED bar has a step size of 38.3 times. This, in turn, equals fairly horizontal surface, you of about 20 mA from a 9-volt
0.125 V, while the sensitivity of a gradient of 8 C per LED, so then turn the instrument 180 PP3 battery. (984038-1)
the spirit-level works out at the circuit has to be calibrated degrees. The number of active
16.32 mg per LED, or one LED before use. LEDs which is then shifted to References:
for each degree of slant angle. Preset P1 and resistor R3 the left or to the right is divided 1. Accelerometer Type ADXL05
It should be noted that the double as a network for offset by two, and P1 is carefully (Application Note), Elektor Elec-
operation of the circuit is compensation (approx. 0.3 V) adjusted until this number is tronics April 1997.
affected by temperature varia- as well as for ensuring that the shifted around D6. Check by 2. Electronic Accelerometer, Elek-
tions. The drift being 0.4 mV centre LED, D6, lights when the turning the circuit 180 degrees tor Electronics June 1998.
013

low-drop 5 V regulator
Linear Technology Application 6V C2 D1 5V the input voltage, Vin, and acts
L1
A 4-cell pack is a convenient, 27H
as a level shift between the two
popular battery size. Alkaline 100 1N5817 220mA sections. The switch toggles
manganese batteries are sold in between ground and Vin+Vout,
retail stores in packs of four, 6 5 while the junction of L2, C2 and
L2
which usually provide sufficient BT1 V IN I LIM D1 toggles between Vin and
energy to keep battery replace- 2
SELECT SW
7 Vout+Vd1.
ment frequency at a reasonable C1
IC1
Efficiency is directly related
4x 1V5 27H
level. 100 3
LT1300 to the quality of the capacitors
4
Generating 5 V from four SHDN SENSE and inductors used. Better qual-
batteries is, however, a bit tricky. GND PGND
C3 ity capacitors are more expen-
A fresh set of four batteries has 1 8
sive. Better quality inductors
100
a terminal voltage of 6.4 V, but need not cost more, but nor-
at the end of their life, this volt- mally take up more space. The
age is down to 3.2 V. Therefore, 984017 - 11 Sanyo capacitors used in the
the voltage needs to be stepped prototype (C1C3) specify a
GND 1 8 PGND
up or down, depending on the LT1300 maximum ESR (effective series
state of the batteries. SEL 2 7 SW resistance) of 0.045 and a
A flyback topology with a SHDN 3 6 V IN maximum ripple current rating
costly, custom designed trans- of 2.1 A. The inductors used
SENSE 4 5 I LIM
former could be used, but the specify a maximum DCR (direct
circuit in the diagram gets current resistance) of 0.058 .
around the problem by using a Worst-case r.m.s. current
flying capacitor together with a shutdown. step-up section, and inductor through capacitor C2 occurs at
second inductor. The circuit can be divided L2, diode D1 and capacitor C3 minimum input voltage, that is,
The circuit also isolates the conceptually into boost and form the buck or step-down sec- 400 mA at full load with an
input from the output, allowing buck sections. Inductor L1 and tion. input voltage of 3 V.
the output to go to 0 V during switch IC1 comprise the boost or Capacitor C2 is charged to [984017]
014

liquid-crystal display (LCD) tester


Design: K. Walraven needed, and a small tester to through at right or near-right ization of the incident light. In
Liquid-crystal displays come in all unravel the terminals may, there- angles, these tracks cannot be this way, segments may appear
sorts and sizes, and this applies fore, be found very handy. seen. At certain viewing angles, light or dark and give rise to the
also to their pinouts. In fact, many A liquid-crystal display con- they become visible, however. display of lines or shapes.
of these displays cannot be used sists of two thin sheets of glass, The space between the A segment may be tested by
properly without the manufactur- the facing surfaces of which sheets of glass is filled with a applying an alternating voltage
ers documentation. But, of course, have been given thin conducting liquid that, stimulated by an of a few volts across it. Note that
this can never be found when it is tracks. When the glass is looked electric voltage, alters the polar- the application of a direct volt-

Elektor Electronics 7-8/98 37


age will damage the display irre- the voltage and the angle at
versibly: the resulting current 13 14 9V which the display is clearly leg-
will remove the tracks. The ible. The tester draws a current

OSC

V+
5
AST
alternating voltage should con- 6
T R2
not exceeding 1 mA.
tain not even a tiny direct volt- C1
2n2
1
CX 10k The test voltage must at all
IC1
age component. An alternating R1 Q
10
times be connected between the
2 4047
current also removes part of the 100k RX
11
common terminal, that is, the
tracks when the current flows in 3
Q R3 back plane, and one of the seg-
10k
one direction, but restores it 4
RCC
ments. If it is not known which
AST
when the current flows in the 8 of the terminals is the back

GND
RST

RET
+T
opposite direction. plane, connect one probe of the
The tester described here 9 7 12 tester to a segment and the other
consists of a square-wave gener- 984023-11
successively to all the other ter-
ator that produces an absolutely minals until the segment
symmetrical alternating voltage becomes visible. Note, however,
without any d.c. component. The 4047 used in the tester has this will be a battery, but a vari- that there are LCDs with more
Most logic oscillators are inca- a binary scaler at its output that able power supply has advan- than one back plane. Therefore,
pable of producing a square- guarantees symmetry. tages. It shows at which voltage if a segment does not become
wave signal: they generate rec- The oscillator frequency is the display works satisfactorily visible, investigate whether the
tangular waveforms whose duty about 1 kHz. It may be powered and also that there is a clear display has a second back plane
cycle hovers around the 50%. from a 39 V source. Normally, relationship between the level of terminal. [984023]
015

exposure timer
for UV light box
IC4a
5V 5V 5V
1 DIV2 3 CTRDIV10/ 0 3
+ IC7b
5 DEC 2 9 IC3e 11
0 1 S4
R7 DIV5 C8 = 22: t = 3s
4 6 IC6 4 10
1M + CT 2 C8 = 10: t = 10s 13
7 14 7 11 & 1
C14 2 & + 3
10 START 12 10
4
1n 2 13 1
CT=0 5 R3
CTR 5
4017 6 IC3a C8 IC3b
100k

6
6 22
7 5 S 1 1 2 3 4
15 9 D 1 1
L TR1 CT=0 8
11 IC5a 63V
U+ 5V 9 3 2
12 C
CT5 R R5
IC1 D7
1M

4
7805
B1 1N4148

CTRDIV10/ 0 3 IC3f
N DEC
C1 C2 C3 2 D2
1 12 13
IC8 4 2 1 1
9V / 3VA3 B80C1500 100n 100n
2
3
VTR 3109 470 14 7 1N4148
25V & + 3 4
10 5 S1
4 IC3c IC3d
13 1 6
5 13 5 6 9 8
5 1 1
4017 6
7
R1 6
7 8
150k

re1 15 9
CT=0 8 9 X1
1W 11 10 R6
9 11 12
C9 12 10k
CT5
sec x 1 C7
100n
450V 10n
U+
L-Sw CTRDIV10/ 0 3
DEC 2
1
IC9 4 2 1
2 R2
3
14 7 4
& 3
1k

2x + 10 5 S2 IC7a D1 Re1
UV-TL 4 2
1N4148 13 1 6
D6 5 13 3 D3
5 1 D8
4017 6
7 4 &
N 6
D5 7 8 5 1N4148 1N4148
15 9
5V 5V CT=0 8 9
R10 11 10
9 11 12 5V
100k

12 T1
IC4b CT5 R4
14 CTR sec x 10 C10 47k
CT=0 8
9 S 13 D4 2N2219
D 1 63V
15 DIV2 13
+ IC5b R11 R8
11 11
C
12 1N4148
100k

100k

DIV5 0
12 10 R CTRDIV10/ 3
+ CT 0
9 10 DEC 2
2 1
IC2 4 2 1
2
3
14 7 4
5V & 3
+ 10 5 S3 5V
4
13 1 6
5 13
5 C12 16 16 16 16
14 C6 16 14 C13 14 C11 4017 6
7
6 IC2 IC6 IC8 IC9
IC3 IC4 IC5 IC7 7 8 100n
15 9 8 8 8 8
7 100n 8 7 100n 7 100n CT=0 8 9 IC3 = 40106
11 10
9 11 12 IC4 = 74HC390
12 IC5 = 4013
CT5
min x 1 IC7 = 4082 984069 - 11

38 Elektor Electronics 7-8/98


age will damage the display irre- the voltage and the angle at
versibly: the resulting current 13 14 9V which the display is clearly leg-
will remove the tracks. The ible. The tester draws a current

OSC

V+
5
AST
alternating voltage should con- 6
T R2
not exceeding 1 mA.
tain not even a tiny direct volt- C1
2n2
1
CX 10k The test voltage must at all
IC1
age component. An alternating R1 Q
10
times be connected between the
2 4047
current also removes part of the 100k RX
11
common terminal, that is, the
tracks when the current flows in 3
Q R3 back plane, and one of the seg-
10k
one direction, but restores it 4
RCC
ments. If it is not known which
AST
when the current flows in the 8 of the terminals is the back

GND
RST

RET
+T
opposite direction. plane, connect one probe of the
The tester described here 9 7 12 tester to a segment and the other
consists of a square-wave gener- 984023-11
successively to all the other ter-
ator that produces an absolutely minals until the segment
symmetrical alternating voltage becomes visible. Note, however,
without any d.c. component. The 4047 used in the tester has this will be a battery, but a vari- that there are LCDs with more
Most logic oscillators are inca- a binary scaler at its output that able power supply has advan- than one back plane. Therefore,
pable of producing a square- guarantees symmetry. tages. It shows at which voltage if a segment does not become
wave signal: they generate rec- The oscillator frequency is the display works satisfactorily visible, investigate whether the
tangular waveforms whose duty about 1 kHz. It may be powered and also that there is a clear display has a second back plane
cycle hovers around the 50%. from a 39 V source. Normally, relationship between the level of terminal. [984023]
015

exposure timer
for UV light box
IC4a
5V 5V 5V
1 DIV2 3 CTRDIV10/ 0 3
+ IC7b
5 DEC 2 9 IC3e 11
0 1 S4
R7 DIV5 C8 = 22: t = 3s
4 6 IC6 4 10
1M + CT 2 C8 = 10: t = 10s 13
7 14 7 11 & 1
C14 2 & + 3
10 START 12 10
4
1n 2 13 1
CT=0 5 R3
CTR 5
4017 6 IC3a C8 IC3b
100k

6
6 22
7 5 S 1 1 2 3 4
15 9 D 1 1
L TR1 CT=0 8
11 IC5a 63V
U+ 5V 9 3 2
12 C
CT5 R R5
IC1 D7
1M

4
7805
B1 1N4148

CTRDIV10/ 0 3 IC3f
N DEC
C1 C2 C3 2 D2
1 12 13
IC8 4 2 1 1
9V / 3VA3 B80C1500 100n 100n
2
3
VTR 3109 470 14 7 1N4148
25V & + 3 4
10 5 S1
4 IC3c IC3d
13 1 6
5 13 5 6 9 8
5 1 1
4017 6
7
R1 6
7 8
150k

re1 15 9
CT=0 8 9 X1
1W 11 10 R6
9 11 12
C9 12 10k
CT5
sec x 1 C7
100n
450V 10n
U+
L-Sw CTRDIV10/ 0 3
DEC 2
1
IC9 4 2 1
2 R2
3
14 7 4
& 3
1k

2x + 10 5 S2 IC7a D1 Re1
UV-TL 4 2
1N4148 13 1 6
D6 5 13 3 D3
5 1 D8
4017 6
7 4 &
N 6
D5 7 8 5 1N4148 1N4148
15 9
5V 5V CT=0 8 9
R10 11 10
9 11 12 5V
100k

12 T1
IC4b CT5 R4
14 CTR sec x 10 C10 47k
CT=0 8
9 S 13 D4 2N2219
D 1 63V
15 DIV2 13
+ IC5b R11 R8
11 11
C
12 1N4148
100k

100k

DIV5 0
12 10 R CTRDIV10/ 3
+ CT 0
9 10 DEC 2
2 1
IC2 4 2 1
2
3
14 7 4
5V & 3
+ 10 5 S3 5V
4
13 1 6
5 13
5 C12 16 16 16 16
14 C6 16 14 C13 14 C11 4017 6
7
6 IC2 IC6 IC8 IC9
IC3 IC4 IC5 IC7 7 8 100n
15 9 8 8 8 8
7 100n 8 7 100n 7 100n CT=0 8 9 IC3 = 40106
11 10
9 11 12 IC4 = 74HC390
12 IC5 = 4013
CT5
min x 1 IC7 = 4082 984069 - 11

38 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Design: R. Veltkamp 10 Hz by IC4 (which means that relay contacts switch on the light seconds. If this time is found too
Although the timer was the circuit can be used only with box. short, it may be lengthened by
designed specifically for use 50 Hz mains supplies). At the same time, the level at increasing the value of capaci-
with an ultra-violet-light box, it When the supply voltage is the Q-output of IC5 makes the tor C8.
may, if course, be used for other switched on, a reset pulse is reset inputs of all counter ICs Optionally, a light-emitting
purposes as well. Note, however, applied to bistable (flip-flop) low and counting commences. diode may be connected in par-
that the maximum time that can IC5 via C10 and D4. This makes When the counter position set allel with the relay to give an
be set is 10 minutes with a reso- the Q-output of IC5 high, so that with S1S3 is reached, the out- optical indication that the light
lution of 1 second. counters IC2, IC4, IC6, IC8, and put of IC7 goes high and box is switched on.
The time is set with three IC9 are reset in the quiescent bistable IC5 is reset again. Its The circuit draws a modest
selectors: S3 for the minutes, S2 state. Q-output goes low, whereupon current, so that a 2.3 VA mains
for tens of seconds, and S1 for When start button switch S4 the relay is de-energized. transformer is specified is m ore
seconds. is pressed, IC5 is set and its Q- Simultaneously, an oscillator than adequate.
The frequency of the mains output then energizes the relay based on IC3 is actuated and [984069]
supply voltage is scaled down to via transistor T1, whereupon the drives buzzer Bz1 for about three
016

simple function generator

12V
Brief parameters
Provides triangle-wave, sawtooth
or rectangular signal
Waveform variable independently
P4
of frequency (triangle wave and 4 C1

sawtooth) IC1
D1 R1 470k
11 10
Duty cycle of rectangular signal 16V 1k
R3
10
C3 47k A2
can be set independently of fre- 1N4148 8
IC1c
9
quency P2 P3
2n2
MKT
6
1k 100k 7
Applications D2 R2 IC1b
5
Test and measurement 1k

Pulse-width control 2 1N4148


1
IC1a
3
12
Design: U. Kunz A1
14
R4 IC1d
Simple triangle-wave generators C2 47k
13
IC1 = TL084
have a weakness in that the P1
P5
waveform of their output signal 10k 10
16V
normally cannot be modified. 470k
The circuit presented here
makes it possible to smoothly
984048 - 11
alter the waveform of a linearly
rising and steeply trailing saw-
tooth signal through a symmet-
rical triangle-wave to a slowly by amplifier IC1d to a level that grator capacitor C3 different small piece of prototyping
trailing, steeply rising linear allows the full output voltage charging and discharge times. board.
sawtooth. The wanted waveform range of the operational ampli- This arrangement enables the The circuit draws a current
may be selected independently fier to be used. output signal at A1 and the duty of not more than 12 mA.
of the frequency, which can also Op amp IC1a provides a sta- cycle of the rectangular wave
be varied uniformly from 0.2 Hz ble virtual earth, whose level is signal at A2 to be varied. Summary of preset action:
to 8 kHz. At the same time, a set to half the supply voltage Varying the amplification P1 sets virtual earth to a level
rectangular signal with variable with P1. factor with P5 has no effect on equal to Ucc/2;
duty cycle (also independent of The smooth setting of the fre- the frequency set with P2. P2 sets the frequency;
frequency) is available at the quency is made possible by The slope of the signal P3 sets the waveform;
rectangular-signal output of the feedback of part of the output of edges, the transient responses, P4 sets the hysteresis of the
circuit. the comparator to the input of and the output voltage range comparator (frequency and
The circuit consists of inte- the integrator via P2. This pre- (rail-to-rail or with some voltage amplitude of the triangle-
grator IC1b, whose output is set is usually not provided in drop) depend on the type of wave signal)
applied to comparator IC1c. The standard triangle-wave genera- op amp used. The TL084 used P5 sets the amplification of the
output of the comparator is a tors. in the prototype offers a good triangle-wave and sawtooth
rectangular signal Network D1-R1-D2-R2-P3 compromise between price and signals.
The output of IC1b is raised makes it possible to give inte- meeting the wanted parameters. [984048]
The circuit is best built on a

Elektor Electronics 7-8/98 39


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Design: R. Veltkamp 10 Hz by IC4 (which means that relay contacts switch on the light seconds. If this time is found too
Although the timer was the circuit can be used only with box. short, it may be lengthened by
designed specifically for use 50 Hz mains supplies). At the same time, the level at increasing the value of capaci-
with an ultra-violet-light box, it When the supply voltage is the Q-output of IC5 makes the tor C8.
may, if course, be used for other switched on, a reset pulse is reset inputs of all counter ICs Optionally, a light-emitting
purposes as well. Note, however, applied to bistable (flip-flop) low and counting commences. diode may be connected in par-
that the maximum time that can IC5 via C10 and D4. This makes When the counter position set allel with the relay to give an
be set is 10 minutes with a reso- the Q-output of IC5 high, so that with S1S3 is reached, the out- optical indication that the light
lution of 1 second. counters IC2, IC4, IC6, IC8, and put of IC7 goes high and box is switched on.
The time is set with three IC9 are reset in the quiescent bistable IC5 is reset again. Its The circuit draws a modest
selectors: S3 for the minutes, S2 state. Q-output goes low, whereupon current, so that a 2.3 VA mains
for tens of seconds, and S1 for When start button switch S4 the relay is de-energized. transformer is specified is m ore
seconds. is pressed, IC5 is set and its Q- Simultaneously, an oscillator than adequate.
The frequency of the mains output then energizes the relay based on IC3 is actuated and [984069]
supply voltage is scaled down to via transistor T1, whereupon the drives buzzer Bz1 for about three
016

simple function generator

12V
Brief parameters
Provides triangle-wave, sawtooth
or rectangular signal
Waveform variable independently
P4
of frequency (triangle wave and 4 C1

sawtooth) IC1
D1 R1 470k
11 10
Duty cycle of rectangular signal 16V 1k
R3
10
C3 47k A2
can be set independently of fre- 1N4148 8
IC1c
9
quency P2 P3
2n2
MKT
6
1k 100k 7
Applications D2 R2 IC1b
5
Test and measurement 1k

Pulse-width control 2 1N4148


1
IC1a
3
12
Design: U. Kunz A1
14
R4 IC1d
Simple triangle-wave generators C2 47k
13
IC1 = TL084
have a weakness in that the P1
P5
waveform of their output signal 10k 10
16V
normally cannot be modified. 470k
The circuit presented here
makes it possible to smoothly
984048 - 11
alter the waveform of a linearly
rising and steeply trailing saw-
tooth signal through a symmet-
rical triangle-wave to a slowly by amplifier IC1d to a level that grator capacitor C3 different small piece of prototyping
trailing, steeply rising linear allows the full output voltage charging and discharge times. board.
sawtooth. The wanted waveform range of the operational ampli- This arrangement enables the The circuit draws a current
may be selected independently fier to be used. output signal at A1 and the duty of not more than 12 mA.
of the frequency, which can also Op amp IC1a provides a sta- cycle of the rectangular wave
be varied uniformly from 0.2 Hz ble virtual earth, whose level is signal at A2 to be varied. Summary of preset action:
to 8 kHz. At the same time, a set to half the supply voltage Varying the amplification P1 sets virtual earth to a level
rectangular signal with variable with P1. factor with P5 has no effect on equal to Ucc/2;
duty cycle (also independent of The smooth setting of the fre- the frequency set with P2. P2 sets the frequency;
frequency) is available at the quency is made possible by The slope of the signal P3 sets the waveform;
rectangular-signal output of the feedback of part of the output of edges, the transient responses, P4 sets the hysteresis of the
circuit. the comparator to the input of and the output voltage range comparator (frequency and
The circuit consists of inte- the integrator via P2. This pre- (rail-to-rail or with some voltage amplitude of the triangle-
grator IC1b, whose output is set is usually not provided in drop) depend on the type of wave signal)
applied to comparator IC1c. The standard triangle-wave genera- op amp used. The TL084 used P5 sets the amplification of the
output of the comparator is a tors. in the prototype offers a good triangle-wave and sawtooth
rectangular signal Network D1-R1-D2-R2-P3 compromise between price and signals.
The output of IC1b is raised makes it possible to give inte- meeting the wanted parameters. [984048]
The circuit is best built on a

Elektor Electronics 7-8/98 39


017 infra-red receiver
Design: T. Giesberts 5V signal is rectified with a time
This very simple infra-red R1 R4
constant that is long enough to

47

470k
receiver is intended to form an ensure good smoothing, so that
T1
infra-red remote control system C2 darlington T1 is open for as long
with the simple infra-red trans- C1
as the received signal lasts.
10n
mitter described elsewhere in A drawback of this simple

470k
BC516
this issue. 220 25V system is that it may pick up
The system does not use any R3 signals transmitted by another
kind of coding or decoding, but IC1 2 infra-red (RC5) controller. In
the carrier of the transmitter is 3
D1 R2 this case, only the envelopes of
modified in a simple manner to 2k2
the pulse trains would appear at
provide a constant switching sig- BAT85 the output of T1. This effect may,
1
nal. Since the receive module, SFH506-36
of course, be used intentionally.
IC1, switches from low to high For instance, the receiver may
(in the quiescent state, the out- be used to drive an SLB0587
put is high) when the carrier is 984050 - 11
dimmer. Practice has shown that
received for more than 200 mil- the setting of the SLB0587 is
liseconds, the carrier is trans- the output of the receiver that frequency used in the system is not affected by the RC5 pulses.
mitted in the form of short pulse has a duty cycle which is just 36 kHz, so that the output fre- The receiver draws a current
trains. This results in a pulse at larger than 12.5%. The carrier quency of IC1 is 281.25 Hz. This of about 0.5 mA. [984050]
018

Celsius thermometer
National Semiconductor the adj pin, the zero point can
1mA
Application be shifted as desired.
LM385 R3
The circuit of the Celsius ther- Calibration is best done by
1k

mometer in the diagram is based using a good domestic ther-


M1
on the well-known Type LM334 mometer as reference. Start by
from National Semiconductor. S1 short-circuiting IC2 and adjust-
R1
This IC is a sensor that provides 0 - 100A ing P1 until the reading of meter
8k2

a current which is directly pro- adj V (0 - 100 C) M1 shows a current value


portional to the temperature in V+ numerically equal to the ambi-
kelvin (K). Unfortunately, this is ent temperature plus 273. If,
a quantity that is not suitable for BT1 P2 IC1 say, the room temperature is 25
use in most practical applica- 1k V+ C, adjust P1 until the meter
tions. In the circuit, therefore, LM334
adj reads 298 A. Then, remove the
the sensor is set to 1 A K1 3V V short-circuit from IC2 and adjust
with P1 and the offset of 273 K V+ IC2 P1
LM334 P2 until the meter reads a cur-
removed with P2. This renders adj
100 rent whose numerical value is
the output voltage of the sensor R2
equal to the room temperature,
directly proportional to the tem- that is, 25 A.
220

perature in degrees Celsius ( C) V+ V V LM385 The circuit draws a current


adj -2.5
and this makes the circuit suit- not exceeding 1 mA, so using
able for a great many applica- 984067 - 11
two AA size (AM3, MN1500,
tions (since 1 K = 1 C). LR6, SP/HP7) batteries as
Circuit IC2 is arranged as a power source will give a life of a
2.5 V reference voltage source. is determined by the resistance earth. If the earth is made vir- couple of years.
The current setting of the sensor between the adj(ust) pin and tual by raising the potential at [984067]

Elektor Electronics 7-8/98 41


017 infra-red receiver
Design: T. Giesberts 5V signal is rectified with a time
This very simple infra-red R1 R4
constant that is long enough to

47

470k
receiver is intended to form an ensure good smoothing, so that
T1
infra-red remote control system C2 darlington T1 is open for as long
with the simple infra-red trans- C1
as the received signal lasts.
10n
mitter described elsewhere in A drawback of this simple

470k
BC516
this issue. 220 25V system is that it may pick up
The system does not use any R3 signals transmitted by another
kind of coding or decoding, but IC1 2 infra-red (RC5) controller. In
the carrier of the transmitter is 3
D1 R2 this case, only the envelopes of
modified in a simple manner to 2k2
the pulse trains would appear at
provide a constant switching sig- BAT85 the output of T1. This effect may,
1
nal. Since the receive module, SFH506-36
of course, be used intentionally.
IC1, switches from low to high For instance, the receiver may
(in the quiescent state, the out- be used to drive an SLB0587
put is high) when the carrier is 984050 - 11
dimmer. Practice has shown that
received for more than 200 mil- the setting of the SLB0587 is
liseconds, the carrier is trans- the output of the receiver that frequency used in the system is not affected by the RC5 pulses.
mitted in the form of short pulse has a duty cycle which is just 36 kHz, so that the output fre- The receiver draws a current
trains. This results in a pulse at larger than 12.5%. The carrier quency of IC1 is 281.25 Hz. This of about 0.5 mA. [984050]
018

Celsius thermometer
National Semiconductor the adj pin, the zero point can
1mA
Application be shifted as desired.
LM385 R3
The circuit of the Celsius ther- Calibration is best done by
1k

mometer in the diagram is based using a good domestic ther-


M1
on the well-known Type LM334 mometer as reference. Start by
from National Semiconductor. S1 short-circuiting IC2 and adjust-
R1
This IC is a sensor that provides 0 - 100A ing P1 until the reading of meter
8k2

a current which is directly pro- adj V (0 - 100 C) M1 shows a current value


portional to the temperature in V+ numerically equal to the ambi-
kelvin (K). Unfortunately, this is ent temperature plus 273. If,
a quantity that is not suitable for BT1 P2 IC1 say, the room temperature is 25
use in most practical applica- 1k V+ C, adjust P1 until the meter
tions. In the circuit, therefore, LM334
adj reads 298 A. Then, remove the
the sensor is set to 1 A K1 3V V short-circuit from IC2 and adjust
with P1 and the offset of 273 K V+ IC2 P1
LM334 P2 until the meter reads a cur-
removed with P2. This renders adj
100 rent whose numerical value is
the output voltage of the sensor R2
equal to the room temperature,
directly proportional to the tem- that is, 25 A.
220

perature in degrees Celsius ( C) V+ V V LM385 The circuit draws a current


adj -2.5
and this makes the circuit suit- not exceeding 1 mA, so using
able for a great many applica- 984067 - 11
two AA size (AM3, MN1500,
tions (since 1 K = 1 C). LR6, SP/HP7) batteries as
Circuit IC2 is arranged as a power source will give a life of a
2.5 V reference voltage source. is determined by the resistance earth. If the earth is made vir- couple of years.
The current setting of the sensor between the adj(ust) pin and tual by raising the potential at [984067]

Elektor Electronics 7-8/98 41


019
doorbell-controlled
burglar deterrent light
hope, will trick potential burglars next MMV, IC2b, is used to cre-
into believing that someone is ate the lamp-on period, which
about to answer the door by turn- is also adjustable (P2). An indi-
ing on a lamp after a short delay. cator LED, D4, is provided to
The length of the delay is check the relay activity.
adjustable between about 5 and The only unconventional thing
125 seconds. Likewise, the on about the power supply is that it
time of the lamp is adjustable exploits the fact that the small 9-
between 25 and 600 s. volt transformer easily supplies
The circuit was designed for 15 volts. This circumstance
easy connection to an existing should allow a low-power 12-
doorbell switch, provided this is volt relay to be used without
part of a common-or-garden 8- problems, the unregulated volt-
volt AC or DC doorbell circuit. age dropping to about 10 V
The input of the circuit is sim- when the relay pulls in.
ply connected in parallel with In case the doorbell voltage is
the doorbell switch. A relay is smaller than about 8 volts, the
used at the output of the circuit value of R1 may have to be
so that a lamp, exterior or in the decreased. If the doorbell is DC-
hallway, is easily connected up. controlled, then the + connec-
Pressing the doorbell causes tion of the doorbell switch
capacitor C1 to be charged to a should go to the anode (+ side)
level exceeding the 2.5-V of D1. Here, too, the value of R1
switching threshold set up for may be decreased if necessary.
comparator IC1. As a result, the The circuit board is designed for
comparator output swings high incorporation into a mains adap-
and triggers monostable multi- tor enclosure from Micro. Due
vibrator (MMV) IC2a. This attention should be given to the
Design: K. Walraven to ring the doorbell. Unfortu- MMV determines the time connection of the wiring
One obvious, perfectly normal nately, burglars also employ the (delay) it takes before the lamp between terminal block K2 and
and socially accepted way of very same doorbell to see if you is switched on. This delay is the mains socket in the case. Be
seeing if somebody is at home is are not at home! This circuit, we adjusted with preset P1. The sure to use only mains-rated

R10
TR1
47
1W
C4 A
IC3
100n 4805 5V
R9 B1
VDR D6
220V C5

POWER 16
100n
ON
C6 C7 IC2
2k2

9V R11
1VA5 8
B80C1500
100 10
VTR1109 Monacor 63V
25V

A 15V / 10V 5V
B 0V / 4V K2
P1 P2
2M5 2M5 RELAY
C 0V / 4V3 R4 ON D4 L
C8 D2 D3 RE1
10k

D5
100k

100k

R5 R6
100n R8
4k7

C2 C3
IC2 = 4538 47 220 12V

IC1 1N4148 10V 1N4148 10V 1N4001


8
2 7 2 1 14 15
C
B 6 4 RCX CX 6 12 RCX CX 10
D1 R1
3 R7
100k 5 1 1
K1 4 5 IC2a 7 11 IC2b 9
4k7

1N4001 1
R R
TLC271 T1
3 13
R2 R3
C1
100k

10k

BC547B
10 5V
63V

984029 - 11

46 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

COMPONENTS LIST
wires, and properly secure the (C) ELEKTOR

Resistors: ends on the PCB terminal block 984029-1

R1,R2,R5,R6 = 100k and the mains plug/socket com-


R3,R4 =10k bination. Also with electrical
R7,R8 = 4k7 safety in mind, the LED should
R9 =VDR 220V (UK: 240V), not protrude any further from
small model the case than strictly required.
R10 =47 1W The printed circuit board shown
R11 = 2k2 here is available ready-made
P1,P2 = 2M5 preset H through the Publishers.
(984029-1)
Capacitors:
C1,C7 = 10F 63V radial
C2 = 47F 10V radial
C3 = 220F 10V radial
C4,C5,C8 = 100nF
C6 = 100 F 25V radial
ELEKTOR
Semiconductors:
B1 = B80C1500, rectangular
240V ~ 50Hz

case, negative () terminal at No. 984029


bevelled edge (80V piv, 1.5A P = max. 100W
cont.)
D1,D5 = 1N4001
D2,D3 = 1N4148
D4,D6 = LED 5mm
T1 = BC547B (C) ELEKTOR
R10
984029-1
IC1 = TLC271CP
C5
IC2 = 4538 H1

R9
H4

IC3 = 4805 K2
B1

C6 ~
Miscellaneous: IC3
K1 = 2-way PCB terminal TR1 ~
block, pitch 5mm C4
C7 R11
RE1 = Card relay E, 12V, 1
C1
make contact, type V23057- L
D6

B0002-A401 (Siemens) R1 C8
K2 = 3-way PCB terminal D1 984029-1
R2
R3
R4

block, pitch 7.5mm IC1


TR1 = mains transformer, 9V
1.5VA, VTR1109
C3 T1
(Monacor/Monarch*)
RE1

K1 IC2
Case: Micro type N12
R7

PCB, order code 984029-1 C2


* No UK distributor(s), item P1 P2
available through C-I Elec-
D2
D3

D5
R5

R6

R8

tronics or Stippler Electron-


H3 H2

ics. D4
020

crossover for subwoofer


Design: T. Giesberts work is a passive one, designed
The crossover network is LSP
so that the speaker signal of the
intended for use when an exist- existing system can be used as
ing audio installation is to be the input signal. Since the bass
P1
extended by the addition of a 10k
information is present in both
subwoofer. Often, this additional (stereo) loudspeakers, the signal
R1
loudspeaker is one that has been for the sub woofer can simply be
1k

lying around for some time. If its tapped from one of them.
P2 K1
frequency response extends R3 The network is a 1st order
820 Line
down far enough, all is well and 2k2
low-pass filter with variable
good, but a filter is then needed R2
input (P1) and presettable cut-
to cut off any frequencies above, C1 off frequency (P2).
180

say, 150 Hz. 1


The signal from the loud-
Often, a subwoofer network speaker is applied to terminal
is an active filter, but here this 984041 - 11
LSP. Voltage divider R1-R2-P1
would necessitate an additional is designed for use with the out-
power supply. The present net- put signal of an average output

Elektor Electronics 7-8/98 47


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

COMPONENTS LIST
wires, and properly secure the (C) ELEKTOR

Resistors: ends on the PCB terminal block 984029-1

R1,R2,R5,R6 = 100k and the mains plug/socket com-


R3,R4 =10k bination. Also with electrical
R7,R8 = 4k7 safety in mind, the LED should
R9 =VDR 220V (UK: 240V), not protrude any further from
small model the case than strictly required.
R10 =47 1W The printed circuit board shown
R11 = 2k2 here is available ready-made
P1,P2 = 2M5 preset H through the Publishers.
(984029-1)
Capacitors:
C1,C7 = 10F 63V radial
C2 = 47F 10V radial
C3 = 220F 10V radial
C4,C5,C8 = 100nF
C6 = 100 F 25V radial
ELEKTOR
Semiconductors:
B1 = B80C1500, rectangular
240V ~ 50Hz

case, negative () terminal at No. 984029


bevelled edge (80V piv, 1.5A P = max. 100W
cont.)
D1,D5 = 1N4001
D2,D3 = 1N4148
D4,D6 = LED 5mm
T1 = BC547B (C) ELEKTOR
R10
984029-1
IC1 = TLC271CP
C5
IC2 = 4538 H1

R9
H4

IC3 = 4805 K2
B1

C6 ~
Miscellaneous: IC3
K1 = 2-way PCB terminal TR1 ~
block, pitch 5mm C4
C7 R11
RE1 = Card relay E, 12V, 1
C1
make contact, type V23057- L
D6

B0002-A401 (Siemens) R1 C8
K2 = 3-way PCB terminal D1 984029-1
R2
R3
R4

block, pitch 7.5mm IC1


TR1 = mains transformer, 9V
1.5VA, VTR1109
C3 T1
(Monacor/Monarch*)
RE1

K1 IC2
Case: Micro type N12
R7

PCB, order code 984029-1 C2


* No UK distributor(s), item P1 P2
available through C-I Elec-
D2
D3

D5
R5

R6

R8

tronics or Stippler Electron-


H3 H2

ics. D4
020

crossover for subwoofer


Design: T. Giesberts work is a passive one, designed
The crossover network is LSP
so that the speaker signal of the
intended for use when an exist- existing system can be used as
ing audio installation is to be the input signal. Since the bass
P1
extended by the addition of a 10k
information is present in both
subwoofer. Often, this additional (stereo) loudspeakers, the signal
R1
loudspeaker is one that has been for the sub woofer can simply be
1k

lying around for some time. If its tapped from one of them.
P2 K1
frequency response extends R3 The network is a 1st order
820 Line
down far enough, all is well and 2k2
low-pass filter with variable
good, but a filter is then needed R2
input (P1) and presettable cut-
to cut off any frequencies above, C1 off frequency (P2).
180

say, 150 Hz. 1


The signal from the loud-
Often, a subwoofer network speaker is applied to terminal
is an active filter, but here this 984041 - 11
LSP. Voltage divider R1-R2-P1
would necessitate an additional is designed for use with the out-
power supply. The present net- put signal of an average output

Elektor Electronics 7-8/98 47


amplifier of around d 50 W. has a standard input resistance the input of the subwoofer by reversing the wires to the
The crossover frequency of of 47 k. If this figure is lower, amplifier cannot be overloaded subwoofer.
the network may be varied the value of C1 will need to be or damaged. If notwithstanding the above
between 50 Hz and 160 Hz with increased slightly. Make sure that the ground of additional protection is desired
P2. The values of R3, P2, and It is advisable to open the the loudspeaker signal line is at the input of the subwoofer
C1, are calculated on the volume of the subwoofer ampli- linked to the ground of the sub- amplifier, this is best effected by
assumption that the subwoofer fier fully and adjust the sound woofer amplifier. If phase rever- overload protection elsewhere
amplifier to be connected to K1 level with P1. This ensures that sal is required, this is best done in this issue. [984041]
021

electrical isolation for I2C bus


National Semiconductor the system, they may be omitted
Application R1 R2 R3 R4 here.
When the SDA (Serial DAta) * * The current drawn by the
3k3

3k9

3k9

3k3
lines on both the left and right circuit is slightly larger than
lines are 1, the circuit is quies- IC1
usual since the pull-up resistors
cent and optoisolators IC1 and D1
2 8 6
* see text are shunted by the LEDs in the
IC2 are not actuated. When the * siehe Text optoisolators and their series
SDA line at the left becomes 0, BAT85 resistors. Nevertheless, it
current flows through the LED 3 7 5
* voir texte remains within the norms laid
in IC1 via R2. The SDA line at 5V * zie tekst down in the I2C specification.
the right is then pulled low via [ 984024]
D2 and IC1. Optoisolator IC2 IC2 6 8 2
D2
does not transfer this 0 to the
SDA SDA'
left, because the polarity of the BAT85
LED in IC2 is the wrong way K1 5 5 7 3 5 K2
around for this level. This 5V 4 6 6 4 5V'
arrangement prevents the circuit 3 1 1 3
holding itself in the 0 state for 2 5 7 3 2
ever. D4

As is seen, the circuit is SCL SCL'


BAT85
symmetrical. So, when the SDA
IC4 6 8 2
line at the right is 0, this is
transferred to the left. 5V
The lower part of the dia- 3 7 5
gram, intended for the SCL (Ser- D3
IC1...IC4 =
ial CLock) line, is identical to 4 x 6N139
the upper part. BAT85

Resistors R1, R4, R5, and IC3 2 8 6

R8, are the usual 3.3 k pull-up R5 R6 R7 R8

resistors that are obligatory in * *


3k3

3k9

3k9

3k3

each I2C line. If these resistors


are already present elsewhere in
984024-11
022

mini
audio signal generator
Design: T. Giesberts It is, however, important that the only 20 A. In theory, the low held at half the supply voltage
A small audio test generator is unit does not draw too high a current drain would give a 9 V by dividers R3-R4 and R5-R6
very useful for quickly tracing a current. battery a life of 25,000 hours. respectively. Resistors R5 and
signal through an audio unit. Its The generator described The circuit is a traditional R6 also form part of the feed-
main purpose is speed rather meets these modest require- Wien bridge oscillator based on back loop. The amplification is
than refinement. A single sine- ments. It uses standard compo- a Type TLC271 op amp. The fre- set to about 3 with P1.
wave signal of about 1 kHz is nents, produces a signal of quency determining bridge is Diodes D1 and D2 are peak
normally all that is needed: dis- 899 Hz at an output level of formed by C1, C2 and R1R4. limiters. Since the limiting is
tortion is not terribly important. 1 V r.m.s. and draws a current of The two inputs of the op amp are based on the non-linearity of the

48 Elektor Electronics 7-8/98


amplifier of around d 50 W. has a standard input resistance the input of the subwoofer by reversing the wires to the
The crossover frequency of of 47 k. If this figure is lower, amplifier cannot be overloaded subwoofer.
the network may be varied the value of C1 will need to be or damaged. If notwithstanding the above
between 50 Hz and 160 Hz with increased slightly. Make sure that the ground of additional protection is desired
P2. The values of R3, P2, and It is advisable to open the the loudspeaker signal line is at the input of the subwoofer
C1, are calculated on the volume of the subwoofer ampli- linked to the ground of the sub- amplifier, this is best effected by
assumption that the subwoofer fier fully and adjust the sound woofer amplifier. If phase rever- overload protection elsewhere
amplifier to be connected to K1 level with P1. This ensures that sal is required, this is best done in this issue. [984041]
021

electrical isolation for I2C bus


National Semiconductor the system, they may be omitted
Application R1 R2 R3 R4 here.
When the SDA (Serial DAta) * * The current drawn by the
3k3

3k9

3k9

3k3
lines on both the left and right circuit is slightly larger than
lines are 1, the circuit is quies- IC1
usual since the pull-up resistors
cent and optoisolators IC1 and D1
2 8 6
* see text are shunted by the LEDs in the
IC2 are not actuated. When the * siehe Text optoisolators and their series
SDA line at the left becomes 0, BAT85 resistors. Nevertheless, it
current flows through the LED 3 7 5
* voir texte remains within the norms laid
in IC1 via R2. The SDA line at 5V * zie tekst down in the I2C specification.
the right is then pulled low via [ 984024]
D2 and IC1. Optoisolator IC2 IC2 6 8 2
D2
does not transfer this 0 to the
SDA SDA'
left, because the polarity of the BAT85
LED in IC2 is the wrong way K1 5 5 7 3 5 K2
around for this level. This 5V 4 6 6 4 5V'
arrangement prevents the circuit 3 1 1 3
holding itself in the 0 state for 2 5 7 3 2
ever. D4

As is seen, the circuit is SCL SCL'


BAT85
symmetrical. So, when the SDA
IC4 6 8 2
line at the right is 0, this is
transferred to the left. 5V
The lower part of the dia- 3 7 5
gram, intended for the SCL (Ser- D3
IC1...IC4 =
ial CLock) line, is identical to 4 x 6N139
the upper part. BAT85

Resistors R1, R4, R5, and IC3 2 8 6

R8, are the usual 3.3 k pull-up R5 R6 R7 R8

resistors that are obligatory in * *


3k3

3k9

3k9

3k3

each I2C line. If these resistors


are already present elsewhere in
984024-11
022

mini
audio signal generator
Design: T. Giesberts It is, however, important that the only 20 A. In theory, the low held at half the supply voltage
A small audio test generator is unit does not draw too high a current drain would give a 9 V by dividers R3-R4 and R5-R6
very useful for quickly tracing a current. battery a life of 25,000 hours. respectively. Resistors R5 and
signal through an audio unit. Its The generator described The circuit is a traditional R6 also form part of the feed-
main purpose is speed rather meets these modest require- Wien bridge oscillator based on back loop. The amplification is
than refinement. A single sine- ments. It uses standard compo- a Type TLC271 op amp. The fre- set to about 3 with P1.
wave signal of about 1 kHz is nents, produces a signal of quency determining bridge is Diodes D1 and D2 are peak
normally all that is needed: dis- 899 Hz at an output level of formed by C1, C2 and R1R4. limiters. Since the limiting is
tortion is not terribly important. 1 V r.m.s. and draws a current of The two inputs of the op amp are based on the non-linearity of the

48 Elektor Electronics 7-8/98


amplifier of around d 50 W. has a standard input resistance the input of the subwoofer by reversing the wires to the
The crossover frequency of of 47 k. If this figure is lower, amplifier cannot be overloaded subwoofer.
the network may be varied the value of C1 will need to be or damaged. If notwithstanding the above
between 50 Hz and 160 Hz with increased slightly. Make sure that the ground of additional protection is desired
P2. The values of R3, P2, and It is advisable to open the the loudspeaker signal line is at the input of the subwoofer
C1, are calculated on the volume of the subwoofer ampli- linked to the ground of the sub- amplifier, this is best effected by
assumption that the subwoofer fier fully and adjust the sound woofer amplifier. If phase rever- overload protection elsewhere
amplifier to be connected to K1 level with P1. This ensures that sal is required, this is best done in this issue. [984041]
021

electrical isolation for I2C bus


National Semiconductor the system, they may be omitted
Application R1 R2 R3 R4 here.
When the SDA (Serial DAta) * * The current drawn by the
3k3

3k9

3k9

3k3
lines on both the left and right circuit is slightly larger than
lines are 1, the circuit is quies- IC1
usual since the pull-up resistors
cent and optoisolators IC1 and D1
2 8 6
* see text are shunted by the LEDs in the
IC2 are not actuated. When the * siehe Text optoisolators and their series
SDA line at the left becomes 0, BAT85 resistors. Nevertheless, it
current flows through the LED 3 7 5
* voir texte remains within the norms laid
in IC1 via R2. The SDA line at 5V * zie tekst down in the I2C specification.
the right is then pulled low via [ 984024]
D2 and IC1. Optoisolator IC2 IC2 6 8 2
D2
does not transfer this 0 to the
SDA SDA'
left, because the polarity of the BAT85
LED in IC2 is the wrong way K1 5 5 7 3 5 K2
around for this level. This 5V 4 6 6 4 5V'
arrangement prevents the circuit 3 1 1 3
holding itself in the 0 state for 2 5 7 3 2
ever. D4

As is seen, the circuit is SCL SCL'


BAT85
symmetrical. So, when the SDA
IC4 6 8 2
line at the right is 0, this is
transferred to the left. 5V
The lower part of the dia- 3 7 5
gram, intended for the SCL (Ser- D3
IC1...IC4 =
ial CLock) line, is identical to 4 x 6N139
the upper part. BAT85

Resistors R1, R4, R5, and IC3 2 8 6

R8, are the usual 3.3 k pull-up R5 R6 R7 R8

resistors that are obligatory in * *


3k3

3k9

3k9

3k3

each I2C line. If these resistors


are already present elsewhere in
984024-11
022

mini
audio signal generator
Design: T. Giesberts It is, however, important that the only 20 A. In theory, the low held at half the supply voltage
A small audio test generator is unit does not draw too high a current drain would give a 9 V by dividers R3-R4 and R5-R6
very useful for quickly tracing a current. battery a life of 25,000 hours. respectively. Resistors R5 and
signal through an audio unit. Its The generator described The circuit is a traditional R6 also form part of the feed-
main purpose is speed rather meets these modest require- Wien bridge oscillator based on back loop. The amplification is
than refinement. A single sine- ments. It uses standard compo- a Type TLC271 op amp. The fre- set to about 3 with P1.
wave signal of about 1 kHz is nents, produces a signal of quency determining bridge is Diodes D1 and D2 are peak
normally all that is needed: dis- 899 Hz at an output level of formed by C1, C2 and R1R4. limiters. Since the limiting is
tortion is not terribly important. 1 V r.m.s. and draws a current of The two inputs of the op amp are based on the non-linearity of the

48 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

diodes, there is a certain amount


of distortion. At the nominal out-
put voltage of 1 V r.m.s., the dis-
tortion is about 10%. This is, R3 R5
however, of no consequence in D1

1M

1M
fast tests. Nevertheless, if 10% R1 R2

1M

1M
is considered too high, it may be P1 R8
improved appreciably by linking 220k 2x
1N4148
pin 8 of IC1 to ground. This R7
500k
D2
increases the current drain of C1

560k
BT1
the circuit to 640 A, but the 330p 8
distortion is down to 0.7%, pro- 2 7
C3
C4 R9
vided the circuit is adjusted 9V IC1
6
100
properly. If a distortion meter or 47
3
5 100n
similar is not available, simply 25V
1
4

adjust the output to 1 V r.m.s. R4 R6


TLC271
R10
C2
Since the distortion of the

1M

1M

1M
unit is not measured in hun- 330p
dredths of a per cent, C1 and C2
may be ceramic types without
984033 - 11
much detriment. [984033]
023

ultra-low-power
5 V regulator
Design: T. Giesberts
The current drain of the regula- 6V5 ... 30V
tor is minute compared with that
of, say, a 78L05: at an input
voltage of 9 V and open-circuit
output, it is just under 50 A. R1 R3 R5
C2
R7
301k

100k

1M

332k

The circuit consists of a


straightforward bandgap refer- IC1 470p
ence based on T1 and IC1, fol- 2
1
7 IC2
lowed by an amplifier formed by B
R2
5
6
R6
3
1
7 T2
IC2 and T1. OP22 82k 5
11k0

3 6
OP22
The reference voltage is 4 D 2
8 F
about 1.22 V, which is raised by A C E R8 8
4 BC
IC2 to 5 V. The output voltage 547B G 5V
100k

can be set to exactly 5 V with T1a 1 * 7 T1b


R4 R9
P1. The input voltage may lie 2 6 C1 P1 C3 C4 10mA
MAT02
10M

4M7

between 6.5 V and 30 V. The


390p 100n 1
maximum output current with 3 5
63V
the present configuration and 25k

component values as specified


is about 10 mA. * zie tekst
see text V in = 9V
984034 - 11

For optimum performance, * siehe Text I out = 1mA


A 0V41 C 0V44 E 1V22 G 5V

T1a and T1b need to be identi- * voir texte B 0V45 D 1V22 F 5V65

cal, which is why a dual transtor


*
Type MAT02 is used. Other
types that may be used are the
MAT01, SSM2210 or LM394. Table 1
In principle, two standard BC the use of a more highly rated
transistors may be used, pro- output transistor. Vin (V) Ig (A) Vout (V) Vripple (mVrms)
vided they are selected for iden- Filter R6-C1 prevents any 7 43 5.002 110
tical threshold voltage. spurious pulses reaching the 9 49 5.002 100
Circuits IC1 and IC2 are pro- input of IC2. Capacitor C2 im- 15 68 5.002 70
grammable op amps Type OP22. proves the stability of the regu-
30 123 5.002 50
In the case of IC2 this has the lator, particularly with maximum
benefit that the peak output cur- pulse loading.
rent can be set readily by altering Note that the circuit has a coupled to the circuit. in the table, in which Ig repre-
the supply current to the op amp high resistance, so that it is The regulator was tested with sents the current drawn by the
with R9. The level of the current advisable to house it in a a direct load current of 1 mA on circuit.
may be between 500 nA and screened enclosure to prevent which was superimposed a [984034]
400 A. Bear in mind that a undesired magnetic and electro- square-wave current of 10 mA.
larger output current requires magnetic interference being The test results are summarized

Elektor Electronics 7-8/98 49


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

diodes, there is a certain amount


of distortion. At the nominal out-
put voltage of 1 V r.m.s., the dis-
tortion is about 10%. This is, R3 R5
however, of no consequence in D1

1M

1M
fast tests. Nevertheless, if 10% R1 R2

1M

1M
is considered too high, it may be P1 R8
improved appreciably by linking 220k 2x
1N4148
pin 8 of IC1 to ground. This R7
500k
D2
increases the current drain of C1

560k
BT1
the circuit to 640 A, but the 330p 8
distortion is down to 0.7%, pro- 2 7
C3
C4 R9
vided the circuit is adjusted 9V IC1
6
100
properly. If a distortion meter or 47
3
5 100n
similar is not available, simply 25V
1
4

adjust the output to 1 V r.m.s. R4 R6


TLC271
R10
C2
Since the distortion of the

1M

1M

1M
unit is not measured in hun- 330p
dredths of a per cent, C1 and C2
may be ceramic types without
984033 - 11
much detriment. [984033]
023

ultra-low-power
5 V regulator
Design: T. Giesberts
The current drain of the regula- 6V5 ... 30V
tor is minute compared with that
of, say, a 78L05: at an input
voltage of 9 V and open-circuit
output, it is just under 50 A. R1 R3 R5
C2
R7
301k

100k

1M

332k

The circuit consists of a


straightforward bandgap refer- IC1 470p
ence based on T1 and IC1, fol- 2
1
7 IC2
lowed by an amplifier formed by B
R2
5
6
R6
3
1
7 T2
IC2 and T1. OP22 82k 5
11k0

3 6
OP22
The reference voltage is 4 D 2
8 F
about 1.22 V, which is raised by A C E R8 8
4 BC
IC2 to 5 V. The output voltage 547B G 5V
100k

can be set to exactly 5 V with T1a 1 * 7 T1b


R4 R9
P1. The input voltage may lie 2 6 C1 P1 C3 C4 10mA
MAT02
10M

4M7

between 6.5 V and 30 V. The


390p 100n 1
maximum output current with 3 5
63V
the present configuration and 25k

component values as specified


is about 10 mA. * zie tekst
see text V in = 9V
984034 - 11

For optimum performance, * siehe Text I out = 1mA


A 0V41 C 0V44 E 1V22 G 5V

T1a and T1b need to be identi- * voir texte B 0V45 D 1V22 F 5V65

cal, which is why a dual transtor


*
Type MAT02 is used. Other
types that may be used are the
MAT01, SSM2210 or LM394. Table 1
In principle, two standard BC the use of a more highly rated
transistors may be used, pro- output transistor. Vin (V) Ig (A) Vout (V) Vripple (mVrms)
vided they are selected for iden- Filter R6-C1 prevents any 7 43 5.002 110
tical threshold voltage. spurious pulses reaching the 9 49 5.002 100
Circuits IC1 and IC2 are pro- input of IC2. Capacitor C2 im- 15 68 5.002 70
grammable op amps Type OP22. proves the stability of the regu-
30 123 5.002 50
In the case of IC2 this has the lator, particularly with maximum
benefit that the peak output cur- pulse loading.
rent can be set readily by altering Note that the circuit has a coupled to the circuit. in the table, in which Ig repre-
the supply current to the op amp high resistance, so that it is The regulator was tested with sents the current drawn by the
with R9. The level of the current advisable to house it in a a direct load current of 1 mA on circuit.
may be between 500 nA and screened enclosure to prevent which was superimposed a [984034]
400 A. Bear in mind that a undesired magnetic and electro- square-wave current of 10 mA.
larger output current requires magnetic interference being The test results are summarized

Elektor Electronics 7-8/98 49


024
PIC16C84 programmer
for Centronics port
Design: R. Weber
Among the most popular share-
ware programs for PIC16C84
programming is PIP02 from Sil-
icon Studios. The circuit shown
here also uses PIP02, but in
combination with a special dri-
ver written by Dave Tait. This
driver, DTAIT.EXE, allows PIP02
to communicate with PIC pro-
grammer hardware via the par-
allel printer (Centronics) port.
The hardware does not amount
to much and is cheap, too the
PCB-mount Centronics connec-
tor is probably the most expen-
sive part! A single 74LS06 (hex
open-collector inverter) is used
to enable the Centronics port
and the PIC (to be programmed)
to talk to each another. Three
data lines of the Centronics port,
D0, D1 and D3 are first inverted
984036 - 12

5V 5V
K1
K2 G6

R5 R4 R6
D2 K3

R3

R4
T1
10k

470

470

IC1c
1k

R1
DATA 5 6 K3
1
CENTRONICS
D1

R1 D2
K1 DATA K2
IC1a
19 1
1 2 CLK
20 2 1 C1
21 3 CLK
K4 K4
22 4 IC1f C2
23 5 PROGR 13 12 MCLR
1
R2

24 6 D1 IC1
R2
25 7
12V 1k
26 8 T1
27 9 IC1b + Vin
1-630489
28 10 4 3 ROTKELE )C(
1 C1
R6

R5

BC547
100k

29 11
984036-1
G5

30 12 R3
31 13 100n 5V
32 14 IC1d IC1e
33 15 8 10
C2 14
34 16
1 1 IC1
35 17
IC1 = 74LS06 100n 7
36 18 9 11 (C) ELEKTOR
984036-1
984036 - 11

COMPONENTS LIST D1 = 12V 0.4W zener diode


D2 = LED
Resistors: T1 = BC547
R1,R2 = 1k IC1 = 74LS06
R3 = 100k
R4,R6 = 470 Miscellaneous:
R5 = 10k K1 = Centronics socket, PCB
mount
Capacitors: K2,K3,K4 = two-way PCB ter-
C1,C2 = 100nF minal block, pitch 5mm
PCB, order code 984036-1
Semiconductors:

62 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

and then applied to the PIC to be K4 MCLR to MCLR (pin 4) supply voltages: 12 V (PIC pro- grams, all you have to do is write
programmed. D0 supplies data, K2 +5V to VDD(pin 14) gramming voltage) and 5 V the following batch file:
D1 clock pulses, and D3 pro- K2 GROUND to VSS (pin 5) (74LS06 and the LED supply
gramming pulses. Information voltage). DTAIT.EXE 7406
returned by the PIC to the PC is The +Vin terminal of K4 is con- The two programs you will need PIP02.EXE
first inverted by gate IC1b and nected to an external 12-volt to use the programmer may be DTAIT.EXE REMOVE
then applied to the BUSY line on supply for the programming obtained free of charge from the
the Centronics connector. voltage. LED D2 lights when Internet from this url: and launch it from the DOS
The PIC to be programmed is programming pulses are http://www.sistudio.com/ prompt. Finally, the printed cir-
connected as follows: applied. Zener diode D1 pro- sistudio/download/html. cuit board shown here is avail-
tects the base of T1 against the DTAIT.EXE is unzipped from able ready-made from the Pub-
K3 DATA to RB7 (pin 13) programming voltage. The pro- the PINAPI Drivers DOS Pack 1. lishers.
K3 CLOCK to RB6 (pin 12) grammer needs two external Having downloaded these pro- (984036-1: LL)
025

low-power voltage reference


The present reference is a spe- 2V5 ...30V the E96 series.
cial application of current Since current source IC1 is
source IC Type LM334. It has a tapped at the control input, a
tiny temperature coefficient and IC1 R3
1V253 reference source with a negative
draws only a minute current: at LM334 3k83 output resistance of about
room temperature, only 10 A, R2 3.8 k ensues. Resistor R3
which increases with large rises ensures that the ultimate output
6k98

in temperature by only a few resistance is about 400 . The


A. load current is then limited to
The circuit is basically a T1 not more than 5 A.
bandgap reference, because the The performance of the ref-
LM334
positive temperature coefficient erence is good: when the input
of the LM334 is combined with BC547 voltage is increased from 5 V to
the negative temperature coeffi- R1
30 V, the output voltage varies
68k1

cient of the base-emitter junc- C1 by only 0.6 V (from 1,2530 V


tion of a transistor (which V V to 1.2536 V).
P1 R
ensures good thermal coupling). 100n
5k The temperature coefficient
To obtain a temperature coef- stays below 50 ppm C1, and,
ficient of zero, or very nearly so, with careful adjustment, may
the output voltage of the circuit 984035 - 11 even come down to 5 ppm C1.
is adjusted to exactly 1.253 V The current drawn by the
with P1. It is, therefore, advis- prototype is 9.8 A at an ambi-
able to measure the set value of adjusted and to replace the com- resistor of the precise value. Use ent temperature of 22 C.
P1 accurately after it has been bination of R1+P1 by a fixed a 1% metal-oxide film type from [Giesberts 984035]
026

modem off indicator


Design: H. Bonekamp been used. This obviates high
A
The modem off indicator is telephone charges in case for
intended especially for serious some reason the modem contin-
Internet surfers. It will be seen ues to operate.
B1
that the circuit of the indicator R1
The circuit depends on the
cannot be much simpler, or fact that there is a potential of
22k

there might be nothing left. In about 40 V on the telephone line


B
spite of its simplicity, it may B250C1500 groen
when it is not busy. This voltage
D1
prove to be a cost-saving device, green drops sharply when a telephone
since it shows at a glance high efficiency
grn call is being made. If, therefore,
verte
whether the telephone line is the circuit is linked to telephone
free again after the modem has 984046 - 11 terminals a and b, the lighting of

Elektor Electronics 7-8/98 63


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

and then applied to the PIC to be K4 MCLR to MCLR (pin 4) supply voltages: 12 V (PIC pro- grams, all you have to do is write
programmed. D0 supplies data, K2 +5V to VDD(pin 14) gramming voltage) and 5 V the following batch file:
D1 clock pulses, and D3 pro- K2 GROUND to VSS (pin 5) (74LS06 and the LED supply
gramming pulses. Information voltage). DTAIT.EXE 7406
returned by the PIC to the PC is The +Vin terminal of K4 is con- The two programs you will need PIP02.EXE
first inverted by gate IC1b and nected to an external 12-volt to use the programmer may be DTAIT.EXE REMOVE
then applied to the BUSY line on supply for the programming obtained free of charge from the
the Centronics connector. voltage. LED D2 lights when Internet from this url: and launch it from the DOS
The PIC to be programmed is programming pulses are http://www.sistudio.com/ prompt. Finally, the printed cir-
connected as follows: applied. Zener diode D1 pro- sistudio/download/html. cuit board shown here is avail-
tects the base of T1 against the DTAIT.EXE is unzipped from able ready-made from the Pub-
K3 DATA to RB7 (pin 13) programming voltage. The pro- the PINAPI Drivers DOS Pack 1. lishers.
K3 CLOCK to RB6 (pin 12) grammer needs two external Having downloaded these pro- (984036-1: LL)
025

low-power voltage reference


The present reference is a spe- 2V5 ...30V the E96 series.
cial application of current Since current source IC1 is
source IC Type LM334. It has a tapped at the control input, a
tiny temperature coefficient and IC1 R3
1V253 reference source with a negative
draws only a minute current: at LM334 3k83 output resistance of about
room temperature, only 10 A, R2 3.8 k ensues. Resistor R3
which increases with large rises ensures that the ultimate output
6k98

in temperature by only a few resistance is about 400 . The


A. load current is then limited to
The circuit is basically a T1 not more than 5 A.
bandgap reference, because the The performance of the ref-
LM334
positive temperature coefficient erence is good: when the input
of the LM334 is combined with BC547 voltage is increased from 5 V to
the negative temperature coeffi- R1
30 V, the output voltage varies
68k1

cient of the base-emitter junc- C1 by only 0.6 V (from 1,2530 V


tion of a transistor (which V V to 1.2536 V).
P1 R
ensures good thermal coupling). 100n
5k The temperature coefficient
To obtain a temperature coef- stays below 50 ppm C1, and,
ficient of zero, or very nearly so, with careful adjustment, may
the output voltage of the circuit 984035 - 11 even come down to 5 ppm C1.
is adjusted to exactly 1.253 V The current drawn by the
with P1. It is, therefore, advis- prototype is 9.8 A at an ambi-
able to measure the set value of adjusted and to replace the com- resistor of the precise value. Use ent temperature of 22 C.
P1 accurately after it has been bination of R1+P1 by a fixed a 1% metal-oxide film type from [Giesberts 984035]
026

modem off indicator


Design: H. Bonekamp been used. This obviates high
A
The modem off indicator is telephone charges in case for
intended especially for serious some reason the modem contin-
Internet surfers. It will be seen ues to operate.
B1
that the circuit of the indicator R1
The circuit depends on the
cannot be much simpler, or fact that there is a potential of
22k

there might be nothing left. In about 40 V on the telephone line


B
spite of its simplicity, it may B250C1500 groen
when it is not busy. This voltage
D1
prove to be a cost-saving device, green drops sharply when a telephone
since it shows at a glance high efficiency
grn call is being made. If, therefore,
verte
whether the telephone line is the circuit is linked to telephone
free again after the modem has 984046 - 11 terminals a and b, the lighting of

Elektor Electronics 7-8/98 63


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

and then applied to the PIC to be K4 MCLR to MCLR (pin 4) supply voltages: 12 V (PIC pro- grams, all you have to do is write
programmed. D0 supplies data, K2 +5V to VDD(pin 14) gramming voltage) and 5 V the following batch file:
D1 clock pulses, and D3 pro- K2 GROUND to VSS (pin 5) (74LS06 and the LED supply
gramming pulses. Information voltage). DTAIT.EXE 7406
returned by the PIC to the PC is The +Vin terminal of K4 is con- The two programs you will need PIP02.EXE
first inverted by gate IC1b and nected to an external 12-volt to use the programmer may be DTAIT.EXE REMOVE
then applied to the BUSY line on supply for the programming obtained free of charge from the
the Centronics connector. voltage. LED D2 lights when Internet from this url: and launch it from the DOS
The PIC to be programmed is programming pulses are http://www.sistudio.com/ prompt. Finally, the printed cir-
connected as follows: applied. Zener diode D1 pro- sistudio/download/html. cuit board shown here is avail-
tects the base of T1 against the DTAIT.EXE is unzipped from able ready-made from the Pub-
K3 DATA to RB7 (pin 13) programming voltage. The pro- the PINAPI Drivers DOS Pack 1. lishers.
K3 CLOCK to RB6 (pin 12) grammer needs two external Having downloaded these pro- (984036-1: LL)
025

low-power voltage reference


The present reference is a spe- 2V5 ...30V the E96 series.
cial application of current Since current source IC1 is
source IC Type LM334. It has a tapped at the control input, a
tiny temperature coefficient and IC1 R3
1V253 reference source with a negative
draws only a minute current: at LM334 3k83 output resistance of about
room temperature, only 10 A, R2 3.8 k ensues. Resistor R3
which increases with large rises ensures that the ultimate output
6k98

in temperature by only a few resistance is about 400 . The


A. load current is then limited to
The circuit is basically a T1 not more than 5 A.
bandgap reference, because the The performance of the ref-
LM334
positive temperature coefficient erence is good: when the input
of the LM334 is combined with BC547 voltage is increased from 5 V to
the negative temperature coeffi- R1
30 V, the output voltage varies
68k1

cient of the base-emitter junc- C1 by only 0.6 V (from 1,2530 V


tion of a transistor (which V V to 1.2536 V).
P1 R
ensures good thermal coupling). 100n
5k The temperature coefficient
To obtain a temperature coef- stays below 50 ppm C1, and,
ficient of zero, or very nearly so, with careful adjustment, may
the output voltage of the circuit 984035 - 11 even come down to 5 ppm C1.
is adjusted to exactly 1.253 V The current drawn by the
with P1. It is, therefore, advis- prototype is 9.8 A at an ambi-
able to measure the set value of adjusted and to replace the com- resistor of the precise value. Use ent temperature of 22 C.
P1 accurately after it has been bination of R1+P1 by a fixed a 1% metal-oxide film type from [Giesberts 984035]
026

modem off indicator


Design: H. Bonekamp been used. This obviates high
A
The modem off indicator is telephone charges in case for
intended especially for serious some reason the modem contin-
Internet surfers. It will be seen ues to operate.
B1
that the circuit of the indicator R1
The circuit depends on the
cannot be much simpler, or fact that there is a potential of
22k

there might be nothing left. In about 40 V on the telephone line


B
spite of its simplicity, it may B250C1500 groen
when it is not busy. This voltage
D1
prove to be a cost-saving device, green drops sharply when a telephone
since it shows at a glance high efficiency
grn call is being made. If, therefore,
verte
whether the telephone line is the circuit is linked to telephone
free again after the modem has 984046 - 11 terminals a and b, the lighting of

Elektor Electronics 7-8/98 63


the green LED shows that the is not necessary. through it by resistor R1. cator across the telephone lines.
line is not busy in error. To make sure that the tele- [984046] Seek advice of your local tele-
The bridge rectifier ensures phone line is not loaded unnec- phone company that owns or
that the polarity of the line volt- essarily, the LED is a high effi- WARNING. In spite of the liberal operates the telephone network.
age is of no consequence. This ciency type. This type lights at a age we live in, it is highly prob-
has the additional benefit that current as low as 2 mA, and this able that in many countries it is
polarity protection for the LED is, therefore the current arranged not allowed to connect the indi-
027

balanced
microphone preamplifier
Design: T. Giesberts reasonable length, R3 is not
15V
The preamplifier is intended for necessary, since the parasitic
use with dynamic (moving coil R1 R4 capacitance of the cable ensures
MC) microphones with an 1k00 316k stability of the amplifier. It
impedance up to 200 and should be noted, however, that
balanced terminals. It is a fairly R3 improves the CMR from
simple design, which may also IC1 >70 dB to >80 dB.
be considered as a single stage K1 5 Performance of the pream-
2 R3 2 7
instrument amplifier based on a 8 C1 R7 plifier is very good. The
27k

1 6
Type NE5534 op amp. 100 THD+N (total harmonic distor-
To achieve maximum com- 3 tion plus noise) is smaller than
47
3
mon-mode rejection (CMR) with 1
4 100V
R6
0.1% with an input signal of
a balanced signal, the division 10k 1 mV and a source impedance
ratios of the dividers (R1-R4 and NE5534 of 50 .
R2-R5 respectively) at the R2 R5 P1 Under the same conditions,
inputs of the op amp must be 1k00 301k the signal-to-noise ratio is
identical. Since this may be dif- 25k 62.5 dBA.
ficult to achieve in practice, a With component values as
preset potentiometer, P1, is con- 15V specified, the gain of the ampli-
nected in series with R5. The fier is 50 dB (316).
preset enables the common- 15V L1
After careful adjustment of
mode rejection to be set opti- 15V P1 at 1 kHz, the CMR, without
47H C2 C3
mally. R3, is 120 dB.
Capacitor C1 prevents any 100n 220
The supply voltage is 15 V.
direct voltage at the input, while 25V The amplifier draws a current at
resistor R7 ensures stability of C5
that voltage of about 5.5 mA.
C4
the amplifier with capacitive Note the decoupling of the sup-
loads. Resistor R3 prevents the 100n 220
ply lines with L1, L2, C2C5.
amplifier going into oscillation L2 25V [984031]
when the input is open circuit. 15V
If the microphone cable is of 15V 47H 984031 - 11
028

oscillation monitor
Design: F. Hueber Schmitt trigger input. gate via capacitor C1. Resistor negative half cycle of the signal,
The circuit in the diagram was When a 5 V supply is used, R2, in conjunction with the pro- so that the output of the gate
originally designed to monitor the Type 74HC132 is recom- tection diode in the IC, guards goes high in rhythm with the
an oscillator, but can also be mended; for higher voltage, a the input to high voltages. input signal. However, the
used as a general-purpose level Type 4093. Note, however, that In the absence of a signal, Schmitt trigger converts sinu-
indicator for a.c. signals. It is these two ICs have different resistor R1 holds the input high soidal signals into rectangular
based on a quadruple IC con- pinouts. In the diagram, the dif- so that the output of the gate is ones, which charge capacitor C3
taining four NAND gates. Only fering pins of a 4093 are shown low. via diode D1. When the poten-
three of the gates are used, mak- in brackets. When a signal of sufficient tial across C3 exceeds the
ing the fourth free for other pur- The signal to be monitored is strength is received, the input of threshold at the input of the sec-
poses. All the gates have a applied to the input of the first the gate goes low during the ond gate, this gate also toggles.

64 Elektor Electronics 7-8/98


the green LED shows that the is not necessary. through it by resistor R1. cator across the telephone lines.
line is not busy in error. To make sure that the tele- [984046] Seek advice of your local tele-
The bridge rectifier ensures phone line is not loaded unnec- phone company that owns or
that the polarity of the line volt- essarily, the LED is a high effi- WARNING. In spite of the liberal operates the telephone network.
age is of no consequence. This ciency type. This type lights at a age we live in, it is highly prob-
has the additional benefit that current as low as 2 mA, and this able that in many countries it is
polarity protection for the LED is, therefore the current arranged not allowed to connect the indi-
027

balanced
microphone preamplifier
Design: T. Giesberts reasonable length, R3 is not
15V
The preamplifier is intended for necessary, since the parasitic
use with dynamic (moving coil R1 R4 capacitance of the cable ensures
MC) microphones with an 1k00 316k stability of the amplifier. It
impedance up to 200 and should be noted, however, that
balanced terminals. It is a fairly R3 improves the CMR from
simple design, which may also IC1 >70 dB to >80 dB.
be considered as a single stage K1 5 Performance of the pream-
2 R3 2 7
instrument amplifier based on a 8 C1 R7 plifier is very good. The
27k

1 6
Type NE5534 op amp. 100 THD+N (total harmonic distor-
To achieve maximum com- 3 tion plus noise) is smaller than
47
3
mon-mode rejection (CMR) with 1
4 100V
R6
0.1% with an input signal of
a balanced signal, the division 10k 1 mV and a source impedance
ratios of the dividers (R1-R4 and NE5534 of 50 .
R2-R5 respectively) at the R2 R5 P1 Under the same conditions,
inputs of the op amp must be 1k00 301k the signal-to-noise ratio is
identical. Since this may be dif- 25k 62.5 dBA.
ficult to achieve in practice, a With component values as
preset potentiometer, P1, is con- 15V specified, the gain of the ampli-
nected in series with R5. The fier is 50 dB (316).
preset enables the common- 15V L1
After careful adjustment of
mode rejection to be set opti- 15V P1 at 1 kHz, the CMR, without
47H C2 C3
mally. R3, is 120 dB.
Capacitor C1 prevents any 100n 220
The supply voltage is 15 V.
direct voltage at the input, while 25V The amplifier draws a current at
resistor R7 ensures stability of C5
that voltage of about 5.5 mA.
C4
the amplifier with capacitive Note the decoupling of the sup-
loads. Resistor R3 prevents the 100n 220
ply lines with L1, L2, C2C5.
amplifier going into oscillation L2 25V [984031]
when the input is open circuit. 15V
If the microphone cable is of 15V 47H 984031 - 11
028

oscillation monitor
Design: F. Hueber Schmitt trigger input. gate via capacitor C1. Resistor negative half cycle of the signal,
The circuit in the diagram was When a 5 V supply is used, R2, in conjunction with the pro- so that the output of the gate
originally designed to monitor the Type 74HC132 is recom- tection diode in the IC, guards goes high in rhythm with the
an oscillator, but can also be mended; for higher voltage, a the input to high voltages. input signal. However, the
used as a general-purpose level Type 4093. Note, however, that In the absence of a signal, Schmitt trigger converts sinu-
indicator for a.c. signals. It is these two ICs have different resistor R1 holds the input high soidal signals into rectangular
based on a quadruple IC con- pinouts. In the diagram, the dif- so that the output of the gate is ones, which charge capacitor C3
taining four NAND gates. Only fering pins of a 4093 are shown low. via diode D1. When the poten-
three of the gates are used, mak- in brackets. When a signal of sufficient tial across C3 exceeds the
ing the fourth free for other pur- The signal to be monitored is strength is received, the input of threshold at the input of the sec-
poses. All the gates have a applied to the input of the first the gate goes low during the ond gate, this gate also toggles.

64 Elektor Electronics 7-8/98


the green LED shows that the is not necessary. through it by resistor R1. cator across the telephone lines.
line is not busy in error. To make sure that the tele- [984046] Seek advice of your local tele-
The bridge rectifier ensures phone line is not loaded unnec- phone company that owns or
that the polarity of the line volt- essarily, the LED is a high effi- WARNING. In spite of the liberal operates the telephone network.
age is of no consequence. This ciency type. This type lights at a age we live in, it is highly prob-
has the additional benefit that current as low as 2 mA, and this able that in many countries it is
polarity protection for the LED is, therefore the current arranged not allowed to connect the indi-
027

balanced
microphone preamplifier
Design: T. Giesberts reasonable length, R3 is not
15V
The preamplifier is intended for necessary, since the parasitic
use with dynamic (moving coil R1 R4 capacitance of the cable ensures
MC) microphones with an 1k00 316k stability of the amplifier. It
impedance up to 200 and should be noted, however, that
balanced terminals. It is a fairly R3 improves the CMR from
simple design, which may also IC1 >70 dB to >80 dB.
be considered as a single stage K1 5 Performance of the pream-
2 R3 2 7
instrument amplifier based on a 8 C1 R7 plifier is very good. The
27k

1 6
Type NE5534 op amp. 100 THD+N (total harmonic distor-
To achieve maximum com- 3 tion plus noise) is smaller than
47
3
mon-mode rejection (CMR) with 1
4 100V
R6
0.1% with an input signal of
a balanced signal, the division 10k 1 mV and a source impedance
ratios of the dividers (R1-R4 and NE5534 of 50 .
R2-R5 respectively) at the R2 R5 P1 Under the same conditions,
inputs of the op amp must be 1k00 301k the signal-to-noise ratio is
identical. Since this may be dif- 25k 62.5 dBA.
ficult to achieve in practice, a With component values as
preset potentiometer, P1, is con- 15V specified, the gain of the ampli-
nected in series with R5. The fier is 50 dB (316).
preset enables the common- 15V L1
After careful adjustment of
mode rejection to be set opti- 15V P1 at 1 kHz, the CMR, without
47H C2 C3
mally. R3, is 120 dB.
Capacitor C1 prevents any 100n 220
The supply voltage is 15 V.
direct voltage at the input, while 25V The amplifier draws a current at
resistor R7 ensures stability of C5
that voltage of about 5.5 mA.
C4
the amplifier with capacitive Note the decoupling of the sup-
loads. Resistor R3 prevents the 100n 220
ply lines with L1, L2, C2C5.
amplifier going into oscillation L2 25V [984031]
when the input is open circuit. 15V
If the microphone cable is of 15V 47H 984031 - 11
028

oscillation monitor
Design: F. Hueber Schmitt trigger input. gate via capacitor C1. Resistor negative half cycle of the signal,
The circuit in the diagram was When a 5 V supply is used, R2, in conjunction with the pro- so that the output of the gate
originally designed to monitor the Type 74HC132 is recom- tection diode in the IC, guards goes high in rhythm with the
an oscillator, but can also be mended; for higher voltage, a the input to high voltages. input signal. However, the
used as a general-purpose level Type 4093. Note, however, that In the absence of a signal, Schmitt trigger converts sinu-
indicator for a.c. signals. It is these two ICs have different resistor R1 holds the input high soidal signals into rectangular
based on a quadruple IC con- pinouts. In the diagram, the dif- so that the output of the gate is ones, which charge capacitor C3
taining four NAND gates. Only fering pins of a 4093 are shown low. via diode D1. When the poten-
three of the gates are used, mak- in brackets. When a signal of sufficient tial across C3 exceeds the
ing the fourth free for other pur- The signal to be monitored is strength is received, the input of threshold at the input of the sec-
poses. All the gates have a applied to the input of the first the gate goes low during the ond gate, this gate also toggles.

64 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

The output of the second gate is 5...15V


then low, which disables the
IC1d R5
*
third gate, which functions as an 14 C2 12
*

1k
11
oscillator. IC1 13 &
100n
When the level of the input 7
R4 D2
signal drops, C3 is discharged 4M7
via R3. The potential across the IC1c
(8)
capacitor then no longer exceeds IC1a
(6)
4
IC1b 10
8
the threshold at the input of C1 R2
1
3
D1
5 &
6 9 &
(10)
IC1b, whereupon IC1c is enabled 2 & (4)
1k R5'
and the LED flashes 1N4148
100n
*

1M
R1
The LED may be connected
as shown or as indicated by the R3 D2'
dashed line. As shown, the P1
C3 C4 *

100k
diode remains off when there is 10k
1 100n
an input signal of sufficient 35V
strength and begins to flash
when the signal fails or its level * zie tekst
see text
IC1 = 74HC132 (4093) * voir texte
siehe Text
984057 - 11

drops. When the diode is linked * *


to earth, it is on continuously
when there is an input signal, 10 MHz. the level of the supply voltage, quite precise: a drop in the
and begins to flash when the When a 912 V supply is the response threshold, USS, lies input signal level of 50100 mV
input drops. used, the value of R5 must be between 3.5 V (when Ub = 5 V) is sufficient to disable the input.
When a 5 V power supply is altered as necessary. Owing to and 7 V (when Ub = 12 V). When the input level is too
used, R5 = 1 k, and the cir- the 4093 being slower than the When the wiper is moved away high, a preset across the input
cuit draws a current, including 74HC132, the upper frequency from the positive supply line, terminals enables the level to be
that of the LED, of 3 mA. The of the input signal is then lim- USS (max) is 1.5 V (when reduced to a value that lies in
frequency of the input signal ited to 3 MHz. Ub = 5 V). the desired range above the
may lie between 10 Hz and When the wiper of P1 is at The response threshold is response threshold. [984057]
029

infra-red proximity detector


Design: K. Hagen
10 ... 30mA
The detector is intended for the
5V
recognition of obstructions at R6 R3 R2
C4 C5
distances of a few millimetres to
SFH900
330
4k7

4k7

a few centimetres. Similar 100n 47


16V
detectors are used in the indus-
try and health services, for T1
5V D1
0 4
instance, to open a water tap via R5
5
a magnetic valve. 6k8 OSC
OUT 8
The sensor, IC2, is a Type IC1 OUT
5V
10k

BC307B R1
SFH900 optoisolator from 0 BC557B NE567N
1M

R4
(LM567CN)
Siemens or similar. A phase- P1
330

R7 6
10k OSC
locked loop (PLL) in decoder IC2 C6
IN 1
4V
IC1 compares the frequency of SFH900 3
IN
1 3
the input signal from IC2 with 22n
LP
2 7
that of an internally generated 1 3
signal. When the two signals fall 2V 4V
C2 C3 2
C1
within the same band, the out-
984058 - 12
put, pin 8, of IC1 changes state 2 22n 22 47
6V 6V
(from high to low).
The internal oscillator gen- 984058 - 11

erates a signal at a frequency of


about 4.5 kHz (determined by
time constant R1-C1. Its rectan- quency of this signal lies within nents as specified draws a cur- A suitable solid-state relay at
gular signal at pin 5 switches on the same band as that of the rent of 1030 mA. the output enables larger loads
the light-emitting diode in IC2 internal generator, pin 8 is con- As stated earlier, the optoiso- to be switched. Circuit IC1 can
via T1. The diode then transmits nected to earth, whereupon lator may be one of several switch currents of up to 100 mA
an infra-red light signal pulsed diode D1 lights. The comparison types. It may also be built from to earth. Diode D1 should then
at 4.5 kHz. by the PLL prevents the circuit a discrete LED and phototran- be omitted.
When the infra-red light is reacting to stray light. sistor, but great care should then [984058]
reflected by a nearby object, the The sensitivity of the detec- be taken to ensure that the photo
photo transistor in IC2 provides a tor may be varied with P1. transistor cannot receive light
signal to pin 3 of IC1 If the fre- The detector with compo- transmitted by the LED.

Elektor Electronics 7-8/98 65


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

The output of the second gate is 5...15V


then low, which disables the
IC1d R5
*
third gate, which functions as an 14 C2 12
*

1k
11
oscillator. IC1 13 &
100n
When the level of the input 7
R4 D2
signal drops, C3 is discharged 4M7
via R3. The potential across the IC1c
(8)
capacitor then no longer exceeds IC1a
(6)
4
IC1b 10
8
the threshold at the input of C1 R2
1
3
D1
5 &
6 9 &
(10)
IC1b, whereupon IC1c is enabled 2 & (4)
1k R5'
and the LED flashes 1N4148
100n
*

1M
R1
The LED may be connected
as shown or as indicated by the R3 D2'
dashed line. As shown, the P1
C3 C4 *

100k
diode remains off when there is 10k
1 100n
an input signal of sufficient 35V
strength and begins to flash
when the signal fails or its level * zie tekst
see text
IC1 = 74HC132 (4093) * voir texte
siehe Text
984057 - 11

drops. When the diode is linked * *


to earth, it is on continuously
when there is an input signal, 10 MHz. the level of the supply voltage, quite precise: a drop in the
and begins to flash when the When a 912 V supply is the response threshold, USS, lies input signal level of 50100 mV
input drops. used, the value of R5 must be between 3.5 V (when Ub = 5 V) is sufficient to disable the input.
When a 5 V power supply is altered as necessary. Owing to and 7 V (when Ub = 12 V). When the input level is too
used, R5 = 1 k, and the cir- the 4093 being slower than the When the wiper is moved away high, a preset across the input
cuit draws a current, including 74HC132, the upper frequency from the positive supply line, terminals enables the level to be
that of the LED, of 3 mA. The of the input signal is then lim- USS (max) is 1.5 V (when reduced to a value that lies in
frequency of the input signal ited to 3 MHz. Ub = 5 V). the desired range above the
may lie between 10 Hz and When the wiper of P1 is at The response threshold is response threshold. [984057]
029

infra-red proximity detector


Design: K. Hagen
10 ... 30mA
The detector is intended for the
5V
recognition of obstructions at R6 R3 R2
C4 C5
distances of a few millimetres to
SFH900
330
4k7

4k7

a few centimetres. Similar 100n 47


16V
detectors are used in the indus-
try and health services, for T1
5V D1
0 4
instance, to open a water tap via R5
5
a magnetic valve. 6k8 OSC
OUT 8
The sensor, IC2, is a Type IC1 OUT
5V
10k

BC307B R1
SFH900 optoisolator from 0 BC557B NE567N
1M

R4
(LM567CN)
Siemens or similar. A phase- P1
330

R7 6
10k OSC
locked loop (PLL) in decoder IC2 C6
IN 1
4V
IC1 compares the frequency of SFH900 3
IN
1 3
the input signal from IC2 with 22n
LP
2 7
that of an internally generated 1 3
signal. When the two signals fall 2V 4V
C2 C3 2
C1
within the same band, the out-
984058 - 12
put, pin 8, of IC1 changes state 2 22n 22 47
6V 6V
(from high to low).
The internal oscillator gen- 984058 - 11

erates a signal at a frequency of


about 4.5 kHz (determined by
time constant R1-C1. Its rectan- quency of this signal lies within nents as specified draws a cur- A suitable solid-state relay at
gular signal at pin 5 switches on the same band as that of the rent of 1030 mA. the output enables larger loads
the light-emitting diode in IC2 internal generator, pin 8 is con- As stated earlier, the optoiso- to be switched. Circuit IC1 can
via T1. The diode then transmits nected to earth, whereupon lator may be one of several switch currents of up to 100 mA
an infra-red light signal pulsed diode D1 lights. The comparison types. It may also be built from to earth. Diode D1 should then
at 4.5 kHz. by the PLL prevents the circuit a discrete LED and phototran- be omitted.
When the infra-red light is reacting to stray light. sistor, but great care should then [984058]
reflected by a nearby object, the The sensitivity of the detec- be taken to ensure that the photo
photo transistor in IC2 provides a tor may be varied with P1. transistor cannot receive light
signal to pin 3 of IC1 If the fre- The detector with compo- transmitted by the LED.

Elektor Electronics 7-8/98 65


030
mains master/slave control
Mk2
This circuit allows one or sev- The 12:700 turns ratio used on
eral mains-operated apparatus the transformer ensures a maxi-
(slaves) to be automatically mum sensitivity of about 42 mA,
switched on when a master or just over 10 watts of master
apparatus is switched on. It is power consumption. If the
basically an enhanced version of slave(s) need to be switched on
the Thrifty Mains-Slave Unit at a higher master wattage,
published in the December then preset P1 may be adjusted
1996 issue of Elektor Electron- accordingly
ics. This time, the design is com- Resistors R1 and R2 limit the
plete with a PCB. Also, use is relay current to less than 1 A
made of a current transformer (peak), and capacitor C1 should
made from wire with a diameter be a type rated for operation at
of 1.5 mm. The important con- mains voltages. Note the use of
sequence of this change is that two series-connected resistors in
higher master currents are positions R1-R2 and R3-R4.
allowed. In principle, up to 10 A Neither of these combinations
is possible, but the terminal should be replaced by a single
block connectors on the printed resistor with the equivalent
circuit boards are only specified value because its maximum
at 5 A, so thats the highest cur- voltage rating is then easily be
rent the master device is exceeded.
allowed to consume from the The target value for the relay
mains. Consequently, 5-A fuses voltage is about 28 V. This is
are inserted in the master and determined by the mains voltage
slave supply lines, so that up to in combination with the value of
1 kW of power may be switched C1. For 220-V mains, use C1 =
in each of these channels 0.47 F, for 230-V/240-V mains,
(assuming a mains voltage of use C1 = 0.33 F. Although the
220-240 V, 50 Hz). Depending relay shunt capacitor, C6,
on your application, however, ETD29 core. The secondary mary and secondary windings
you may want to fit smaller winding consists of 700 turns of should be isolated from each
COMPONENTS LIST
fuses. 0.2-mm (36 SWG) diameter other using a tape layer or simi-
Transformer Tr1 is home made. CuL wire. You have to work lar. Each of the wire ends of the Resistors:
The primary winding which car- carefully on the secondary wind- primary is connected to three R1,R2 = 180
ries the master current consists ing if it is to fit in its entirety on terminals of the core base. The R3,R4 = 470k
of 12 turns (1 layer) of 1.5-mm the core. If you make a mess of primary winding drops less than R5 = 1k
(approx. 16 SWG) lacquered it, the secondary winding will 90 mV at a master power con- P1 = 10M preset, H
copper wire (CuL) on a type touch the core material. The pri- sumption of 100 watts.
Capacitors:
C1 = for 220-V mains: 470nF
K1 K3 250VAC class X2. For
F1 230/240-V mains: 330nF
250VAC Class X2.
slave

5A T
C2,C3 = 10F 63V radial
C4,C5 = 330nF
D4 D2 C6 = 22F 63V radial
4x
1N4007 Semiconductors:
D1-D6 = 1N4007
C6 D8 Re1
D7 = zener diode 20V 1.3W
D3 D1
R1 R2 C1 D8 = 1N4002
22
180 180 63V T1 = BUZ41A (Siemens)
470n

R3
250V ~ R4 1N4002 RP310024
Miscellaneous:
470k 470k K1,K2,K3 = 2-way PCB termi-
T1 nal block, pitch 7.5mm
C4 D6
F1,F2 = fuse, 5A slow, with
TR1 PCB mount holder
Re1 = RP310024, 24V,
11,12, 13 6 C2
330n 1N4007 R5
BUZ41 * zie tekst
250VAC/16A
* see text
1k

D7 (Schrack/Siemens)
10
D5 C5
* voir texte
siehe Text Tr1 = ETD29 core (Philips).
K2 63V
C3 330n
* Primary: 12 turns 1.5mm dia.
1N4007 P1 20V
1W3 Cul wire. Secondary: 700
master

1, 2, 3 7 10M
F2 10 turns 0.2mm dia. CuL wire.
63V
Printed circuit board, order
ETD29
5A T 984052 - 11 code 984052-1.
12 : 700
*

70 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

D7 D5

H3
H4

T1 R5 D6
984052-1 C5 C3 C2 C4
P1
R3 R4

C1
R2

1-250489 984052-1
D1 D3 ROTKELE )C( (C) ELEKTOR
D2 D4
C6
D8

RE1
R1

TR1
F1 F2
5AT 5AT
SLAVE MASTER
OUT2 OUT1

H1

H2

~ K3 ~ ~ K1 ~ ~ K2 ~

wastes about 6 watts of mains some extent) the time the slave should be greater than about WARNING. Great care
power, it is smaller and cheaper remains on after the master has 4 V. The mains master/slave should be taken when work-
than a 1.5-VA mains trans- been switched off. Normally this control draws less than 27 mA ing with this circuit since it
former! delay will be about 3 seconds. with the relay switched on. is connected directly to the
Apart from adjusting the sensi- For reliable operation of the mains.
tivity, P1 also determines (to relay, the UGS potential of T1 (984052-1)
031

LED bar off indicator


Design: H. Bonekamp D12 6...12V
The simple indicator presented
in this article may be combined, D10 C1
1N4001
in principle, with any circuit
that contains an LED bar dis- D9
100
16V
play driven by a Type LM3914
3
IC. It ensures that an LED will D8
9 10
light when all LEDs driven by MODE L10 R3 D11
0...1V25 11
the LM3914 are out. This pre- D7
390

L9
5 IC1 12
vents one drawing the erroneous SIG L8
13
L7 D6
conclusion that, since all the 14
T1
LM3914 L6
LEDs are out, the circuit is 6
L5
15 D5
RHI
switched off. The circuit then 7
REFOUT L4
16 T2
2x
continues to draw current, L3
17 D4 BC557B
which, especially if it is battery 8
REFADJ L2
18

powered, costs unnecessary 4


RLO L1
1 D3

money, apart from other consid- T3


2
erations. D2

The LED in the monitor


D1 BC547B
draws a current of only 1 mA.
R1 R4 R5
When the LEDs forming the 1V25
R2
100k

47k

270

bar, D1D10 are all out, there is 1k2

no potential difference across


R3, so that T1 is off and T2 is on.
This results in T3, in conjunc- 984056 - 11

tion with R5 and the internal ref-


erence voltage of IC1, to form a
current source that causes a ensues across R3, which causes feedback at the emitter of T3, so the LEDs in the bar. Therefore,
constant current to flow through T1 to come on. This results in T2 that the current through R2 rises when T3 is enabled, the current
D11 so that the diode lights. being switched off so that there appreciably. through R2, and thus the total
When on of diodes D1D10 is no collector current through The current through R2 current in the circuit, is reduced
lights, a potential difference T3. Consequently, there is no determines the current through considerably. [984056]

Elektor Electronics 7-8/98 71


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

D7 D5

H3
H4

T1 R5 D6
984052-1 C5 C3 C2 C4
P1
R3 R4

C1
R2

1-250489 984052-1
D1 D3 ROTKELE )C( (C) ELEKTOR
D2 D4
C6
D8

RE1
R1

TR1
F1 F2
5AT 5AT
SLAVE MASTER
OUT2 OUT1

H1

H2

~ K3 ~ ~ K1 ~ ~ K2 ~

wastes about 6 watts of mains some extent) the time the slave should be greater than about WARNING. Great care
power, it is smaller and cheaper remains on after the master has 4 V. The mains master/slave should be taken when work-
than a 1.5-VA mains trans- been switched off. Normally this control draws less than 27 mA ing with this circuit since it
former! delay will be about 3 seconds. with the relay switched on. is connected directly to the
Apart from adjusting the sensi- For reliable operation of the mains.
tivity, P1 also determines (to relay, the UGS potential of T1 (984052-1)
031

LED bar off indicator


Design: H. Bonekamp D12 6...12V
The simple indicator presented
in this article may be combined, D10 C1
1N4001
in principle, with any circuit
that contains an LED bar dis- D9
100
16V
play driven by a Type LM3914
3
IC. It ensures that an LED will D8
9 10
light when all LEDs driven by MODE L10 R3 D11
0...1V25 11
the LM3914 are out. This pre- D7
390

L9
5 IC1 12
vents one drawing the erroneous SIG L8
13
L7 D6
conclusion that, since all the 14
T1
LM3914 L6
LEDs are out, the circuit is 6
L5
15 D5
RHI
switched off. The circuit then 7
REFOUT L4
16 T2
2x
continues to draw current, L3
17 D4 BC557B
which, especially if it is battery 8
REFADJ L2
18

powered, costs unnecessary 4


RLO L1
1 D3

money, apart from other consid- T3


2
erations. D2

The LED in the monitor


D1 BC547B
draws a current of only 1 mA.
R1 R4 R5
When the LEDs forming the 1V25
R2
100k

47k

270

bar, D1D10 are all out, there is 1k2

no potential difference across


R3, so that T1 is off and T2 is on.
This results in T3, in conjunc- 984056 - 11

tion with R5 and the internal ref-


erence voltage of IC1, to form a
current source that causes a ensues across R3, which causes feedback at the emitter of T3, so the LEDs in the bar. Therefore,
constant current to flow through T1 to come on. This results in T2 that the current through R2 rises when T3 is enabled, the current
D11 so that the diode lights. being switched off so that there appreciably. through R2, and thus the total
When on of diodes D1D10 is no collector current through The current through R2 current in the circuit, is reduced
lights, a potential difference T3. Consequently, there is no determines the current through considerably. [984056]

Elektor Electronics 7-8/98 71


032
low-cost development system
for PICs
fitted with a heatsink depending
on the current drawn by devices
connected up to K5 and any
LED indicators etc. on the pro-
totyping area.
DIP switch block S1 serves to
select one of the PIC clock
sources mentioned above. If so
required, an external clock sig-
nal is connected to K2. LED D4
serves to visualise the activity of
a very slow clock (single-step-
ping!).
Using the solder spots around
the PIC any one or all of the port
lines may be wired to the proto-
typing area for connection to
LEDs, switches, etc. used to
simulate input/output devices.
Connectors K3 and K4 are
intended for other projects
developed by the author. Con-
nector K5, finally, makes the on-
board 5-volt supply voltage
available to external devices.
(984060-1, LL)

K1
Design: R. Weber
There can be no doubt that
D2
Microchips PIC microcon- IC1 5V
trollers have achieved general 7805
1N4001
acceptance in the electronics
R4
industry and immense popular- 5V
1k5

ity among hobbyists. Here, a K3


C1 C7 C8 C2
PIC development system is pre- 5V D1
sented that will not break the C5 100 100n 100n 47
25V 16V
bank. The system should allow D3
100n
you to test the hardware opera- 5V
1N4148
tion of a PIC you have managed R2 14
to program yourself. For such a
10k

test it is often necessary to con- RB0


6
B0
nect simple input/output devices 4
MCLR RB1
7
B1
18 8
like LEDs and switches to vari- A0 RA0 IC2 RB2 B2
17 9
ous PIC port lines. Well, that is A1
1
RA1 PIC16C84 RB3
10
B3

perfectly possible using the pro- A2


2
RA2 RB4
11
B4
A3 RA3 RB5 B5
totyping area on the board used 3 12
A4 RA4 RB6 B6
to build this project. Provision is RB7
13
B7
also made to connect either an K2
OSC1 OSC2
external clock, a quartz-con- 16 15 5
trolled clock or an adjustable
RC controlled clock to the PIC. K4
The first option is particularly 5V S1

useful if you want to slow down


program execution to a speed at R5
4k7

which it becomes possible to


5V
verify the operation of individ- R1 R3
ual instructions. K5
10

1k5

P1
The development system has an X1
on-board 5-volt supply based on 100k
the fully domesticated 7805 reg- C6 C3 C4 D4

ulator. The (unregulated) input


4MHz
voltage (connected to K1) 680n 47p 47p

should not exceed about 12 V,


984060 - 11
and the regulator may have to be

72 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

T
+
T
IC1
+
K1 C8

G1
G2

K4

R4
C7
D1
D2 C2
C1
K5 P1

R5
D4
R3
K3 B3 B4
C6 B2 B5
B1 B6
R1
S1
C5
B0 B7
COMPONENTS LIST
C4

IC2
D3
C3
R2 Resistors:
A4 R1 = 10
A3 A0
X1 A2 A1 R2 = 10k
984060-1 R3,R4 = 1k5
1-060489
R5 = 4k7

G3
G4

K2 ROTKELE )C( T
+ P1 = 100k preset H

Capacitors:
(C) ELEKTOR C1 = 100F 25V radial
C2 = 47F 16V radial
984060-1

C3,C4 = 47pF ceramic


C5,C7,C8 = 100nF
C6 = 680nF

Semiconductors:
D1,D4 = low-current LED
D2 = 1N4001
D3 = 1N4148
IC1 = 7805
IC2 = PIC16C84

Miscellaneous:
S1 = 4-way DIP switch
K1-K5 = 2-way PCB terminal
block, pitch 5mm
X1 = 4MHz quartz crystal
Printed circuit board, order
code 984060-1
033

car interior lights delay


Design: W. Labudda switched on.
12V
Most cars do not have delayed When the door is closed
interior lights. The circuit pre- R1 R3 La1 again, T1 conducts and stops the
sented can put this right. It charging of C1. However, the
150k

10k

BUZ74
switches the interior lights of a capacitor is discharged fairly
car on and off gradually. This * see text
T2
slowly via R5, so that T2 is not
D1 D
makes it a lot easier, for * siehe Text
1N4148 R4
turned off immediately. This
instance, to find the ignition voir texte
* zie tekst 100k
G ensures that the interior light
keyhole when the lights have * T1 S remains on for a little while and
gone off after the car door has BUZ74 then goes out slowly.
been closed. S1 R2 R5
The time delays may be var-
Since the circuit must be BC337 C1 G S ied quite substantially by altering
4M7
100k

D
operated by the door switch, a * 47
the values of R3, R5, and C1.
slight intervention in the wiring 16V Circuit IC2 may be one of
of this switch is unavoidable. many types of n-channel power
984065 - 11
When the car door is MOSFET, but it should be able
opened, the door switch closes to handle drain-source voltages
the lights circuit to earth. When greater than 50 V. In the proto-
the door is closed (and the interior light remains off. the transistor is off. Capacitor C1 type, a BUZ74 is used which
switch is open), transistor T1, When the switch closes is charged fairly rapidly via R3 can handle D-S voltages of up to
whose base is linked to the (when the door is opened), the and D1, whereupon T2 comes on 500 V.
switch, cuts off T2, so that the base of T1 is at earth level and so that the interior light is [984065]

Elektor Electronics 7-8/98 73


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

T
+
T
IC1
+
K1 C8

G1
G2

K4

R4
C7
D1
D2 C2
C1
K5 P1

R5
D4
R3
K3 B3 B4
C6 B2 B5
B1 B6
R1
S1
C5
B0 B7
COMPONENTS LIST
C4

IC2
D3
C3
R2 Resistors:
A4 R1 = 10
A3 A0
X1 A2 A1 R2 = 10k
984060-1 R3,R4 = 1k5
1-060489
R5 = 4k7

G3
G4

K2 ROTKELE )C( T
+ P1 = 100k preset H

Capacitors:
(C) ELEKTOR C1 = 100F 25V radial
C2 = 47F 16V radial
984060-1

C3,C4 = 47pF ceramic


C5,C7,C8 = 100nF
C6 = 680nF

Semiconductors:
D1,D4 = low-current LED
D2 = 1N4001
D3 = 1N4148
IC1 = 7805
IC2 = PIC16C84

Miscellaneous:
S1 = 4-way DIP switch
K1-K5 = 2-way PCB terminal
block, pitch 5mm
X1 = 4MHz quartz crystal
Printed circuit board, order
code 984060-1
033

car interior lights delay


Design: W. Labudda switched on.
12V
Most cars do not have delayed When the door is closed
interior lights. The circuit pre- R1 R3 La1 again, T1 conducts and stops the
sented can put this right. It charging of C1. However, the
150k

10k

BUZ74
switches the interior lights of a capacitor is discharged fairly
car on and off gradually. This * see text
T2
slowly via R5, so that T2 is not
D1 D
makes it a lot easier, for * siehe Text
1N4148 R4
turned off immediately. This
instance, to find the ignition voir texte
* zie tekst 100k
G ensures that the interior light
keyhole when the lights have * T1 S remains on for a little while and
gone off after the car door has BUZ74 then goes out slowly.
been closed. S1 R2 R5
The time delays may be var-
Since the circuit must be BC337 C1 G S ied quite substantially by altering
4M7
100k

D
operated by the door switch, a * 47
the values of R3, R5, and C1.
slight intervention in the wiring 16V Circuit IC2 may be one of
of this switch is unavoidable. many types of n-channel power
984065 - 11
When the car door is MOSFET, but it should be able
opened, the door switch closes to handle drain-source voltages
the lights circuit to earth. When greater than 50 V. In the proto-
the door is closed (and the interior light remains off. the transistor is off. Capacitor C1 type, a BUZ74 is used which
switch is open), transistor T1, When the switch closes is charged fairly rapidly via R3 can handle D-S voltages of up to
whose base is linked to the (when the door is opened), the and D1, whereupon T2 comes on 500 V.
switch, cuts off T2, so that the base of T1 is at earth level and so that the interior light is [984065]

Elektor Electronics 7-8/98 73


034 auto power off
Design: H. Bonekamp The switch is formed by a
T1 U O = 9V
We are surrounded by battery- p-n-p darlington, T1, which is
operated equipment of all kinds, actuated by push-button switch
R1
and this array is growing still. I O < 20mA S1. The very high amplification

270k
Manufacturers and designers BC of the darlington enables it to be
516
lean over backwards to make C1 kept on fairly long with the aid
sure that their equipment draws BT1
100
R2 of a relatively small-value
a small current and can thus be 10V capacitor, C1 (= 100 F).

270k
operated by a battery. C2
Resistor R3 limits the charging
This has its flip side, too. 9V current of C1 to ensure a long
because even if the equipment R3
100 life of S1. Resistors R1 and R2,
10V

100
in question draws only a small in conjunction with C1, deter-
current, when it is not switched mine the switch-on time. When
S1
off, the battery is flat after a few this time has elapsed, R1
days or weeks. The circuit pre- ensures that T1 is switched off.
sented here can prevent this Since the darlington can
happening. 984055 - 11 handle a UBE of 10 V, a polar-
It may be added to all kinds ity protection diode is not
of equipment operating from a needed.
9 V battery and switches this off preset time has elapsed. The 20 mA, which is more than [984055]
automatically one minute after a peak switching current is enough for most applications.
035

pan pot
Design: T. Giesberts
C14
A pan pot enables a mono- 18V
phonic input signal to be posi- 100n
C4
tioned where desired between
the stereo loudspeakers. When C10 6p8
P1 (see diagram) is in the centre 18V R5
75k
position, there is no attenuation 100n
or amplification between the C1
R3 R4
2
1
7
input and output. When the con- 15k 15k
6
C6 R7

trol is turned away from the cen- IC3 100


47p 3 8 10 R6
tre position, the signal in one R2
4 L
10k

10k 5
channel will be amplified 3 dB
C5
more than the other. R1 1 NE5534
Circuit IC1 at the input is a 10k
2 7
C3 22p
buffer stage. It is arranged as an IC1
6
P1
C15
3 18V
inverter to ensure that the phase 8 10
100n
4 NE5534
of the input signal is identical to 5
C12
that of the output signal. The C2
10k 18V
input impedance is set by R1 lin. 100n
22p C7
(10 k).
The output of the buffer is C11
6p8
applied to stereo amplifiers IC2 18V R10
100n
and IC3. A special arrangement 75k
18V
here is the positioning of P1, in 18V
R8 R9 1
7
2 R
conjunction with R3, R4, R8, 15k 15k C9 R12
C16 6
and R9, in the feedback circuits 3
IC2 100
8
of both amplifiers. This means 100
4
10 R11
25V
10k

5
that any adjustment of the
C8
potentiometer will have opposite C17
NE5534
effects in the amplifiers. 22p
100
Series resistors R7 and R12 25V
C13
18V 18V
serve to ensure that the outputs 984032 - 11
18V 100n
can handle capacitive loads.

74 Elektor Electronics 7-8/98


034 auto power off
Design: H. Bonekamp The switch is formed by a
T1 U O = 9V
We are surrounded by battery- p-n-p darlington, T1, which is
operated equipment of all kinds, actuated by push-button switch
R1
and this array is growing still. I O < 20mA S1. The very high amplification

270k
Manufacturers and designers BC of the darlington enables it to be
516
lean over backwards to make C1 kept on fairly long with the aid
sure that their equipment draws BT1
100
R2 of a relatively small-value
a small current and can thus be 10V capacitor, C1 (= 100 F).

270k
operated by a battery. C2
Resistor R3 limits the charging
This has its flip side, too. 9V current of C1 to ensure a long
because even if the equipment R3
100 life of S1. Resistors R1 and R2,
10V

100
in question draws only a small in conjunction with C1, deter-
current, when it is not switched mine the switch-on time. When
S1
off, the battery is flat after a few this time has elapsed, R1
days or weeks. The circuit pre- ensures that T1 is switched off.
sented here can prevent this Since the darlington can
happening. 984055 - 11 handle a UBE of 10 V, a polar-
It may be added to all kinds ity protection diode is not
of equipment operating from a needed.
9 V battery and switches this off preset time has elapsed. The 20 mA, which is more than [984055]
automatically one minute after a peak switching current is enough for most applications.
035

pan pot
Design: T. Giesberts
C14
A pan pot enables a mono- 18V
phonic input signal to be posi- 100n
C4
tioned where desired between
the stereo loudspeakers. When C10 6p8
P1 (see diagram) is in the centre 18V R5
75k
position, there is no attenuation 100n
or amplification between the C1
R3 R4
2
1
7
input and output. When the con- 15k 15k
6
C6 R7

trol is turned away from the cen- IC3 100


47p 3 8 10 R6
tre position, the signal in one R2
4 L
10k

10k 5
channel will be amplified 3 dB
C5
more than the other. R1 1 NE5534
Circuit IC1 at the input is a 10k
2 7
C3 22p
buffer stage. It is arranged as an IC1
6
P1
C15
3 18V
inverter to ensure that the phase 8 10
100n
4 NE5534
of the input signal is identical to 5
C12
that of the output signal. The C2
10k 18V
input impedance is set by R1 lin. 100n
22p C7
(10 k).
The output of the buffer is C11
6p8
applied to stereo amplifiers IC2 18V R10
100n
and IC3. A special arrangement 75k
18V
here is the positioning of P1, in 18V
R8 R9 1
7
2 R
conjunction with R3, R4, R8, 15k 15k C9 R12
C16 6
and R9, in the feedback circuits 3
IC2 100
8
of both amplifiers. This means 100
4
10 R11
25V
10k

5
that any adjustment of the
C8
potentiometer will have opposite C17
NE5534
effects in the amplifiers. 22p
100
Series resistors R7 and R12 25V
C13
18V 18V
serve to ensure that the outputs 984032 - 11
18V 100n
can handle capacitive loads.

74 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Coupling capacitors C3, C6, stable even at unity gain. allow the pot being incorporated and a bandwidth of 80 dB, this
and C9, may be omitted if an off- Capacitors C1, C4, and C7, in good-quality control panels. figure is still only 0.0023%.
set voltage of 2030 mV is of no minimize any r.f. interference, Total harmonic distortion The circuit needs a power
consequence in the relevant resulting in a usable bandwidth plus noise (THD+N) at a fre- supply of 18 V, from which it
application. of 2.5 Hz to 200 kHz. quency of 1 kHz and a band- draws a current of about 16 mA.
Capacitors C2, C5, and C8, The performance of the circuit width of 22 kHz is 0.0014%. [984032]
ensure that the op amps remain is of sufficiently high quality to Over the band 20 Hz to 20 kHz
036

three-state continuity tester


Design: P. Lay 9V
The continuity tester can distin-
guish between high-, medium-, 4 1 14
D1 D2 D3
and low-resistance connections. R1
R4 IC1 IC2 IC3
When there is a conductance
10k
11 8 7
470

between the inputs, which are R7 R8 R9


linked to small probes, a current

680

680

680
flows from the +9 V line to 2 IC2a
earth via R1 and R2. The conse- P1 R5 1 3 2
quent potential difference, p.d., IC1a 1
10k

3
across R2 is used to determine 500k
IC2b
the transfer resistance. 9
5 4
Operational amplifier IC1c 8 1 IC3a IC2e
IC1c 1
amplifies the p.d. across R2 to a 10
5 2 & 3 11
1
12

degree that is set with P1. A 7


IC1b
window comparator, IC1a and 6
IC2c
IC1b, likens the output of IC1c to IC1 = LM324 7 6
the two levels set with potential 1
IC2 = 4049 IC3b IC2f
divider R4R6. Depending on IC3 = 4081
5
4 14 15
IC3c IC3d 6 & 1
the state of the outputs of the R2 R3 R6 IC2d
two comparators, three light- 10 11 10
1k

50k

22k

9
1
emitting diodes (LEDs) are dri- & &
ven via the gates and inverters
8 9 13 12
contained in IC3 and IC2
respectively in such a way that 984051 - 11
they indicate the transfer resis-
tance in three categories. When
the resistance is high, green p.d. across R2. circuit in its quiescent state of the supply line (which is not
diode D3 lights; when it is of It is possible to reduce the draws a current of about 17 mA, permissible).
medium value, yellow diode D2 value of the p.d. to enable lower but in operation each LED adds The supply voltage may be
lights, and when it is low, red transfer resistances to be about 10 mA to this. 518 V. The LEDs are driven
diode D1 lights. The levels at detected, but this would mean The LM324 (IC1) may be directly by the inverters in the
which the diodes light is set with an increase in the test current operated from a single supply 4049 (IC2), which can switch
P1, but note that in any case the through R2. line: R1 prevents the voltage at currents of up to 20 mA to earth.
minimum value depends on the With values as specified, the the input from reaching the level [984051]
037

automatic light dimmer


Design: Schallmoser When it is fitted, and the then goes out gradually. This has rectifier D1D4. Zener diode D5
In many cases, the dimmer pre- light is switched on, the lamp the advantage that it is not limits the potential across C2 to
sented here may be built into a does not come on fully for about immediately dark when the light about 15 V. After a short while,
wall-mounted box containing the 400 ms (which is not notice- is switched off. diode D6 lights, whereupon a
light switch. It is intended for able). When the light is When light switch S1 is potential difference ensues
use with 240 V incandescent switched off, it stays on turned on, capacitor C2 is across light sensitive resistor R3,
lamps only. unchanged for about 20 s, and charged via R1, C1 and bridge which is sufficient to trigger triac

Elektor Electronics 7-8/98 75


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Coupling capacitors C3, C6, stable even at unity gain. allow the pot being incorporated and a bandwidth of 80 dB, this
and C9, may be omitted if an off- Capacitors C1, C4, and C7, in good-quality control panels. figure is still only 0.0023%.
set voltage of 2030 mV is of no minimize any r.f. interference, Total harmonic distortion The circuit needs a power
consequence in the relevant resulting in a usable bandwidth plus noise (THD+N) at a fre- supply of 18 V, from which it
application. of 2.5 Hz to 200 kHz. quency of 1 kHz and a band- draws a current of about 16 mA.
Capacitors C2, C5, and C8, The performance of the circuit width of 22 kHz is 0.0014%. [984032]
ensure that the op amps remain is of sufficiently high quality to Over the band 20 Hz to 20 kHz
036

three-state continuity tester


Design: P. Lay 9V
The continuity tester can distin-
guish between high-, medium-, 4 1 14
D1 D2 D3
and low-resistance connections. R1
R4 IC1 IC2 IC3
When there is a conductance
10k
11 8 7
470

between the inputs, which are R7 R8 R9


linked to small probes, a current

680

680

680
flows from the +9 V line to 2 IC2a
earth via R1 and R2. The conse- P1 R5 1 3 2
quent potential difference, p.d., IC1a 1
10k

3
across R2 is used to determine 500k
IC2b
the transfer resistance. 9
5 4
Operational amplifier IC1c 8 1 IC3a IC2e
IC1c 1
amplifies the p.d. across R2 to a 10
5 2 & 3 11
1
12

degree that is set with P1. A 7


IC1b
window comparator, IC1a and 6
IC2c
IC1b, likens the output of IC1c to IC1 = LM324 7 6
the two levels set with potential 1
IC2 = 4049 IC3b IC2f
divider R4R6. Depending on IC3 = 4081
5
4 14 15
IC3c IC3d 6 & 1
the state of the outputs of the R2 R3 R6 IC2d
two comparators, three light- 10 11 10
1k

50k

22k

9
1
emitting diodes (LEDs) are dri- & &
ven via the gates and inverters
8 9 13 12
contained in IC3 and IC2
respectively in such a way that 984051 - 11
they indicate the transfer resis-
tance in three categories. When
the resistance is high, green p.d. across R2. circuit in its quiescent state of the supply line (which is not
diode D3 lights; when it is of It is possible to reduce the draws a current of about 17 mA, permissible).
medium value, yellow diode D2 value of the p.d. to enable lower but in operation each LED adds The supply voltage may be
lights, and when it is low, red transfer resistances to be about 10 mA to this. 518 V. The LEDs are driven
diode D1 lights. The levels at detected, but this would mean The LM324 (IC1) may be directly by the inverters in the
which the diodes light is set with an increase in the test current operated from a single supply 4049 (IC2), which can switch
P1, but note that in any case the through R2. line: R1 prevents the voltage at currents of up to 20 mA to earth.
minimum value depends on the With values as specified, the the input from reaching the level [984051]
037

automatic light dimmer


Design: Schallmoser When it is fitted, and the then goes out gradually. This has rectifier D1D4. Zener diode D5
In many cases, the dimmer pre- light is switched on, the lamp the advantage that it is not limits the potential across C2 to
sented here may be built into a does not come on fully for about immediately dark when the light about 15 V. After a short while,
wall-mounted box containing the 400 ms (which is not notice- is switched off. diode D6 lights, whereupon a
light switch. It is intended for able). When the light is When light switch S1 is potential difference ensues
use with 240 V incandescent switched off, it stays on turned on, capacitor C2 is across light sensitive resistor R3,
lamps only. unchanged for about 20 s, and charged via R1, C1 and bridge which is sufficient to trigger triac

Elektor Electronics 7-8/98 75


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Coupling capacitors C3, C6, stable even at unity gain. allow the pot being incorporated and a bandwidth of 80 dB, this
and C9, may be omitted if an off- Capacitors C1, C4, and C7, in good-quality control panels. figure is still only 0.0023%.
set voltage of 2030 mV is of no minimize any r.f. interference, Total harmonic distortion The circuit needs a power
consequence in the relevant resulting in a usable bandwidth plus noise (THD+N) at a fre- supply of 18 V, from which it
application. of 2.5 Hz to 200 kHz. quency of 1 kHz and a band- draws a current of about 16 mA.
Capacitors C2, C5, and C8, The performance of the circuit width of 22 kHz is 0.0014%. [984032]
ensure that the op amps remain is of sufficiently high quality to Over the band 20 Hz to 20 kHz
036

three-state continuity tester


Design: P. Lay 9V
The continuity tester can distin-
guish between high-, medium-, 4 1 14
D1 D2 D3
and low-resistance connections. R1
R4 IC1 IC2 IC3
When there is a conductance
10k
11 8 7
470

between the inputs, which are R7 R8 R9


linked to small probes, a current

680

680

680
flows from the +9 V line to 2 IC2a
earth via R1 and R2. The conse- P1 R5 1 3 2
quent potential difference, p.d., IC1a 1
10k

3
across R2 is used to determine 500k
IC2b
the transfer resistance. 9
5 4
Operational amplifier IC1c 8 1 IC3a IC2e
IC1c 1
amplifies the p.d. across R2 to a 10
5 2 & 3 11
1
12

degree that is set with P1. A 7


IC1b
window comparator, IC1a and 6
IC2c
IC1b, likens the output of IC1c to IC1 = LM324 7 6
the two levels set with potential 1
IC2 = 4049 IC3b IC2f
divider R4R6. Depending on IC3 = 4081
5
4 14 15
IC3c IC3d 6 & 1
the state of the outputs of the R2 R3 R6 IC2d
two comparators, three light- 10 11 10
1k

50k

22k

9
1
emitting diodes (LEDs) are dri- & &
ven via the gates and inverters
8 9 13 12
contained in IC3 and IC2
respectively in such a way that 984051 - 11
they indicate the transfer resis-
tance in three categories. When
the resistance is high, green p.d. across R2. circuit in its quiescent state of the supply line (which is not
diode D3 lights; when it is of It is possible to reduce the draws a current of about 17 mA, permissible).
medium value, yellow diode D2 value of the p.d. to enable lower but in operation each LED adds The supply voltage may be
lights, and when it is low, red transfer resistances to be about 10 mA to this. 518 V. The LEDs are driven
diode D1 lights. The levels at detected, but this would mean The LM324 (IC1) may be directly by the inverters in the
which the diodes light is set with an increase in the test current operated from a single supply 4049 (IC2), which can switch
P1, but note that in any case the through R2. line: R1 prevents the voltage at currents of up to 20 mA to earth.
minimum value depends on the With values as specified, the the input from reaching the level [984051]
037

automatic light dimmer


Design: Schallmoser When it is fitted, and the then goes out gradually. This has rectifier D1D4. Zener diode D5
In many cases, the dimmer pre- light is switched on, the lamp the advantage that it is not limits the potential across C2 to
sented here may be built into a does not come on fully for about immediately dark when the light about 15 V. After a short while,
wall-mounted box containing the 400 ms (which is not notice- is switched off. diode D6 lights, whereupon a
light switch. It is intended for able). When the light is When light switch S1 is potential difference ensues
use with 240 V incandescent switched off, it stays on turned on, capacitor C2 is across light sensitive resistor R3,
lamps only. unchanged for about 20 s, and charged via R1, C1 and bridge which is sufficient to trigger triac

Elektor Electronics 7-8/98 75


Tr1. The light then comes on.
When the light switch is R5 R6
turned off, C2 is discharged via 470k 470k
K1
P1, R2 and D6. When the poten- F1 S1 C1
X2
tial across C2 drops, the bright-
R1
ness of the LED diminishes, so 2A T 47n
~

470
250V K2
that the p.d. across R3 also
drops. The increasing resistance 1W
of R3 effects phase angle control
D1 D2
of the triac so that the light is
P1
dimmed gradually. The dimming R4
time may be altered with P1 10k

2k2
R2
within the time range deter-

2k2
D4 D3
mined by network R2-C2.
The circuit operates cor- R3
4x 1N4007 D5 D6
rectly only, of course, when the C2
C4
LDR is not exposed to light LDR Tri1
2200
other than that from the LED. 15V 16V
Di1 100n

The type of LDR is not par- 1W3 250V ~


R7
ticularly important, as long as it

220
C3
is not too long: in the prototype,
a model with a length of 5 mm 100n 1W
was used. [984059]
BTA04/600T 984059 - 11
038

microphone
valve preamplifier
Design: G. Corinth 250V

To many hi-fi enthusiasts and R6 R10


musicians, the thermionic valve
10k

10k

B1, B2 = E88CC; ECC88


(electron tube), the sound of a
valve amplifier cannot be bet- +237V
R5
+231V
R9
tered by that of a solid-state C6 C9
100k

47k

amplifier. To satisfy that convic- 16 16


tion, here is a microphone pre- C7

amplifier based on valves. +106V


1mA3 47n
The circuit in the diagram is 1 8mA

intended for use with a studio B1b


1
microphone with or without 2
B2b
R4 C10 R11
phantom supply. C5 +141V
2
1M

3 47k
The microphone output sig- 100n C12
Tr1 = P2473M 470n
nal is applied to the control grid (Pikatron)
3
1 : 20
of V1A via transformer Tr1, 6
+83V
0mA9
6
220
B1a
which has a transformation ratio R1 Tr1 B2a
+84V
R15
C1 R12 R14
of 1:20. The input double triode, 7
6k8

10k

7
470k

470

a Type ECC88 or E88CC is con- 5n


1% 8
0%1
figured as a cascode circuit. 8

This type of circuit has the high R2


C2
6k8

+3V7
amplification of a pentode and R3
+2V3
R7 R8
+80V
R13
the low noise of a triode. 5n C4 C8 C11
1k8

470k

2k

10k

0%1 1%
The grid bias for V1B is the 47 22 120p
potential drop across R4, so that C3

the operating point is estab- 10


lished automatically. B1
4 5 5
B2
4
P2 P3
The output of V1B is applied P1 984054 - 11

to the control grid of V2A This 48V


500 100k 10k
half of another double triode Type log
6V3
E88CC or ECC88, is arranged as a
straightforward voltage amplifier.
Its output is applied to grounded-
anode amplifier V2B. The heater voltage is stabilized by Building the amplifier is not Tr1 to the grid of V1A. The ratings
Power is supplied by a tradi- a solid-state variable regulator. specially difficult, as long as the of the various resistors and capac-
tional valve circuit providing an The heater current is 600 mA. usual care is taken, such as cor- itors can be derived readily from
anode voltage of 250 V and a The anode current is about rect balancing and low-capaci- the voltage and current values
heater (direct) voltage of 6.3 V. 15 mA. tance link from the secondary of shown in the diagram.

76 Elektor Electronics 7-8/98


Tr1. The light then comes on.
When the light switch is R5 R6
turned off, C2 is discharged via 470k 470k
K1
P1, R2 and D6. When the poten- F1 S1 C1
X2
tial across C2 drops, the bright-
R1
ness of the LED diminishes, so 2A T 47n
~

470
250V K2
that the p.d. across R3 also
drops. The increasing resistance 1W
of R3 effects phase angle control
D1 D2
of the triac so that the light is
P1
dimmed gradually. The dimming R4
time may be altered with P1 10k

2k2
R2
within the time range deter-

2k2
D4 D3
mined by network R2-C2.
The circuit operates cor- R3
4x 1N4007 D5 D6
rectly only, of course, when the C2
C4
LDR is not exposed to light LDR Tri1
2200
other than that from the LED. 15V 16V
Di1 100n

The type of LDR is not par- 1W3 250V ~


R7
ticularly important, as long as it

220
C3
is not too long: in the prototype,
a model with a length of 5 mm 100n 1W
was used. [984059]
BTA04/600T 984059 - 11
038

microphone
valve preamplifier
Design: G. Corinth 250V

To many hi-fi enthusiasts and R6 R10


musicians, the thermionic valve
10k

10k

B1, B2 = E88CC; ECC88


(electron tube), the sound of a
valve amplifier cannot be bet- +237V
R5
+231V
R9
tered by that of a solid-state C6 C9
100k

47k

amplifier. To satisfy that convic- 16 16


tion, here is a microphone pre- C7

amplifier based on valves. +106V


1mA3 47n
The circuit in the diagram is 1 8mA

intended for use with a studio B1b


1
microphone with or without 2
B2b
R4 C10 R11
phantom supply. C5 +141V
2
1M

3 47k
The microphone output sig- 100n C12
Tr1 = P2473M 470n
nal is applied to the control grid (Pikatron)
3
1 : 20
of V1A via transformer Tr1, 6
+83V
0mA9
6
220
B1a
which has a transformation ratio R1 Tr1 B2a
+84V
R15
C1 R12 R14
of 1:20. The input double triode, 7
6k8

10k

7
470k

470

a Type ECC88 or E88CC is con- 5n


1% 8
0%1
figured as a cascode circuit. 8

This type of circuit has the high R2


C2
6k8

+3V7
amplification of a pentode and R3
+2V3
R7 R8
+80V
R13
the low noise of a triode. 5n C4 C8 C11
1k8

470k

2k

10k

0%1 1%
The grid bias for V1B is the 47 22 120p
potential drop across R4, so that C3

the operating point is estab- 10


lished automatically. B1
4 5 5
B2
4
P2 P3
The output of V1B is applied P1 984054 - 11

to the control grid of V2A This 48V


500 100k 10k
half of another double triode Type log
6V3
E88CC or ECC88, is arranged as a
straightforward voltage amplifier.
Its output is applied to grounded-
anode amplifier V2B. The heater voltage is stabilized by Building the amplifier is not Tr1 to the grid of V1A. The ratings
Power is supplied by a tradi- a solid-state variable regulator. specially difficult, as long as the of the various resistors and capac-
tional valve circuit providing an The heater current is 600 mA. usual care is taken, such as cor- itors can be derived readily from
anode voltage of 250 V and a The anode current is about rect balancing and low-capaci- the voltage and current values
heater (direct) voltage of 6.3 V. 15 mA. tance link from the secondary of shown in the diagram.

76 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Brief parameters Preset P1 is adjusted for an


Frequency range 3020,000 Hz 3 dB amplification = 104 (80 dB) E88CC
Distortion and P3 for = 102 (40 dB). ECC88
Maximum drive, a = 80 dB, 3010,000 Hz 0.1% The potential divider may also be
Maximum drive, a = 40 dB, 3080 Hz 0.2% constructed from fixed resistors, f
when P1 = 130 ; P3 = 8640 ; f 5 a1
Maximum drive, a = 40 dB, 8010,000 Hz 0.1% 4 6
and P2 = 549 + 9760 +
Output voltage at maximum drive 8 V r.m.s. k2
68100 + 24100 . Successive 3 7 g1
Drive limit for k = 1% nodes in the chain represent
With a = 80 dB +34 dBm (38 V r.m.s.) 10 dB gain intervals so that gains 2 8
With a = 40 dB +25 dBm (13.5 V r.m.s.) of 40 dB and 80 dB respectively g2 f f k1
Noise output (input terminated by 200 impedance) are set readily. 1 9
Weighted, a = 80 dB 117 dB The microphone amplifier a2 S
Weighted, a = 40 dB 116.6 dB does not just meet the require- 984054 - 12

Unweighted, a = 80 dB 128 dB ments of a good hi-fi unit, but sat-


Unweighted, a = 40 dB 127 dB isfies those of professional audio
Common mode rejection 60 dB equipment. In this context, mea- ance = 200 , load resistance =
Output impedance surements on the prototype were 5 k). The results are shown in
taken under the rules of profes- the table.
3080 Hz about 200
sional equipment (source imped- [984054]
8020,000 Hz about 120
039

op amp with hysteresis


Design: H. Bonekamp So, when a high input
5V
At first glance, the circuit in the impedance and hysteresis are
diagram does not look out of the R2
wanted, the solution is to obtain
ordinary, and yet, it is. This is C1 the needed positive feedback by
10k

because it combines two char- 10 10V


coupling the resistor network not
acteristics that are usually to the +ve input but to the off-
assumed to be incompatible: R4 set correction pin. When this
hysteresis and a high input 56k done, the hysteresis so obtained
impedance. In a standard IC1 is calculated from
1
op amp circuit, this is, indeed, 3 7
true, because the creation of 6 Uh = 1.2/R4Uo,
hysteresis is normally achieved 2 5
by positive feedback to the +ve 8
4 where Uh is the hysteresis volt-
R1 R3
input of the op amp. Unfortu- TLC271 age and Uo is the output voltage
10M

10k

nately, the requisite resistance of the op amp, both in volts The


network causes a drastic deteri- value of R4 must be in k. The
oration of the original high input level of Uo depends, of course,
impedance of the op amp. 984063 - 11
on the load. [984063]
040

5V

sounds from S1
D1
C1
D2

the Old West R2 100n R3


LS1
330

330

S2
13

1 12 8
Holtek Application In the quiescent state, the S3 2 IC1 18
This circuit shows how far inte- circuit draws a current not 4 10 R1
gration can be taken: IC1, a Type exceeding 1 A.
120k

5 7
HT82207 from Holtek does vir- S4 8 14

tually everything. Only a (small) S1 bugle 9 17 T1


11 HT82207 15
loudspeaker and the necessary S2 neighing
S5 3 16
selectors need to be added. S3 sound of hooves
BD679
The standard 18-pin Type S4 pistol shot
HT82207 is an integrated sound S5 crack of a rifle S6
6 R4

generator, producing sounds typ- S6 cannon fire


1k

ical of the Old West. The various [984071]


sounds are selected by S1S6 as
listed below. 984071 - 11

Elektor Electronics 7-8/98 77


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Brief parameters Preset P1 is adjusted for an


Frequency range 3020,000 Hz 3 dB amplification = 104 (80 dB) E88CC
Distortion and P3 for = 102 (40 dB). ECC88
Maximum drive, a = 80 dB, 3010,000 Hz 0.1% The potential divider may also be
Maximum drive, a = 40 dB, 3080 Hz 0.2% constructed from fixed resistors, f
when P1 = 130 ; P3 = 8640 ; f 5 a1
Maximum drive, a = 40 dB, 8010,000 Hz 0.1% 4 6
and P2 = 549 + 9760 +
Output voltage at maximum drive 8 V r.m.s. k2
68100 + 24100 . Successive 3 7 g1
Drive limit for k = 1% nodes in the chain represent
With a = 80 dB +34 dBm (38 V r.m.s.) 10 dB gain intervals so that gains 2 8
With a = 40 dB +25 dBm (13.5 V r.m.s.) of 40 dB and 80 dB respectively g2 f f k1
Noise output (input terminated by 200 impedance) are set readily. 1 9
Weighted, a = 80 dB 117 dB The microphone amplifier a2 S
Weighted, a = 40 dB 116.6 dB does not just meet the require- 984054 - 12

Unweighted, a = 80 dB 128 dB ments of a good hi-fi unit, but sat-


Unweighted, a = 40 dB 127 dB isfies those of professional audio
Common mode rejection 60 dB equipment. In this context, mea- ance = 200 , load resistance =
Output impedance surements on the prototype were 5 k). The results are shown in
taken under the rules of profes- the table.
3080 Hz about 200
sional equipment (source imped- [984054]
8020,000 Hz about 120
039

op amp with hysteresis


Design: H. Bonekamp So, when a high input
5V
At first glance, the circuit in the impedance and hysteresis are
diagram does not look out of the R2
wanted, the solution is to obtain
ordinary, and yet, it is. This is C1 the needed positive feedback by
10k

because it combines two char- 10 10V


coupling the resistor network not
acteristics that are usually to the +ve input but to the off-
assumed to be incompatible: R4 set correction pin. When this
hysteresis and a high input 56k done, the hysteresis so obtained
impedance. In a standard IC1 is calculated from
1
op amp circuit, this is, indeed, 3 7
true, because the creation of 6 Uh = 1.2/R4Uo,
hysteresis is normally achieved 2 5
by positive feedback to the +ve 8
4 where Uh is the hysteresis volt-
R1 R3
input of the op amp. Unfortu- TLC271 age and Uo is the output voltage
10M

10k

nately, the requisite resistance of the op amp, both in volts The


network causes a drastic deteri- value of R4 must be in k. The
oration of the original high input level of Uo depends, of course,
impedance of the op amp. 984063 - 11
on the load. [984063]
040

5V

sounds from S1
D1
C1
D2

the Old West R2 100n R3


LS1
330

330

S2
13

1 12 8
Holtek Application In the quiescent state, the S3 2 IC1 18
This circuit shows how far inte- circuit draws a current not 4 10 R1
gration can be taken: IC1, a Type exceeding 1 A.
120k

5 7
HT82207 from Holtek does vir- S4 8 14

tually everything. Only a (small) S1 bugle 9 17 T1


11 HT82207 15
loudspeaker and the necessary S2 neighing
S5 3 16
selectors need to be added. S3 sound of hooves
BD679
The standard 18-pin Type S4 pistol shot
HT82207 is an integrated sound S5 crack of a rifle S6
6 R4

generator, producing sounds typ- S6 cannon fire


1k

ical of the Old West. The various [984071]


sounds are selected by S1S6 as
listed below. 984071 - 11

Elektor Electronics 7-8/98 77


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Brief parameters Preset P1 is adjusted for an


Frequency range 3020,000 Hz 3 dB amplification = 104 (80 dB) E88CC
Distortion and P3 for = 102 (40 dB). ECC88
Maximum drive, a = 80 dB, 3010,000 Hz 0.1% The potential divider may also be
Maximum drive, a = 40 dB, 3080 Hz 0.2% constructed from fixed resistors, f
when P1 = 130 ; P3 = 8640 ; f 5 a1
Maximum drive, a = 40 dB, 8010,000 Hz 0.1% 4 6
and P2 = 549 + 9760 +
Output voltage at maximum drive 8 V r.m.s. k2
68100 + 24100 . Successive 3 7 g1
Drive limit for k = 1% nodes in the chain represent
With a = 80 dB +34 dBm (38 V r.m.s.) 10 dB gain intervals so that gains 2 8
With a = 40 dB +25 dBm (13.5 V r.m.s.) of 40 dB and 80 dB respectively g2 f f k1
Noise output (input terminated by 200 impedance) are set readily. 1 9
Weighted, a = 80 dB 117 dB The microphone amplifier a2 S
Weighted, a = 40 dB 116.6 dB does not just meet the require- 984054 - 12

Unweighted, a = 80 dB 128 dB ments of a good hi-fi unit, but sat-


Unweighted, a = 40 dB 127 dB isfies those of professional audio
Common mode rejection 60 dB equipment. In this context, mea- ance = 200 , load resistance =
Output impedance surements on the prototype were 5 k). The results are shown in
taken under the rules of profes- the table.
3080 Hz about 200
sional equipment (source imped- [984054]
8020,000 Hz about 120
039

op amp with hysteresis


Design: H. Bonekamp So, when a high input
5V
At first glance, the circuit in the impedance and hysteresis are
diagram does not look out of the R2
wanted, the solution is to obtain
ordinary, and yet, it is. This is C1 the needed positive feedback by
10k

because it combines two char- 10 10V


coupling the resistor network not
acteristics that are usually to the +ve input but to the off-
assumed to be incompatible: R4 set correction pin. When this
hysteresis and a high input 56k done, the hysteresis so obtained
impedance. In a standard IC1 is calculated from
1
op amp circuit, this is, indeed, 3 7
true, because the creation of 6 Uh = 1.2/R4Uo,
hysteresis is normally achieved 2 5
by positive feedback to the +ve 8
4 where Uh is the hysteresis volt-
R1 R3
input of the op amp. Unfortu- TLC271 age and Uo is the output voltage
10M

10k

nately, the requisite resistance of the op amp, both in volts The


network causes a drastic deteri- value of R4 must be in k. The
oration of the original high input level of Uo depends, of course,
impedance of the op amp. 984063 - 11
on the load. [984063]
040

5V

sounds from S1
D1
C1
D2

the Old West R2 100n R3


LS1
330

330

S2
13

1 12 8
Holtek Application In the quiescent state, the S3 2 IC1 18
This circuit shows how far inte- circuit draws a current not 4 10 R1
gration can be taken: IC1, a Type exceeding 1 A.
120k

5 7
HT82207 from Holtek does vir- S4 8 14

tually everything. Only a (small) S1 bugle 9 17 T1


11 HT82207 15
loudspeaker and the necessary S2 neighing
S5 3 16
selectors need to be added. S3 sound of hooves
BD679
The standard 18-pin Type S4 pistol shot
HT82207 is an integrated sound S5 crack of a rifle S6
6 R4

generator, producing sounds typ- S6 cannon fire


1k

ical of the Old West. The various [984071]


sounds are selected by S1S6 as
listed below. 984071 - 11

Elektor Electronics 7-8/98 77


041 cable analyser
between pin 1 of the analyser 9
and the case; one of 2 k

1k
R9
between pin 2 and the case, and
so on, increasing the value of the 8
resistor by 1 k for each suc-

1k
R8

cessive pin.
7
When this is completed,

1k
R7
connect the analyser to the
cable to be tested and measure 6
the resistance between pin 1

1k
R6
and the case. The value so
obtained in kilohms is the num- 5
ber of the pin at the other end of

1k
R5

the cable.
4
The arrangement is shown in

1k
R4
the diagram. If at all possible,
use resistors in the E96 series, 3
since these give best accuracy.

1k
R3
[B. Vock 974108]
2
Orignal design: B. Vock for checking cables with D9 and Since this design was com-

1k
R2
Modified by: S. Wolf D25 connectors will suffice. pleted, a reader has suggested a
Many constructors have various The shape of the analyser simple improvement to it, 1

1k
R1
cables lying around and after a will depend to a large extent on whereby the nine resistors are
time do not know any longer the type of cable to be checked. linked in series instead of in 0
what they are for or what their It may be made as a connector, parallel. The great advantage of 984007 - 11
pin connections are. It is not as a bus, or as a feed-through this simplification is that all
always possible to check this cable. Since only standard com- nine resistors have the same
with a multimeter. The analyser ponents are needed, the cost is value: 1 or 1 k. The test the multimeter is the nuber of
may be of help in such a situa- low. method remains the same: the the pin at the other end of the
tion. In most cases, an analyser Solder a resistor of 1 k value in or k measured on cable. [ 984007]
042

pulse rate monitor


Design: P. Lay D1
C3
This simple circuit enables you R5
1N4001
4
to listen to your heartbeat, for 4n7
220k

R4 IC1
instance, while you are exercis- 1M 11 T1
C7
ing. R3 S1
2
The transducer used for 1k 100
16V
1 10 BC547B
detecting the pulse is an electret 3
IC1a
8
microphone, X1 in the diagram. R2 9
IC1c 100
R8
The model used has two (polar- C1
220k

P1 T2
ized) terminals. As usual with 22k 220n C5
this type of microphone, it func- 100p
BT1
tions via a series resistor, R1. C2
R7 BC557B
The potential drop across this 10k 9V
resistor is applied to op amp 470
16V
6 C6
7
IC1a via C1. The amplification of R1
IC1b IC1 = TLC274
1000
5
the op amp is set to between 16V

40 and 1000 with preset P1.


2k2

R9
47

13
Network R4-C3 in the feed- 14
IC1d
back loop of IC1a is a low-pass X1
R6 12
TEL1
C4
filter with a cut-off frequency of
220k

34 Hz. Higher frequencies are 22


16V
not needed for the present appli-
cation. A pulse rate of 180* is 984013-11

78 Elektor Electronics 7-8/98


041 cable analyser
between pin 1 of the analyser 9
and the case; one of 2 k

1k
R9
between pin 2 and the case, and
so on, increasing the value of the 8
resistor by 1 k for each suc-

1k
R8

cessive pin.
7
When this is completed,

1k
R7
connect the analyser to the
cable to be tested and measure 6
the resistance between pin 1

1k
R6
and the case. The value so
obtained in kilohms is the num- 5
ber of the pin at the other end of

1k
R5

the cable.
4
The arrangement is shown in

1k
R4
the diagram. If at all possible,
use resistors in the E96 series, 3
since these give best accuracy.

1k
R3
[B. Vock 974108]
2
Orignal design: B. Vock for checking cables with D9 and Since this design was com-

1k
R2
Modified by: S. Wolf D25 connectors will suffice. pleted, a reader has suggested a
Many constructors have various The shape of the analyser simple improvement to it, 1

1k
R1
cables lying around and after a will depend to a large extent on whereby the nine resistors are
time do not know any longer the type of cable to be checked. linked in series instead of in 0
what they are for or what their It may be made as a connector, parallel. The great advantage of 984007 - 11
pin connections are. It is not as a bus, or as a feed-through this simplification is that all
always possible to check this cable. Since only standard com- nine resistors have the same
with a multimeter. The analyser ponents are needed, the cost is value: 1 or 1 k. The test the multimeter is the nuber of
may be of help in such a situa- low. method remains the same: the the pin at the other end of the
tion. In most cases, an analyser Solder a resistor of 1 k value in or k measured on cable. [ 984007]
042

pulse rate monitor


Design: P. Lay D1
C3
This simple circuit enables you R5
1N4001
4
to listen to your heartbeat, for 4n7
220k

R4 IC1
instance, while you are exercis- 1M 11 T1
C7
ing. R3 S1
2
The transducer used for 1k 100
16V
1 10 BC547B
detecting the pulse is an electret 3
IC1a
8
microphone, X1 in the diagram. R2 9
IC1c 100
R8
The model used has two (polar- C1
220k

P1 T2
ized) terminals. As usual with 22k 220n C5
this type of microphone, it func- 100p
BT1
tions via a series resistor, R1. C2
R7 BC557B
The potential drop across this 10k 9V
resistor is applied to op amp 470
16V
6 C6
7
IC1a via C1. The amplification of R1
IC1b IC1 = TLC274
1000
5
the op amp is set to between 16V

40 and 1000 with preset P1.


2k2

R9
47

13
Network R4-C3 in the feed- 14
IC1d
back loop of IC1a is a low-pass X1
R6 12
TEL1
C4
filter with a cut-off frequency of
220k

34 Hz. Higher frequencies are 22


16V
not needed for the present appli-
cation. A pulse rate of 180* is 984013-11

78 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

equivalent to a frequency of such as that used with Sony ence signals from it. * Unless you are a young
3 Hz. So as to cater for a wide Walkman sets, it is best to The supply voltage for the superfit top-class athlete, you
range of pulse rates, the cut-off connect the two earphones in pulse rate monitor is decoupled should see your GP immediately
frequency is made just over 11 series. by capacitor C7, immediately when you find you have a pulse
times as high as that representing Operational amplifier IC1b is after polarity protection diode rate of 180. As a general guide,
the highest pulse rate. used as an active potential D1. the absolute maximum pulse rate
Operational amplifier IC1c, divider. The voltage across the Owing to the use of CMOS for a young, very fit person is
in conjunction with push-pull actual divider, R5-R6, is half the op amps, the current drain does 180, for a middle-aged person,
am-plifier T1-T2, creates a head- supply voltage. This voltage is not exceed 10 mA, so that oper- 160, and for an elderly person,
phone amplifier, whose output buffered by IC1b, taken from the ation from a 9 V battery is per- 140. When exercising, the pulse
resistance is equivalent to the low-resistance output, pin 7, of fectly feasible. A dry alkaline- rate of a not very fit person
value of R9, that is, 47 . This this op amp and used as refer- manganese battery will have a should not exceed 60% of these
makes the circuit usable for vir- ence for IC1a, and as operating life of about 50 hours. maxima.
tually any kind of headset. The voltage for the electret micro- [984013] Editor
output is short-circuit-proof. In phone. The voltage is decoupled
case of certain headphones, by C4 to remove any interfer-
043

general purpose oscillator


1a 1b is great. However, as long as the fast for this type of oscillator. If
1
positive feedback is fast enough, one of the inverters is replaced
nothing untoward will happen. by a buffer, and the oscillator is
However, when delays occur modified as shown in Figure 1b,
owing to the transit time of the the transit time is limited to that
1 1 components used, the problem of one gate: the lower trace in
may rear its head. Figure 2 shows that the oscilla-
1
In the configuration of Fig- tor then works correctly.
ure 1a, the signal passes through The practical circuit diagram
984044 - 11
two inverters and thus experi- of the general-purpose oscillator
ences twice the transit time of a is shown in Figure 3. Note that
2 single gate. The upper signal in two XOR gates are used to
the oscilloscope trace in Fig- ensure that the transit time of
ure 2 shows the result of this: the buffer is equal to that of the
the gates used are simply too inverter. [ 984044]

3
IC1a
1
3
2 =1
C1

R1 1n

68k
R2
6k8

IC1b
4
6
5 =1
5V
Design: H. Bonekamp spurious switching pulses are
IC1 = 74HC86
The oscillator shown in Figure generated near the zero cross-
1 is frequently used in digital ings. This problem can be cured 5V +5V
circuits and may, therefore, look only by ensuring that the rise
IC1c IC1d
very familiar. Many readers may time of the input signal is 8 11
C3 14 C2
not know that this type of oscil- shorter than the reaction time of =1 =1 IC1
lator suffers from a nasty draw- the relevant gate. 9 10 12 13
100n 7 10
10V
back caused by noise. When When the oscillator is built
the amplitude of the noise is with fast logic gates, such as
984044 - 13
higher than the hysteresis of the those in the HC-series, the like-
gates used for the oscillator, lihood of the problem occurring

Elektor Electronics 7-8/98 79


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

equivalent to a frequency of such as that used with Sony ence signals from it. * Unless you are a young
3 Hz. So as to cater for a wide Walkman sets, it is best to The supply voltage for the superfit top-class athlete, you
range of pulse rates, the cut-off connect the two earphones in pulse rate monitor is decoupled should see your GP immediately
frequency is made just over 11 series. by capacitor C7, immediately when you find you have a pulse
times as high as that representing Operational amplifier IC1b is after polarity protection diode rate of 180. As a general guide,
the highest pulse rate. used as an active potential D1. the absolute maximum pulse rate
Operational amplifier IC1c, divider. The voltage across the Owing to the use of CMOS for a young, very fit person is
in conjunction with push-pull actual divider, R5-R6, is half the op amps, the current drain does 180, for a middle-aged person,
am-plifier T1-T2, creates a head- supply voltage. This voltage is not exceed 10 mA, so that oper- 160, and for an elderly person,
phone amplifier, whose output buffered by IC1b, taken from the ation from a 9 V battery is per- 140. When exercising, the pulse
resistance is equivalent to the low-resistance output, pin 7, of fectly feasible. A dry alkaline- rate of a not very fit person
value of R9, that is, 47 . This this op amp and used as refer- manganese battery will have a should not exceed 60% of these
makes the circuit usable for vir- ence for IC1a, and as operating life of about 50 hours. maxima.
tually any kind of headset. The voltage for the electret micro- [984013] Editor
output is short-circuit-proof. In phone. The voltage is decoupled
case of certain headphones, by C4 to remove any interfer-
043

general purpose oscillator


1a 1b is great. However, as long as the fast for this type of oscillator. If
1
positive feedback is fast enough, one of the inverters is replaced
nothing untoward will happen. by a buffer, and the oscillator is
However, when delays occur modified as shown in Figure 1b,
owing to the transit time of the the transit time is limited to that
1 1 components used, the problem of one gate: the lower trace in
may rear its head. Figure 2 shows that the oscilla-
1
In the configuration of Fig- tor then works correctly.
ure 1a, the signal passes through The practical circuit diagram
984044 - 11
two inverters and thus experi- of the general-purpose oscillator
ences twice the transit time of a is shown in Figure 3. Note that
2 single gate. The upper signal in two XOR gates are used to
the oscilloscope trace in Fig- ensure that the transit time of
ure 2 shows the result of this: the buffer is equal to that of the
the gates used are simply too inverter. [ 984044]

3
IC1a
1
3
2 =1
C1

R1 1n

68k
R2
6k8

IC1b
4
6
5 =1
5V
Design: H. Bonekamp spurious switching pulses are
IC1 = 74HC86
The oscillator shown in Figure generated near the zero cross-
1 is frequently used in digital ings. This problem can be cured 5V +5V
circuits and may, therefore, look only by ensuring that the rise
IC1c IC1d
very familiar. Many readers may time of the input signal is 8 11
C3 14 C2
not know that this type of oscil- shorter than the reaction time of =1 =1 IC1
lator suffers from a nasty draw- the relevant gate. 9 10 12 13
100n 7 10
10V
back caused by noise. When When the oscillator is built
the amplitude of the noise is with fast logic gates, such as
984044 - 13
higher than the hysteresis of the those in the HC-series, the like-
gates used for the oscillator, lihood of the problem occurring

Elektor Electronics 7-8/98 79


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

044 Two-way AF amplifier LM4830


National Semiconductor amplifier output is put into high 1
Application impedance. This allows the per-
The LM4830, whose internal manently connected internal
circuit is shown in Figure 1, is speaker of the system to be dis-
an integrated solution for two- abled when a headphone is
way audio amplification. It con- plugged into the headphone
tains a bridge-connected audio jack. Output VO1 then drives the
power amplifier capable of headphone single-endedly
delivering 1 W of continuous through the output coupling
average power to an 8 load capacitor, CC. This capacitor
with less than 1% total har- should be chosen to allow the
monic distortion (THD) from a full audio bandwidth to be
5 V power supply. amplified. Since CC and RL form
The LM4830 also has the a high-pass filter, the value of CC
capability of driving 100 mW must be high enough to allow
into a single-ended 32 im- frequencies down to 20 Hz to be
pedance for headset operation. amplified. The value is calcu-
There is a 30 dB attenuator in lated from
front of a bridged power ampli-
fier with 6 dB of gain. The atten- CC=1/[2 (20Hz)RL] [1]
uation is controlled through
4 bits of parallel digital control; where 16 RL 600 .
15 steps of 2 dB each. The LD (load) pin 9 has two
The device also contains a modes of operation. When this
microphone preamplifier with input is high, the power ampli-
two selectable inputs. Mic1 is fiers attenuation control is in 2
selected when HS is high and transparent mode, where the
A1 is in single-ended mode. voltage on bits D0D3 will
Mic2 is selected when HS is low cause the appropriate attenua-
and A1 is in bridged mode. This tion level to be latched and
configuration is optimum for decoded within the IC. For nor-
switching between an internal mal attenuation, pin 9 should be
system speaker and external at 5 V. When the pin is low, the
headset with microphone. power amplifiers attenuation
The LM4830 also incorpo- control is locked out, so that any
rates a buffer for driving capac- change in the input bits will not
itive loads. cause a subsequent change in
The device provides a low- the amplifiers attenuation level.
current drain shut-down mode The attenuation level is pre-
making it optimally suited for set to 16 dB when the IC is
low-power portable systems. In first powered up, assuming that
addition, the device has has an pin 9 is low until the IC is fully
internal thermal shutdown pro- biased up.
tection mechanism. The preamplifier on this IC
As shown in Figure 2, is intended for use as a micro-
amplifier A1 can be used in one phone amplifier. Depending on
of two modes, bridged output or the frequency response of the
single-ended output. This also microphone, the preamplifiers
allows headphones to be driven response can be configured to fit
single-endedly. The output can the microphone. Simple capaci- equations. band, 3003000 Hz. In Eq. 2,
be switched automatically from tors can be used to limit the we choose Rf = 100 k and Ri
bridged speaker drive to single- bandwidth of the frequency re- AVCL = 1 + Rf /Ri [2] = 1 k. The desired value in
ended headphone drive using a sponse of the preamplifier and fLP = 1/2 Rf C1 [3] dB is equal to 20logAVCL. Solv-
control pin in the headphone improve the systems perfor- fHP = 1/2Rf Ci [4] ing for Cf and Ci, using fLP =
jack that is tied to the HS (head- mance. Once the gain of the 3 kHz and fHP = 300 Hz, we
set) pin 3. When the voltage at amplifier is chosen, te values of As an example, assume that the obtain Cf = 530 pF and
the HS pin input changes from the resistors and capacitors can desired closed-loop gain is Ci = 0.53 F.
0 V to 5 V, VO2 of the bridged be selected with the following 40 dB and the desired voice [984006]

Elektor Electronics 7-8/98 81


045 game control adaptor
From an idea by G. Scheibe 1 5V
Most modern PCs are provided 5V
with a 15-way game port. This P1 P2 P3 P4 K1
contains four digital inputs for
100k 100k 100k 100k
the buttons and four analogue 8
inputs for the potentiometers in 15

the analogue joysticks. Bear in 7

mind, however, that there are FB2B 14


FB2A 6
also I/O cards on the market
YA 13
with only one game port. YB 5
The joystick inputs are XB 12
based on a monostable multivi- XA 4
brator whose on-time is set with FB1B 11
a 100 k external potentiome- 5V
FB1A 3

ter as shown in Figure 1. This 10

property may be used to convert S1 S2 S3 S4


2
9
the game port for measuring
1
analogue phenomena via, say.
an NTC (negative temperature R1 R2 R3 R4
coefficient) resistor, a PTC (pos-
10k

10k

10k

10k
itive temperature coefficient)
resistor, or an LDR (light-depen- 984039 - 11
dent resistor).
The software for reading the
game port is relatively simple. A
byte should be read at address The software must determine Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
201H (see Figure 2). The four the time during which a bit is
MSBs (most significant bits, i.e., high via a fast loop. The analogue Digital Inputs Resistive Inputs
bits 74) at this address give the value is derived from the pulse 2
status of the four buttons. The width. The faster the loop, the 984039 - 12

four LSBs (least significant bits, more accurate the measurement.


i.e., 30) are high only during The listing shows a Pascal analogue levels can be mea-
the mono on-time. program with which up to four sured. [984039]

{######################## Analog Game Port #################################


# Example how to use an analog game port as analog input #
# Copyright 1998 Segment B.V., Beek, The Netherlands #
############################################################################}

program gametest;

uses crt;

const g_port = $201; {game port's base address}


max = 550; {holds maximum value}
offset = 50; {holds minimum value}
nr = 5; {number of samples to average}
{######################### Measurement function ###########################}
function measure (var Value: integer; Input, Nr: integer):boolean;
{ 'Value' contains the result of the measurement
'Input' selects the input channel
'Nr' determines the number of samples used for averaging}

var i, counter, game : integer;


bitgame : boolean;
dummy : longint;

begin
if ((nr > 100) or (input>4) or (input<1)) then
begin
gotoxy(5,20);
writeln('Error!! Wrong parameter in measurement function');
measure:=false;
end
else

84 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

begin
value:=0;
dummy:=0;
if input=4 then input:=8;
if input=3 then input:=4;
for i:=0 to (Nr-1) do
begin
counter:=0;
bitgame:=true;
port[g_port]:=0;
while bitgame do
begin
game:=port[g_port];
bitgame:=(((game and input)=input) and
(counter<((max*2)+offset)));

counter:=counter+1;
end;
counter:=counter-offset;
dummy:=(dummy + counter);
delay(1);
end;
value:=trunc (dummy/Nr);
if ((value> (max * 2)) or (value<0)) then
begin
if value<0 then value:=-9999
else value:=9999;
measure:=false;
end
else measure:=true;
end;
end; {function}

{######################## Input fire button status #########################}


procedure buttons(var key1, key2, key3, key4: boolean);

{returns boolean values to show fire button status}


{keyx := true if button pressed}
var game : integer;

begin
game := port[g_port];
key1:=((game and 128)<>128);
key2:=((game and 64)<>64);
key3:=((game and 32)<>32);
key4:=((game and 16)<>16);
end; {procedure}

{######################## Main Program #####################################}


var connect, i : integer;
value1 : integer;
returnm, t1, t2, t3, t4 : boolean;
e : char;
value2 : real;

begin
ClrScr;
gotoxy(5,3);
writeln('Analog game port input');
gotoxy(5,23);
writeln('Press "e" to interrupt this program');
gotoxy(1,8);
writeln (' INPUT 1:');
writeln (' INPUT 2:');
writeln (' INPUT 3:');
writeln (' INPUT 4:');
gotoxy(5,15);
write('digital inputs:');
gotoxy(12,17);
write('1:');
gotoxy(22,17);
write('2:');
gotoxy(32,17);
write('3:');

Elektor Electronics 7-8/98 85


gotoxy(42,17);
write('4:');
while e<>'e' do
begin
if keypressed then e:=readkey
else
begin
for i:=0 to 3 do
begin
returnm := measure(value1, (i+1), Nr);
if returnm then
begin
gotoxy(30,(8+i));
write(' ');
gotoxy(30,(8+i));
write(value1);
gotoxy(35,(8+i));
write(' number of program loops ');
end
else
begin
gotoxy(30,(8+i));
if value1<0 then
write('---- negative overflow ')
else
write('++++ positive overflow ');
end;
end;
buttons(t1,t2,t3,t4);
gotoxy(15,17);
if t1 = true then
write(' ON')
else
write('OFF');
gotoxy(25,17);
if t2 = true then
write(' ON')
else
write('OFF');
gotoxy(35,17);
if t3 = true then
write(' ON')
else
write('OFF');
gotoxy(45,17);
if t4 = true then
write(' ON')
else
write('OFF');
end; {else}
end; {while}
ClrScr;
end.
046

Centronics
in system programmer
Design H. Bonekamp via only four lines available via Centronics port, the programmer via its own menu (start up with
The programmer is based on an the Centronics port. This is pos- should be connected to the PC CISP.EXE).
AT89S8252, which is an 8052- sible because the interface only when both systems are on. The software can program
derived IC with a flash ROM of already uses the requisite TTL DOS software, called CISP, and read the internal memory of
8 Kbyte and a data EEPROM of levels. The lines should be not has been specially developed for the processor. It can also be
2 Kbyte. The ROM is to be pro- longer than 1.5 m (5 ft) to programming the IC. The pro- used to enable two protection
grammed >1000, and the ensure reliable operation. gram is enabled via a batch file bits. Both the input and output
EEPROM >100,000. To prevent a phantom supply with parameters (see help CISP files are in Intel hex format.
Programming is carried out arising between the IC and the /? for the available options) or The software is written in C

86 Elektor Electronics 7-8/98


gotoxy(42,17);
write('4:');
while e<>'e' do
begin
if keypressed then e:=readkey
else
begin
for i:=0 to 3 do
begin
returnm := measure(value1, (i+1), Nr);
if returnm then
begin
gotoxy(30,(8+i));
write(' ');
gotoxy(30,(8+i));
write(value1);
gotoxy(35,(8+i));
write(' number of program loops ');
end
else
begin
gotoxy(30,(8+i));
if value1<0 then
write('---- negative overflow ')
else
write('++++ positive overflow ');
end;
end;
buttons(t1,t2,t3,t4);
gotoxy(15,17);
if t1 = true then
write(' ON')
else
write('OFF');
gotoxy(25,17);
if t2 = true then
write(' ON')
else
write('OFF');
gotoxy(35,17);
if t3 = true then
write(' ON')
else
write('OFF');
gotoxy(45,17);
if t4 = true then
write(' ON')
else
write('OFF');
end; {else}
end; {while}
ClrScr;
end.
046

Centronics
in system programmer
Design H. Bonekamp via only four lines available via Centronics port, the programmer via its own menu (start up with
The programmer is based on an the Centronics port. This is pos- should be connected to the PC CISP.EXE).
AT89S8252, which is an 8052- sible because the interface only when both systems are on. The software can program
derived IC with a flash ROM of already uses the requisite TTL DOS software, called CISP, and read the internal memory of
8 Kbyte and a data EEPROM of levels. The lines should be not has been specially developed for the processor. It can also be
2 Kbyte. The ROM is to be pro- longer than 1.5 m (5 ft) to programming the IC. The pro- used to enable two protection
grammed >1000, and the ensure reliable operation. gram is enabled via a batch file bits. Both the input and output
EEPROM >100,000. To prevent a phantom supply with parameters (see help CISP files are in Intel hex format.
Programming is carried out arising between the IC and the /? for the available options) or The software is written in C

86 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

5V
and the source file is available
together with the EXE code on 44
a 3.5 in floppy disk (Order no.
986023-1 see Readers ser- 35
PSEN
32
EA/VP
vices towards the end of this C3
issue). 11
RXD P0.0
43

The circuit as shown enables CENTRONICS 13 42


10 TXD P0.1
K1
the software to be checked at an 10V 14
INT0 IC1 P0.2
41
36 18 15 40
early stage. When the software INT1 P0.3
35 17 16 39
is writing to a port or is verifying 34 16 17
T0 P0.4
38
the content of one or more reg- 33 15 19
T1 P0.5
37
P0.6
isters, a temporary address is set 32 14 18
RD
36
WR P0.7
in the EEPROM during the test 31 13
AT89S8252
phase. The content of this 30 12 2
P1.0 -12JC P2.0
24
address can be read and, if nec- 29 11 3
P1.1 P2.1
25

essary, modified relatively eas- 28 10 4


P1.2 P2.2
26

ily. 27 9 5
P1.3 P2.3
27
26 8 6 28
Make sure when purchasing K2 K3 P1.4 P2.4
25 7 7 29
the IC to get a version with the 24 6 8
P1.5 P2.5
30
suffix H (or higher letter), since 23 5 9
P1.6 P2.6
31
P1.7 P2.7
older versions suffer from small 22 4
R1
errors in the programming pro- 21 3
1k
10
RESET ALE/P
33
tocol. 20 2
X1 X2
The IC shown in the diagram 19 1
22 21 20
is a 44-pin PLCC version. It is X1
R2
also available in a 40-pin DIL

10k
C2 C1
case, but bear in mind that the
pinouts of the two are different. 22p 12MHz 22p
[984053]
984053 - 11
047

Berlin clock
in IC1. When synchronized with
the DCF77 signal, it can be fine
tuned by a trimmer capacitor in
place of capacitor C1 shown.
The DCF77 receiver may be
any proprietary receiver module
that runs from a 5 V supply and
has a TTL output (low below
1 V, high above 2 V) that is high
in the quiescent state. The open-
collector output of the module
used in te prototype may be
inverted or non-inverted. In the
present circuit, the inverted out-
put (pin 4) is used, which is
linked to the DCF pin on the
PCB shown in Figure 3, and
thus connected to the +5 V line
via pull-up resistor R16. Power
for the module is taken from
pins earth and +5 V on the
board.
When populating the board,
Design M. Raschke ure 1. A total of 24 lamps are The actual clock circuit con- pay particular attention to the
What is special about the Berlin used, which in the present cir- sists of PIC microcontroller IC1 polarity of the LEDs: these are
clock, which, as its name cuit (Figure 2) are replaced by and eight-fold buffer/inverter not all soldered in the same way.
implies, is situated in Berlin, light-emitting diodes D1D24. IC2, which functions as the LED When the finished clock is
and was erected in the early Diode D24 is the seconds indi- driver. powered up, the display flashes
1970, is that it shows the time cator, D20D23 the minutes indi- The clock may run on its at a rate of 1 Hz to indicate that
by a row of lights that show the cator; D9D19 the five-seconds own or in synchrony with a the time shown is not correct. If
following (from top to bottom): indicator; D5D8 the hours indi- DCF77 receiver. When it runs the clock is run on its own, the
seconds, five hour, hours, five cator, and D1D4 the five-hours on its own, its time base is time is set as follows:
minutes, and minutessee Fig- indicator. formed by the crystal oscillator

Elektor Electronics 7-8/98 87


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

5V
and the source file is available
together with the EXE code on 44
a 3.5 in floppy disk (Order no.
986023-1 see Readers ser- 35
PSEN
32
EA/VP
vices towards the end of this C3
issue). 11
RXD P0.0
43

The circuit as shown enables CENTRONICS 13 42


10 TXD P0.1
K1
the software to be checked at an 10V 14
INT0 IC1 P0.2
41
36 18 15 40
early stage. When the software INT1 P0.3
35 17 16 39
is writing to a port or is verifying 34 16 17
T0 P0.4
38
the content of one or more reg- 33 15 19
T1 P0.5
37
P0.6
isters, a temporary address is set 32 14 18
RD
36
WR P0.7
in the EEPROM during the test 31 13
AT89S8252
phase. The content of this 30 12 2
P1.0 -12JC P2.0
24
address can be read and, if nec- 29 11 3
P1.1 P2.1
25

essary, modified relatively eas- 28 10 4


P1.2 P2.2
26

ily. 27 9 5
P1.3 P2.3
27
26 8 6 28
Make sure when purchasing K2 K3 P1.4 P2.4
25 7 7 29
the IC to get a version with the 24 6 8
P1.5 P2.5
30
suffix H (or higher letter), since 23 5 9
P1.6 P2.6
31
P1.7 P2.7
older versions suffer from small 22 4
R1
errors in the programming pro- 21 3
1k
10
RESET ALE/P
33
tocol. 20 2
X1 X2
The IC shown in the diagram 19 1
22 21 20
is a 44-pin PLCC version. It is X1
R2
also available in a 40-pin DIL

10k
C2 C1
case, but bear in mind that the
pinouts of the two are different. 22p 12MHz 22p
[984053]
984053 - 11
047

Berlin clock
in IC1. When synchronized with
the DCF77 signal, it can be fine
tuned by a trimmer capacitor in
place of capacitor C1 shown.
The DCF77 receiver may be
any proprietary receiver module
that runs from a 5 V supply and
has a TTL output (low below
1 V, high above 2 V) that is high
in the quiescent state. The open-
collector output of the module
used in te prototype may be
inverted or non-inverted. In the
present circuit, the inverted out-
put (pin 4) is used, which is
linked to the DCF pin on the
PCB shown in Figure 3, and
thus connected to the +5 V line
via pull-up resistor R16. Power
for the module is taken from
pins earth and +5 V on the
board.
When populating the board,
Design M. Raschke ure 1. A total of 24 lamps are The actual clock circuit con- pay particular attention to the
What is special about the Berlin used, which in the present cir- sists of PIC microcontroller IC1 polarity of the LEDs: these are
clock, which, as its name cuit (Figure 2) are replaced by and eight-fold buffer/inverter not all soldered in the same way.
implies, is situated in Berlin, light-emitting diodes D1D24. IC2, which functions as the LED When the finished clock is
and was erected in the early Diode D24 is the seconds indi- driver. powered up, the display flashes
1970, is that it shows the time cator, D20D23 the minutes indi- The clock may run on its at a rate of 1 Hz to indicate that
by a row of lights that show the cator; D9D19 the five-seconds own or in synchrony with a the time shown is not correct. If
following (from top to bottom): indicator; D5D8 the hours indi- DCF77 receiver. When it runs the clock is run on its own, the
seconds, five hour, hours, five cator, and D1D4 the five-hours on its own, its time base is time is set as follows:
minutes, and minutessee Fig- indicator. formed by the crystal oscillator

Elektor Electronics 7-8/98 87


DCF77
1

+5V
+5V
T

0
H2
H3

S1
T3

C4
D20
D5

C2
T2

R1
D19 - - - - - - - - D9
D1

T1
15 h

D21

R15

R14
R16
R11

C3
D2

D6
R12
1h

D22

IC1
R13

X1
R7

R2
D24
D3

D7
R8
30 min

D23
R9

IC2
R4

D4

D8
R5

C1
3 min

ROTKELE )C(
984012-1

1-210489
R3
R10
= 16 h 33 min R6

H4
H1

984012 - 12

Press S1 until the five-hours The setting is completed when

984012-1
(C) ELEKTOR
indicator flashes briefly the minute indicator flashes and
(1s<t <2s). S1 is pressed longer than 1s
Press S1 briefly a number of (1s<t<2s). The display should
times until the correct num- then light and show the correct
ber of five-hour LEDs time of day.
flashes (t<1s). When the clock is driven by
Keep S1 pressed until the a DCF77 receiver, S1 is not
hour indicator flashes briefly required.
(1s<t<2s). The clock is best powered by
Press S1 briefly a number of an appropriate, regulated mains
times until the correct hour adaptor that provides an output
LED flashes. voltage of 5 V and an output
And so on current of up to 500 mA.
[984012]

88 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list D18, D19 = LED, yellow, Integrated circuits:


Capacitors: 5 2.5 mm IC1 = PIC16C54-XT/P (pro-
Resistors: C1, C3 = 22 pF D11, D14, D17 = LED, red, grammed Order no. 986508;
R1 = 12 k C2 = 22 F, 16 V, radial 5 2.5 mm see Readers Services towards
R2R10 = 22 C4 = 0.1 F D20D23 = LED, yellow, the end of this issue)
R11R13 = 330 5 5 mm IC2 = ULN2803
R14 = 1.2 k Semiconductors: D24 = LED, yellow, 5 mm dia.
R15 = 100 k D1D8 = Led, red, 55 mm T1T3 = BC640
R16 = 10 k D9, D10, D12, D13, D15, D16,
048

active short-wave antenna


Design: G. Pradeep 9 ...12V of 20 dB.
The circuit presented here illus- BF256 BF494 Inductor L1 is wound on an
R2 R4
5mA
trates the fact that in spite of all C5 Amidon core Type T-37-6. The

2k7

470
kinds of new component and 100n
primary consists of 2 turns, and
technology, it is still possible to the secondary of 12 turns
design useful, and interesting, 0.3 mm dia. enamelled copper
G D C B T2
circuits. BF494 K1
wire. The number of turns may
S E C4
The circuit is based on two be experimented with for other
well-established transistors, a T1 1n
frequency ranges.
K1
Type BF256C and a BF494. In Amidon T-37-6
L1
The input circuit is tuned to
conjunction with the requisite the wanted station with capaci-
resistors and capacitors, these BF256C tor C1. The response of the
form a well-working antenna C1 R1 R3
tuned circuit is fairly broad, so
amplifier. Note that they are C2 C3 that correct tuning is easy.
560

2k7

direct coupled. The circuit is powered by a


350p
Transistor T1 is the input 10n 10n well-decoupled mains supply
amplifier cum buffer, while the 2 : 12
converter that has an output of
984070 - 11
BF494, in a common-ground 912 V. The circuit draws a cur-
configuration, provides the nec- rent of about 5 mA.
essary amplification. operation at frequencies which is the larger part of the [984070]
The amplifier is designed for between 10 MHz and 30 MHz, short-wave range, and has a gain
049

reflector for pedestrians


Design: P. Lay
Pedestrians run grave dangers 2
when, in badly-lit areas, they
cross a road at night in dark P1
14
La1
clothing, because this means IC1 = 4093 IC1
that car drivers may see them 7
6V
too late There are special arm- 50k
50mA
bands available that reflect the BT1 BT2 IC1a IC1b
1 5
light of oncoming traffic, telling &
3
&
4
IC1c IC1d
2 6 T1
the driver that there is someone 8
10
12
11
R2
9V 9V & &
on the road. 9 13 8k2

It is also possible to make an BC107


500k

R1
active means of warning car dri- LDR
BC547
vers or motorcyclists that youre
crossing the road. It consists of C1
a flat enclosure that houses two
PP3 (6AM6; MN1604; 6LR61) 1

9 V batteries, and the small cir- 984014 - 12


cuit shown in the diagram.
Glue a piece of self-adhe-

Elektor Electronics 7-8/98 89


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list D18, D19 = LED, yellow, Integrated circuits:


Capacitors: 5 2.5 mm IC1 = PIC16C54-XT/P (pro-
Resistors: C1, C3 = 22 pF D11, D14, D17 = LED, red, grammed Order no. 986508;
R1 = 12 k C2 = 22 F, 16 V, radial 5 2.5 mm see Readers Services towards
R2R10 = 22 C4 = 0.1 F D20D23 = LED, yellow, the end of this issue)
R11R13 = 330 5 5 mm IC2 = ULN2803
R14 = 1.2 k Semiconductors: D24 = LED, yellow, 5 mm dia.
R15 = 100 k D1D8 = Led, red, 55 mm T1T3 = BC640
R16 = 10 k D9, D10, D12, D13, D15, D16,
048

active short-wave antenna


Design: G. Pradeep 9 ...12V of 20 dB.
The circuit presented here illus- BF256 BF494 Inductor L1 is wound on an
R2 R4
5mA
trates the fact that in spite of all C5 Amidon core Type T-37-6. The

2k7

470
kinds of new component and 100n
primary consists of 2 turns, and
technology, it is still possible to the secondary of 12 turns
design useful, and interesting, 0.3 mm dia. enamelled copper
G D C B T2
circuits. BF494 K1
wire. The number of turns may
S E C4
The circuit is based on two be experimented with for other
well-established transistors, a T1 1n
frequency ranges.
K1
Type BF256C and a BF494. In Amidon T-37-6
L1
The input circuit is tuned to
conjunction with the requisite the wanted station with capaci-
resistors and capacitors, these BF256C tor C1. The response of the
form a well-working antenna C1 R1 R3
tuned circuit is fairly broad, so
amplifier. Note that they are C2 C3 that correct tuning is easy.
560

2k7

direct coupled. The circuit is powered by a


350p
Transistor T1 is the input 10n 10n well-decoupled mains supply
amplifier cum buffer, while the 2 : 12
converter that has an output of
984070 - 11
BF494, in a common-ground 912 V. The circuit draws a cur-
configuration, provides the nec- rent of about 5 mA.
essary amplification. operation at frequencies which is the larger part of the [984070]
The amplifier is designed for between 10 MHz and 30 MHz, short-wave range, and has a gain
049

reflector for pedestrians


Design: P. Lay
Pedestrians run grave dangers 2
when, in badly-lit areas, they
cross a road at night in dark P1
14
La1
clothing, because this means IC1 = 4093 IC1
that car drivers may see them 7
6V
too late There are special arm- 50k
50mA
bands available that reflect the BT1 BT2 IC1a IC1b
1 5
light of oncoming traffic, telling &
3
&
4
IC1c IC1d
2 6 T1
the driver that there is someone 8
10
12
11
R2
9V 9V & &
on the road. 9 13 8k2

It is also possible to make an BC107


500k

R1
active means of warning car dri- LDR
BC547
vers or motorcyclists that youre
crossing the road. It consists of C1
a flat enclosure that houses two
PP3 (6AM6; MN1604; 6LR61) 1

9 V batteries, and the small cir- 984014 - 12


cuit shown in the diagram.
Glue a piece of self-adhe-

Elektor Electronics 7-8/98 89


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list D18, D19 = LED, yellow, Integrated circuits:


Capacitors: 5 2.5 mm IC1 = PIC16C54-XT/P (pro-
Resistors: C1, C3 = 22 pF D11, D14, D17 = LED, red, grammed Order no. 986508;
R1 = 12 k C2 = 22 F, 16 V, radial 5 2.5 mm see Readers Services towards
R2R10 = 22 C4 = 0.1 F D20D23 = LED, yellow, the end of this issue)
R11R13 = 330 5 5 mm IC2 = ULN2803
R14 = 1.2 k Semiconductors: D24 = LED, yellow, 5 mm dia.
R15 = 100 k D1D8 = Led, red, 55 mm T1T3 = BC640
R16 = 10 k D9, D10, D12, D13, D15, D16,
048

active short-wave antenna


Design: G. Pradeep 9 ...12V of 20 dB.
The circuit presented here illus- BF256 BF494 Inductor L1 is wound on an
R2 R4
5mA
trates the fact that in spite of all C5 Amidon core Type T-37-6. The

2k7

470
kinds of new component and 100n
primary consists of 2 turns, and
technology, it is still possible to the secondary of 12 turns
design useful, and interesting, 0.3 mm dia. enamelled copper
G D C B T2
circuits. BF494 K1
wire. The number of turns may
S E C4
The circuit is based on two be experimented with for other
well-established transistors, a T1 1n
frequency ranges.
K1
Type BF256C and a BF494. In Amidon T-37-6
L1
The input circuit is tuned to
conjunction with the requisite the wanted station with capaci-
resistors and capacitors, these BF256C tor C1. The response of the
form a well-working antenna C1 R1 R3
tuned circuit is fairly broad, so
amplifier. Note that they are C2 C3 that correct tuning is easy.
560

2k7

direct coupled. The circuit is powered by a


350p
Transistor T1 is the input 10n 10n well-decoupled mains supply
amplifier cum buffer, while the 2 : 12
converter that has an output of
984070 - 11
BF494, in a common-ground 912 V. The circuit draws a cur-
configuration, provides the nec- rent of about 5 mA.
essary amplification. operation at frequencies which is the larger part of the [984070]
The amplifier is designed for between 10 MHz and 30 MHz, short-wave range, and has a gain
049

reflector for pedestrians


Design: P. Lay
Pedestrians run grave dangers 2
when, in badly-lit areas, they
cross a road at night in dark P1
14
La1
clothing, because this means IC1 = 4093 IC1
that car drivers may see them 7
6V
too late There are special arm- 50k
50mA
bands available that reflect the BT1 BT2 IC1a IC1b
1 5
light of oncoming traffic, telling &
3
&
4
IC1c IC1d
2 6 T1
the driver that there is someone 8
10
12
11
R2
9V 9V & &
on the road. 9 13 8k2

It is also possible to make an BC107


500k

R1
active means of warning car dri- LDR
BC547
vers or motorcyclists that youre
crossing the road. It consists of C1
a flat enclosure that houses two
PP3 (6AM6; MN1604; 6LR61) 1

9 V batteries, and the small cir- 984014 - 12


cuit shown in the diagram.
Glue a piece of self-adhe-

Elektor Electronics 7-8/98 89


sive, reflecting tape (available in 1 case for electronics causes a potential drop across
the motor trade) on the lid of the and battery the LDR that is below the level
enclosure and drill a 10 mm reflector disk set with P1, IC1a changes state,
clothes peg
hole in the centre of it. Fit a 6 V (screwed on) so that its output goes low,
bulb in a suitable holder in the whereupon the output of IC1b
10 mm hole. Fit a suitable clip goes high, which actuates the
light bulb
and, optionally an on/off switch, oscillator. The buffer then
at the rear of the enclosure. See switches the light bulb on and
Figure 1. off in the rhythm of the oscilla-
The electronic circuit con- tor.
sists of a light-sensitive switch, Optionally, the light bulb
composed of P1, a photoconduc- may be replaced by a light-emit-
tive cell, LDR, and IC1a; an ting diode rated at 1 cd or
inverter, IC1b;, an oscillator, higher, and bias resistor. Make
IC1c with R1 and C1; a buffer, sure, however, that the current
IC1d with R2 and T1; and a through the transistor does not
69 V bulb that draws a current exceed its rating of 50 mA.
of not more than 50 mA. The two 9 V batteries should
The photoconductive cell (or be connected in parallel. The
light-sensitive resistor) should circuit needs a supply of
be exposed to ambient light, but 312 V.
not to the light bulb, of course. [984014]
Its sensitivity is set with P1.
When the ambient light
984014 - 11
050

multi-colour LED
Design: V. Mitrovic
How many different conditions IC1c 10 R1
do you reckon may be signalled 1
1k

with just one LED? Two, maybe R2


12 11 13 1k
three? Using this simple circuit, a
2 3 R3
a lot more! I1 Q1
1k5
4 IC2 5
Admittedly, a two-colour LED is b
6
I2 Q2
7 R4
used here. Such a device con- R12 R13 R14 10
I3 Q3
9 1k5
sists of two light-emitting chips, c I4 Q4
12 11 R5
10k

10k

4k7

I5 4503 Q5
usually red and green, encapsu- 14
I6 Q6
13 1k
lated in the same case. It has R6
three pins: two for the anodes, DA DB 1k

and one for the common cath- R7


1 15

ode. In this way, each diode can 3M3


D1
be activated separately. Various IC1a IC1b
mixed colours may be obtained 1 3

by varying the current through 2


1
9 4
1
6

the two diodes. At least four dis- d


8 5

crete colours are then easily per-


ceived: pure red, pure green, e
C1 12V IC1 = 4025
orange (IR 2IG) and yellow
(IG 2IR). 100n R9
22k
In the present circuit, the LED R10 R11 R8 C2 14 16

elements are driven by CMOS IC1 IC2


10k

10k

4k7

100n
three-state buffers type 4503, 7 8

which, unlike most CMOS ICs


from the 4000 series, are capa- 984107 -11
ble of supplying up to 10 mA of
output current. The LED cur-
rents are limited by resistors R1 figuration (a=b=c=0) repre- input, DA (pin 1) of the 4503, so mode.
through R6, whose values invite senting the fourth state. The lat- as to produce a flickering effect. Although designed for a 12-V
experiments with brightness and ter is decoded by NAND gate The oscillator is controlled by supply voltage, the circuit will
colours according to your own IC1. An additional effect is pro- means of inputs d and e. happily work at any supply volt-
taste. duced by gates IC1a and IC1b, Pulling both of these logic high age between 5 V and 16 V. Non-
The circuit was originally devel- which are connected up into an disables the oscillator and the used inputs of CMOS ICs must,
oped to indicate the state of oscillator circuit producing LED driver. With e=0 and d=1 of course, be tied to ground via
three inputs, a, b, and c (non- approximately two pulses per the outputs of the 4503 are 10-100 k resistors.
binary, i. e., only one of these is second. These pulses are used switched to three-state, and the (984107-1, LL)
at 1 at any time), with the con- to control the common-enable circuit is in power-down standby

90 Elektor Electronics 7-8/98


sive, reflecting tape (available in 1 case for electronics causes a potential drop across
the motor trade) on the lid of the and battery the LDR that is below the level
enclosure and drill a 10 mm reflector disk set with P1, IC1a changes state,
clothes peg
hole in the centre of it. Fit a 6 V (screwed on) so that its output goes low,
bulb in a suitable holder in the whereupon the output of IC1b
10 mm hole. Fit a suitable clip goes high, which actuates the
light bulb
and, optionally an on/off switch, oscillator. The buffer then
at the rear of the enclosure. See switches the light bulb on and
Figure 1. off in the rhythm of the oscilla-
The electronic circuit con- tor.
sists of a light-sensitive switch, Optionally, the light bulb
composed of P1, a photoconduc- may be replaced by a light-emit-
tive cell, LDR, and IC1a; an ting diode rated at 1 cd or
inverter, IC1b;, an oscillator, higher, and bias resistor. Make
IC1c with R1 and C1; a buffer, sure, however, that the current
IC1d with R2 and T1; and a through the transistor does not
69 V bulb that draws a current exceed its rating of 50 mA.
of not more than 50 mA. The two 9 V batteries should
The photoconductive cell (or be connected in parallel. The
light-sensitive resistor) should circuit needs a supply of
be exposed to ambient light, but 312 V.
not to the light bulb, of course. [984014]
Its sensitivity is set with P1.
When the ambient light
984014 - 11
050

multi-colour LED
Design: V. Mitrovic
How many different conditions IC1c 10 R1
do you reckon may be signalled 1
1k

with just one LED? Two, maybe R2


12 11 13 1k
three? Using this simple circuit, a
2 3 R3
a lot more! I1 Q1
1k5
4 IC2 5
Admittedly, a two-colour LED is b
6
I2 Q2
7 R4
used here. Such a device con- R12 R13 R14 10
I3 Q3
9 1k5
sists of two light-emitting chips, c I4 Q4
12 11 R5
10k

10k

4k7

I5 4503 Q5
usually red and green, encapsu- 14
I6 Q6
13 1k
lated in the same case. It has R6
three pins: two for the anodes, DA DB 1k

and one for the common cath- R7


1 15

ode. In this way, each diode can 3M3


D1
be activated separately. Various IC1a IC1b
mixed colours may be obtained 1 3

by varying the current through 2


1
9 4
1
6

the two diodes. At least four dis- d


8 5

crete colours are then easily per-


ceived: pure red, pure green, e
C1 12V IC1 = 4025
orange (IR 2IG) and yellow
(IG 2IR). 100n R9
22k
In the present circuit, the LED R10 R11 R8 C2 14 16

elements are driven by CMOS IC1 IC2


10k

10k

4k7

100n
three-state buffers type 4503, 7 8

which, unlike most CMOS ICs


from the 4000 series, are capa- 984107 -11
ble of supplying up to 10 mA of
output current. The LED cur-
rents are limited by resistors R1 figuration (a=b=c=0) repre- input, DA (pin 1) of the 4503, so mode.
through R6, whose values invite senting the fourth state. The lat- as to produce a flickering effect. Although designed for a 12-V
experiments with brightness and ter is decoded by NAND gate The oscillator is controlled by supply voltage, the circuit will
colours according to your own IC1. An additional effect is pro- means of inputs d and e. happily work at any supply volt-
taste. duced by gates IC1a and IC1b, Pulling both of these logic high age between 5 V and 16 V. Non-
The circuit was originally devel- which are connected up into an disables the oscillator and the used inputs of CMOS ICs must,
oped to indicate the state of oscillator circuit producing LED driver. With e=0 and d=1 of course, be tied to ground via
three inputs, a, b, and c (non- approximately two pulses per the outputs of the 4503 are 10-100 k resistors.
binary, i. e., only one of these is second. These pulses are used switched to three-state, and the (984107-1, LL)
at 1 at any time), with the con- to control the common-enable circuit is in power-down standby

90 Elektor Electronics 7-8/98


051 NiCd battery charger
Design: K. Walraven D1
R2
The design of the charger is sim-
120
ilar to that of many commer-
cially available chargers. The
charger consists of a mains
R1
*
adaptor, two resistors and a 5W
light-emitting diode (LED). In K1
practical use, this kind of
charger is perfectly all right.
Resistor R1 serves two func- * zie tekst
see text
BT1

tions: it establishes the correct * siehe Text


charging current and it drops * voir texte
sufficient voltage to light the *
diode. This means that the LED
lights only when a charging cur- 984005 - 11
rent flows into the battery. The
charging current is about 1/4 of
the battery capacity, which across R1. Note that the adaptor Battery voltage (V) 1.2 2.4 3.6 4.8 6.0 7.2
allows a slight overcharging, and must be capable of supplying a Minimum voltage (V) 4.7 6.1 7.5 8.9 10.3 11.7
yet the charging cycle is not too current of not less than half the Adaptor voltage (V) 4.5 6.0 7.5 9.0 12 12
long (45 hours). battery capacity. Value of R1 (theoretical) () 12.4 12.8 13.2 13.6 20 14.4
The value of the resistors The value of R1 in ohms is E12 value of R1 () 15 15 15 15 22 15
may be calculated as follows, for equal to 3.3 divided by 1/4 of
Value of R2 () 120 120 120 120 240 120
which the nominal e.m.f. and the battery capacity. The value
the capacity of the battery must of the resistors for various bat-
be known. tery voltages is given in the capacity, the theoretical value of if a 6 V battery with a nominal
Adjust the output of the Table. The battery capacity is R1 in the table must be divided capacity of 600 mAh is to be
mains adaptor to 1.17 times the taken as 1 Ah. The rating of R1 by the battery capacity. Its charged, the value of R1 must be
nominal battery voltage plus should be 5 W. If the battery to actual value is the nearest one 20/0.6 = 33 .
3.3 V, which is the potential be charged has a different in the E12 series. For instance, [984005]
052

6-channel running light


Design: L. v/d Heeden 9V
The circuit of the running light
comprises two integrated cir- 20mA
cuits (ICs), a resistor, a capac- S1
D3
itor and seven light-emitting 16
diodes (LEDs), Decade scaler R1 3
D4
S2
IC2 ensures that the LEDs light 0
2M2

CTRDIV10/ 1 2 D5
sequentially. The rate at which DEC 4
2
this happens is determined by 4 8
3
7
D6
IC2
the clock at pin 14. 7
DIS
R
4
10
The clock is generated by IC1
4017
5
1
D1
IC1, which is arranged as an 2 TR
555 OUT
3 14
& + 6
5
13 6
astable multivibrator. Its fre- (TLC555) 7 D2
6 9
quency is determined by THR
CV 15
8
11
R1-C1. 5 1
CT=0 9
12
The touch switch, consisting C1 CT5

of two small metal disks is 100n 8


optional. When switch S1 is in
position off, the circuit may be
actuated by the touch switch. By 984008 - 11
the way, this enables the circuit
to be used as an electronic die
(in which case the LEDs have to The running light is powered tor. It draws a current not
be numbered from 1 to 6). by a 9 V battery or mains adap- exceeding 20 mA. [984008]

92 Elektor Electronics 7-8/98


051 NiCd battery charger
Design: K. Walraven D1
R2
The design of the charger is sim-
120
ilar to that of many commer-
cially available chargers. The
charger consists of a mains
R1
*
adaptor, two resistors and a 5W
light-emitting diode (LED). In K1
practical use, this kind of
charger is perfectly all right.
Resistor R1 serves two func- * zie tekst
see text
BT1

tions: it establishes the correct * siehe Text


charging current and it drops * voir texte
sufficient voltage to light the *
diode. This means that the LED
lights only when a charging cur- 984005 - 11
rent flows into the battery. The
charging current is about 1/4 of
the battery capacity, which across R1. Note that the adaptor Battery voltage (V) 1.2 2.4 3.6 4.8 6.0 7.2
allows a slight overcharging, and must be capable of supplying a Minimum voltage (V) 4.7 6.1 7.5 8.9 10.3 11.7
yet the charging cycle is not too current of not less than half the Adaptor voltage (V) 4.5 6.0 7.5 9.0 12 12
long (45 hours). battery capacity. Value of R1 (theoretical) () 12.4 12.8 13.2 13.6 20 14.4
The value of the resistors The value of R1 in ohms is E12 value of R1 () 15 15 15 15 22 15
may be calculated as follows, for equal to 3.3 divided by 1/4 of
Value of R2 () 120 120 120 120 240 120
which the nominal e.m.f. and the battery capacity. The value
the capacity of the battery must of the resistors for various bat-
be known. tery voltages is given in the capacity, the theoretical value of if a 6 V battery with a nominal
Adjust the output of the Table. The battery capacity is R1 in the table must be divided capacity of 600 mAh is to be
mains adaptor to 1.17 times the taken as 1 Ah. The rating of R1 by the battery capacity. Its charged, the value of R1 must be
nominal battery voltage plus should be 5 W. If the battery to actual value is the nearest one 20/0.6 = 33 .
3.3 V, which is the potential be charged has a different in the E12 series. For instance, [984005]
052

6-channel running light


Design: L. v/d Heeden 9V
The circuit of the running light
comprises two integrated cir- 20mA
cuits (ICs), a resistor, a capac- S1
D3
itor and seven light-emitting 16
diodes (LEDs), Decade scaler R1 3
D4
S2
IC2 ensures that the LEDs light 0
2M2

CTRDIV10/ 1 2 D5
sequentially. The rate at which DEC 4
2
this happens is determined by 4 8
3
7
D6
IC2
the clock at pin 14. 7
DIS
R
4
10
The clock is generated by IC1
4017
5
1
D1
IC1, which is arranged as an 2 TR
555 OUT
3 14
& + 6
5
13 6
astable multivibrator. Its fre- (TLC555) 7 D2
6 9
quency is determined by THR
CV 15
8
11
R1-C1. 5 1
CT=0 9
12
The touch switch, consisting C1 CT5

of two small metal disks is 100n 8


optional. When switch S1 is in
position off, the circuit may be
actuated by the touch switch. By 984008 - 11
the way, this enables the circuit
to be used as an electronic die
(in which case the LEDs have to The running light is powered tor. It draws a current not
be numbered from 1 to 6). by a 9 V battery or mains adap- exceeding 20 mA. [984008]

92 Elektor Electronics 7-8/98


053
extension board for
MatchBox BASIC computer
Design: K. Walraven
The MatchBox BASIC computer
is without doubt one of the most
popular projects published in
Elektor Electronics. Meanwhile,
the articles which appeared in
the magazine on this little com-
puter have been complemented
by a book.
The printed circuit board pre-
sented here contains the fol-
lowing building blocks: a mem-
ory extension, a real-time
clock, an alphanumerical LC
display and an 8-bit I/O port.
Although the port lines are
shown here as connected to
four LEDs and four push-but-
tons, the port may be used with
many other configurations.
The hardware used on the exten-
sion board is based on the
examples discussed in the
above-mentioned book. The
same goes for the software
examples, which are directly
suitable for use with the present
extension board. Five connec-
tions have to be made between modified, mainly as a result of added The available space for pro-
connector K2 on the extension the clock being addressed in - 512 bytes (PCF8594C-2, A2, grams in the memory is then 1.5
board and K3 of the MatchBox the memory range. The opti- A1, A0 = 010) and kBytes.
computer board. mum memory allocation is then If the Xicor 24C04 or 24C08 are
With the present extension as follows: - 1024 bytes (PCF8598C-2, A2, used for the memory, then pin 7
board connected to the main A1, A0 = 100) on the exten- has to be connected to ground
MatcbBox board, the memory - 256 bytes (PCF8582) on the sion board via a small wire at the underside
structure of the computer is MatchBox board, to which are of the board. With the Philips

5V 5V
5V
R1
5V 5V 5V
10k

K1 D1
D2 D3 D4 D5
P1 BAT85 5V
C2 JP12 JP13 JP14
10k
C4 C5 R2 R3 R4 R5
5V 100n
2k2

2k2

2k2

2k2

5V 100n
16 16
GOLDCAP
C1
1 4 8 1 4
A0 P0 A0 P0
100n 2 5 32,768kHz 2 5
A1 P1 3 A1 P1
3 IC1 A0 32.768kHz 3 IC6
6 2 6
A2 P2 JP2 OSCO A2 P2
IC2
K2 * JP1
13
P3
7
9
7
INT
X1
JP15
13
P3
7
9
7 INT P4 PCF INT P4
INT PCF 10 6 8583 PCF 10
6 8574 P5 SCL 1 8574 P5
SCL 14 11 5 OSCI C3 14 11
5 SCL P6 SDA SCL P6
SDA 15 12 15 12
4 SDA P7 SDA P7
3 4 30p

8 8 S1 S2 S3 S4

INT INT
SCL SCL
* zie tekst SDA SDA

* see text 5V 5V 5V

* siehe Text
* voir texte 8 8 8

5 5 5
SDA SDA SDA
6 IC3 6 IC4 6 IC5
SCL SCL SCL
7 7 7
5V PCF PTC 5V PCF PTC 5V PCF PTC
1 1 1
A0 8582 A0 8582 A0 8582
2 2 2
A1 A1 A1
3 3 3
A2 A2 A2

4 4 4

JP3 JP4 JP5 JP6 JP7 JP8 JP9 JP10 JP11


984028 - 11

94 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

T T T
COMPONENTS LIST A + A + A + +
0 0 0
S1

H6
H7

IC4
IC3

IC5
Resistors: 1 1 1 T
R1 = 10k

984028-1
2 2 2 A2 1 0
R2-R5 = 2k2 D5
C1 C3 D4
P1 = 10k preset H 2 1-820489 S2
IC2 IC6
ROTKELE )C(
Capacitors K2 X1 C5
C4 D3
D1
C1,C2,C4 = 100nF
S3
C3 = 30pF trimmer 15

R5
R4
R3
R2
C2
C5 = GoldCap 0.47F or 1F; 1 D2
IC1
5.5V
R1 S4

H8
H9

Semiconductors: P1
K1
D1 = BAT85
D2-D5 = LED, high efficiency
IC1 = PCF8574P
IC2 = PCF8583P
IC3,IC4,IC5 = PCF8582P,
PCF8594C-2 or PCF8598C-2
IC6 = PCF8574P or
PCF8574AP

Miscellaneous: (C) ELEKTOR


X1 = 32.768 kHz quartz crys- 984028-1
tal
JP1,JP2,JP15 = 2-way SIL
pinheader with jumper
JP3-JP14 = 3-way SIL pin-
header with jumper
S1-S4 = push-button, CTL3
(Mec)
The LC display is mounted on to the directive LCD is included keep operating even if the supply
K1 = 14-way SIL pinheader
K2 = 5-way SIL pinheader
the board using PCB spacers. in the FORMAT statement. voltage is absent for a few days.
PCB, order code 984028-1 The electrical connection is Also, the command LCDSET is The extension board draws only
made with 14 short wires. Pre- required at the start of the pro- a few milliamps, which goes
set P1 is adjusted for optimum gram to enable the LCD to be mainly on account of the LEDs.
versions, for which the board legibility of the texts appearing initialised. The printed circuit board shown
has been designed, the same on the display. The GoldCap on the board here is available ready-made
pins are not connected. While testing, make sure that enables the real-time clock to through the Publishers. (984028-1)
054

thyristor tester
Design: T. Giesberts 5V Three short lengths of circuit
D1 D2
The circuit in the diagram is a wire terminated into insulated
R1
very handy tool for rapidly C1
S3 crocodile clips on connector K1
150

checking all kinds of thyristor will be found very convenient


(SCR, triac, ). In case of a 100n R3 R4 for linking any kind of thyristor
triac, all four quadrants are to the circuit. Mind correct con-
680
33

tested, which is done with S3, nections, though: in the case of


5W
while in case of a standard a triac, MT1/A1 is linked to
thyristor, a positive power sup- K1 earth, the gate to S2 and MT2/A2
ply and trigger current need to to R3; in the case of a standard
S2
be set, which is done with S1. S1
thyristor, the anode is linked to
The value of resistors R1 and D.U.T.
R3, the cathode to earth, and the
R2 is chosen to obtain a current SET
S4
gate to S2.
of about 28 mA, which is more If, in a rare case the trigger
than sufficient for most thyris- RESET current needs to be altered, this
tors. The hold current is deter- can be done by changing the
mined by R3, and is 125 mA, R2
value of resistors R1R3 as
which is more than adequate to C2 appropriate. The trigger current
150

keep the thyristor in conduction may also be made variable by


after it has been triggered. 100n the use of a variable power sup-
5V 984068 - 11
Since D1 is a red, low-cur- ply. If that is done, make sure
rent LED, and D2 a green, low- that the dissipation in the resis-
current LED, it can be seen in a tors is not exceeded.
wink in which quadrant the Testing is started with S2, after the test has been con- [984068]
thyristor conducts. and the circuit is reset with S4 cluded.

Elektor Electronics 7-8/98 95


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

T T T
COMPONENTS LIST A + A + A + +
0 0 0
S1

H6
H7

IC4
IC3

IC5
Resistors: 1 1 1 T
R1 = 10k

984028-1
2 2 2 A2 1 0
R2-R5 = 2k2 D5
C1 C3 D4
P1 = 10k preset H 2 1-820489 S2
IC2 IC6
ROTKELE )C(
Capacitors K2 X1 C5
C4 D3
D1
C1,C2,C4 = 100nF
S3
C3 = 30pF trimmer 15

R5
R4
R3
R2
C2
C5 = GoldCap 0.47F or 1F; 1 D2
IC1
5.5V
R1 S4

H8
H9

Semiconductors: P1
K1
D1 = BAT85
D2-D5 = LED, high efficiency
IC1 = PCF8574P
IC2 = PCF8583P
IC3,IC4,IC5 = PCF8582P,
PCF8594C-2 or PCF8598C-2
IC6 = PCF8574P or
PCF8574AP

Miscellaneous: (C) ELEKTOR


X1 = 32.768 kHz quartz crys- 984028-1
tal
JP1,JP2,JP15 = 2-way SIL
pinheader with jumper
JP3-JP14 = 3-way SIL pin-
header with jumper
S1-S4 = push-button, CTL3
(Mec)
The LC display is mounted on to the directive LCD is included keep operating even if the supply
K1 = 14-way SIL pinheader
K2 = 5-way SIL pinheader
the board using PCB spacers. in the FORMAT statement. voltage is absent for a few days.
PCB, order code 984028-1 The electrical connection is Also, the command LCDSET is The extension board draws only
made with 14 short wires. Pre- required at the start of the pro- a few milliamps, which goes
set P1 is adjusted for optimum gram to enable the LCD to be mainly on account of the LEDs.
versions, for which the board legibility of the texts appearing initialised. The printed circuit board shown
has been designed, the same on the display. The GoldCap on the board here is available ready-made
pins are not connected. While testing, make sure that enables the real-time clock to through the Publishers. (984028-1)
054

thyristor tester
Design: T. Giesberts 5V Three short lengths of circuit
D1 D2
The circuit in the diagram is a wire terminated into insulated
R1
very handy tool for rapidly C1
S3 crocodile clips on connector K1
150

checking all kinds of thyristor will be found very convenient


(SCR, triac, ). In case of a 100n R3 R4 for linking any kind of thyristor
triac, all four quadrants are to the circuit. Mind correct con-
680
33

tested, which is done with S3, nections, though: in the case of


5W
while in case of a standard a triac, MT1/A1 is linked to
thyristor, a positive power sup- K1 earth, the gate to S2 and MT2/A2
ply and trigger current need to to R3; in the case of a standard
S2
be set, which is done with S1. S1
thyristor, the anode is linked to
The value of resistors R1 and D.U.T.
R3, the cathode to earth, and the
R2 is chosen to obtain a current SET
S4
gate to S2.
of about 28 mA, which is more If, in a rare case the trigger
than sufficient for most thyris- RESET current needs to be altered, this
tors. The hold current is deter- can be done by changing the
mined by R3, and is 125 mA, R2
value of resistors R1R3 as
which is more than adequate to C2 appropriate. The trigger current
150

keep the thyristor in conduction may also be made variable by


after it has been triggered. 100n the use of a variable power sup-
5V 984068 - 11
Since D1 is a red, low-cur- ply. If that is done, make sure
rent LED, and D2 a green, low- that the dissipation in the resis-
current LED, it can be seen in a tors is not exceeded.
wink in which quadrant the Testing is started with S2, after the test has been con- [984068]
thyristor conducts. and the circuit is reset with S4 cluded.

Elektor Electronics 7-8/98 95


055 automatic air humidifier
Design by H. Bonekamp is obtained from the pulsating
The humidifier circuit is based direct voltage by network
on a special humidity sensor R2-R3-C3-C4, which removes
Type NH-3 from Figaro. the direct voltage component
Depending on the sensor out- and lowers the level to 1.4 V. At
put, the circuit drives a ventila- the same time, the network func-
tor that is part of an air humidi- tions as a 50 Hz bandpass filter.
fying installation. The ventilator To ensure that the drive volt-
is switched on an off by a triac. age for the sensor does not fall
So as to keep the circuit as outside the common-mode range
simple as possible, the supply of op amp IC2, an offset poten-
voltage and the test voltage are tial of 3.9 V is applied to the
drawn directly from the mains sensor as well as to the voltage
supply. The 240 V mains voltage reference source of the op amp.
is converted into an 8.9 V pul- This potential is provided by
sating direct potential by capac- zener diode D3. The reference
itor C1, resistor R1 and zener level is set with P1.The op amp
diode D1. The pulsating voltage is given some hysteresis by R5.
is used to drive the sensor. It is When the humidity of the
also transformed to a 7.5 V sup- ambient air rises above that cor-
ply voltage by D2 and C2. responding to the level with P1,
The sensor needs an alter- the output voltage of IC2 is
nating drive voltage at a level not about 6 V. This results in T1
higher than 1.5 V. This potential being cut off by D4, whereupon
the triac is also disabled. When

R9

2M2
D2

1N4001 R4 K2
C2 C5
1k

P'
230V
470 16V 100n
D4
100W
F1 C1 R1 C3 R2 N'
470 10k R5
630mA T 470n 1W 330n 2V4
P1
56k

X2 500mW
1k
K1 IC1 3 1
3 7 T1
P Rh R6
R3 6
230V C4 IC2 6k8
10k

2 2
5
TRI1
N Rt 4 BC557B R10
330n 8 A2
39

R8
1 NH-3 TLC271 G A1
1W
470

D1 D3 TLC336T
R7
C6 C7
4k7

8V2 3V9 47 47n


1W3 500mW 16V X2

984087 - 11

the humidity drops below that


630mAT F1
corresponding to the level set
H1

H3

K1 K2 with P1, a pulsating potential


TRI1
N 230V P

appears at the output of IC2.


P

C3
This voltage is used to charge
1-7N804230V
89

984087-1
R9

C1
R8 capacitor C6. The charged
C6
R10 capacitor thereupon provides a
steady current to the triac.
984087-1

D1
T1
C7

R1 When T1 is cut off for some


R2 R7
D2
D4
time, capacitor C6 is discharged
P1 R6
via resistor R7. Capacitors C1
R3 C4 R4 and C7 are discharged via R9, so
C2 that after the mains has been
IC2
D3 ROTKELE )C( (C) ELEKTOR switched off, no dangerous po-
tential remains at the pins of the
H4

H2

C5
IC1 R5
mains connector (K1).
The humidifier is best built

96 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list C1 = 0.47 F, 250 V a.c. T1 = BC557B on the PCB shown in Figure 2,
C2 = 470 F, 16 V, radial which is available ready made
Resistors: C3, C4 = 0.33 F, metallized Integrated circuits: (see Readers services pages
R1 = 470 , 1 W polyester, 5% IC1 = NH-3 (Figaro) towards the end of this issue).
R2, R3 = 10 k C5 = 0.1 F, high stability IC2 = TLC271CP
Bear in mind that parts of the
R4 = 1 k C6 = 47 F, 16 V, radial Tri1 = TLC336T (SGS)
R5 = 56 k C7 = 0.047 F, 250 V a.c.
board will carry mains voltage,
R6 = 6.8 k Miscellaneous: which makes careful working
R7 = 4.7 k Semiconductors: K1, K2 = 2-way terminal block and the enclosing of the board
R8 = 470 D1 = zener diode, 8.2 V, 1.3 W for board mounting, pitch in a plastic case imperative.
R9 = 2.2 M D2 = 1N4001 7.5 mm The humidifier may be con-
R10 = 39 , 1 W D3 = zener diode, 3.9 V, F1 = fuseholder with 630 mA verted into a dehumidifier by
P1 = 1 k preset 500 mW slow fuse interchanging connections 1 and
D4 = zener diode, 2.4 V, PCB Order no. 984087 3 to sensor IC1.
Capacitors: 500 mW [984087]
056

pulse/frequency modulator
C2 15V

Design T. Giesberts take before the potential across 100n

The pulse width of the compact capacitor C1 has reached the R2


pulse cum frequency modulator level at which IC1 is enabled. 100k
can be varied by altering the When the control voltage is IC1
change-over point of comparator larger than the zener voltage, the R1
2
1
7
IC1 with a control voltage via oscillator ceases to work. The 100k 5
6
R5

resistor R1. The hysteresis of the maximum period is 25 ms, LF357 10k
3
IC is determined by resistors R3 which may be adapted by alter- 4
and R4. The control voltage also ing the value of C1. This will, of R4
causes the frequency of the pre- course, also alter the maximum 100k
sent circuit to be altered. When frequency.
R3
the input voltage is 0 V, the fre- The duty cycle is inversely C1 2x
D1
100

quency is a maximum: in the proportional to the control volt- 10V


0W5
present design this is about age. The minimum pulse width 470n D2
3.8 kHz. The level of the output attainable at the lowest fre-
voltage is 1213 V. quency is about 6 s.
The more the change-over The modulator draws a cur- C3

point has been shifted with the rent not exceeding 5 mA. 100n 15V
control voltage, the longer it will [984088]
984088 - 11
057

switch-mode power supply


A National Semiconductor also a version providing a pre-
Application settable output voltage.
National Semiconductor has 4
Within the specified appli-
been producing and designing FB C2 cation, the supplies can deliver
ICs for use in switch-mode 8...40V IC1 CB 1 currents of up to 500 mA. Note-
power supplies for many years. 7 VIN
10n
5V worthy is the high switching fre-
L1 500mA
IN+ LM2674 8
The application of these devices VSW
150H
quency of 260 kHz. This has the
OUT+
is normally straightforward, ON advantage that only low-value
helped by the excellent docu- C1
5 6 D1 C3 inductor and capacitors are
mentation that is available. needed, and this results in
A typical example of a 100 * 100 excellent efficiency and small
40V 10V
switch-mode power supply is dimensions. In normal circum-
that based on the LM2671 or stances, the efficiency is 90%
LM2674. The components for it * zie tekst
* siehe Text 984073 - 11
and may even go up to 96%.
* see text * voir texte
are available for outputs of Both ICs provide protection
3.3 V, 5 V and 12 V. There is against current and temperature

Elektor Electronics 7-8/98 97


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list C1 = 0.47 F, 250 V a.c. T1 = BC557B on the PCB shown in Figure 2,
C2 = 470 F, 16 V, radial which is available ready made
Resistors: C3, C4 = 0.33 F, metallized Integrated circuits: (see Readers services pages
R1 = 470 , 1 W polyester, 5% IC1 = NH-3 (Figaro) towards the end of this issue).
R2, R3 = 10 k C5 = 0.1 F, high stability IC2 = TLC271CP
Bear in mind that parts of the
R4 = 1 k C6 = 47 F, 16 V, radial Tri1 = TLC336T (SGS)
R5 = 56 k C7 = 0.047 F, 250 V a.c.
board will carry mains voltage,
R6 = 6.8 k Miscellaneous: which makes careful working
R7 = 4.7 k Semiconductors: K1, K2 = 2-way terminal block and the enclosing of the board
R8 = 470 D1 = zener diode, 8.2 V, 1.3 W for board mounting, pitch in a plastic case imperative.
R9 = 2.2 M D2 = 1N4001 7.5 mm The humidifier may be con-
R10 = 39 , 1 W D3 = zener diode, 3.9 V, F1 = fuseholder with 630 mA verted into a dehumidifier by
P1 = 1 k preset 500 mW slow fuse interchanging connections 1 and
D4 = zener diode, 2.4 V, PCB Order no. 984087 3 to sensor IC1.
Capacitors: 500 mW [984087]
056

pulse/frequency modulator
C2 15V

Design T. Giesberts take before the potential across 100n

The pulse width of the compact capacitor C1 has reached the R2


pulse cum frequency modulator level at which IC1 is enabled. 100k
can be varied by altering the When the control voltage is IC1
change-over point of comparator larger than the zener voltage, the R1
2
1
7
IC1 with a control voltage via oscillator ceases to work. The 100k 5
6
R5

resistor R1. The hysteresis of the maximum period is 25 ms, LF357 10k
3
IC is determined by resistors R3 which may be adapted by alter- 4
and R4. The control voltage also ing the value of C1. This will, of R4
causes the frequency of the pre- course, also alter the maximum 100k
sent circuit to be altered. When frequency.
R3
the input voltage is 0 V, the fre- The duty cycle is inversely C1 2x
D1
100

quency is a maximum: in the proportional to the control volt- 10V


0W5
present design this is about age. The minimum pulse width 470n D2
3.8 kHz. The level of the output attainable at the lowest fre-
voltage is 1213 V. quency is about 6 s.
The more the change-over The modulator draws a cur- C3

point has been shifted with the rent not exceeding 5 mA. 100n 15V
control voltage, the longer it will [984088]
984088 - 11
057

switch-mode power supply


A National Semiconductor also a version providing a pre-
Application settable output voltage.
National Semiconductor has 4
Within the specified appli-
been producing and designing FB C2 cation, the supplies can deliver
ICs for use in switch-mode 8...40V IC1 CB 1 currents of up to 500 mA. Note-
power supplies for many years. 7 VIN
10n
5V worthy is the high switching fre-
L1 500mA
IN+ LM2674 8
The application of these devices VSW
150H
quency of 260 kHz. This has the
OUT+
is normally straightforward, ON advantage that only low-value
helped by the excellent docu- C1
5 6 D1 C3 inductor and capacitors are
mentation that is available. needed, and this results in
A typical example of a 100 * 100 excellent efficiency and small
40V 10V
switch-mode power supply is dimensions. In normal circum-
that based on the LM2671 or stances, the efficiency is 90%
LM2674. The components for it * zie tekst
* siehe Text 984073 - 11
and may even go up to 96%.
* see text * voir texte
are available for outputs of Both ICs provide protection
3.3 V, 5 V and 12 V. There is against current and temperature

Elektor Electronics 7-8/98 97


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Parts list C1 = 0.47 F, 250 V a.c. T1 = BC557B on the PCB shown in Figure 2,
C2 = 470 F, 16 V, radial which is available ready made
Resistors: C3, C4 = 0.33 F, metallized Integrated circuits: (see Readers services pages
R1 = 470 , 1 W polyester, 5% IC1 = NH-3 (Figaro) towards the end of this issue).
R2, R3 = 10 k C5 = 0.1 F, high stability IC2 = TLC271CP
Bear in mind that parts of the
R4 = 1 k C6 = 47 F, 16 V, radial Tri1 = TLC336T (SGS)
R5 = 56 k C7 = 0.047 F, 250 V a.c.
board will carry mains voltage,
R6 = 6.8 k Miscellaneous: which makes careful working
R7 = 4.7 k Semiconductors: K1, K2 = 2-way terminal block and the enclosing of the board
R8 = 470 D1 = zener diode, 8.2 V, 1.3 W for board mounting, pitch in a plastic case imperative.
R9 = 2.2 M D2 = 1N4001 7.5 mm The humidifier may be con-
R10 = 39 , 1 W D3 = zener diode, 3.9 V, F1 = fuseholder with 630 mA verted into a dehumidifier by
P1 = 1 k preset 500 mW slow fuse interchanging connections 1 and
D4 = zener diode, 2.4 V, PCB Order no. 984087 3 to sensor IC1.
Capacitors: 500 mW [984087]
056

pulse/frequency modulator
C2 15V

Design T. Giesberts take before the potential across 100n

The pulse width of the compact capacitor C1 has reached the R2


pulse cum frequency modulator level at which IC1 is enabled. 100k
can be varied by altering the When the control voltage is IC1
change-over point of comparator larger than the zener voltage, the R1
2
1
7
IC1 with a control voltage via oscillator ceases to work. The 100k 5
6
R5

resistor R1. The hysteresis of the maximum period is 25 ms, LF357 10k
3
IC is determined by resistors R3 which may be adapted by alter- 4
and R4. The control voltage also ing the value of C1. This will, of R4
causes the frequency of the pre- course, also alter the maximum 100k
sent circuit to be altered. When frequency.
R3
the input voltage is 0 V, the fre- The duty cycle is inversely C1 2x
D1
100

quency is a maximum: in the proportional to the control volt- 10V


0W5
present design this is about age. The minimum pulse width 470n D2
3.8 kHz. The level of the output attainable at the lowest fre-
voltage is 1213 V. quency is about 6 s.
The more the change-over The modulator draws a cur- C3

point has been shifted with the rent not exceeding 5 mA. 100n 15V
control voltage, the longer it will [984088]
984088 - 11
057

switch-mode power supply


A National Semiconductor also a version providing a pre-
Application settable output voltage.
National Semiconductor has 4
Within the specified appli-
been producing and designing FB C2 cation, the supplies can deliver
ICs for use in switch-mode 8...40V IC1 CB 1 currents of up to 500 mA. Note-
power supplies for many years. 7 VIN
10n
5V worthy is the high switching fre-
L1 500mA
IN+ LM2674 8
The application of these devices VSW
150H
quency of 260 kHz. This has the
OUT+
is normally straightforward, ON advantage that only low-value
helped by the excellent docu- C1
5 6 D1 C3 inductor and capacitors are
mentation that is available. needed, and this results in
A typical example of a 100 * 100 excellent efficiency and small
40V 10V
switch-mode power supply is dimensions. In normal circum-
that based on the LM2671 or stances, the efficiency is 90%
LM2674. The components for it * zie tekst
* siehe Text 984073 - 11
and may even go up to 96%.
* see text * voir texte
are available for outputs of Both ICs provide protection
3.3 V, 5 V and 12 V. There is against current and temperature

Elektor Electronics 7-8/98 97


overloads. The LM2671 has a Additional information on

1-370489

984073-1
C2 OUT+
L1 C3
number of additional facilities IC1 T the IC and design software are
such as soft start and the option C1 available from
to work with an external clock. D1 http://www.national. com/sw/Sim-
984073-1 IN+
The latter enables several sup- pleSwitcher/.
plies to be synchronized so as to [984073]
give better control of any EMC The application shown in the of up to 500 mA. Diode D1 is a
(ElectroMagnetic Compatibil- diagram provides an output volt- Schottky type (Uco 45 V and
ity). age of 5 V and an output current Imax 3 A).
058

input impedance booster


Design H. Bonekamp far as d.c. is concerned results
The input resistance of a.c.-cou- in the requisite d.c. setting of
5V
pled op amp circuits depends the op amp.
IC1 = TLC272 C3 C4
almost entirely on the resistance As far as alternating voltages
with which the d.c. setting is 10 100n are concerned, the input signal
10V
determined. If CMOS op amps is fed back so that only a tiny
are used, the input resistance is alternating current flows through
2 8
normally high, currently up to 1
R1. Therefore,
10 M. C1
3
IC1a
If a higher value is needed, a R1 Rin=R1[(R2+R3)/R3].
1n
bootstrap circuit may be used.
10M

This enables the input resis- With resistor values as speci-


tance to be boosted artificially to 6 fied, Rin is about 1 G.
a very high value, indeed 7
IC1b R3 C2
One aspect must be borne in
In the circuit shown in the 5
100k mind: the numerical value of
4
diagram, resistor R1 sets the d.c. 1 (R2+R3)/R3 must not exceed
10M

R2
point for IC1a. The terminal of 0.99. This means that the value
the resistor linked to pin 7 of of R3 cannot be less than
IC1 would normally be at earth 100 k if the value of R2 is
potential, so that the input C5 C6 10 M. If these conditions are
impedance would be 10 M. 10 100n not met, the circuit will become
Connecting the other termi- 10V
5V
unstable.
nal of the resistor to earth via 984089 - 11 [984089]
IC1a and network C2-R3-R2 as
059

soft start
for switching power supply
A National Semiconductor fails or the fuse blows. It is,
Application therefore, advisable to disable
+V IN
switching power supply whose 5 +VIN the regulator at switch-on (via
output voltage is appreciably R1 R3
C IN LM2574 the on/off input). until the rele-
lower than its input voltage has vant capacitor has been
20k

20k

ON/OFF
an interesting property: the cur- charged. When the regulator
3
rent drawn by it is smaller than D1 then starts to draw current, the
its output current. However, the charging current has already
input power (UI) is, of course, 15V T1 dropped to a level which does
greater than the output power. not overload the voltage source.
There is another aspect that R2 The circuit in the diagram
needs to be watched: when the BC547B provides an output voltage of
10k

input voltage at switch-on is too 5 V and is supplied by a 24 V


low, the regulator will tend to 974074 - 11
source. The regulator need not
draw the full current. When the be disabled until the capacitor
supply cannot cope with this, it is fully charged: when the

98 Elektor Electronics 7-8/98


overloads. The LM2671 has a Additional information on

1-370489

984073-1
C2 OUT+
L1 C3
number of additional facilities IC1 T the IC and design software are
such as soft start and the option C1 available from
to work with an external clock. D1 http://www.national. com/sw/Sim-
984073-1 IN+
The latter enables several sup- pleSwitcher/.
plies to be synchronized so as to [984073]
give better control of any EMC The application shown in the of up to 500 mA. Diode D1 is a
(ElectroMagnetic Compatibil- diagram provides an output volt- Schottky type (Uco 45 V and
ity). age of 5 V and an output current Imax 3 A).
058

input impedance booster


Design H. Bonekamp far as d.c. is concerned results
The input resistance of a.c.-cou- in the requisite d.c. setting of
5V
pled op amp circuits depends the op amp.
IC1 = TLC272 C3 C4
almost entirely on the resistance As far as alternating voltages
with which the d.c. setting is 10 100n are concerned, the input signal
10V
determined. If CMOS op amps is fed back so that only a tiny
are used, the input resistance is alternating current flows through
2 8
normally high, currently up to 1
R1. Therefore,
10 M. C1
3
IC1a
If a higher value is needed, a R1 Rin=R1[(R2+R3)/R3].
1n
bootstrap circuit may be used.
10M

This enables the input resis- With resistor values as speci-


tance to be boosted artificially to 6 fied, Rin is about 1 G.
a very high value, indeed 7
IC1b R3 C2
One aspect must be borne in
In the circuit shown in the 5
100k mind: the numerical value of
4
diagram, resistor R1 sets the d.c. 1 (R2+R3)/R3 must not exceed
10M

R2
point for IC1a. The terminal of 0.99. This means that the value
the resistor linked to pin 7 of of R3 cannot be less than
IC1 would normally be at earth 100 k if the value of R2 is
potential, so that the input C5 C6 10 M. If these conditions are
impedance would be 10 M. 10 100n not met, the circuit will become
Connecting the other termi- 10V
5V
unstable.
nal of the resistor to earth via 984089 - 11 [984089]
IC1a and network C2-R3-R2 as
059

soft start
for switching power supply
A National Semiconductor fails or the fuse blows. It is,
Application therefore, advisable to disable
+V IN
switching power supply whose 5 +VIN the regulator at switch-on (via
output voltage is appreciably R1 R3
C IN LM2574 the on/off input). until the rele-
lower than its input voltage has vant capacitor has been
20k

20k

ON/OFF
an interesting property: the cur- charged. When the regulator
3
rent drawn by it is smaller than D1 then starts to draw current, the
its output current. However, the charging current has already
input power (UI) is, of course, 15V T1 dropped to a level which does
greater than the output power. not overload the voltage source.
There is another aspect that R2 The circuit in the diagram
needs to be watched: when the BC547B provides an output voltage of
10k

input voltage at switch-on is too 5 V and is supplied by a 24 V


low, the regulator will tend to 974074 - 11
source. The regulator need not
draw the full current. When the be disabled until the capacitor
supply cannot cope with this, it is fully charged: when the

98 Elektor Electronics 7-8/98


overloads. The LM2671 has a Additional information on

1-370489

984073-1
C2 OUT+
L1 C3
number of additional facilities IC1 T the IC and design software are
such as soft start and the option C1 available from
to work with an external clock. D1 http://www.national. com/sw/Sim-
984073-1 IN+
The latter enables several sup- pleSwitcher/.
plies to be synchronized so as to [984073]
give better control of any EMC The application shown in the of up to 500 mA. Diode D1 is a
(ElectroMagnetic Compatibil- diagram provides an output volt- Schottky type (Uco 45 V and
ity). age of 5 V and an output current Imax 3 A).
058

input impedance booster


Design H. Bonekamp far as d.c. is concerned results
The input resistance of a.c.-cou- in the requisite d.c. setting of
5V
pled op amp circuits depends the op amp.
IC1 = TLC272 C3 C4
almost entirely on the resistance As far as alternating voltages
with which the d.c. setting is 10 100n are concerned, the input signal
10V
determined. If CMOS op amps is fed back so that only a tiny
are used, the input resistance is alternating current flows through
2 8
normally high, currently up to 1
R1. Therefore,
10 M. C1
3
IC1a
If a higher value is needed, a R1 Rin=R1[(R2+R3)/R3].
1n
bootstrap circuit may be used.
10M

This enables the input resis- With resistor values as speci-


tance to be boosted artificially to 6 fied, Rin is about 1 G.
a very high value, indeed 7
IC1b R3 C2
One aspect must be borne in
In the circuit shown in the 5
100k mind: the numerical value of
4
diagram, resistor R1 sets the d.c. 1 (R2+R3)/R3 must not exceed
10M

R2
point for IC1a. The terminal of 0.99. This means that the value
the resistor linked to pin 7 of of R3 cannot be less than
IC1 would normally be at earth 100 k if the value of R2 is
potential, so that the input C5 C6 10 M. If these conditions are
impedance would be 10 M. 10 100n not met, the circuit will become
Connecting the other termi- 10V
5V
unstable.
nal of the resistor to earth via 984089 - 11 [984089]
IC1a and network C2-R3-R2 as
059

soft start
for switching power supply
A National Semiconductor fails or the fuse blows. It is,
Application therefore, advisable to disable
+V IN
switching power supply whose 5 +VIN the regulator at switch-on (via
output voltage is appreciably R1 R3
C IN LM2574 the on/off input). until the rele-
lower than its input voltage has vant capacitor has been
20k

20k

ON/OFF
an interesting property: the cur- charged. When the regulator
3
rent drawn by it is smaller than D1 then starts to draw current, the
its output current. However, the charging current has already
input power (UI) is, of course, 15V T1 dropped to a level which does
greater than the output power. not overload the voltage source.
There is another aspect that R2 The circuit in the diagram
needs to be watched: when the BC547B provides an output voltage of
10k

input voltage at switch-on is too 5 V and is supplied by a 24 V


low, the regulator will tend to 974074 - 11
source. The regulator need not
draw the full current. When the be disabled until the capacitor
supply cannot cope with this, it is fully charged: when the

98 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

potential across the capacitor National Semiconductor have an ble externally. This means that a level of about 17 V, transistor T1
has reached a level of half or integral on/off switch, and this is higher switching voltage may be comes on, whereupon the regu-
more of the input voltage, all is used in the present circuit. The applied via a series resistor: the lator is enabled.
well. This is why the zener diode input is intended for TTL sig- value of this in the present cir- [984074]
in the diagram is rated at 15 V. nals, and usually consists of a cuit is 22 k. When the voltage
Many regulators produced by transistor whose base is accessi- across the capacitor reaches a
060

Infra-red remote control


tester
Design: W. Foede
COMPONENTS LIST
This little circuit is invaluable
for quick go/no-go testing of just Resistors:
about any remote control trans- R1,R2 = 10M
mitting infra-red (IR) light. The
tester is battery-powered, built Capacitor:
from just a handful of commonly C1 = 10nF
available and inexpensive parts,
and fits in a compact enclosure. Semiconductors:
Schmitt trigger gate IC1f is D1 = LD274 (Siemens)
D2 = LED, 3mm, low-current
used as a quasi-analogue ampli- IC1 = 74HC14
fier with, unusually, an infra-red
emitting diode (IRED) type Miscellaneous:
LD274 acting as the sensor ele- Bt1 = 3V Lithium cell with sol-
ment. An R-C network, C1-R2, der tags, e.g. Varta type
is used at the output of the gate CR2045 (560 mAh)
because all IR remote controls Case, 50x30x13 mm
transmit pulse bursts, and to (approx.), Conrad Electron-
prevent the output LED, D2, ics, order code 52 20 74-44.
lighting constantly when day-
light or another continuous
source of IR light is detected.
This creates a useful quick test R1
option: point the tester at direct D1 +
C1
daylight, and the indicator LED IC1
should light briefly. The sensi-
1-200489

984002-1
tivity of the tester is such that IR
light from remote control is
R2

detected at a distance of up to
50 cm. - D2
984002-1
The circuit is designed for
very low power consumption,
drawing less than 1 mA from the
battery when IR light is Hence no on/off switch is may be cased using a small whose artwork is shown here is
detected, and practically no cur- required. The construction ABS case from Conrad. Unfortu- not available ready-made.
rent when no light is detected. drawing shows how the tester nately, the printed circuit board (984002-1)

IR LED red LED

IC1a 2
IC1b 4
IC1c 6
6.5

1 1 1

14
R1 1 3 5 1-mm Cu wire
IC1 solder to PCB fill case
10M

with wadding
7
BT1 IC1 = 74HC14
50
46

IC1f IC1e IC1d Lithium


C1 button cell case height:
13 11 9 inside 16
3V 1 1 1
12 10 8 outside 20
10n

3V / 500mAh
R2 D2
D1
10M

LD274
33
984002 - 11
36
dimensions in mm 984002 - 12

Elektor Electronics 7-8/98 99


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

potential across the capacitor National Semiconductor have an ble externally. This means that a level of about 17 V, transistor T1
has reached a level of half or integral on/off switch, and this is higher switching voltage may be comes on, whereupon the regu-
more of the input voltage, all is used in the present circuit. The applied via a series resistor: the lator is enabled.
well. This is why the zener diode input is intended for TTL sig- value of this in the present cir- [984074]
in the diagram is rated at 15 V. nals, and usually consists of a cuit is 22 k. When the voltage
Many regulators produced by transistor whose base is accessi- across the capacitor reaches a
060

Infra-red remote control


tester
Design: W. Foede
COMPONENTS LIST
This little circuit is invaluable
for quick go/no-go testing of just Resistors:
about any remote control trans- R1,R2 = 10M
mitting infra-red (IR) light. The
tester is battery-powered, built Capacitor:
from just a handful of commonly C1 = 10nF
available and inexpensive parts,
and fits in a compact enclosure. Semiconductors:
Schmitt trigger gate IC1f is D1 = LD274 (Siemens)
D2 = LED, 3mm, low-current
used as a quasi-analogue ampli- IC1 = 74HC14
fier with, unusually, an infra-red
emitting diode (IRED) type Miscellaneous:
LD274 acting as the sensor ele- Bt1 = 3V Lithium cell with sol-
ment. An R-C network, C1-R2, der tags, e.g. Varta type
is used at the output of the gate CR2045 (560 mAh)
because all IR remote controls Case, 50x30x13 mm
transmit pulse bursts, and to (approx.), Conrad Electron-
prevent the output LED, D2, ics, order code 52 20 74-44.
lighting constantly when day-
light or another continuous
source of IR light is detected.
This creates a useful quick test R1
option: point the tester at direct D1 +
C1
daylight, and the indicator LED IC1
should light briefly. The sensi-
1-200489

984002-1
tivity of the tester is such that IR
light from remote control is
R2

detected at a distance of up to
50 cm. - D2
984002-1
The circuit is designed for
very low power consumption,
drawing less than 1 mA from the
battery when IR light is Hence no on/off switch is may be cased using a small whose artwork is shown here is
detected, and practically no cur- required. The construction ABS case from Conrad. Unfortu- not available ready-made.
rent when no light is detected. drawing shows how the tester nately, the printed circuit board (984002-1)

IR LED red LED

IC1a 2
IC1b 4
IC1c 6
6.5

1 1 1

14
R1 1 3 5 1-mm Cu wire
IC1 solder to PCB fill case
10M

with wadding
7
BT1 IC1 = 74HC14
50
46

IC1f IC1e IC1d Lithium


C1 button cell case height:
13 11 9 inside 16
3V 1 1 1
12 10 8 outside 20
10n

3V / 500mAh
R2 D2
D1
10M

LD274
33
984002 - 11
36
dimensions in mm 984002 - 12

Elektor Electronics 7-8/98 99


061
symmetrical
full-wave rectifier
Design: H. Bonekamp R3
10k
Active rectifiers often consist of
an op amp circuit with diodes in R2
6 9
10k
the feedback loop. Such tradi- 7 8
IC1b IC1c
tional arrangements work very 5 10
well in many applications, but R6
the diodes introduce, by defini-

10k
tion, non-linearity. However, the 2 12 X0 14
X
flaw so introduced is compen- IC1a
1 13 X1
IC3
sated adequately if the open-loop 3 2 Y0
15 R7
amplification of the op amps is 5V
1 Y1 Y

10k
R1
sufficiently high. This is well and 5 Z0
10k

4
3 Z1 Z
good at low frequencies, but the C5
12
R5
open-loop gain of op amps drops 100n
74HCT4053
IC1d
14

2k7
6
appreciably at high frequencies. INH 13

This results in insufficient com- IC2 A B C


5
8 11 10 9
pensation of the the non-linear- 2
6
7
ity introduced by the diodes, LM311
3
which gives rise to distortion. 4 IC1 = TLC274
The rectifier presented in 1

this article is free of such prob-


+5V 5V
lems, since it has no diodes in C6
the signal paths: only linear C1 C3 4 C7 16
100n
components. IC1 IC3
10 100n 11 100n 8 7
The circuit is based on ana- 5V 10V
logue multiplexer IC3 and com-
parator IC2. The signal to be C2 C4 C8
rectified is initially buffered by
op amp IC1a. From there, it is 10 100n 100n
10V
applied to two inputs of the mul- 5V 5V
tiplexer: one in the original state 984043 - 11

of the signal and the other in


inverted form by IC1b. The input signal from the comparator ity no longer varies, but remains The rectifier operates over a
signal is also applied to com- applied to its pin 11, the multi- constant: the signal is rectified. band extending from 0 Hz to
parator IC2. The output of this plexer switches between the The user can even choose 100 kHz.
stage will toggle between high original signal at X1 and the between the positive voltage at The rectifier needs a power
and low in the rhythm of the inverted signal at X0. This pin 14 and the negative signal at supply of 5 V, from which it
input signal. results in a signal at the output pin 15. The rectified signals are draws a current of about 6 mA.
On command of the output of the multiplexer whose polar- buffered by IC1c and IC1d. [984043]
062

video amplifier 5V

R1
C3
1k

Design: L.A.M. Prins fully clockwise and P2 fully 1 25V


T2
The video amplifier in the dia- anticlockwise, such a large base
gram is a well-known design. current would flow through T1
K1 T1
Simple, yet very useful, were it that this transistor would give up C1 BC560
K2
not for the ease with which the the ghost. Moreover, with the R2

transistors can be damaged if wiper of P2 at earth level, the 1


25V
D1 BC550
75

the potentiometers (black level base current of T2 would be P2

and signal amplitude) are in dangerously high. Resistors R3 1N4148 5k


their extreme position. Fortu- and R4 are sufficient protection R3
P1
nately, this can be obviated by against such mishaps, since they 1k
the addition of two resistors. limit the base currents to a level 5k R4
C4
If in the diagram R3 and R4 of not more than 5 mA. C2
1k

were direct connections, as in Shunt capacitor C4 prevents 100n 100 6V


the original design, and P1 were R4 having an adverse effect on
the amplification. [984066] 984066 - 11

100 Elektor Electronics 7-8/98


061
symmetrical
full-wave rectifier
Design: H. Bonekamp R3
10k
Active rectifiers often consist of
an op amp circuit with diodes in R2
6 9
10k
the feedback loop. Such tradi- 7 8
IC1b IC1c
tional arrangements work very 5 10
well in many applications, but R6
the diodes introduce, by defini-

10k
tion, non-linearity. However, the 2 12 X0 14
X
flaw so introduced is compen- IC1a
1 13 X1
IC3
sated adequately if the open-loop 3 2 Y0
15 R7
amplification of the op amps is 5V
1 Y1 Y

10k
R1
sufficiently high. This is well and 5 Z0
10k

4
3 Z1 Z
good at low frequencies, but the C5
12
R5
open-loop gain of op amps drops 100n
74HCT4053
IC1d
14

2k7
6
appreciably at high frequencies. INH 13

This results in insufficient com- IC2 A B C


5
8 11 10 9
pensation of the the non-linear- 2
6
7
ity introduced by the diodes, LM311
3
which gives rise to distortion. 4 IC1 = TLC274
The rectifier presented in 1

this article is free of such prob-


+5V 5V
lems, since it has no diodes in C6
the signal paths: only linear C1 C3 4 C7 16
100n
components. IC1 IC3
10 100n 11 100n 8 7
The circuit is based on ana- 5V 10V
logue multiplexer IC3 and com-
parator IC2. The signal to be C2 C4 C8
rectified is initially buffered by
op amp IC1a. From there, it is 10 100n 100n
10V
applied to two inputs of the mul- 5V 5V
tiplexer: one in the original state 984043 - 11

of the signal and the other in


inverted form by IC1b. The input signal from the comparator ity no longer varies, but remains The rectifier operates over a
signal is also applied to com- applied to its pin 11, the multi- constant: the signal is rectified. band extending from 0 Hz to
parator IC2. The output of this plexer switches between the The user can even choose 100 kHz.
stage will toggle between high original signal at X1 and the between the positive voltage at The rectifier needs a power
and low in the rhythm of the inverted signal at X0. This pin 14 and the negative signal at supply of 5 V, from which it
input signal. results in a signal at the output pin 15. The rectified signals are draws a current of about 6 mA.
On command of the output of the multiplexer whose polar- buffered by IC1c and IC1d. [984043]
062

video amplifier 5V

R1
C3
1k

Design: L.A.M. Prins fully clockwise and P2 fully 1 25V


T2
The video amplifier in the dia- anticlockwise, such a large base
gram is a well-known design. current would flow through T1
K1 T1
Simple, yet very useful, were it that this transistor would give up C1 BC560
K2
not for the ease with which the the ghost. Moreover, with the R2

transistors can be damaged if wiper of P2 at earth level, the 1


25V
D1 BC550
75

the potentiometers (black level base current of T2 would be P2

and signal amplitude) are in dangerously high. Resistors R3 1N4148 5k


their extreme position. Fortu- and R4 are sufficient protection R3
P1
nately, this can be obviated by against such mishaps, since they 1k
the addition of two resistors. limit the base currents to a level 5k R4
C4
If in the diagram R3 and R4 of not more than 5 mA. C2
1k

were direct connections, as in Shunt capacitor C4 prevents 100n 100 6V


the original design, and P1 were R4 having an adverse effect on
the amplification. [984066] 984066 - 11

100 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

063 simple infrared transmitter


Design: T. Giesberts COMPONENTS LIST
This little circuit will be valued
highly whenever a signal is Resistors:
required for the testing of R1 = 5k6
R2 = 270k
infrared receivers. In most
R3 = 3k3
cases, such a test is possible R4 = 22
without having the associated P1 = 2k5 preset, horizontal
remote control available. Of
course, the test will then be lim- Capacitors:
ited to just the infrared sensor C1 = 1nF2, raster 5mm
device in the receiver, but its C2 = 100nF, raster 5mm
incredibly useful to begin with C3 = 100F, 10V, radial
when it comes to faultfinding in
an infrared controlled system Semiconductors:
like a TV set or a VCR. The D1,D2,D3 = BAT85
combination of this test trans- D4 = LD271 or LD274
mitter and the simple infrared T1 = BC327
IC1 = 74HC4060 (Philips, do
receiver described elsewhere in not use Texas Instruments)
this issue yields a simple one-
channel on/off remote control. Miscellaneous:
Like a real remote control S1 = miniature push-button,
unit, the present transmitter e.g., Conrad o/n 70 04 79-44
emits pulses modulated on to a Bt1 = 3V Lithium button cell,
carrier signal of about 36 kHz. 20mm diameter, e.g. type
Because it not necessary, for the CR2032 (Varta)
testing purposes outlined above, Printed circuit board, order
to have a true encoded pulse code 984049-1, see Readers
train (like RC5, RECS80 et al.), Services page.
Case: Nedis type Box UM14

S1 3V

R4
C3 C2 D4
R3 T1 C1
100 100n
3k3 P1
10V
R3
R2

IC1 16
R1

D1 D3
C1 3
7 D1
IC1

BT1+ CTR14 5 T1 D2
4 D2
4
C2
KAST

BT1 1n2 5
9 !G 6
P1 R1 CX 6 D3
3V 10 14 BC
5k6 RX + 7
327 S1
11 CT 13 C3
2k5 RCX 8
15 3x R4
R2 9 1-940489
BAT85 984049-1
22

1 ROTKELE )C(
BT1 270k 11 984049-1 (C) ELEKTOR
12 2
CT=0 12
3
-
13 D4
LD271
8 LD274
74HC4060

BAT
984049 - 11
+

the bursts can be made using sistor. If one of the counter out-
three counter outputs connected puts is logic high, however, T1 is
to a diode triplet, D1, D2-D3, turned off. In this way, a signal
acting as a wired-OR for logic is obtained which, apart from
ones. Schottky diodes are used encoding information, resembles
here because of their inherent that produced by a real remote factor of the 60-mA peak-pulse required.
low forward voltage drop of just control unit. level sent through the LD271 (or The whole circuit including
0.4 V. The 14-stage ripple carry A fast p-n-p switching tran- LD274) sender diode, the aver- the battery is conveniently built
counter type 74HC4060 also sistor, T1, is used in common- age current drawn from the 3- on the compact PCB whose art-
contains an oscillator which is emitter mode to make sure the volt Lithium button cell is mod- work is shown here. This board
set up to oscillate at about circuit keeps transmitting even erate at about 6 mA when the is available ready-made through
36 kHz by means of components if the battery is almost flat. In battery is full, and 2.5 mA when the Publishers, and designed to
R2, P1, R1 and C1. Via resistor fact, the test transmitter will the battery is drained to 2.5 V. fit in a special key-fob case from
R3, the buffered oscillator out- keep working reliably at 36 kHz The circuit has a small push- Nedis Electronics.
put at pin 9 supplies carrier at battery voltages down to button, S1, which is pressed (984049-1)
(clock) pulses to the driver tran- 1.7 V. Because of the small duty whenever a test signal is

Elektor Electronics 7-8/98 101


064 low-impact muscle stimulator
circuit should not be used by
people suffering from heart ail-
ments or epilepsy. The circuit is
generally safe for use on arm
and leg muscles, but not for
heart stimulation. In case of
doubt, see your GP.
(984037-1)

COMPONENTS LIST

Resistors:
R1,R2 = 10k
R3 = 4k7
P1 = 100k preset H
P2 = 10k preset H

Capacitors:
C1 = 100nF MKT (Siemens)
C2,C4,C5 = 10F 16V radial
C3 = 470nF MKT (Siemens)

Used with care, this circuit can astable multivibrator (AMV) of the pulses, the output resis- Semiconductors:
provide a small degree of stim- mode. Its output signal fre- tance of the TLC555 in combi- D1,D2 = 1N4001
ulation for muscles. Two elec- quency is adjustable with preset nation with the value of C3 D3 = LED, high efficiency, red
trodes are fixed on the skin cov- P1. Transistor T1 and preset P2 cause transistor T2 to conducts T1 = BC547B
ering the muscle area. The dis- form an adjustable voltage just 0.5 ms. During that time, T1 T2 = BC337
IC1 = TLC555CP (must be
tance between the electrodes source which charges capacitor connects the low-voltage wind- CMOS type)
has to be between 1 cm and C4 (via resistor R3) to the volt- ing of Tr1 in parallel with C4,
about 5 cm. The circuit gener- age level set with P2. Using the enabling the energy stored in the Miscellaneous:
ates voltage pulses at an capacitor energy expression capacitor to be transferred to the Bt1 = 9V PP3 block, with clip-
adjustable rate of between [0.5*C*U2], it is found that C4 electrodes, and from there, to the on leads
0.6 Hz and 4 Hz. The output contains a fairly accurately muscle tissue. LED D3, finally, S1 = on/off switch
voltage level is also adjustable defined amount of energy which indicates the pulse activity. The Tr1 = mains transformer, 6V,
between 0 V and 250 V. The is smaller than or equal to printed circuit board shown here 1.5VA, Monacor/Monarch*
highest pulse energy supplied 0.4 mJ. By charging C3 via R3, is unfortunately not available type VTR1106
by the circuit is limited to a a simple and safe means is avail- ready-made from the Publishers.
value of about 0.4 mJ, which is able of limiting the maximum * No UK distributor, item avail-
generally believed to be safe. power to be transferred to the WARNING. Not medically able from C-I Electronics or
Stippler Electronics.
The TLC555, IC1, is wired in muscle. As regards the on-time approved to any standard, this

984037-1
P1 P2 T1
H1

H2

T1
R1

D2
1N4001 BC547B R3
+ S1
4k7
TR1 - C1
R3

T2 1-730489
OUT

R1 ROTKELE )C(
D2

C2 C4 TR1
10k

(0,4 mJ)
R2

P2 D3
IC1

S1 C2
10 10
C3

10k 6V 230V
16V 16V
(0.4 mJ)
C5 D1 C4
H3

H4

8 4
P1 1VA5
7 R
DIS
BT1 T2
100k
IC1 C3
3
9V OUT
6 TLC
THR 555 470n D3
10k

R2
2 BC337
TR
CV
5 1
(C) ELEKTOR
C5 C1 D1
984037-1

10 100n
16V 1N4001

984037 - 11

102 Elektor Electronics 7-8/98


065
Ultima
loopstick VLF antenna
Design: 1 cially in urban areas, man-made
30cm (12") long x 3cm (1 /4") dia
Richard Q. Marris G2BZQ nickel-zinc ferrite core noise can be from just about any
K1
With its 30 cm long, 3.2 cm electrical/electronic source such
diameter (12 x 114 inch) bun- as TVs, computers, calculators,
dled ferrite core, the Ultima Z = 50 thermostats, light dimmers, vac-
high-performance loopstick L2 uum cleaners, lawn mowers,
antenna covers much interesting electric power tools, traffic, power
activity between 50 kHz and lines and may other sources in
L1
195 kHz. The Ultima is ideal the immediate neighbourhood.
for home, portable, holiday and C1 Atmospheric noise, including
overseas travel. It also covers electric storms, is a natural phe-
the new 136 kHz band with nomenon, which, at its worst, can
800p
excellent results, but for recep- 984108 - 11 obliterate reception.
tion only. Space to many amateurs is at a
An increasing number of radio premium, and a multi-turn
amateurs in the UK and several Figure 1. Schematic of the Ultima ferrite-rod VLF antenna tuned frame loop antenna of,
European mainland counties are say, 1.2 m x 1.2 m will be the
now actively using a new VLF absolute size limit. Despite all
(Very Low Frequency) band at noise is either generated in the Entering by way of the antenna, its obvious advantages, includ-
136 kHz (135.7 137.8 kHz). receiver, or enters via the AC it is either man-made or atmos- ing sensitivity and good selec-
The big challenge at these mains power wiring. Remedial pheric. Man-made noise, in its tivity, such a directional antenna
extremely long wavelengths is to action can be taken. External simplest forms, is QRM from can be a cumbersome brute, and
make transmitter antennas with noise is different kettle of fish. another station. Otherwise, espe- inconvenient to store when not
reasonable efficiency. In fact,
anything greater than 1 per cent
is considered a feat! As to 30cm (12")
receiver antennas, the emphasis a
28cm (11")
is on noise elimination.
Recently, distances of almost 3cm
2,000 km have been covered by (11/4")
amateurs using CW and modest o/d

transmitter powers (EI0CF


OH1TN, 2-way CW QSO on L1
137.2 kHz). To amateurs in the L1 = 28cm (11") wide close wound turns
UK, the station DA0LF in Ger- of 24 SWG en. Cu. wire
2x PVC tails
many is a good DX target. Lots plastic or card tube
of useful information on VLF
7.6cm (3")
Dx-ing may be found in Rad-
3.65cm
Com, the magazine published by (17/16")
the Radio Society of Great
Britain (RSGB). In the US, a
group calling themselves 3.8cm
(11/2")
Lowfers has been active for o/d
many years collecting valuable
information on the quirks of L2
their 1,750-metre band. L2 = 3.65cm (17/16") wide close wound turns
of 24 SWG en. Cu. wire
The feel of the radio spectrum 2x PVC tails twisted
below 150 kHz or so (approx. loosely together
2,000 metres) is totally different
from anything you may have to COAX 984108 - 12a
experienced on higher frequen-
cies. Although you will not fail slide L2 over L1 and secure ferrite core
to notice a complete lack of AM b
broadcast stations, the most L1 L1
prominent feature is the huge
noise level which can, on occa-
sion, have a devastating effect
on reception.
For reception, a specially- L2
designed type of receiving
antenna will be found desirable,
especially in urban areas where
levels of man-made noise can be
diabolical, especially when using to COAX 984108 - 12b
a long-wire antenna. Noise expe-
rienced below about 150 kHz is
either internal or external. Internal Figure 2. (a) winding L1 and L2; (b) L1 and L2 assembly.

108 Elektor Electronics 7-8/98


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

9.5mm (3/8")
30cm (12")

15cm (6") rod 15cm (6") rod

a superglue
adhesive
adhesive 6 ferrite rods as above

1
6 2
5 3
4

b 1 - 6 = ferrite rods
3cm insert core into 3cm (11/4") o/d
(11/4") card/plastic tube
= wood dowel / rod
o/d

L1 + L2 wound on here
wood rod extension handle
(optional)

d L1 L1
L2 984108 - 13

Figure 3. Build the Ultima in this order. Forming a single 30 x 1 cm (a); and a single 30 x 3.2 cm ferrite core (b). Drawing (c) shows the 30 x 3.2 cm ferrite
winding assembly, and drawing (d) the format of the final ferrite core.

in use. cardboard tube (Clingfilm tub- the F14 and 61 materials is rod formation is maintained. The
An alternative is a ferrite-rod ing!). L1 has a width of 28 cm, small. Each 30-cm rod is made assembly should be left in a
loop (loopstick), which in its and consists of an estimated from two 15-cm rods, secured warm place for at least 24 hours
original form is less sensitive 466 close-wound turns of end-to-end with SuperGlue. The to make sure that the adhesive
than a frame loop. However a 24 SWG (0.6 mm) enamelled rod ends should first be lightly is thoroughly cured. The elastic
highly sensitive ferrite loop can copper wire (Figure 2a). The rubbed down with a fine glass bands are then cut away.
be designed with careful selec- winding is terminated with lead- paper in order to remove any The core is then inserted into
tion of ferrite core materials and outs of PVC covered hook-up grease, etc. (see Figure 3a). L1, with any slight looseness
dimensions. To put it simply, the wire. In practice the winding This technique effectively pro- being eliminated with masking
ferrite loop then has to be large ends were held in place with a duces one long rod from two tape. On the prototype, the wood
at, say, 30 x 2.5 cm (12 x 1 spot of SuperGlue, with other shorter ones. Other combina- dowel was made a few centime-
inch). Unfortunately, such ferrite spots every 2.5 cm or so along tions of length could be used tres longer than the rods, so that
rods are not only few and far the winding. This is necessary such as 20 + 10 cm, the 10-cm the core can be extracted from
between but also astronomically as winding the coil is a lengthy section being cut from a 20-cm the coil if and when necessary,
expensive. The size of affordable process. The coupling coil, L2, rod using a hacksaw. In this way, for example, for experiments.
manganese-zinc or nickel-zinc is wound on a 7.6-cm (3-inch) three 20-cm rods would make The simple final assembly is
ferrite rods stocked by radio length of cardboard tube of a two 30-cm rods. clearly shown in Figures 4a,
parts retailers is usually either diameter which just slips over The solid 30-cm long, 3.2 cm 4b and 4c. Three identical
20 x 1 cm (8 x 38 inch) or 20 x L1. L2 is a 3.6-cm (1 716 inch) diameter ferrite rod consists of strips of wood are fastened
1.25 cm (8 x 12 inch). It was wide close-wound winding of six 30-cm rods wrapped around together with wood screws to
decided to home-brew a 30 cm 24 SWG enamelled copper wire, a wood dowel, and temporarily form an inverted U shape chas-
long, 3.2 cm diameter (12 x 114 terminated with hook-up wire held in position with a couple of sis. Coil L1/L2 is mounted on
inch) rod by bundling a number leads lightly twisted together. elastic bands, see Figures 3b, the top with two narrow type
of smaller zinc-nickel rods. The The whole coil assembly is 3c and 3d. Next, the rods and plastic coated Terry clips fas-
target inductance was 26+ mH. shown in Figure 2b. dowel are adhered together to tened at the chassis ends. The
In the basic loopstick circuit The next step is to build the form one solid core, by cemen- twisted ends of L2 are dropped
shown in Figure 1, coil L1 is bundled ferrite core this is tation with a 15-minute setting through a hole drilled in the
brought to resonance by variable illustrated in Figure 3. It con- adhesive such as Uhu. The chassis top, and taken to the co-
capacitor C1. The core of L1 is sists of six 30 cm long, 1 cm adhesive is run along between axial socket mounted on a piece
the above mentioned bundled diameter ferrite rods glued all mating rod and dowel sur- of thin board, screwed to the
giant loopstick. Over the centre together to form one solid 30 cm faces, by easing them gently chassis end.
of L1 is wound coupling coil L2, x 3.2 cm (approx.) core. MMG apart with a thin blade. It is The 800-pF tuning capacitor,
which provides the coaxial con- F14 grade nickel-zinc material important to ensure that the sur- C1, is mounted on the chassis
nection to the receiver or VLF was used. An alternative would faces have the adhesive between side as shown in Figure 4. On
up-converter. The coil assembly be the US type 61 material. At them. Several strong elastic the prototype, a rigid air-spaced
(Figure 2) is wound on a 30 cm these low frequencies, the dif- bands are put around the rods, 800-P tuning capacitor
long x 3.2 cm diameter thin wall ference in performance between making sure that the circular (392+11+392+11 pF AM/FM

Elektor Electronics 7-8/98 109


Visit our Web site at http://ourworld.compuserve.com/homepages/elektor_uk

Terry clip Terry clip


a

L2
L1 L1
K1

knob
COAX socket on plate C1

in plastic box

coupler insulated shaft alu bracket + panel bush


984108 - 14b

30cm (12")
b
Terry clip L2 Terry clip
L1 L1

knob

K1
C1

COAX socket on plate coupler insulated shaft alu bracket + panel bush
984108 - 14a

2.5cm (1") plastic coated


c
Terry clip
L1, L2
COMPONENTS LIST (see text) with shaft coupler,
insulated extension shaft,
12 off F14 or 61 grade ferrite metal bracket, panel bush
spindle end of C1
rods, 15 cm long, 1 cm diam- and knob
(without knob)
eter ( 6 x 38 inch) 1 off 38 cm (15 inch) length of
1 3
1 off 3.2 cm (1 4 inch) thin wall 1 cm ( 8 inch) o/d wood dowel
cardboard tube (e.g., Cling- 1 off coaxial socket
film tubing) 2 off narrow 2.5-cm (1 inch)
SuperGlue plastic coated Terry clips
Slow setting glue, e.g. Uhu Reel of 24 SWG (0.6 mm)
1 off 800pF tuning capacitor enamelled copper wire.
30 x 12mm
1 1
(1 /4" x /2")
wood
alu bracket
Figure 4. Details of the final assembly. 984108 - 14c

type wired in parallel) is connections. 60 kHz MSF Rugby Standard arrived.


attached to the chassis side. It The tuning range of the proto- Time/Frequency station, which As compared with a traditional
is fitted with a shaft coupler and type was 50 kHz to 195 kHz. produces a mighty signal as 20 x 1.25 cm diameter loop-
an insulated shaft passing The Ultima is used with a Palo- might be expected. Moving up- stick, the Ultima features dra-
through a panel bush in a small mar VLF up-converter whose frequency the tuning range matically increased signal
bracket to the control knob. A output frequency is in the 80-m passes through the 73-kHz band strength, with atmospheric and
1,000-pF (500 + 500 pF) tun- (3.5-MHz) amateur radio band. where various Time/Frequency man-made noise being mostly
ing capacitor would also be sat- A simple turntable is an advan- Standard stations can be eliminated, or reduced to an
isfactory. The tuning capacitor tage to be able to turn the loop, received, and much else of acceptable level by simple loop
is enclosed in a plastic dust- which is directional. The fre- interest. Next comes the 2,000-m rotation.
cover box. The ends of L1 are quency range was carefully European Amateur band around (984108-1;W)
taken to the tuning capacitor selected. At the LF end is the 136 kHz which has recently

Elektor Electronics 7-8/98 111


READERS
Letters

We can only answer questions or remarks of general interest to our readers, con-

B o x cerning projects not older than two years and published in Elektor Electronics.
In view of the amount of post received, it is not possible to answer all letters,

. O . and we are unable to respond to individual wishes and requests for mod-

P
ifications to, or additional information about, Elektor Electronics projects.

4 1 4
1 bits set in the right order, I was
ready to go from BASIC direct-
magazine to automatically
receive the software with pub-
ly to Windows. I did not believe lished designs. I refer to soft-
my eyes, the board worked. ware for stand-alone programs
I have now solved the problem as well as for controllers. This
using this very small BASIC occurred to me because
program: although you publish designs
for programmers, it is not pos-
Set LPT1 sible to use the very same
in bidirectional mode designs for subsequent pro-
OUT &H378 + &H402, 32 + 21 jects based on microcon-
OUT &H378, 32 trollers, which, alas, I can only
obtain ready-programmed
through your valued Readers
When I run this program before Services, or a kit supplier.
PROMMER.EXE, the EPROM I was thinking along the lines
programmer works as expect- of a extra-value subscription,
ed. For your records, the moth- slightly dearer than the normal
Video Copy Processor lete technology. Briefly, the erboard in my computer is a subscription but with the pub-
Dear Editor having read your phenomenon you have wit- Pentium P51430VX-250 lishers automatically supplying
excellent magazine for a num- nessed is caused by the sync- Explorer. What is the actual the requisite software. Of
ber of years, Ive occasionally flywheel circuit available in source of the problem I have course, this could be imple-
attempted the odd project. My your sons old top-loader VCR. stumbled on? Is it poor stan- mented using the Internet.
latest venture was the Video The flywheel circuit was origi- dards for the parallel ports, or Extra-value subscribers would
Copy Processor of November nally intended to overcome pic- a deficiency in your software? then receive a key (digital code)
1997. Having assembled the ture instability as a result of Sved Martinsson (by email) allowing them to once down-
components and soldered them tape speed variation and other load the software from an Inter-
in position with the diligence of tracking irregularities. Modern net site.
a brain surgeon, lo and behold VCRs have much better tape On this (extremely popular) I hope you will at least consid-
it worked per fectly first time speed control, use better project we received a number er my suggestion.
around (rare for me). While tapes, and hence do not need of enquiries similar to yours. G. Bouland
demonstrating it (not without a the old flywheel system. How- As far as we have been able to
certain amount of panache) to ever, as you have seen, it is discover, the problem may be
my son, he informed me (not still very useful! caused by non-standard ini- Thanks for your constructive
without a cer tain amount of tialisation of the EPP port criticisms. To us, software
schadenfreude) that he had mode at the BIOS level. None development is a very time-
been copying (legally I hope) of our prototypes gave evi- consuming activity and there-
for years using his modern EPROM Programmer dence of this, however, and fore often left to free-lance
VCR and my old (discarded) Dear Editor I have just built obviously its just not possible contributing authors, who
top-loader to record with, with the EPROM Programmer fea- to test the project using each negotiate and receive remu-
very watchable results. Maybe tured in your March 1997 and every PC motherboard neration for each copy sold.
some of your buffs could issue, and want to inform you available on the market! We are Unfortunately this remunera-
enlighten me as to this phe- about a problem I encountered. grateful for being able to print tion system is hard to imple-
nomenon. Meanwhile anyone I made my own PCB for this your BASIC program because ment in your extra-value
want to buy a little used Video project and used locally it may helpful to other readers subscription scheme, although
Copy Processor? Kids, whod obtained parts. experiencing communication offering or selling software via
have them! During the first test I got the problems with the EPROM pro- the Internet is, we feel, a viable
M. Fitzgerald, Limerick message wrong hardware. grammer. option. Unfortunately, existing
Selecting ECP, EPP or indeed (See also Unidirectional Ver- payment systems are not (yet)
any other printer por t mode sion of EPROM Programmer, attractive when it comes to
Many thanks for your letter, and made no difference. I examined Elektor Electronics September selling relatively low-priced
congratulations on success- the operation of the board step- 1997, p. 72) products in this way.
fully building this project. by-step using BASIC but could For some time now we have
As we already explained in the not find any error in the hard- been busy resolving the prob-
earlier (1988) article on ware. Using BASIC I was able lem of unobtainable source
Macrovision, many older VCRs to manually control the parallel Software code files. These will be made
are not bothered at all by copy port register. I have been wondering for available in those cases where
protection signals, so again it These tests took a lot of time. some time now why it is not (1) it makes sense to make
seems wise not to bin obso- Finally, when I had the register possible for subscribers to your source code files available to

66 Elektor Electronics 5/98


READERS
Letters

our readers, and (2) the author This problem is simple to One of the rules of thumb that Submitting Articles for
has transferred the relevant solve. Locate the file also applies to NiMH batteries Publication
file(s) and copyrights to us. MSAJT110.DLL on your sys- is that the charging current is Dear Editor I have devel-
tem, and rename it to 1.4 to 1.5 times the specified oped a small project which I
MSAJT200.DLL. The EIT capacity. So, your 1100 mAh would like to offer you for pub-
installer should then work batteries will require a total lication. However, looking at the
Monacor/Monarch Parts properly. charge of 1500 to 1650 mAh. high quality of your ar ticles I
Dear Editor a fair number of A few other readers have In other words, you should fear that what I have wrought
recently published articles are reported that the EIT will not charge them for 12 hours at on my kitchen table is just not
based on components supplied launch after an otherwise suc- 130 mA, or for 32 hours at good enough because of my
by a company called Mona- cessful installation. An error 50 mA. limited skills at technical writ-
cor/Monarch (or even Merca- report File not found then For safe charging a charging ing and my inability to design
tor). To date I have been unable appears. Because this is a rare period of 14 to 15 hours is a high-quality printed circuit.
to locate their representative in problem, we have been unable commonly applied, using a Since I do not find a Call for
the UK and, indeed, any of the so far to discover the exact current equal to 1/10th of the Designs or similar section in
Monacor par ts you specify. cause. A makeshift solution is battery capacity. So, your 130- your magazine, how does one
Where can I obtain these parts to rename the file mAh charger is almost the per- actually go about submitting an
(mostly connectors, trans- MSAJT110.DLL into fect companion for these ar ticle for publication in Elek-
formers and moving-coil MSAJT112.DLL before running batteries. The one advantage tor Electronics?
meters)? the EIT installer. of the 50-mAh charger is that
F. Anderson, Ipswich it allows the batteries to given Well its much simpler than
a much longer charge without you would expect, and theres
any danger. Even continuous no need to have reservations
By most standards, Monacor Charging charging should be without risk about low design standards
is a large supplier of electron- NiMH Batteries at this low current. because we will do the touch-
ic parts with distributors in Dear Editor I have a query ing up if your article is accept-
nearly all European countries. on charging the new NiMH pen- ed for publication.
Until recently, the parent com- light batteries from Philips. On Content is far more important
pany, the German Inter-Mer- the label it says that these bat- Electronic Code Lock than looks. Basically, your cir-
cador GmbH, did not have an teries can be used in any Dear Editor I wish to bring cuit has to be original and
outlet in the UK. Fortunately, charger. With a suspicious to your attention that the out- innovative, and other readers
Monacor UK (Ltd) are now in mind I called the Philips Con- put NAND gate of the Electron- should be able to reproduce it
business and can be reached sumer Information Desk, only ic Code Lock (September as well as grasp its theory of
on the following numbers: tel. to be told that there was no 1997) suffers to a small extent operation. Once your design
(01908) 217100, fax (01908) danger of the batteries being from contact bounce. I was has been accepted for publi-
217900. We should also men- damaged by over-charging. able to prove this by adding a cation, you will receive a remu-
tion that most Monacor com- My actual questions to you are: JK flip-flop set to toggle state neration proposal from the
ponents we refer to can be I have a charger supplying a to the output. Ideally, this flip- Publisher, via our editorial sec-
supplied as one-offs by two of current of 50 mA. The NiMH flop should toggle at every retariat.
our advertisers, Stippler Elec- batteries have a capacity of pulse from IC2d. Unfortunate- Contrary to what you seem to
tronics and C-I Electronics, 1100 mAh. How long should I ly, the application of a NAND think, we do not mind the odd
mainly because they also carry leave them in the charger? I gate with Schmitt trigger inputs spelling mistake or slip of the
kits for many of the projects also have another charger with is no guarantee for complete pen in your writs because most
featured in Elektor Electronics. 130 mA output capacity. How elimination of pulses resulting articles are virtually rewritten
long should I leave it on to from contact bounce. I was by our editorial staff in close
recharge my NiMH batteries? able to cure this problem by co-operation with one of our
My questions may appear very connecting a 1-F electrolytic internal design engineers
Elektor Item Tracer simple, but I am fully aware of capacitor between pin 12 of appointed to oversee your pro-
Dear Editor I recently the fact that the total amount of IC2d and ground. In this way, ject technically. So, theres
ordered and received the Elek- energy needed to charge the the input remains logic low suf- absolutely no need to submit
tor Item Tracer (EIT). However batteries is greater than the ficiently long (approx. 1 s), and any mil-spec documents!
I have not been able to run the energy I can drain from them. bounce pulses generated when What we do need, however, is
program despite the fact that I would also like to fully charge S4 is released do not reach the a clear circuit diagram, short
all files are present according the batteries without any risk of output any more. descriptions of the circuit oper-
to your checking program. over-charging. C. Tribolet ation and software (if used),
I get the message Cannot find S. van Rhijn, Netherlands and sources for all compo-
MSAJT200.DLL when I try to nents used.
run the program, and then the Contact bounce pulses are Although not strictly required,
installation program terminates. One of the major differences notorious troublemakers in dig- article proposals should be
I remember seeing something between NiCd and NiMH bat- ital circuits. For the problems supplied on disk, using any of
about this in a past issue but teries is that the latter are you report with the Electronic the popular file formats for
can not now locate the relevant slightly less robust and less Code Lock, the addition of a 1- word processing and PCB
issue. Please tell me how to get tolerant of high charging and F cap is a possible solution. design. Why not give it a try?
the missing file, preferably discharging currents. The lat-
through the Internet. ter fact is important for fast
Michail Kalognomos, by email charging only.

Elektor Electronics 7-8/98 67

Anda mungkin juga menyukai