Ee 1989 12extra
Ee 1989 12extra
Design by G. Visschers
parallel-to-serial converter
and the other way around, with just four ICs
5V
R4
5V
4k7
8 MUX
K2 0
7
1 R5
6 C7
5V
10k
2
5 3
4 100n
R1 R2 4
3 K1
10k
10k
5
2 IC4
5V 6 1
IC2 1 5
7 10 3 7 6
74HCT160 23 W
C1 IC1a 8 IC3 6 2
1 CTRDIV10 22
3 1 9 74LS150 2 8 7
2 & CT=0 21
22n 9 10 4 3
M1 20 11 1
8
M2 19 CA3130
10 15 12 4
S1 G3 3CT=9 18
C2
5 7 13 R6 9
4 G4 17 C8
&
10k
6 2 14 5
100n C5/2,3,4+ 16
15
3 14 15 100n
IC1b 1,5D [1] 0
4 13 14
[2] 0
5 12 13 G
[4] 15
P1 6 11 11 5V
[8] 4
9
G
4k7
5V
IC1c IC1d
8 12 R8 R7
10 11
& &
10k
1k
9 13
5V
C3 14 C4 16 C5 14 C6
T1 IC1 IC2 IC3
100n 7 100n 8 100n 7 100n
IC1 = 4093
BC547B
982081 - 11
Figure 1. Circuit diagram of the parallel-to-serial converter. Using just four simple TTL ICs, parallel data is converted into serial format at
a bit rate of 9600 per second.
Lets start by mentioning that the pre- defined baudrate (speed) of 9600 bits actual parallel-to-serial conversion.
sent circuit is not a state-of-the-art per second. The transmission format is Eight of the 16 inputs of this multiplexer
superfast parallel-to-serial converter. very common: 8 databits, 1 stop bit are connected to K2, the parallel
However, it may be just the right circuit and no parity bit in practice this set- input of the converter. Input E0 of the
or sub-circuit if you were looking for a ting will be fine for all but the most IC represents the start bit, and E1
simple and rather clever solution. exotic cases. through E8, the databits. Input E9,
This article describes how a couple of The circuit diagram of the bidirection- finally, is used to generate the stop bit.
common-or-garden TTL ICs are al converter may be found in Figure 1. The inputs of the 74LS150 are
employed to convert parallel data The heart of the circuit is IC3, a type scanned by a 74LS160 BCD counter.
into serial format, using a hardware- 74LS150. This IC is responsible for the Every time S1 is pressed, the 74LS160
4k7
3
C1/
5V K2
2 4
1D 2D 3
5
6
7
14 C4 14 C5 16 C6 16 C6
14
IC1 IC2 IC3 IC4
100n 100n 100n 100n 13
7 7 8 8
12
12 11
IC1f IC2d 11
1 & 9
IC1 = 74HCT14 10
13 12 13
IC2 = 4093 IC1e
R3
11 10
47k 1
C4
IC1b 4
5V
10n
IC3
K1 1 74HCT160
CTRDIV10
1 3 1
CT=0
6 P1 9
M1
2
M2
7 IC1a 4k7 10 15
R1 IC2a G3 3CT=9
3 1 2 1 IC2c IC1d 7
22k 1 3 8 G4
8 2 & 10 9 8 2
9 & 1 C5/2,3,4+
4
3 14
9 1,5D [1]
4 13
5 [2]
IC1c 5 5 12
R2 4 [4]
5 6 6 & 6 11
1 1k C3 [8]
IC2b
C1 100n
10n
982081 - 12
Figure 2. The other way around is no problem either. This simple circuit converts serial information into parallel.
counts up from 0 to 9 and so applies increased accordingly. For a bit rate of serial communication.
the associated BCD code to the A-D of 2400, for example, a 1-F capacitor A simple power supply with +5 V and
inputs of IC3. Because of the action is a good choice. In this way, the cir- 5 V outputs is sufficient for this project.
of capacitor C2, this also happens cuit can be tweaked for nearly every The other way around
when the supply voltage is first bit rate you may want to use all you
switched on. One byte is then con- have to do is modify the oscillator as So far weve only discussed the con-
verted and transmitted. required. version from parallel to serial format.
If the circuit is used as a sub-assembly The reverse process, serial to parallel,
in a larger unit, components R1, R2, RS232, step by step is also implemented in a very simple
C1 and S1 may be omitted. The input manner.
of IC1a is then connected to the dri- The only missing element is the line The relevant circuit is shown in
ving circuit. interface. For this purpose we call in Figure 2. Connector K1 is connected
The operation of the rest of the cir- the help of a symmetrically powered to the serial port on the PC. The con-
cuit is should be easy to understand CA3130 opamp. This opamp, config- nector has a number of links to make
because a really simple counter cir- ured as a comparator, converts the TTL sure hardware handshaking is dis-
cuit is used. The flip-flop built around signal received from the multiplexer abled. By way of inverter IC1a, the ser-
IC1a and IC1b may be set with S1, into a serial signal which toggles ial signal (TxD) arrives at the D (data)
and reset by the BCD counter at the between +5 V and 5 V. In this way, we input of IC4, a binary counter.
end of the serial code transmission. strive to meet the electrical require- IC2a and IC2b together form a SR (set-
Once the flip-flop is set, the BCD ments defined for the RS232 interface. reset) flip-flop. In conjunction with an
counter is enabled, and each clock Only one line of the serial interface is oscillator built around IC1d and IC2c,
pulse then causes a new bit to be actually used: TxD (transmitted data). and a counter type 74HCT160, they
placed on the serial output line. A sim- On the connector, the handshaking act as the heart of the circuit, that is,
ple RC clock generator is built around lines RTS (request to send) and CTS as far as timing is concerned.
buffers IC1c and IC1d. It is dimen- (clear to send) are interconnected, as When data is received at the serial
sioned such that a bit rate of 9600 per well as the triplet DSR (data set ready), input, it is converted to TTL level (R1,
second is achieved. The exact bit rate DCD (data carrier detect) and DTR IC1a), and then applied to the input of
is set with the aid of preset P1. For (data terminal ready). In this way, the the SR bistable. This bistable starts the
lower bit rates, capacitor C3 has to be RS232 port is enabled, and capable oscillator whereupon oscillator (clock)
pulses are transmitted to the clock and R4 supplies the strobe pulse which adjusted. Unfortunately, adjusting the
input of the counter (IC3) and the shift enables data to be read into the out- clock oscillator is not as easy as we
register (IC4). Eventually, the shift regis- put register of IC4. This signal is sup- would like it to be. The problem is that
ter shifts out the bits one by one. plied by the RC0 output on IC3. Data the oscillator is only active when serial
One the oscillator has produced nine will remain present on the output until data is being received. For the purpose
clock pulses, the SR flip-flop is reset the next strobe pulse appears. A of aligning the circuit, this problem
again via the signal at the RCO output peripheral device connected to the may be solved by temporarily con-
of IC3 (which is inverted by IC1c). The parallel port is furnished with a strobe necting pin 8 of IC2c to the +5 V line
RC network consisting of R2 and C1 pulse via R3 and C4. (i.e., temporarily break the link between
lengthens the last pulse. If that was not When properly dimensioned the circuit pin 3 of IC2a and pin 8 of IC2c). Next,
done, there would be a fair chance of is suitable for serial signals travelling at the clock frequency may be measured
the shift register missing the last pulse, a rate of 9600 bits per second. By at pin 8 of IC1d (2400 Hz for 2400 bits/s,
mainly because IC4 (a CMOS IC) is increasing C2 to 470 nF, the bit rate or 9600 Hz for 9600 bits/s).
considerably slower than IC3 (a HCT may be dropped to 2400. Preset P1 (982081-1)
IC). The RC network consisting of C3 allows the bit rate to be accurately
Design by M. Wenzel
470
10k
K2 width. In addition, the output low-pass,
R2-C3, reduces the dynamic collector
R8
resistance at higher frequencies. In this
10k
T2
C4 way, the filter reduces the gain in the
C3
270p
higher part of the frequency spectrum
56p T1 BC T3 and so helps to eliminate any oscilla-
C1 548B
K1
tion tendencies.
1
16V BC BC
The first, high-gain, stage is terminat-
549B 548B ed by T2. Unlike T1, this transistor does
R1 R3 R5 R7
C2 C5 C6 C7 not add to the overall gain, because
47k
22
10k
2k2
120p 10 1n 10
the output signal is taken from the
16V 16V emitter (common-collector circuit). T2
982092 - 11 thus acts as an impedance converter,
with C4 reducing any tendency to
oscillation.
The output stage around T3 is a com-
Figure 1. Circuit diagram of the preamplifier for PC soundcards.
mon-emitter circuit again. In it, preset
P1 determines the voltage amplifica-
tion. T3 is biased by means of a direct-
Even in this day and age of integrated bias voltage supplied by the micro- current feedback circuit based on
microelectronics, a transistorised cir- phone input eliminates a separate components R7 and C5. To this is
cuit built from discrete part has a right power supply for the preamplifier. added an overruling dc feedback
of existence. The preamplifier The microphone input of a soundcard path back to the input transistor, via
described in this short article goes to will typically consist of a 3.5-mm jack R6. This measure guarantees good dc
show that it will be some time before socket in stereo version, although only stability in the preamplifier.
discrete transistors are part of the sili- one channel is available. The free
con heritage. The preamplifier is suit- contact is used by the soundcard to The circuit is small enough to be built
able for use with a soundcard or the supply a bias voltage to the mono on a piece of veroboard or stripboard,
microphone input of a modem. electret microphone. This voltage is and yet remain reasonably compact.
As you will probably know, most sound- accepted with thanks by the present To prevent interference from external
cards have input sockets for signals at preamplifier, and conveniently obvi- sources, the completed board should
line level (stereo), as well as one for a ates an external (mains adaptor) be mounted in a properly screened
(mono) electret microphone. For the power supply. (metal) enclosure, with the connec-
applications we have in mind, connect- tions to the input source and the sound
ing-up an inductive pick-up element or A classic design card made in screened cable.
a dynamic microphone, both inputs are The preamplifier provides a frequency-
in principle suitable, provided the In true transistor-design fashion, the linear response. In case the source sig-
source signal is amplified as required. preamplifier consists of three stages. nal is marked by frequency correction
The author eventually chose the micro- Capacitor C1 decouples the signal (e.g., RIAA), then a matching lineariza-
phone input on the soundcard. Firstly, received from the microphone or pick- tion circuit should be used if the rele-
because the line inputs are usually up element, and feeds it to the input of vant signals are used by the computer.
occupied, and secondly, because the the first stage, a transistor in emitter (982092-1)
Intercast
free Internet pages via TV signals
Other systems
Traditionally, Germany has been the
leader in the development of other
technologies that enable data to be
transmitted along with TV signals. Way
back in 1986, the WDR Computer Club
came up with their Videodat
decoder, and the system has been in
use ever since for the free software-
over-air service linked with the relevant
TV programme.
Figure 3. MTV also broadcasts Intercast data in the US; alas, not yet in Europe.
Deutsche Telekom have also teamed
up with Dresdens Technical University
for the development of Broadcast
Online TV. As opposed to WebTop and
Intercast, this system employs the hori- a special receiver card is needed. Intercast. If you can pick up an
zontal blanking interval (sync pulse, For the time being, we will have to make Intercast-savvy TV station, and you have
front and rear porch) to convey data. do with whats available on a larger a TV card in your PC, do give it a try.
A major disadvantage, however, is that scale, and in Europe that means (982091-1)
PC-on-a-chip
ZF Microsystems present an integrated solution
lowing functions: a DRAM controller, an
ISA bus interface, a keyboard inter-
face, two serial ports and one parallel
port, a connection for a floppy disk
drive and an EIDE interface for two
devices, for example, a hard disk and
a CD-ROM drive. Apart from these
functions, the CSS also contains an AT
compatible BIOS ROM, and a ROM in
which Calderas embedded DR-DOS is
stored. The standard DRAM memory
has a size of 2 Mbytes. The system may
be extended with external RAM up to a
size of 64 Mbytes using standard 3.3-V
EDO RAM (70 ns).
With the chip powered up and a dis-
play interface connected, your PC
monitor will show the DOS prompt. In
addition to the standard system soft-
ware, the flash memory has sufficient
Anyone who has ever looked inside specially developed for rugged room for the storage of system-specif-
an PC must have come to the con- embedded-control applications. The ic routines. Standard DOS software
clusion that the machine consists of a heart of a PC has been integrated into may be used without problems in this
number of integrated circuits (or a single functional module (SCC, environment.
chips), insertion cards, a power sup- Single Component Computer) suitable Interestingly, purchasing an
ply and cable bundles. The inherent for surface-mount assembly. To be OEMModule486 means that you auto-
disadvantage of using so many sep- able to connect the SCC to standard matically get a free licence for the use
arate components is that they have PC extension cards, the system pro- of the DOS and the BIOS. Traditionally,
to be linked by connectors! vides support for the ISA bus, thus these two components represent a
In the common-or-garden variety PC securing a direct link to the reliable major investment when it comes to
installed in our homes and offices, the and widely used PC/104 interface. This developing an embedded control sys-
screw links used to secure individual interface combines the versatility of tem.
components can be relied upon to the ISA bus with a compact and reli- The circuit is suitable for use with a sin-
provide the necessary mechanical able connection system which is also gle 5-V supply, and consumes about
stability for quite some time. This is in suitable for stacking interfaces. 2.5 watts of power at a clock frequen-
stark contrast with a PC used at the cy of 100 MHz. The complete circuit
heart of an embedded control system, A closer look at the SCC measures approximately 56 x 76 x 12
mainly because of the much stricter mm, and has 240 connections
requirements in respect of mechanical The single-chip computer developed arranged at a pitch of 0.04 inch.
loading. If control systems are fitted by ZF Microsystems is designed around (982094-1)
inside machines, mechanical reliabili- an 80486SX CPU clocked at 100 MHz
ty becomes a major issue, requiring a to which is added the full complement For further information, contact:
totally different structure of the PC and of I/O functions PC users would expect ZF Microsystems, 1052 Elwell Court,
the interfaces connected to it. to get. Palo Alto, CA 94303 USA:
The OEMmodule486 (OEM = original Because the entire system is compati- toll-free: 800-683-5943;
equipment manufacturer) from the US ble with the PC/AT Industry Standard tel.: 650-965-3800; fax: 650-965-4050; e-
company ZF Microsystems has been Architecture (ISA), it integrates the fol- mail: [email protected];
Internet: www.zfmicro.com.
Design by L. Lemmens
IC1b K6
5V R4 5V
3 4 K2
1 220 1
5 3
9
C4 14 C1 2 2
OUT
IC1 1 10
4
10 100n
25V
7 5V R3 1 3
220 11
4
C3
IC1c 12
R2
IC1d 8 R5 5 6 5
1 220 K3 10 25V
1
100
3 13
5
6
2 OUT
5V 9 D3 2 14
MIDI OUT
K7 4 7
5V R1 1
1 15
220
9 8
2
10
3
K5
11 5V
4 1
12 9
5 2
13 10
6 3
14 11
7 4
C2
15 MIDI IN 12
8 10 25V 5
5V 13
IC1e 10
R9 6
1
4k7
14
7
IC1f IC1a
11 R7 15
13 12 1 2
R10 1 1 220 K1 8
K4 220
IC2 R8 5 3
1 6 5 THRU
1
100
IN D1 2
4
4
2 D2 5V R6 1
5 1N4148 220 IC1 = 74HCT14
3 2 4
CNY17-2 982090-11
Figure 1. Circuit diagram of the joystick & MIDI interface. The circuit converts signals on the joystick connector of a soundcard into stan-
dardised connections and signals.
H7
Resistors:
H10
K4
R1-R4,R6,R7,R10 = 220
K1 J2
K2 J1
K3
THRU R5,R8 = 2k7
D1
R9 = 4k7
R6
R7
K7
R10
R3
R4
R2
R1
IC1 IC2
Capacitors:
R5
C4
D2 C1 982090-1 C1 = 100nF
R8 1-090289
C2,C3,C4 = 10F 25V
R9
D3 ROTKELE )C(
C2
C3
II K5 I K6 Semiconductors:
D1 = 1N4148
D2,D3 = LED
IC1 = 74HCT14
H8
IC2 = CNY17-2
Miscellaneous:
K1-K4 = 5-way DIN-socket, PCB-mount
K5,K6 = 15-way sub-D socket (female),
angled, PCB-mount
K7 = 15-way sub-D plug (male), PCB-
mount
Case: 120x64x40mm, e.g., Bopla type
E430.
(C) ELEKTOR
982090-1 PCB, order code 982090-1, see Readers
Services page.
Because the supply voltage is taken installed first so that they are not over- two joysticks and a number of MIDI
from the joystick connector, the circuit looked later. Next, you fit the connec- devices to be connected up to your
does not require a separate power tors and the remaining components. PC, which is, dare we say it, function-
supply. So, its all a matter of connect- Build the circuit as neatly as you can, ally extended. (982090-1)
ing it all up and start using it! In and connect it to the joystick port on
Microsoft lingo: plug and play. the PC via a 15-way flatcable. Thats it
you have an interface which allows
Two joysticks
Although the joystick interfaces of most
soundcards are complete, it should be
noted that all signals are combined on
MIDI hardware a closer look
a single connection, where they sit MIDI is an acronym for Musical Instrument Digital Interface. Essentially, it is an inter-
together with the MIDI signals! Our aim
face that allows electronic musical instruments to communicate with each other.
is therefore to untangle the signals for
the two joystick ports, and direct each The standard was defined in the early 80s. Over the past decade or so, the com-
set to its own connector. puter industry has gradually adopted the relevant interface, which is currently
Now, on the connectors we find two available on almost any PC equipped with a soundcard. Thanks to the MIDI inter-
pins for the Fire buttons (a and b) as face, software may be employed to control electronic musical instruments. The
well as the connections for the poten-
tiometers that control the movements reverse is also possible: using a keyboard and a sequencer, a piece of music may
in the horizontal and vertical directions be stored in a computer.
(x and y respectively). To these should The MIDI interface hardware typically found on PC soundcards is derived from
be added the positive power supply the RS232 interface. It comprises a kind of current loop which is used by the trans-
voltage and, of course, ground.
mitter to send information to the receiver. At the receiver side, an optocoupler is
The design of the printed circuit board
developed for this project may be used with a switching level of 5 mA. The switching times should be shorter than
found in Figure 2. The PCB has a clear 2 s. The bit rate is defined as 31.25 kbits/s (1%). The asynchronous communi-
layout with four sockets for the MIDI cation is based on one start bit, eight databits and one stop bit. The physical con-
interface arranged at one side, and
nection is made using 5-way 180-degree style DIN plugs and sockets, of which
the two joystick connectors, at the
other. Finally, theres a 15-way connec- only pins 4 and 5 are used. Pin 4 is connected to +5 V via a 220- resistor, and
tor for the cable link with the PC. pin 5 to the output of the driver, also via a 220- resistor. Pin 2 may be used as a
The single-sided PCB contains a cou- ground terminal for the MIDI cable screening. Pins 1 and 3 are not used. MIDI
ple of wire links which have to be cables are screened and have twisted wires. Their length should not exceed 15 m.
Design by F. Simonnot
battery capacity
measurement by PC
run true-capacity tests on rechargeable batteries
1k
8
5V 4
17
R5 5
1k
18
20 6
IC4
S1 R4 19
+ BATT F1 6 18 2 MUX
VI+ DB0
1k
4 7
17 3
9 DB1 20
100mA VREF 16 5
R3 5 IC1 DB2 7 8
INTR 15 6
DB3
1k
3 21
WR 14 11
DB4 9 9
R7 13 10
19 DB5 22
R2 10k CLKR 12 14
DB6 12 10
ADC0804
1k
11 13
4 DB7 23
CLK
11
7 1
VI CS 24
8 2
R1 D1 AGND RD 15 1 12
C1 EN G1
1k
25
10
150p 74HC257 13
5V1
BATT 982093 - 12
The clock frequency in the circuit is formed by connecting a resistor the measurement values obtained
determined by RC network C1-R7, across the + and terminals of the from the ADC, the program first calcu-
according to the following equation: battery. The value of this measurement lates the battery tension. Next, the
resistor will depend on the battery load current is computed using the
FCLK = 1 / 1.1RC type, and the program can help you resistor value and the battery voltage.
when it comes to determining the bat- The result, multiplied by the duration of
which gives approximately 606 kHz tery characteristics. the measurement, yields the instanta-
using the respective 150-pF and 10-k neous battery capacity.
components. Software Now, lets have a look at how this works
The conversion time of the ADC is in practice. The control program is
smaller than 100 s. You have to inform the program about called Accbench.exe, and may be
The input of the converter is protected the value of the battery load resistor, found on the project diskette with
by a 100-mA fuse. and the voltage range set on the ana- order number 986034-1, along with
The capacity measurement is per- logue-to-digital converter. Based on the source code file written in Turbo
Figure 3. PCB artwork designed by the author copper track layout and component mounting plan.
accbench.cir
Simulation file for Microcap V.
accbench.exe
Figure 4. Screendump showing the files found on the project disk.
Compiled, executable file.
Pascal 7.0. Although parts of the ing plan of the printed circuit board accbench.lmc
source code are written in French, the designed for this project by the author. Circuit diagram, Layo1 format.
relevant file will still be of use, we reck- Note that this PCB is not an Elektor
on, to those of you wishing to make Electronics design, and that it is not accbench.pas
modifications to the program. available ready-made through our Source code file in Turbo Pascal 7.0.
Once launched, the Accbench pro- Readers Services.
gram asks you if you want to do the Fitting the components on the board cuivben.lmc
calculations to determine the various should not present problems. Although Copper track layout of PCB, Layo1 for-
parameters. At this point you may it is necessary to refer to the circuit dia- mat.
enter the nominal battery voltage, gram to be able to locate the compo-
nominal battery capacity and the nents on the PCB, that should not cuivlpt
value of the load resistor. Using these cause difficulties because there are Print file for the PCB copper track lay-
input parameters the program calcu- only a couple of parts to mount, and out, for LaserJet or DeskJet printers
lates the discharging current, the their values are printed on the board. (300 dpi).
amount of time it takes to fully dis- If you want to avoid any risk of dam-
charge the battery, the power dissi- aging the ADC0804 and 74HC257 egavga.bgi
pated by the load resistor, and the integrated circuits, we suggest using a DOS driver that allows any IBM-com-
estimated duration of the discharging good quality IC sockets. patible PC to display the battery
cycle, by means of sampling. The completed circuit board may be graphs.
It should be noted that the program fitted in a small plastic case. The case
uses a number of maximum values as is drilled to accept a 25-pin sub-D seriben.lmc
far as the battery voltage and the bat- socket, like the one normally used for Print file for the component overlay,
tery capacity are concerned the the PC printer port. This connector is Layo1 format.
relevant values are 30 V and linked to the PCs printer port via a
12,000 mAh. If you enter higher values, standard cable. Two other wires leave Serglpt
the program will notify you by produc- the case: these are for the connection Print file for the PCB component over-
ing an error message. to the battery under test. The free ends lay, for LaserJet or DeskJet printers
The more audacious among you may of these flexible wires are fitted with (300 dpi).
want to have a go at modifying the crocodile (croc) clips for easy con-
converter control section of the con- nection to the battery terminals. The The disk also contains a number of
trol program, starting with the proce- relevant connections on the converter authentication files.
dure called convert, in order to board are marked + batt -. (982093-1)
make the program work with MAX187 Pins 2, 10, 12, 13, 15 and 25 of the
used in the CPU Thermometer pub- sub-D socket are connected to the
lished in the October 1997 issue of 257 outputs, G1 and ground, as indi-
Elektor Electronics. cated in the circuit diagram.
The regulated supply voltage of
Construction between 9 and 12 V is connected to
the solder pads labelled +12V and
Figures 3a and 3b show the copper 12V; these are found near the 7805
track layout and component-mount- voltage regulator.
anemometer
based on Hall-effect sensor
An anemometer is not an
instrument one finds in
many homes. It is only
those whose hobby is
sailing, surfing or meteo-
rology who find an
anemometer a desirable
instrument. Since a good
anemometer is fairly
expensive, it is well worth
while to consider building
one yourself. The design
presented here has been
tested in all kinds of
weather during which it
stood up well and proved
its worth.
INTRODUCTION faster the flow, the lower the tempera- dle. Another method is the use of a
An anemometer is, in general, an ture of the wire and the lower its resis- small magnet mounted on a spindle to
instrument for measuring the rate of tance. So, the rate of flow can be calcu- generate pulses in a pickup coil or reed
flow of a gas. More particularly, in lated by measuring the resistance of relay as seen in certain speedometers
meteorology, it is an instrument for the wire. for bicycles. Yet another, and a very reli-
measuring the speed of the wind. A In yet another, simple, version, the able, method is used in the present
common type consists of four hemi- force of the wind is used to depress a design. In this, a rotating small magnet
spherical cups carried at the ends of plate suspended from a spring. Any is combined with a Hall-effect sensor.
four radial arms pivoted so as to be change in the length of the spring
capable of rotation in a horizontal forms a directly readable measure of FREQUENCY COUNTER
plane, the speed of rotation being indi- the wind speed. Such an instrument is, The basic setup of the anemometer is
cated on a dial calibrated to read wind however, not terribly accurate. shown in the block diagram in Fig-
speed directly. An anemograph records Most practical meteorological ure 1. This shows that the electronic
the speed and sometimes the direction anemometers consist of two distinct part is very simple and, indeed, in this
of the wind. parts: a sensor and an indicator or dial. type of design the mechanical work is
A different type is the hot-wire The sensor normally consists of an invariably the most tedious. In essence,
anemometer which is based on an elec- assembly of three or four hemispheri- the electronic part is nothing more than
trically heated wire that is cooled by cal cups mentioned earlier. a frequency counter. The pulses gener-
the fluid or gas passing around it. The The rotary movement of the sensor ated by the rotating magnet in the Hall-
can be translated into an electrical signal effect sensor are counted in relation to
in various ways. For instance, a light time, then decoded, and finally applied
barrier or reflection sensor may be to a light-emitting diode (LED) display.
used to scan the light/dark pattern pro- The display is calibrated in m s1.
Design by R. Veltkamp duced by a crenellated disk on a spin- The simplicity of the electronic cir-
1
oscillator
Hall-effect
sensor
counter decoder
980079 - 11
IC5
5V
2 CTR14
3
4
7
5
R5
4 JP3
4k7
4k7
1M 5 R3 R2
11 !G 6
P1 R4 RCX 6
10 14 IC1b IC1f IC1e
4k7 RX + 7 JP2 C3 C2
9 CT 13 3 4 13 12 11 10
500k C1 CX 8 1 1 1
15
9 4n7 1n
12 1 JP1
10n CT=0 11 IC1c IC1d
2 5 9
12
3
4060 13
IC1 = 40106 1 1
6 8
5V
T3
R6
22k
T2
R7
BC557
22k
T1
R8
BC557
22k
5V
2 1 15 IC3 BC557
LD1 8 3 LD2 8 3 LD3 8 3
DS1 DS2 DS3 BCD/7SEG
13 14 1 9 R10 10 CA CA 10 CA CA 10 CA CA
RST OF C9 a10 100 a a a
10 6 10 R11 9 9 9
LE N10 [T] b10 100 b b b
4 IC2 9 5 11 R12 7 7 7
C1A Q0 9D,1 c10 100 c c c
C9 7 3 12 R13 5 5 5
Q1 9D,2 d10 100 d d d
6 2 13 R14 4 4 4
Q2 9D,4 e10 100 e e e
1n 3 4553 5 4 15 R15 2 2 2
C1B Q3 9D,8 f10 100 f f f
12 11 7 14 R16 1 1 1
CLK DIS EN g10 100 g dp g dp g dp
6 6 6
HD1105 HD11050 HD11050
74HCT4543
330
R9
5V IC4
D1 7805 5V 5V
R1 K2
10k
K1 1N4001
IC1a 14 C10 16 C11 16 C8 16
C4 C5 C6 C7
2 1 IC1 IC2 IC3 IC5
1
7 8 8 8
22 100n 100n 10 100n 100n 100n
63V 63V
980079 - 12
H4
C11
H1
C3
C10
R16
K1 JP2
Resistors:
R15
R1 = 10 k
LD1
R3
R2
R14
C9
IC1
T1
IC3
R13 R2R4 = 4.7 k
IC2
R12 R5 = 1 M
R11
C2
R6R8 = 22 k
LD2
R10
R9 = 330
C1
T2
R5 R9
R10R16 = 100
JP1
JP3 R6
R7 P1 = 500 (470) k preset poten-
C7
P1
LD3
980079-1
C6
T3
tiometer
C8
C4
IC5
R4
Capacitors:
IC4
D1 1-970089
C5 C1 = 0.01 F, ceramic
+
0
H2
H3
Semiconductors:
D1 = 1N4001
T1T3 = BC557B
Integrated circuits:
IC1 = 40106
IC2 = 4553
IC3 = 74HCT4543
IC4 = 7805
IC5 = 4060
Miscellaneous:
Hall-effect sensor = OHN3040U
(TRW)
Figure 3. Populating the printed-circuit LD1LD3 = HD11050, Class >L
board for the electronic part of the K1 = 3-way pin header
anemometer is absolutely straightfor- K2 = 2-way terminal block for PCB
ward. The board is, however, not available mounting
ready-made. Mains adaptor: >9 V, 300 mA
JP1JP3 = 2.54 mm pin strip with pin
jumper
Roller bearing
Magnets 7 mm long, 15 mm dia.
It will be clear that the measure- Set ring
ment interval is equal to the time lapse Brass spindle, 4 mm dia.
between resetting and latching. This
time lapse is determined by oscillator
IC5, which gives the requisite switch-
ing pulses to IC2 inputs LE and RST. Note that, strictly speaking, the value
Since IC5 also contains a 14-bit binary of R5 needs to be 210 times that of
counter, it is possible to use a much R4+P1. In practice, this is not very crit-
higher oscillator frequency than ical, however.
needed for the requisite measurement The BCD-to-7-segment conversion
time, which improves the overall sta- is carried out by IC3, while the display
bility. The pin jumpers, JP1JP3, at the is formed by LD1LD3.
relevant outputs of IC5 enable setting Resistors R10R16 prevent the cur-
an oscillator frequency that is 28, 29, rent through each of the display diodes
or 210 higher than needed for the exceeding 10 mA.
measurement time.
The required positions of the pin P O W E R S U P P LY
jumpers and the frequency set with P1 Power for the anemometer is provided
depend entirely on the construction of by a mains adaptor with an output of
the hemispherical cup assembly. not less than 9 V. This voltage is regu-
Assuming a maximum readout of lated by IC4 at 5 V.
99.9 m s1, and two sensor pulses per
revolution, the basic requisite fre- CIRCUIT BOARD
quency in the prototype worked out at The electronic circuits are best assem-
82.6 Hz, which is multiplied by 210 bled on the printed-circuit board in
(JP3 closed other two jumpers open). Figure 3. As this board is not available
In some cases it may be necessary to ready-made, it needs to be produced
alter the value of one or more compo- privately.
nents in the oscillator circuit. The oscil- Note that the board just visible in
lator frequency, fo, is given by: the introductory photograph is that of
the first prototype and deviates in
fo = 1/2.3C1(R4+P1) [Hz). some important points from that
shown in Figure 3.
Hall-effect sensor
1
When a current-carrying conductor or semiconductor is placed in a magnetic VCC
field, a potential difference is generated between the two opposed edges of the REG.
conductor or semiconductor in a direction mutually perpendicular to both the OUTPUT
field and the conductor or semiconductor. This effect is called the Hall effect, 3
and the generated voltage, the Hall voltage. The voltage level depends on the
kind and thickness of the conductor or semiconductor material, the magnitude
of the current, and the strength of the magnetic field.
A Hall element is very suitable for use as a contact-less switch and as test
probe for measuring direct currents. Since, in contrast to inductors, the voltage
GROUND
generated by the magnetic influence does not depend on the speed with which 2
the field changes, a Hall-effect sensor is eminently suitable for measuring relatively
slowly changing or even stable magnetic fields. OHN3040U
The Hall-effect sensor used in the anemometer is a Type OHN3040U from OHS3040U
TRW, which is a monolithic IC that incorporates a Hall element, a linear ampli-
fier, a Schmitt trigger, and a bandgap voltage regulator to allow operation over
a wide range of supply voltages.
The device has a logic level output and provides sink currents of up to 15 mA.
This allows the driving of more than five TTL loads, or any standard logic family 980079 - 14
using power supplies ranging from 4.5 V to 24 V. The output amplitude is con- 1 2 3
RF signal generator
part 2 (final): construction,
operation and adjustment
IC1 +12V 0 +30V +5V
C9
C8
C6 C7 R1
K1 D3
R2
C5 T1
C3 IC2
~ D8
D6
D2
TR1 C12
R4
C2
~
R3
D1
D5
R5
D7
C1
D4 C13
980053-4
C4
4-350089
C11 ROTKELE )C(
C10
(C) ELEKTOR
980053-4
A1 A2 A3 A4 A5 A6 A7 A8 3-350089
RES ROTKELE )C(
H6
H7
T1
T2
T3
T4
T5
T6
T7
T8
T0 S1 S2 S3
C1
R1 C8
H3
H1
C2 X1 R11 R10
R9 R8
R7 R6
C10
R13 R12
IC2
R19 R18 S4
C4 R21 R20
R5 C5
C6
R28
R26
R24
R22
R23
R25
R27
R29
H5
H8
ALE
C12
K1 Lock C7
H4
PSen
P2.4 R2 T
out in 0
T9 T10 T11 T12 R4
R3 RS232
P1 +5V
B2 B3 B4 B5 A C B
above the controller board may need tom plate of the case. Several slots are before fitting it, and double-check its
to be adjusted later, so do not mount it available, and the pair you actually value and position using the Compo-
securely as yet. The rotary switch choose to use should ensure that the nents List and the component overlay.
encoder, S4, is mounted directly on to metal frame around the face of the As usual, start with the wire links
the board, but its spindle is not yet cut LCD is pressed firmly against the (there are three), so they are not for-
off. Later, rectangular clearances are cut inside of the front panel. The three gotten or overlooked. Then follow the
in the front panel to allow the LCD to type D6 push-buttons should then low-profile parts and, finally, the verti-
be viewed, and the push-buttons to be protrude a little from the front panel. cally mounted parts. IC sockets should
pressed. The holes marked In, Out and not be used for the NE592 and the
It is recommended to use sockets ground to the right of preset P1 are SAA1057 on this board.
for IC1 and IC2. All holes in the PCB for an optional 3-wire RS232 link to a The value of the inductors is usually
with a label printed near it (like A1, T0, PC. If you do not require PC control, printed on these parts in the form of
Psen, Lock, etc.) are for inter-board the MAX232 may be omitted. The prac- colour bands (like resistors) or dots.
wires. Solder pins are not strictly nec- tical use of the RS232 interface will be The PLL/VFO board is fitted in a
essary direct wire connections to the reverted to further on. tinplate enclosure from Teko. After the
board are also fine. As with the PSU solder work, inspect the board, and
board, check your work against our VFO/PLL BOARD compare yours with our prototype
fully working prototype. This time, As you can see from the PCB artwork shown in Figure 11.
refer to the photograph in Figure 9. in Figure 10, this is the board with the
The board is fitted vertically behind the highest component density of all four.
metal front plate (which has to be pur- Care and precision are essential if you Figure 9. Finished con-
chased separately). It is held in position want to avoid a tedious faultfinding troller board (proto-
by a pair of slots moulded on the bot- session. Identify and check each part type).
10 L1 C9 L6 C29
1-350089 R35
C27
C18
R41
R16
R15
R13
R14
R2 D2 C24C23 C34
D12
C12 P1
R34
R33
R36
D11
R24
C13
IC3
B2 C2 L2
R25 R37 ROTKELE )C(
D1 R1 R42 +5V
C8 T2 T1 R18
R4 D4 C28 C25 +30V
R23 R26 C35 0
B3 C3 L3 C10 C7
T3 C19 C11 B A C
R28
D3 R3 C40 C33
R27
R17 T5
R12
R22
IC2
R6 D6 R20 C17 IC1
C14 C36 C38
R32
B4 C4 L4 T4 R19
R39
D5 R5 R21 C6 LOCK
C15 C16 C39
R29
R30
R31
R8 D8 D10 OUT C31
R9
FM AM L8
B5 C5
H1
L5 R11 T T T C30
H2
(C) ELEKTOR
980053-1
Figure 10. VFO/PLL resistor, and then check its position on and the trimmer to the centre of their
PCB design. the board. travel. It is assumed that the power
The attenuator board has relatively supply board has been tested already
large copper areas to assist in screening (with good results, of course).
AT TENUATOR BOARD and preventing unwanted signals from After applying power, the first thing
The main point to mind about assem- being generated and picked up by the to do is set the LCD contrast with pre-
bling the attenuator board (Figure 12) circuit. The attenuator board is shown set P1. Next, use an oscilloscope to
is that each close-tolerance (1%) resis- in Figure 11, together with the check that the VFO/PLL board sup-
tor goes to the right position on the VFO/PLL board. For RF screening pur- plies an RF signal to the attenuator
board. One error in this respect may poses, both boards are fitted in Teko board.
cause wrong attenuation levels later, tinplate cases. The output frequency supplied by
with possibly difficult to explain behav- the generator may be checked with a
iour of some of the radio equipment ADJUSTMENT calibrated frequency meter, a fre-
you may be aligning! Our advice is, The boards may be wired up experi- quency standard (off-air Rugby MSF or
therefore: read the Components List mentally for an initial test and a few similar) or a calibrated SW receiver
carefully, check the colour code, use a adjustments. (zero-beat). The relevant adjustment is
DMM to measure the value of each To begin with, set the two presets trimmer capacitor C33.
Adjustment of the RF signal level is Figure 11. Finished PLL/VFO board (below) and attenuator
only possible if you have an accurate board (above), both fitted in Teko ready-made tinplate cases.
and calibrated RF voltmeter. With the
attenuation set to 0 dB, preset P1 may
be adjusted for an output level of WIRING AND FM inputs on the PLL/VFO board and
630 mVpp into 50 at the generator MECHANICAL WORK the associated BNC sockets on the
output. Failing the necessary test Although there are quite a few wire front panel. If you can get hold of it,
equipment, you may leave the multi- connections between the boards, there use the 3-mm dia. type RG174/U, else,
turn preset at mid-travel. are no special precautions in this the much thicker RG50/U or /CU is a
respect. The RF signal connection good alternative.
between the PLL/VFO board and the All other inter-board connections
attenuator board must, of course, be are made in light-duty flexible wire or
Figure 12. Attenuator made in coax cable. The same goes for flatcable, although slightly thicker wire
PCB artwork. the connections between the AM and should be used for the 0-V, 5-V and 12-
H2
12 H3
R11
R12
R13
R14
R17
R18
R19
R20
R23
R24
R25
R26
R29
R30
R31
R32
R35
R36
R37
R38
R41
R42
R43
R44
R47
R48
R1
R2
R5
R6
R7
R8
T T
OUT
V supply wiring. Do not make any of on to the bottom plate of the enclosure. lated. At the PCB side in particular, the
the wires longer than necessary to pre- As already mentioned, the PSU board live and neutral wires should not be
vent digital noise being picked up from is fitted vertically, using a pair of the stripped longer than strictly necessary,
the controller board. moulded PCB slots towards the back and they should be inserted into the
The wires and the coax cables to panel. The three holes at the empty clamps right up to the insulation.
and from the PLL/VFO board and the right-hand side of the controller board Finally, once the wires are connected,
attenuator board should pass through are drilled to a diameter of about 8 mm the terminals on the mains
holes drilled in the short side panels of to allow the coax cables to the three socket/switch combination must be
the Teko tinplate cases. Once these front-panel mounted BNC sockets to insulated using heat-shrink sleeving.
boards are fully operational, the top pass. The metal front panel is cut, drilled
covers are fitted for optimum RF The mains voltage is switched on and lettered using the template shown
screening. and off by a double-pole switch inte- in Figure 13. This front panel foil is not
Guidance for mounting the four grated into a mains socket fitted onto available ready-made.
boards into the Bopla enclosure may the plastic rear panel of the enclosure. In the (ABS plastic) back panel, you
be obtained from the photographs in The wires between the mains have to cut rectangular clearances for
this article, and in particular, Figure 13. s o c ke t / s w i t c h the mains
Note that the solder side of the power combination and Figure 13. A look inside our pro- s o c ke t / s w i t c h
supply board is protected by a perspex the PCB terminal totype of the RF Signal Generator. combination
cover plate cut to roughly the same block on the PSU The covers of the tinplate cases and, optionally,
size as the board. The VFO/PLL and board should be of the VFO/PLL board and the for the RS232
attenuator boards are screened by tin- mains-rated and attenuator board were removed connector (a 9-
plate boxes, and mounted horizontally properly iso- for this photograph. pin sub-D type).
13
32-channel
PC-controlled light dimmer
de luxe controller for
ohmic and inductive loads
L1
1 R17
5V
10A
56k
K3 K4
1W
C7 IC3
2 3
X2 5V F1 CH8
D2
470n IC4
1A25 T
1N4001
1 CNY65 4
TR1
K5
IC2 5V
S202S11
7805 5V F2 CH7
B1 IC5
10k
R15 1A25 T
C8 C9 C10
T2 K6
9V 470 100n 100n
1VA5 B80C1500 25V
S202S11
R16 F3 CH6
1M
IC6
BC547B 1A25 T
5V
K2 ISP K7
10k
R6
5V S202S11
F4 CH5
IC7
C4 1A25 T
5V C5 C3 C6
K1
10n 100n 10 10V 100n
1 R4 K8
20
10k
6
2 S202S11
F5 CH4
7 1 19 R7
R2 R3 RESET IC1 (SCK)PB7 390 IC8
3
TxD 2 18 R8
100k 100k PD0(RxD) (MISO)PB6 390 1A25 T
8 3 17 R9
PD1(TxD) (MOSI)PB5 390
4 6 16 R10
R5 PD2(INT0) AT90 PB4 390
9 7 15 R11 K9
PD3(INT1) S2313 (OCI)PB3
1k
390
5 R1 T1 8 14 R12
PD4(T0) PB2 390
S202S11
10k
9 13 R13
PD5(T1) (AIN1)PB1 390 F6 CH3
D1 11 12 R14
PD6(ICP) (AIN0)PB0 390 IC9
RS232
BC547B 1A25 T
XTAL1 XTAL2
5 X1 4 10
K10
S1
C1 8MHz C2 S202S11
F7 CH2
S1 ON DIP
K11
1 2 3 4
S202S11 CH1
F8
IC11
1A25 T
H1
H2
K4 K5 K6 K7 K8 K9 K10 K11
F1 F2 F3 F4 F5 F6 F7 F8
980076-1 1.25AT 1.25AT 1.25AT 1.25AT 1.25AT 1.25AT 1.25AT 1.25AT
C6 K2
C9 C5
T2 R16 C4
R15
R10
R11
R12
R13
R14
R7
R8
R9
IC3
B1
C3
R17 IC1
L1 C8
X1
D2
T
TR1 S1
R6
R5
C2
TXD
C7 C1
R1
K3 R4 R3
~ ~ C10
1-670089 IC2 R2
H3
H4
D1 T1
ROTKELE )C(
(C) ELEKTOR
980076-1
Parts list
Resistors:
R1, R4, R6, R15 = 10 k
R2, R3 = 100 k
R5 = 1 k
R7R14 = 390
R16 = 1 M
R17 = 56 k, 1 W, 400 V
Capacitors:
C1, C22 = 22 pF, ceramic
C3, C6, C9, C10 = 0.1 F, ceramic
C4 = 10 F. 10 V, radial
C5 = 0.01 F, ceramic
C7 = 0.47 F, 250 V a.c., Class X2
C8 = 470 F, 25 V, radial
Inductors:
L1 = suppressor coil, 10 A,
Type T60405M6108X2 (Siemens)
Semiconductors:
B1 = rectangular rectifier bridge
Type B80C1500
D1 = LED, red, high efficiency
D2 = 1N4001
T1, T2 = BC547B
Integrated circuits:
IC1 = AT90S2313 (Order
Figure 3. The completed proto-
no. 986524-1 see Readers Ser-
Vcc, and to six-pole header K2. The type of a single section.
vices towards the end of this issue)
IC2 = 7805 interface enables the user to program
IC3 = CNY65 the controller.
IC4IC11 = S202S11 (Sharp) Some pins of the controller are
linked to DIP switches, which enable a larger length than usual to ensure
Miscellaneous: the user to select a number of options. good electrical contact. Note that at
X1 = crystal, 8 MHz This will be reverted to later. maximum load, a current of up to 10 A
S1 = 4-section DIP switch The serial interface has been kept flows through the coil: a good reason
K1 = 9-pole female sub-D connector
K2 = 6-pole SIL header
simple. The controller uses only the for ensuring good contacts.
K3K11 = two-way terminal block, TxD signal of the computer. The RS232 The finished prototype board is
pitch 7.5 mm voltage level is converted to TTL level shown in Figure 3.
Tr1 = mains transformer, secondary with the aid of a transistor and some Readers who have obtained the
9 V/1.5 A resistors and then inverted. No other ready programmed controller via the
F1F8 = fuse holder with 1.25 slow RS232 lines need to be linked in the Readers Services (towards the end of
fuse connector, provided only the pro- this issue) can start work immediately.
Enclosure Bopla EG2050L (available
gramme supplied is used. If a self-writ- Insert the controller into its socket
from Phoenix Tel. 01296 398 355)
PCB 9800761* ten program is used, some other lines and assemble the board in the specified
Windows 95 software, incl. source may well need to be linked. plastic case.
code, EPS 986025* The clock generator, C1-C2-X1 pro- Since several tracks carry the full
Source code for programming Atmel vides a clock of 8 MHz. mains voltage, extreme care is required
controller: EPS 9860331* The circuit contains all the electron- in the assembly. Always unplug the
Programmed controller EPS ics for controlling up to eight loads. unit from the mains before doing any
9865241* The available Windows 95 software is work or checking something after
* (see Readers Services towards the
arranged so that four of these circuits assembly.
end of this issue) can be driven simultaneously. Finally, make the serial link with the
computer. After the Windows software
CONSTRUCTION (only 95 or 98) has been installed, the
The circuit is best built on the printed- dimmer is ready for use. The intuitive
circuit board shown in Figure 2. It will user interface (see the screendump in
the measurements. be seen that in spite of the versatility of Figure 4) readily points the user into
The synchronizing pulse is buf- the unit, the board has been kept com- the right direction.
fered by transistor T2 and applied to pact. Readers who wish to extend the
input PD3 (INT1). Most of the work is straightforward program can do so right away because
To ensure correct operation, the as long as the specified components the program is supplied with the
dimmer should be connected to a fre- are used. This is particularly true of the source code (in Delphi format).
quency-stable mains supply only. suppressor circuit, L1-C7. The capacitor
must be a Class X2 component. HANDYMAN
DIY PROGRAMMING The inductor consists of two parallel PROGRAMMER
As the controller is in principle InCir- wound windings that are twisted at As mentioned earlier, it is possible to
cuit Programmable, the printed-circuit the ends. Untwist them about 1 cm, programme the controller to ones own
board incorporates a special ICP inter- remove the enamel from the ends, wishes and requirements. This is pos-
face. This interface is linked to pins push them through the relevant holes sible because the diskette containing
RESET, SCK, GND, MIS0, MOS1, and in the board and bend them. It is the Windows software also contains
important that they are soldered over the source code and the ROM file of
protocol
The protocol used in the dimmer makes control straight- byte 4
forward. The serial format is: 0 T6 T5 T4 T3 T2 T1 T0
barometer/altimeter
Part 2
programming, calibration,
software and operation
When construction of
the barometer/altime-
ter, which is based
on a precision air-
pressure sensor with
integral signal
processor from
Motorola, is com-
pleted, the unit has
to be programmed
and calibrated in
accordance with the
correct reference.
Evaluation, storing,
display and inter-
change of data are
effected by a micro-
controller system.
1 xxxx.x hPa xxxx meter Enter for menu Enter for menu
ENTER ENTER
ESC ESC
Datalogger Preferences
menu menu
Sample time Clear datalogger Pres. logger on/off Pressure logger Pressure logger
Enter to set Enter to clear Enter to switch Enter to view Enter to send
ENTER ENTER
ESC ENTER: clear datalogger ENTER: swich datalogger ESC ENTER: transmit datalogger info
on/off to PC
+: select pressure/altitude +: select pressure/altitude
Enter -: select pressure/altitude View logger -: select pressure/altitude
Sample time
+: select pressure/altitude
-: select pressure/altitude
ENTER SAMPLE TIME FUNCTION
VIEW LOGGER
day: d hh:mm:ss
xxxx.x hPa.mbar
+: next time
-: previous time
FUNCTION
Ref. altitude Ref. altitude Ref. altitude Ref. altitude Ref. altitude
xxxxx meter xxxxx meter xxxxx meter xxxxx meter xxxxx meter
ENTER ENTER ENTER: set sea-level pressure ENTER: switch send direct
ESC ESC to 1013.25 hPa on/off
P at sea level
Enter to set
ENTER
ESC
Enter new
value
FUNCTION
FUNCTION FUNCTION
FUNCTION FUNCTION
980097 - 2 - 11
: select absolute/relative altitude
2. Select input file normal.hex or be obtained from the nearest airport or higher menu without this being
vsl.hex at option 5. weather station. This value must be stored in the eeprom.
input into calibration 1 in the prefer-
3. Enter the wanted serial interface ences menu. This value is then com- These keys take the operator through
(com-port) at option 5. pared with the actually measured all the menus as shown in Figure 1.
value and a new offset value com- The Main Menu consists of four
4. Link the barometer to the computer puted. The new offset value is stored sub-menus: barometer, altimeter, data
via an RS232 cable (1:1). Do not yet in the eeprom. logger, and preferences.
switch on the unit. In the two-point method, not only The data logger sub-menu itself
the offset of the sensor is compen- consists of a number of sub-sub-menus
5. Set pin jumper JP2 to position I sated, but also its transconductance. as shown.
(ISP). The procedure is as with method 1, When Input Sample Time has been
but in this case a second value is selected, the sample interval may be
6. Switch on the barometer unit. entered in calibration 2 in the menu. set between 10 seconds and 8 hours
This value must differ by at least 5 hPa with a resolution of one second.
7. Insert the pin jumper into JP1. (5 millibar) from the first one. This The measurement results stored in
margin is needed by the software to the data logger can be viewed by
8. Select option 1 of SISP (write code reduce the effects of rounding-off selecting View Logger.
memory) and wait until the pro- errors and any interference. The The elaborate Preferences menu
gramming has been completed greater the difference between the two contains the functions Ref. Altitude
values, the more accurate the (normal.hex) and P at Sea Level
9. In case of an error message, remove transconductance is computed. (vsl.hex). In both, as during calibration,
the pin jumper from JP1, switch off The second value is obtained after enter the value for altitude or atmos-
the barometer, and repeat the fore- the atmospheric pressure has risen or pheric pressure into Input New Value
going procedure from point 6. fallen sufficiently with respect to the digit by digit.
first value. Check this second value Set Altimode determines whether
10. Insert the pin jumper of JP2 into with the nearest weather station and the relative or absolute altitude is dis-
position R (RS232) and remove the input it at CALIBRATION 2. played. The absolute altitude is the
pin jumper from JP1. height above sea level, and the relative
OPERATION altitude is the height above a set refer-
Before commencing any measure- ence. In both cases, the actual atmos-
CALIBRATION ments, leave the barometer/alitmeter pheric pressure at sea level must be
Without correct calibration, the barom- for about two minutes to enable it to entered. The reference atmospheric
eter/altimeter would not have the req- warm up. The unit is operated by five pressure at sea level, that is,
uisite accuracy. Only correct calibration touch keys on the front panel: 1013.25 millibar (1013.25 hPa), is reset
ensures that the program uses the stan- with Rest. sea-|v|P. Default cal pro-
dard transconductance and offset val- MODE (S2), which enables any of the vides a similar function: it erases any
ues (0.01509 and 0.1518 respectively) of functions on each of the menus to calibration entries and replaces them
the sensor specified by the manufac- be accessed and utilized. with standard values.
turers to compute the air pressure. Not much more can be said about
Apart from this, there is no other com- (UP) (S3) with which the value of the display than that the atmospheric
pensation of the tolerances of the volt- the selected digits is increased. pressure is shown in hPa (hecto-Pascal,
age divider. There are two which is identical to millibars) and the
methods of calibrating the unit: the sin- (DOWN) (S4) with which the value altitude in meters. Two arrows indicate
gle-point and the two-point. In single- of the selected digits is decreased. whether the measurement is moving
point calibration only the offset is cor- up or down. When the data logger is
rected, which shifts the pressure vs ENTER (S5) with which a selection is active, the display shows an asterisk.
output voltage characteristic upwards. confirmed or altered (stored in the
Single-point calibration requires a eeprom). DATA TO COMPUTER
reliable, actual value of the atmos- Communication between the barome-
pheric pressure, which can normally ESCAPE (S6) to return to the next ter/altimeter and the computer is in
8-bit format, 9600 baud, no parity bit,
and no handshake. Basically, any PC
using DOS or Windows is suitable.
There are two ways of transferring
digital terrestrial
television (DTT)
An inevitable development
The future of television is largely in digital ter- Based on a report by Bill Higgins
restrial broadcasting. Britain is forging the way
in this new field, but other countries in Europe INTRODUCTION
Digital terrestrial television provides
and North America, as well as Japan, are substantial benefits to viewers: more
quality channels, better sound, better
bound to follow soon. Most of the European pictures, and new services. In the near
development was carried out under the DVB future, many of these services will be
interactive, enabling the viewer to
(Digital Video Broadcasting) Project launched shop, bank, send e-mail messages, and
in 1993 and approved by almost 200 signato- others. Many countries in Europe will
undoubtedly discontinue the analogue
ries from 25 countries in 1995. The launching transmissions and switch to digital
broadcasts over the next 1015 years
group consisted of representatives from indus- time (in Britain, suggestions have
try, public and private broadcasters,tele-com- already been made for this to happen
as early as 2008).
municationss companies, research institutes Viewers will need a new digital tele-
vision receiver or a digital terrestrial
and the European Commission. Because of set-top box to receive the new broad-
this wide-ranging participation, the DVB Project casts. Viewers who wish to make use of
the interactive services need a tele-
has taken over the leading role in the introduc- phone socket near their TV set. There
tion of digital television in Europe. will be no ghosting or snow with
digital terrestrial TV. Viewers with
MUX Program
stream
Transport
data
supplementary Transport
data MUX
PES stream
Packetizer
MPEG systems
980102 - 19
pre-proc.
DVB-T If RF
(LCA)
IFFT clock 90
Gross data
rate
lm
Q D
(lm) f RF - f IF
A
Al - Tp
(1/2 B) REF.
synthesizer
f ZF
1 N 980102 - 20
1 2 4 5 7 8 10 11
P P P P
1 2 3 4 5 6 7 8 9 10 11 1 2 3 4 5 6 7 8 9 10 11 1 2 3
6
Channel
Transport Coding
Audio Subsystem
Service
Audio Audio Multiplex
Source coding
and Compressing
Modulation
Ancillary Data
Control Data
Audio In Audio
A/D Encoder
980102 - 17
Figure 8. High-level
encoding equipment for
that digital terrestrial the proposed American same path without B-frames are generated by interpo-
broadcasting service standard of DTT. (Cour- interaction. This can be lation from P-frames and the reference
technology need not tesy ITU) achieved by separating frame and are therefore called bi-direc-
remain confined to the the signals in time or tional. As shown in Figure 5, they slot
transmission of televi- frequency. in between the reference and the
sion signals and associated data, but Frequency division multiplexing P-frames, at 1, 2, 4, 5, 7, 8, 10, and 11,
that video, audio and data signals can (FDM) is an analogue technique which frames from the reference.
be freely assembled and transmitted is still used on satellite and microwave
transparently for multi-layer services. links, although many of these now use Intraframe
Programme distribution can be digital techniques. In the interframe system, the reference
effected via standard copper lines, opti- Time division multiplexing (TDM) frame occurs every 12 frames. This is
cal fibre cables or microwave links. is a method of interleaving digital sig- effectively the intraframe signal or
Digital terrestrial transmitter engi- nals from a number of channels on to I-frame. A new I-frame occurs after
neering requires novel transmitter one circuit. For instance, six 600 bit/s every eleven interframe difference sig-
measuring techniques. This involves channels may be multiplexed on to one nals throughout the transmission (see
parameters such as BER (Bit Error 3600 bit/s circuit. Both ends of the cir- Figure 6).
Rate), pattern analysis, spectrum cuit must be synchronized to ensure
analysis, OFDM power measurement that the data on one channel input AMERICAN STANDARD
and the measurement of the operating reaches the correct channel output at In the USA, the Advisory Committee
characteristics of multi-carrier power the far end. on Advanced Television Service
amplifiers. (ACATS), which was set up by the FCC
Operating DVB-T transmitters in DATA COMPRESSION (Federal Communications Commis-
single-frequency mode presupposes In general, data compression is a sion), and the Advanced Television Test
frequency- and bit-synchronous oper- method to reduce the amount of trans- Center (ATTC), a collaboration
ation by the transmitters. This requires mitted data by applying an algorithm between broadcast service operators
new approaches to frequency and time to the basic data at the point of trans- and the television receiver industry,
synchronization providing operational mission. A decompression algorithm have devised a different standard for
reliability on a regional and national expands the data back at the receiver digital television.
level. into its original format. There are two The specification is basically the
Terrestrial transmission over radio major methods in use: Interframe and Digital Spectrum Compatible HDTV
paths with single transmitters and sin- intraframe. (DSC-HDTV) proposal by Zenith and
gle-frequency transmitters requires AT&T. Basically, it splits the digital TV
novel coverage measuring techniques Interframe system into:
in which, in addition to the traditional The interframe method is based on a source coding and compression
field-strength measurement, parame- difference signal generated by the the service multiplex and transport
ters such as channel impulse response, frames before and after the present RF transmission.
raw bit error rate, intersymbol interfer- frame. These difference signals are A block diagram of the system for dig-
ence, and selective C/I (Carrier over termed P(redicted) frames and B(i- ital terrestrial television is shown in
Interferer) are important factors. directional) frames. P-frames are pre- Figure 7. The coding is based on the
dicted from the preceding reference MPEG-2 standard, but uses 27 MHz
M U LT I P L E X I N G frame and are normally 3, 6 or 9 frames sampling and special digital extensions
Multiplexing is the process of trans- from the reference as shown in Fig- to allow for any new formats in the
mitting two or more signals over the ure 4. future, picture extensions, and indica-
Although digital satellite signals can be received all over in digital TV that allows for the transmission of data about
the UK, digital terrestrial signals will, at least for the time programmes that are being broadcast. One of the features
being, not cover the whole country. Where possible, the of this programme is that it allows viewers to order TV
new digital transmission will be on frequencies close to channels for special events or films on the appropriate
those used for the current analogue TV broadcasts, which pay-TV channel. EPG also has the possibility of providing
means that viewers can continue to use their existing interactivity with the home customer in offering a whole
antennas. range of consumer services, from home banking to home
The BBC has already started transmitting DTT signals: shopping.
from 23 September last, viewers with suitable equipment
have been able to watch the first regular digital terrestrial
channel in the world, together with wide-screen versions
of BBC1 and BBC2. The inset table correlates some UHF
channels with analogue and digital TV programmes (based Useful telephone numbers:
on Crystal Palace transmitter).
BBC: 0990 118 833 for a digital information pack; 0870
Channel number (UHF) DTT programme Analogue programme 010 0123 for other queries; web site:
www.bbc.co.uk/digital/
22 DMx2
23 ITV (London)
ONdigital: 0171 819 8000; web site www.ondigital.co.uk
25 DMx1
26 BBC1 (London)
BSkyB: 0870 242 4200
28 DMx4
29 DMx6
The photograph (A) shows the Mediamaster 9850T from
30 Channel 4 (London)
Nokia which was introduced at the Cable & Satellite Show
32 DMx3
in London earlier this year. It is fully compliant with the
33 BBC2 (London)
ONdigital standard, ready for pay-per-view and other inter-
34 DMx5
active services, and has an integrated modem. It comes
37 Channel 5 (London)
with a remote controller for ease of operation.
DMx = Digital Multiplex
tions of use of the system in the appro- in their RF modulation technique. The
priate signal. American system uses the single-car- FCC: www.fcc.gov
A high-level view of the encoding rier, 8-VSB (Vestigial Side Band) modu-
equipment is shown in Figure 8. In this lation scheme, whereas DVB-T uses General Instruments: www.gi.com
drawing, fTP is is the transmission fre- multiple-carrier COFDM (Coded
quency of the transport stream, while OFDM). Even in the USA, there is con- Grundig: www.grundig.com
fsym is the frequency of the vestigial siderable interest in CODFM because
sideband (VSB). These frequencies, it provides the most rugged and flexi- ITC: www.itc.org.uk
which must be locked, are related by: ble delivery mechanism for informa-
tion available today. ITU, Geneva, Switzerland
fTP = (188/208)(312/313)fsym. [980102] www.itu.int/newsroom
Test Card M
The Test Card for use in digital video
broadcasts (DVB), called Test Card M
as illustrated, is based on existing test
cards, showing (in the UK) the famil-
iar girl, blackboard and balloon,
together with graticules, circles, and
so on. Additional test areas for digital
broadcasts are shown in the diagram
for location.
1) Frame identifier, which shows
which frame is present, I, B or P,
and gives it a number, for instance,
2nd B or 3rd P. This is considered
the most useful parameter for fault
diagnosis.
2) Rolling colour cube. Since differ-
ence signals are generated by the
digital equipment, it is useful to
have some movement in the test
card and this is provided by the cube moving across Test card M has been sponsored by the Department of
the screen from left to right, weaving in front and Trade and Industry (DTI) under the Test Bed Pro-
behind the letters BBC, M test, VID001g, and so on, gramme. Leaders of the project are Snell & Wilcox, while
always on the same line of the card. other members include the BBC, ITV, Channel 4, and
3) Moving clock hand, which moves on every second; ITC. It is financed by and geared to the European market
useful for time/movement measurement analysis.
4) Colour phase rotation area. This is to show colour dif- The structure of the test card enables rapid diagnosis of
ference signal since the colour spectrum is changing faults, system stress, and so on, without the need of spe-
continuously. cialized (expensive) equipment. A quick look at the test
5) Moving colour zone plate to determine any image card should in many cases be sufficient to ascertain the
impairment on colour caused by cascading of multi- nature of a fault.
plex stages.
6) Moving black&white zone plate to determine any The test card does not provide test sequences for the
impairment on B&W pixels owing to cascading multi- American system. It is expected that the American orga-
plex stages. nizations will produce their own in due course.
BUZ10
CTR14 7
3 D
5
IC3 4
4
5 COMP
11 !G 6 10
RCX 6 0
10 14 7
RX + 7
9 CT 13 2 P
CX 8 IC4
15 15
9 3
12 1 4 13
G S D
CT=0 11 P>Q P>Q T1
IC1f La1
2 6 3 D
12 P=Q P=Q
4060 3 5 12 14 15 G
13 P<Q P<Q 1
11
0
9
S BUZ10
4585
1 Q
14 R2 C3
3
120k
270p
UB UB IC1c IC1a
R1 D2 L1 R3
3 11 7 6 3 2
2 0 10 0 39k 1 1 10
EN 4 EN 12 10mH
1 IC2a 1 9 IC2b 1 2x
C 5 C 13
7 2 15 2 1N4148 IC1b
R 6 R 14 D1
3 3 5 4 BT1
1
C1
3...6V
22
63V
UB IC1 = 4049
R5
IC2 = 4520
47k
UB
IC1d
R4
9 10
120k 1
C4 C2 1 C5 16 C6 16 C7 16 C8
S1 IC1 IC2 IC3 IC4
IC1e
4n7 22 8 100n 8 100n 8 100n 8 100n
12 11 63V
1
984075 - 11
S1
COMPONENTS LIST L1 = 10mH choke
R5
R1 R2
C7 T1
H2
H1
C8 D2 R4 Resistors: Semiconductors:
D1 C3 R1 = 39k D1,D2 = 1N4148
+Bat-
C6 R2,R4 = 120k T1 = BUZ10 (Siemens)
R3 = 10 IC1 = 4049
IC3
IC1
C4 R5 = 47k IC2 = 4520
IC4
La1
IC3 = 4060
R3
IC2
L1
Capacitors: IC4 = 4585
C5 C1,C2 = 2F2 63V radial
C2 C3 = 270pF ceramic Miscellaneous:
H3
H4
battery-charging indicator
for mains adaptor
Design: J. Gonzalez the LED lights when the base-
D1
Although you may well be the emitter potential of the transis-
proud owner of the very latest tor exceeds about 0.2 V. Using a
NiCd battery charger, you may R2 resistor of 1 as suggested this
still come across the odd 'incom- happens at a current of about
470
playback amplifier
for cassette deck
Design: T. Giesberts
For some time now, there have C2 C4
been a number of tape cassette
decks available at low prices 56n 68p
from mail order businesses and R3
*
1k5
R4
56k
R7
100k
electronics retailers. Such decks
do not contain any electronics, C1
5
of course. It is not easy to build a L 7
C3
3
220n IC1b C5 L
recording amplifier and the 6 1
220n IC1a
fairly complex magnetic biasing 2
1
circuits, but a playback ampli- MKT
1k2
100k
1k
100k
The stereo circuits in the
diagram, in conjunction with a
suitable deck, form a good-qual-
ity cassette player. The distor- C2' C4'
tion and frequency range (up to
23 kHz) are up to good stan- 56n 68p
symmetrical 12 V supply
100k
1k2
100k
1k
100k
Capacitor C4 limits the upper the amplifier to oscillate. that can provide a current of up the deck; the electronic circuits
frequency range to avoid r.f. The amplifier needs a sym- to 0.5 A. The greater part of this draw only 15 mA.
interference and any tendency of
005 metrical 12 V power supply current is drawn by the motor of [984113]
improved power-down
for the 8051
Design: G. Kleine address/data bus
Members of the 8051 family of
microcontrollers (MCS51) are
well-known and widely used. 40 1 28
74HCT573
The controllers have a power- VPP
down mode in which the pro- 16 WR
P0.0
39 AD0 AD0 2
1D
19 A0 A0 10
A0
38 AD1 AD1 3 18 A1 A1 9
gram processing is suspended 17
RD
P0.1 A1
37 AD2 AD2 4 17 A2 A2 8
by the clock oscillator and 9
P0.2
36 AD3 AD3 5 16 A3 A3 7
A2
D0
11 AD0
needs to be returned to 5 V. 4
P1.2 P2.1
23 A10 A13 26
A12
P1.3 P2.2 A13
In simple applications of the 5 24 A11 A14 27
P1.4 P2.3 A14
8051, the EPROM containing 6
P1.5 P2.4
25 A12
OE CS
the program to be executed is 7
P1.6 P2.5
26 A13
22 14 20
enabled by making PSEN (pro- 8
P1.7 80C31 P2.6
27 A14
general-purpose alarm
9V
R1 R4 R6 T6 T7
14
30M
1M
56k
IC1
R18 R19
7 C4
3M9
2M7
T2 2x 68p
IC1d
IC1a BC557 13 IC1c
1 D2 11 9
3 12 & 10
2 & 8 &
R17
3M9
R5 R9 R12
1N4148 BZ1
*
330k
1M
C1
R13
D1
220n 100k
T1
1N T4 T5
4148 R15
R3 R7 10M
2x
BC
220k
3M9
T3
IC1b 4
R2 R8 P1 R11 R14 R16
C2 C3 &
4M7
3M9
1M
1M
BC547
1n
- * 4n7 5 6
NTC
100k
984078 - 11
* zie tekst * see text * siehe Text * voir texte
Design: K. Syttkus Transistor T1 then comes on and Resistors R13 and R15 pro- alarm. For the same reason, C1
The alarm may be used for a causes T2 and T3 to conduct vide through a kind of hystere- should be a type with very low
variety of applications, such as also. Thereupon, C1 is charged sis a Schmitt trigger input for leakage current.
frost monitor, room temperature via current source T1-T2-D1, the differential amplifier, which If operation of the alarm is
monitor, and so on. until the current from the source results in unambiguous and fast required when the resistance of
In the quiescent state, the becomes smaller than that flow- measurement results. R11 is higher than that of the
circuit draws a current of only a ing through R3 and T3 (about Capacitor C2 compensates fixed resistor, reverse the connec-
few microamperes, so that, in 3 A). This results in T1 switch- for the capacitive effect of long tions of the elements of the bridge
theory at least, a 9 V dry battery ing off, so that, owing to the cou- cables between sensor and cir- and thus effectively the inverting
(PP3, 6AM6, MN1604, 6LR61) pling with C1, the entire circuit cuit and so prevents false and non-inverting inputs of the
should last for up to ten years. is disabled. alarms. differential amplifier.
Such a tiny current is not possi- Capacitor C1 is (almost) fully If the sensor (R11) is built in An NTC thermistor such as
ble when ICs are used, and the charged, so that the anode the same enclosure as the R11 has a resistance at 18 C
circuit is therefore a discrete potential of D1 drops well below remainder of the circuit (as, for that is about ten times as high as
design. 0 V. Only when C1 is charged instance, in a room temperature that at room temperature. It is,
Every four seconds a mea- again can a new cycle begin. monitor), C2 and R13 may be therefore, advisable, if not a
suring bridge, which actuates a It is obvious that the larger omitted. In that case,C3 will must, when precise operation is
Schmitt trigger, is switched on part of the current is used for absorb any interference signals required, to consult the data
for 150 ms by a clock generator. charging C1. and so prevent false alarms. sheet of the device or take a
In that period of 150 ms, the Gate IC1a functions as To prevent any residual number of test readings.
resistance of an NTC thermistor, impedance inverter and feed- charge in C3 causing a false For the present circuit, the
R11, is compared with that of a back stage, and regularly alarm when the bridge is in resistance at 18 C must be
fixed resistor. If the former is switches on measurement equilibrium, the capacitor is dis- 300400 k. The value of R12
less than the latter, the alarm is bridge R9R12-C2-P1 briefly. charged rapidly via D2 when should be the same. Preset P1
set off. The bridge is terminated in a this happens. provides fine adjustment of the
When the circuit is switched differential amplifier, which, in Gates IC1c and IC1d form an response threshold.
on, capacitor C1 is not charged spite of the tiny current (and oscillator to drive the buzzer (an Note that although the proto-
and transistors T1T3 are off. the consequent small a.c. type). type uses an NTC thermistor, a
After switch-on, C1 is charged transconductance of the tran- Owing to the very high different kind of sensor may also
gradually via R1, R7, and R8, sistors) provides a large ampli- impedance of the clock, an be used, provided its electrical
until the base voltage of T1 fication and, therefore, a high epoxy resin (not pertinax) board specification is known and suits
exceeds the threshold bias. sensitivity. must be used for building the the present circuit. [984078]
562
511
100k
C1
R6 on measurement data, amounts
150
10n
to 0.52 nV/Hz. If more gain is
3
1
7 needed, a noise figure of about
8
6
0.4 nV/Hz may be achieved at
IC1
2 a lower value of R9. The obvi-
R4 R5 4 ous disadvantage of adding R11
is a higher internal gain, caus-
1k50
1k50
OP27
P1 ing a smaller bandwidth and a
lower drive margin. Fortunately,
R7 R8
50 C6 C7 these factors are of little conse-
39
39
H1
H2
T4 D1 R9
C3
perfect symmetry, in other amplifier.
R11
R12
R10
R3
C4
words, junction R10-R11-R12 The preamplifier is powered by
IC1
T3 C5 C7 should be at 8.62 mV with a symmetrical, regulated 15-V
K1 K2 respect to ground. supply, and draws about 16 mA
C6 Those of you who like to exper- on each rail. Finally, here are a
T2
ROTKELE )C(
R5
R4
R6
1-680489
C2
OUT
R1
Configuration: 3 x SSM2220/MAT03
R13
T1
984086-1 C1 P1 signal: 0.5 mV/25 input short-circuited
R8 S/N (BW = 22 kHz) 71.2 dB 74 dB
H4
H3
R7
74 dBA 76.2 dBA
(C) ELEKTOR
iment may want to try the effects few key figures measured on our
of reducing the number of input prototypes:
transistors from three to just one. The preamplifier is best built on
You may want to do this, for the printed circuit board whose
example, to reduce the input artwork is shown here. Con-
bias current. Resistor R3 then struction is uncritical, but do not
has to be changed into 249 . forget the wire links under tran-
Do remember, however, that the sistor T3 and next to capacitor
input noise level then rises by C2. The PCB is unfortunately
2.5 dB! not available ready-made from
The output has a large, solid the Publishers.
voltage to nil (measure at IC1 example, 0.55 mV across 10 F MKT (metal theraphte- (984086-1, Gb)
pin 6). The second option is to 100 . Assuming that the offset late, ask your local Siemens dis-
measure the input offset, for caused by T1, T2 and T3 is neg- tributor) capacitor to prevent a
010
Philbrick oscillator
5V
U in
C C C
T1
R1 R2 R3
U out
R R R 1M 1M 1M
C C C
BC517
U out
P1
C1
*
1 - 2VPP
100k R4
984121 - 11
1k
see text
*
984121 - 13
UB
presence filter
From an idea by R. Sontheimer 1
To make a certain musical 2
instrument in a group stand out, 1
R3
5
C1 R2 IC1a 2k2 R7 C4
a so-called presence filter is 3 7
470 IC1b 470
normally used. Unfortunately, 330n
6
1
the types usually found in D1 P1
amplifiers and mixers can only R1 12V
1k
lin. R4
100k
is unaltered. C5 10
C3
R5
The input signal (see Fig- 4 100n
390
polarity reverser
Design K. Lorenz the correct polarity. It is, of always possible. This may be the peak current exceeds the
There are systems in which it is course, possible to use a bridge because large voltage drops current rating of a diode. Fortu-
imperative that the supply volt- rectifier for this, but if large cur- across diodes result in appre- nately, a good, inexpensive
age of, say, a motor, always has rents are involved, this is not ciable heat dissipation, or that mechanical rectifier may be
15k
K1
K3
F2
984026 - 11
built according to the noble art around or looking for smoke sig- H2
OUT1 H3
There may be one, hefty, trans- its own (properly rated) fuse.
former inside the case, or two, Because the circuit does not
each powering a monoblock, or include an earth line, it may not
K3
F2
even three, where a smaller one be used as an external unit, that
H4
H1 OUT2
100k
Parts list
Resistors: 12V
R1 = 10 k 12V
R2 = 1 k +12V D8 9 / 35mA
R4 = 330 k 1N4001
470
D9 14
C4 C5
C3
R5 = 33 k IC1
R4
63V
Capacitors:
IC1d IC1c T1
C1, C2, C4 = 0.1 F I D1 IC1a 12 8 R6
1 11 10
C3 = 10 F, 63 V, radial 3 13 & 9 & 4k7
2 &
C5 = 100 F, 25 V 1N4001
R1 D2
C6 = 22 F, 16 V, radial C1
BC547B
12V
10k
Semiconductors: CS
100n 15V
D1, D3, D7, D8 = 1N4001
6 5 RE1
D2, D4, D9 = zener diode, D7
15 V, 400 mW IC1b
D5 = 1N4148 &
D6 = LED 4
1N4001 C
T1, T2 = BC547B D3 R3 D5 R9
T2
B
470k 4k7
Integrated circuits:
IC1 = 4093 1N4001 1N4148
R2 D4 R8
C6
BC547B
C2
1k
4k7
Miscellaneous:
PC1PC6 = PCB terminal 22
100n 15V 16V 984003 - 11
(pin)
Re1 = 12 V car-type relay,
1 change-over contact
D3 C3
D6
H1
T2 T1
R2
H2
C2 R7
R3
R4
R5
B
R6 D7
D4 C6
I D2
984003-1 C
R1 IC1
1-300489 984003-1
D1 ROTKELE )C( (C) ELEKTOR
0
C5
C1 D5
+12V D9 R9
R8
D8
H3
C5
H4
C4 RE1
the brake pedal. After the igni- When the ignition is When this time has elapsed, the D6 to flash when the starter is
tion has been switched on, the switched on, the circuit is pow- output of IC1a goes low, where- immobilized. This has the dis-
brake pedal has to be pressed ered by the voltage at terminal upon voltage is applied to the advantage, of course, that it dis-
for at least five seconds before PC2. Until the brake pedal is base of T2 via IC1b. When T2 is closes the protection circuit.
voltage is applied to the coil. pressed, the potential at termi- on, the relay is energized , Finding the right points to
Since the thief does not know nal PC1 remains low, so that the whereupon its contact changes which to connect the circuit
this, he/she will try everything to relay remains unenergized. over and voltage is applied to should not be a problem in most
get the car started. Since it is When the brake pedal is the coil. After the pressure on cars. The ignition voltage is nor-
only the coil to which voltage is pressed, capacitor C6 is charged the brake pedal is released, mally available at the radio/cas-
not applied, all other electrical via resistor R3. The time, t, it diode D5 ensures that the volt- sette terminals, while the poten-
functions will work normally, but takes for the capacitor to age remains applied. tial coupled to the brake pedal
it is just impossible to get the become fully charged is deter- Gates IC1c and IC1d form is usually available at the brake
car started. mined by network R8C6. an oscillator, which causes diode lights. [984003]
018
330
470
56
input impedance C3 C4
5V
booster 10
10V
100n
IC1
Design: H. Bonekamp op amp IC1. If no other actions 2
1
7
The input impedance of were taken, the input impedance 5
6
C1
a.c.-coupled op amp circuits would be about 20 M. How- 3
depends almost entirely on the ever, part of the input signal is 100p 4
8
resistance that sets the d.c. fed back in phase, so that the
10M
R1
R2
15k
5k
control input. At the highest vol-
SVR
ume setting, the gain is 20 dB. 3 R
8
Using the MODE pin the device
15k
C2
can be switched to one of three R
22k
triggers the thyristor, the capac- 22
each discharge of the capacitor
itor is discharged via the sec- R1 25V at its primary induces not only a
ondary winding. The energy 10M primary, but also a secondary
THR1 D1
stored in the capacitor is, how- A
voltage, each triggering of the
IC1a IC1b
ever, not lost, but is stored in the C1 1 C4 5 thyristor causes two closely
3 4 G
magnetic field produced by the 2 & 6 & K 1N4148 spaced voltage pulses of oppo-
100 BRX46
transformer when current flows 25V
100n site polarity. These induced volt-
through it. 10 IC1c 11 IC1d ages at the secondary, that is,
When the capacitor is dis- C3
& & the 230 V, winding, of the trans-
charged, the current ceases, 470n former are, owing to the higher
whereupon the magnetic field 8 9 12 13 turns ratio, much higher than
collapses. This induces a those at the primary side and
IC1 = 4093 984099 - 11
counter e.m.f. in the transformer may reach several hundred
winding which opposes the volt- volts. However, since the energy
age earlier applied to the trans- stored in capacitor C2 is rela-
former. This means that the tively small (the current drain is
direction of the current remains the transformer has returned the ing of the transformer. As soon as only about 2 mA), the output
the same. However, capacitor C2 stored energy to the capacitor, the capacitor begins to be dis- voltage cannot harm man or ani-
is now charged in the opposite the direction of the current charged, there is no current mal. It is sufficient, however, to
sense, so that the potential reverses, and the negatively through the thyristor, which cause a clearly discernible mus-
across it is negative. charged capacitor is discharged therefore switches off. When C2 cle convulsion.
When the magnetic field of via D1 and the secondary wind- is discharged further, diode D1 is [984099]
022
10k
describe a way of connecting a
100n 5V
12-bit analogue-to-digital con-
verter (ADC) Type MAX187 to R3
CH1
the small computer board origi- 1k
R4 L1
nally described in Elektor Elec- C8
10k
tronics magazine. 100H
For the present article the 100n
10k
100n 10 100n
63V 1N4148
puter board is made via a length 100n 5V
of 10-way flatcable. Although 20
K6
K4 would appear to be the right R7
CH3
10 9
CH2 3 16 SSTRB 4 3
operations are not possible on CH2 IC1 SSTRB
100n CH3 4 2 1
port P2. A disadvantage of using CH4 5
CH3
MAX186
K1 is, however, that the 1-way R9 CH5 6
CH4
18 CSAD
CH5 CS
cable has to be connected to a K3 1k
CH4
CH6 7 19 SCLK
R10 CH6 SCLK
20-way pinheader. Note that the C11 CH7 8
CH7
10k
11
converter may, in principle, be VREF
63V
protection resistors (R1, R3, 100n
etc.) as well as pull-up resistors
(R2, R4 etc.). Consequently, R13 5V
CH6
inputs which are left 'open' are K4 1k
R14 R17
still held at a defined level, C13
10k
100
K5
while additional ESD (electro-
static discharge) protection is 100n
C15 C16
R15 100n 10
CH7 63V
1k
COMPONENTS LIST C14
R16
10k
Resistors:
100n
R1, R3, R5, R7, R9, R11, R13, 984093 - 11
R15 = 1k
R2, R4, R6, R8, R10, R12, R14,
R16 = 10k
R17 = 100 R17
H1
H2
K5 C15 K6
Capacitors:
C1, C3, C6C15 = 0.1 F C7
C2, C16 = 10 F, 63 V, radial R2 C16
L1
C4 = 0.01 F R1
R3
C5 = 4 F, 63 V, radial R4
C8 C3
K1
Inductor: C9
L1 = 100 H R6
R5
C1
R7
Semiconductors: R8
D1 = 1N4148 K2 C10 C2
K3 C11
R10
D1
Integrated circuits: R9
IC1 = MAX186DCPP or R11 C4
MAX186BEPP R12
C12
C13 IC1 C6
Miscellaneous: R14
R13 984093-1
K1K5 = 2-way PCB terminal 1-390489
C5
984093-1
K4 R15
block R16 ROTKELE )C( (C) ELEKTOR
K6 = 10-way box header
H3
H4
C14
ten-band equalizer
Design: P. Staugaard the equalizer are set with S1 and for the lowest frequency band is The Q(uality) factor of the
The equalizer presented in this S3. The audio frequency spec- an active one to avoid a very filters can, in principle, be
article is suitable for use with trum of 31 Hz to 16 kHz is large value of inductance. It is raised slightly by increasing the
hi-fi installations, public- divided into ten bands. based in a traditional manner on value of R19 and R23, as well as
address systems. mixers and Ten bands require ten filters, op amp A1. that of P1P10, but that would
electronic musical instruments. of which nine are passive and The inductors used in the be at the expense of the noise
The relay contacts at the one active. The passive filters passive filters are readily avail- level of op amp IC1.
inputs and outputs, in conjunc- are identical in design and dif- able small chokes. The filter With component values as
tion with S2, enable the desired fer only in the value of the rele- based on L1 and L2 operates at specified, the control range is
channel to be selected. The vant inductors and capacitors. about the lowest frequency about 11 dB, which in most
input may be linked directly to The requisite characteristics of (62 Hz) that can be achieved case will be fine. A much larger
the output, if wanted. The input the filters are achieved by series with standard, passive compo- range is not attainable without
impedance and amplification of and parallel networks. The filter nents. major redesign.
1H 0 68mH 0 0 100n 10
25V
K2
K1
IC2 = OP275 C3 C4 C7 C8 C11 C12 C15 C16 C37 C38 S
S
22 470n 470n 120n 150n 33n 680p 10n
R11
* * C2
2k43 R2 R4 R6 R8 R21
C28 C33
22
6
*
IC1 R17 1
R23 8 1k21
7 3 7
IC2b 2k43
5 R18
5 6
31Hz 125Hz 500Hz 2kHz 8kHz OP27 1k21
2
C29 P2 P4 P6 P8 P10 C39
22 4k7 4k7 4k7 4k7 4k7 4 22
R14 R10 P1 P3 P5 P7 P9
4k7 lin 4k7 lin 4k7 lin 4k7 lin 4k7 lin
lin lin lin lin lin
P11 62Hz 250Hz 1kHz 4kHz 16kHz
R25 R13 R19 R1
C31
2k74
R3 R5 R7 R9
S1
10k
S3 C19 C20 C21 C22 *
22 22 470n
* C1 C34
C5 C6 C9 C10 C13 C14 C17 C18
15V +15V C23 C24 R20
100n 10
C26 C25
1 220n 150n 150n 47n 33n 18n
* 25V * not used
820n 47n
100n 10 L4 L8 L12 L16 * niet gebruikt
8 25V 3
IC2
R22
IC2a
1
330mH 0 0 0 15V * nicht gebraucht
4
2
* inutilis
C27 C30 L3 L9 L11 L15
The input level can be in the output amplifiers. OP27 or NE5534; and for IC 2, ered by a regulated, symmetri-
adjusted with P1, which may be Several types of op amp can AD712, LM833 and NE5532. If cal 15 V supply. It draws a cur-
necessary for adjusting the bal- be used:in the prototype, IC1 is an NE5534 is used for IC1, C2 is rent of not more than about
ance between the channels or an LT1007, and IC2, an OP275. needed; in all other cases, not. 1 0m A .
when a loudness control is used Other suitable types for IC1 are The circuit needs to be pow- [984118]
lead-acid-battery regulator
for solar panel systems
The design of solar panel sys-
tems with a (lead-acid) buffer
battery is normally such that the
battery is charged even when
there is not much sunshine. This
means, however, that when there
is plenty of sunshine, a regulator
is needed to prevent the battery
from being overcharged. Such
controls usually arrange for the
superfluous energy to be dissi-
pated in a shunt resistance or
simply for the solar panels to be
short-circuited. It is, of course,
an unsatisfactory situation when
the energy derived from a very
expensive system can, after all ,
not be used to the full.
The circuit presented diverts
the energy from the solar panel
when the battery is fully charged
to another user, for instance, a
12 V ice box with Peltier ele-
ments, a pump for drawing water
from a rain butt, or a 12 V ven-
tilator. It is, of course, also pos-
sible to arrange for a second bat-
tery to be charged by the super-
fluous energy. In this case,
however, care must be taken to power field effect transistor might reach 25 W, which would the output of the comparator is
ensure that when the second (FET), T1. The disconnect point make a heat sink unavoidable. high, so that the load across T1
battery is also fully charged, is not affected by large temper- Setting up of the circuit is is briefly switched in.
there is also a control to divert ature fluctuations because of a fairly simple. Start by turning P1 In case T1 has to switch in
the superfluous energy. reference voltage provided by so that its wiper is connected to low-resistance loads, the BUZ11
The shunt resistance needed IC1. The necessary comparator R5. When the battery reaches may be replaced by an IRF44,
to dissipate the superfluous is IC2, which owing to R9 has a the voltage at which it will be which can handle twice as much
energy must be capable of small hysteresis voltage of 0.5 V. switched off, that is, power (150 W) and has an on-
absorbing the total power of the Capacitor C5 ensures a rela- 13.814.4 V, adjust P1 slowly resistance of only 24 m.
panel, that is, in case of a tively slow switching process, until the output of comparator Because of the very high
100 W panel, its rating must be although the FET is already IC2 changes from low to high, currents if the battery were
also 100 W. This means a cur- reacting slowly owing to C4. The which causes the load across T1 short-circuited, it is advisable to
rent of some 68 A when the gradual switching prevents spu- to be switched in. insert a suitable fuse in the line
operating voltage is 12 V. When rious radiation caused by steep Potentiometer P1 is best a to the regulator.
the voltage drops below the edges of the switched voltage 10-turn model. When the con- The circuit draws a current
maximum charging voltage of and also limits the starting cur- trol is switched on for the first of only 2 mA in the quiescent
14.4 V owing to reduced sun- rent of a motor (of a possible time, it takes about 2 seconds state and not more than 10 mA
shine, the shunt resistance is ventilator). Finally, it prevents for the electrolytic capacitors to when T1 is on.
disconnected by an n-channel switching losses in the FET that be charged. During this time, [Zeiller 984072]
mains pulser
Design: G. Kleine rectifier, and regulator IC1 pro- est. In the latter case, the 10 F The timer IC switches a
The pulser is intended to switch vide a stable 12 V supply rail for capacitor at pins 2 and 6 of the relay whose double-pole con-
the mains voltage on and off at IC2 and the relay. The timer is timer IC determines the time tacts switch the mains voltage.
intervals between just under a arranged so that the period- with the relevant resistors. The The LEDs indicate whether
second and up to 10 minutes. determining capacitor can be value of this capacitor may be the mains voltage is switched
This is useful, for instance, charged and discharged inde- chosen slightly lower. through (red) or not (green).
when a mains-operated equip- pendently. Four time ranges can The two preset potentiome- The 100 mA slow fuse pro-
ment is to be tested for long be selected by selecting capac- ters enable the on and off peri- tects the mains transformer and
periods, or for periodic switch- itors with the aid of jumpers. ods to be set. The 1 k resistor low-voltage circuit. The 4 A
ing of machinery. Short-circuiting positions 1 and in series with one of the presets medium slow fuse protects the
Transformer Tr1, the bridge 2 gives the longest time, and determines the minimum dis- relay against overload.
short-circuiting none the short- charge time. [984122]
027 XS symmetrical supply
This extra-small (XS) symmetri- the regulator input-voltage to a
cal supply is useful in those safe level.
cases where a symmetrical Although the Hahn transformers
power supply is required with an suggested in the parts list have
output capacity of just a few mil- the same footprint as the Mona-
liamps. The example circuit cor/Monarch types, the 3.2-VA
shows a 15-V supply capable type is taller. If this particular
of delivering a continuous out- transformer is used, the contin-
put current of about 25 mA, or uous output current capacity of
100 mA peak. By using other the supply rises to about 55 mA,
transformers and/or voltage reg- provided C1 and C2 are
ulators, the supply can be increased to, say, 100 F/25V.
dimensioned for output voltages Note, however, that you may
of 5 V, 9 V, 12 V, 15 V, have to reduce the no-load sec-
18V and 24 V. For the latter ondary voltage as described
two voltages, however, the nega- above. The printed-circuit board
tive-voltage regulator may be shown here is, unfortunately, not
hard to obtain. Thanks to its Tr1 available ready-made from the
modest size, the XS symmetrical K1
Publishers.
supply is easily incorporated IC1 (984081-1, Gb)
into existing equipment. 78L15 15V
A disadvantage of small (low- B1
VA) mains transformers as used
for this supply is that they often C1 C3
supply relatively high no-load
47 40V 47 63V COMPONENTS LIST
secondary voltages. Under no- 2x 15V
1VA5 B80C1500
load conditions, the indicated
Monacor/Monarch transformer, Capacitors:
C2 C4
for example, supplies no less C1,C2 = 47F 40V radial
47 40V 47 63V C3,C4 = 4F7 63V radial
than 32 V to the regulator inputs
(measured at a mains voltage of Semiconductors:
230 V). In some cases, the no- IC1 = 78L15 (see text)
load secondary voltage may 79L15 15V IC2 = 79L15 (see text)
exceed the maximum permissi- IC2 984081 - 11 B1 = B80C1500, straight case
ble input voltage of the low- (80V piv, 1.5A cont.)
power voltage regulator. Typi-
cally this will be 30 V for 5-V - 0 + Miscellaneous:
C2 C4
C1 C3
IC2 IC1
regulators, 35 V for 12-V and K1 = 2-way PCB terminal
15-V types, and 40 V for 18-V block, raster 7.5mm
B1
and 24-V types. When the no- Tr1 = mains transformer, see
load voltage can be expected to text.
approach the absolute maximum H9
Examples :
2x15V 1.5VA: type VTR1215
level specified for the voltage 1-180489 984081-1
984081-1
(C) ELEKTOR
BV EI 302 2028 (Hahn)
shunt resistors (bleeders) across 2x15V 3.2VA: type BV EI 306
the transformer secondaries. 2078 (Hahn)
Keep the value of these resistors Note: Monacor/Monarch and
as high as possible to avoid Hahn transformers are sup-
unnecessary dissipation. In most ~ ~ plied by C-I Electronics and
K1
H5
H6
speech eroder
Design: T. Giesberts erally very good, irrespective of amateur stage production, or yesteryear.
Nowadays, the speech quality distance. However, there are just for fun, when it is desired to The eroder circuit accepts an
on our telephone systems is gen- occasions, for instance, in an reproduce the speech quality of acoustic (via an electret micro-
R5 9V and P4.
4k7
Although, strictly speaking,
R3
P3 serves merely to adjust the
C9 volume of the signal, its setting
220k
P3
C2 47k
R7
100
does affect the filter character-
18k
lin.
10V istic. Note, by the way, that the
R6
10n filter is a rarely encountered
4k7
R10
P2
2k2
current-driven one in which C3
2 220k
T2
P5
and C4 are the frequency-deter-
R2
100k mining elements. It has a certain
22k
C3
IC1 K1 similarity with a Wien bridge.
T1
68n 3 7 Transistors T3 and T4, and
R1 6
C6 C7 C8 resistors R8 and P4 form a vari-
T3 741 able current sink.
470
2
470n 150n 47n
4 The position of P4 deter-
T4 mines the slope of the filter
P1 characteristic and the degree of
5k
R4 R8 R9 R11 R12 R13 overshoot at the cut-off fre-
C1
quency.
47k
1k
2k2
1k
3k3
15k
220n
The low-pass filter is fol-
C4 C5
lowed by an integrated amplifier,
1 P4 IC1, whose amplification is
10k
22n
lin.
220n matched to the input of the elec-
tronic circuits connected to the
T1 ... T4 = BC550C 984105 - 11
eroder with P5.
The final passive, third-order
high-pass filter is designed to
remove frequencies above about
phone) or electrical signal. The The signals are brought to level of the combined signals is 300 Hz.
signals are applied to the circuit (about) the same level by vari- raised by this preamplifier. The resulting output is of a
inputs via C1 and C2, which able potential dividers P1-R1-R4 The preamplifier is followed typical nasal character, just as in
block any direct voltage. The and P2-R2-R3, and then applied by an active low-pass filter con- telephones of the past.
input cables should be screened. to the base of transistor T1. The sisting of T2T4, C3, C4, R6R8, [984105]
029
H1
1
T1 C1
14
IC1b + +
C2
3 4
IC1 1 984030-1
IC1
SFH309-4 100n 7
T1 IC1c
- C2 -
5 6
1
IC1f IC1d
SFH309-4 R1 16 volts d.c. The circuit is best and about 20A when light is
13 12 9 8
10M 1 1
built on the miniature printed detected (at a 9-V supply and
C
E
P1 IC1e
circuit board shown here. When with P1 set to mid-travel).
C1
11 10
fitting the phototransistor, make Finally, the switching function of
1 sure it is connected the right the circuit may be reversed by
100n
1M way around the shorter pin is exchanging P1 and T1, and con-
the collector. necting R1 to the collector.
984030 - 11
Current consumption of the (984030-1, Gb)
IC1 = 40106
circuit is 1 to 2A in the dark,
030
10k
984084 - 11
G
R14 12V
470
R13
R5 R6 R10 S1 BZ1
D1 14
C10
IC2
BP104 T4 7 220
D2
16V
C D
C2 5V1
BC IC2 = 4001
500mW 4
4p7 T1 T3 557
C1
C6
3 IC2a
IN 1
1n IC1 3
A
T2 100n 8 2 1
BC OUT IC2b T5
B 547 2 5 R12
C2 4
R2 2x
1
567
5 6 1 2k7
BC549B E C3 R
R3 R9
RC
A 150k F BC547
7 6
C3 D 10V3
A 1V1 E 1V5
R1 33p
R4 R7 R8 R11
C11 C4 C5 C7 C8 C9 B 0V7 F 1V4
C 2V1 G 11V
10n 22n 100 1 1 4n7
16V
984084 - 12
100k
100n
gates IC1a and IC1b are con- S1 R12
C2
nected to resistors R2 and R3 to R7 47k
6k8
form a buffer with some hystere- R1 C8 1
7
22 3
sis. Another gate from the C4
15k
16V
6
4069U integrated circuit, IC1f, D1 D3 1
2
IC2
16V 5
acts as an integrator together 4
220
P1 D2 D4 16V
with R1, P1 and C1. The poten- 4x R10 R11
8
220k
tiometer, P1, defines the inte- 1N4148
100k
8k2
C1 TLC271
P2
R6
grators time-constant. A buffer 12k
acting as a comparator with hys- 2n2 C3
IC1f IC1e
teresis, together with the inte- R4 4k7 22 16V
13 11 10
grating effect provided by IC1f 1 22k 1
12
R3 R5 U
D5 12V
COMPONENTS LIST
22k
560k
R1 = 15k 1 1 IC1
4 2
100n 7 220
R2,R12 = 47k R2 16V
R3,R4,R8 = 22k 47k
R5 = 560k 984004 - 11
R6 = 12k
R7 = 6k8
R9,R10 = 100k
R11 = 8k2 1-400489 P1
P1 = 220k linear poten- tnemgeS )C(
D1 D3 P2
H1
H2
S1 C8
tiometer
R10
0 D2 D4 C2
R9
C1 R6
OUT
C4
ter C7
R4
+ C5 C6
Capacitors:
R5
H4
984004-1 R1 R2
C6,C7 = 100nF Sibatit (minia- R11 R12
ture ceramic, Siemens)
C8 = 1F 16 V radial
Semiconductors:
D1-D4 = 1N4148
D5 = 1N4001
IC1 = 4069U (U = unbuffered
version!)
IC2 = TLC271CP
Miscellaneous:
S1 = 3-way rotary switch, 4 (C) Segment
984004-1
poles, PCB mount
consisting of IC1e, R4, R6, R5 aid of the aforementioned resis- The generator is powered no tedious wiring is required.
and diodes D1 through D4. The tors R7 and R8 for the triangle from a regulated 12-volt source, The project is conveniently
output signal is applied directly and rectangle wave respectively, and its current consumption will boxed by drilling holes for the
to the waveform selection in combination with the output be of the order of 20 mA, pot and switch shafts in the front
switch. level control pot, P2. The depending, of course, on the panel, and then mounting the
Because the three waveforms TLC271 opamp is wired for a load connected to the output. completed circuit board against
have different individual levels, gain of 6.7 times in order to The printed circuit board the inside of the front panel.
the sinewave being the smallest, achieve a maximum (no-load) designed for the generator also Unfortunately, the PCB for this
they have to be made roughly output level of about 10 Vpp. contains all the controls, i.e., the project is not available ready-
equal before they can be applied The minimum load impedance frequency control pot, the wave- made through the Publishers.
to the output amplifier, IC2. This to be observed is about form selection switch and the (984004)
levelling is achieved with the 600 ohms. output level control pot, so that
034
1.5 A step-down
switching regulator
By G. Kleine
Step-down regulators are more
and more often used to derive
low supply voltage from a higher
voltage without incurring losses.
Owing to the steadily increasing
switching rates, the suppression
of interference and noise that
are unavoidable by-products of
the switching has become much
simpler.
The L4971 from SGS-Thom-
son is a step-down monolithic
power switching regulator deliv-
ering 1.5 A at a voltage between
+3.3 V and +40 V (selected by
a simple external divider). Real-
ized in BCD mixed technology,
the regulator is housed in a 8
DIL8 or SO16-SMD enclosure. +3V3
FB
The input voltage ranges 5
from 8 V to +55 V, while the R1
IC1
efficiency is 85%, rising to 95% L1
22k
4
OUT
when the input voltage is only a L4971 270H
(DIL8) R3
few volts higher than the output 3
OSC
voltage. INH COMP BOOT *
The external divider to set 8...55V 2 7 1 6
D1
the output voltage is formed by C1 C7 C2 C6 C8
R2 R4
220 100n 2n7 100n 470
Vout may be linked directly to 63V SB360
FB (pin 8). Resistor values for C5 C4
63V
*
some usual output voltages are 100n 22n
given in the table.
The normal switching fre-
quency of the L4971 is
100 kHz, but this may be 984124 - 12
increased to 500 kHz by making INHIBIT
* * zie tekst
R1
R2
R6
IC1
D1 K1
1-120489
ROTKELE )C(
(C) ELEKTOR
984021-1
Design K. Walraven technology (SMT) for operation 0.5 C). output may also be used as an
The LM75 from National Semi- from 5 V or 3.3 V. The tempera- The LM75 can operate as a interrupt for a computer or
conductor is a temperature sen- ture may be read in half degrees stand-alone temperature switch, microcontroller. At power-up,
sor, Delta-Sigma analogue-to- in the range 55 C to +125 V. for which purpose an upper and the switching levels are fixed at
digital converter (ADC), and It provides a 9-bit output in twos a lower switching level may be 80 C and 75 C
digital over-temperature detec- complement (that is, 0FAH is programmed in. The output of The circuit shown is based
tor with I2C interface. It is +125 C; 192H is 55 C; the device goes low when the set on an LM75 and may be con-
manufactured in surface-mount 001H is +0.5 C; 1FFH is temperature is exceeded. This nected to the Centronics port of
Parts list
K1
Resistors: 1
R1 = 3.9 k 14
R2 = 2.2 k 2
15 R6
R3R5 = 100 k
4k7
3
R6 = 4.7 k R2 R3 R4 R5
16
C1
2k2
100k
100k
100k
4
D2
Capacitors: 17
C1 = 0.1 F 5
100n
high eff.
18 SCL
Semiconductors: 6 SDA
K2
D1 = BAT85 19
8
7 1 2
D2 = LED, high efficiency
20 1 3 4
SDA
8 SCL 2 3 OS 5 6
Integrated circuits: SCL IC1 OS
21 7 8
IC1 = LM75CIM-5 D1 LM75CIM-5
9 7 9 10
A0
22 6
BAT85 A1
Miscellaneous: 10 5
A2
K1 = DB25 connector, male, 23
right-angled, for board 11 OS 4
A1
mounting 24
A0
12
K2 = 10-way box header for A2
25
board mounting R1 JP1 JP2 JP3
13 SDA
JP1JP3 = 2-way pin strip
3k9
a computer via a 25-way 1:1 simple: at the top left is a button the list) must be selected with- worry about the additional load
cable. The port then functions as which when set to off renders out the use of jumpers. Set the placed on their PC, may note
an I2C interface. The necessary the Centronics port voltage- button to on and temperature that the LM75 draws a current
software, datasheet and applica- less.Connect the board and monitoring starts. not exceeding 250 A.
tion note may be downloaded select the relevant Centronics Since the circuit draws cur- [984021]
from www.national.com/pf/LM/ address and an I2C address. rent from the Centronics port, a
LM75.html. This means that the highest dedicated power supply is not
Operation of the software is address on the board (lowest in required. However, readers who
036
fast voltage-driven
current source
Design: H. Bonekamp C1 C2
15V R1 to give the usual 50
The current source in the dia- impedance required by measur-
gram, which react very fast to 10
25V
100n ing instruments. At the same
changes in the input signal, may time, this resistor sets the d.c.
be used, for instance, in certain operating point. If the link to the
measurements. 8 driving signal source is short
Differential amplifier IC1 1
X1 and d.c. coupled, R1 may be
2
ensures that the potential across X2 IC1 R2 omitted.
7
R2 is equal to the input voltage: 3
OUT 100 The peak voltage between
R1
4
Y1 AD830 pins 1 and 2 of the IC is limited
Y2
Iout=Uin/R2. to 2.1 V to prevent too large a
499
1M
IC1
moisture level is detected
between a pair of probes.
10
16V
7 10
16V D1 *
RE1
BZ1
ambient-noise monitor
Design: T. Giesberts 6...15V
Excessive noise is bad for your R1 R4
health and bad for your sur- C4
10k
2k2
roundings. It cannot be said too P1
10 25V
often: too many young people go
prematurely deaf because of 250k
1k
470
gives a visible warning when the D2
ambient noise is at a dangerous C2 S1 C3 D3
op amp IC1, whose input resis- * voir texte * see text 10 25V
up/down drive
for tone control
Design: T. Giesberts down key. A third key enables decoder IC3 is permanently low. C3 ensures that when the supply
The up/down drive is intended the user to switch over rapidly to Only the eight lowest outputs of voltage is switched on, the pre-
primarily for use with the tone a preprogrammed position of the the decoder are used and these set data are automatically
controls described elsewhere in relevant tone control. are linked via K1 to the control adopted by the counter.
this issue. The electronic switches are inputs of IC1 and IC2 in the tone Each of switches S1 and S2
The tone controls use elec- driven by a BCD-to-decimal controls. drives an S/R bistable (US: flip-
tronic switches that are operated decoder Type 4028 (IC3), which The circuit is operated with flop), which determines the level
by a multi-position selector. The in turn is controlled by a 4-bit S1 and S2. Switch S3 is the ear- at the U/D input of counter IC2.
present circuit is intended as a preset up/down counter (IC2). lier mentioned preset key. The Networks R3-C1 and R4-C2,
replacement for this selector and The counter uses the three low- data for the preset inputs are set in conjunction with Schmitt trig-
has facilities for operating the est bits only. The MSB of with DIP switch S4. Capacitor ger IC1b provide a thorough
tone controls via an up and a debouncing and at the same
100k
100k
arrives after the state of the IC1d
14 C4 16 C5 16 C6 C7
counter has been defined. 13
11
IC1 IC2 IC3
& 100n 100n 100n 100
To prevent the counter jump- 12 7 8 8
25V
ing from minimum to maximum
or vice versa, the clock pulse is 9
disabled in the outermost posi- 8 &
10
R6
tions. In the minimum state, this
IC1c
47k
is achieved simply by use of the 10
M2
CTR4
1k
3k3
1k
X2 X2
The present article deals only
D1 D3 D5
with the additional features. D2 D4
fuse has blown. For this purpose, 500mW BC547B 500mW SIOV-S20K275 500mW
Siemens
two capacitive potential dividers L1 = B82723-A2202-N1
C5 C7
2x 5mH6 / 2A
have been added: C1-R3-D1 and C1 ... C7 = 250V Siemens Y2 Y2
C2-R4-D3. When the fuse is D2, D4 = high efficiency LED 4n7 4n7
intact, the potential at the base of
984114 - 11
T1 is 3.9 V higher than that of the
(N)eutral line. The transistor is
on and short-circuits D2. When the (L)ive line is positive w.r.t. by the human eye). (D4) lights when the mains volt-
the fuse blows, T1 is off. Its col- the neutral line; this means that A second potential divider, age is present at the output.
lector potential, owing to D1, is the LED flashes in rhythm with C6-R4-D4-D5, at the output of [984114]
2.7 V, so that D2 lights. Note that the mains frequency (since this the filter ensures that the LED
this action is only possible when is 50 Hz, it cannot be discerned
8k2
1010
IC3, the REFOUT pin of IC4 10
2
then supplies 2.5 V with respect 10V D12
1005
to ground. In this way, the LED
D11
drivers are cascaded to give a 1000
scale of 20 LEDs each repre- +U D10
senting an air pressure increase IC2 = TLC272 C6 995
of 5 hPa. D9
100n 990
Because the output voltage of IC1 2
3
the pressure sensor follows any D8
985
9 10
change in the supply voltage, a 4 5
R4
MODE L10
11
very stable 5-volt supply is MPX
S4100A IC2b
7
8k2
5
SIG
L9
12
D7
980
IC3 L8
required. This is provided by 6
6 13
RHI L7 D6
opamp IC2a which doubles the 3 R1 7
L6
14 975
C1 R3 R5 REFOUT
2.5-V REFOUT potential from
56k
15
L5 D5
12k
8k2
IC4. The sensor output voltage 47p
R2
L4
16 970
LM3914
is expressed by the equation
1k
17
L3 D4
965
Uo = (0.001059*P 0.1518)*5 P2 R6
8
REFADJ L2
18
4 1
[V] (P [hPa]) 1k RLO L1 D3
3k9
P1 960
Because we want an indication 2
range of 945 hPa (all LEDs off) 47k D2
955
to 1045 hPa (all 20 LEDs on),
D1
5V 950
984061 - 11
1000
1005
1010
1015
1020
1025
1030
1035
1040
1045
984061-1
950
955
960
965
970
975
980
985
990
995
P1
D15
D16
D17
R3
R2
D1
D2
D3
D4
D6
D7
D8
D9
D10
D11
D12
D13
D14 C7
D18
D19
D20
D5
C1
R1
C5
IC3
IC4
R4
R5
D21
H2
H1
IC2
- +
C6
C4
R6 R7
P2
9..12V
IC1
C3
1-160489
ROTKELE )C(
R10
R8
R9
C2
(C) ELEKTOR
984061-1
2k7
grn
D1 groen
green
Design: W. Mannertz 48 V, 4.7 k. If the supply is not con- vert
The present tester is intended The tester should be con- nected to earth, the tester may D3
primarily for testing the 24 V nected to the +ve and ve volt- be used as ground-leak tester. In
D2
electrical circuits found on most age rails with test clips or croc- this situation, one of the LEDs 1N4001 rot
pleasure craft. However, if the odile clips, whereupon the test lights when the test probe rood
red
resistors are given different val- probe is placed on the point to touches a point at earth poten- R2 rouge
ues, the circuit may, of course, be tested. When the potential at tial and there is a leakage. 2k7
be used for other voltage ranges. the point is positive, the red [984104]
For 12 V, the value of the resis- LED lights; if it is negative, the 984104 - 11
tors should be 1.2 k, and for green one does.
043
14mA
14mA
C3
50
C3 L2
100p
1n 28nH
IC1
IC1 R1
MGA-86563
MGA-86563 10...100
K1 C1 L1 C2 K2
1 4 K1 C1 L1 C2 K2
1 4
3nH3 6 50 50 50 50
5 6
3 5
2 3
2
984125 - 12
984125 - 13
wave ratio) at 2 GHz. frequencies, its value may have noise figure and gain to 50 . realized simultaneously with a
The 3.3 nH inductor, L1, in to be increased accordingly. The use of a simple input low input VSWR.
series with the input of the A circuit for operation up to matching circuit, such as a DC power is applied to the
amplifier matches the input to 6 GHz is shown in Figure 2. A series inductor, will minimize MMIC through the same pin tat
50 at 2 GHz. 50 microstripline with a the amplifier noise figure.Since is shared with the r.f. output. A
Inductor L2 prevents any series d.c. blocking capacitor, the impedance match for NF0 50 microstripline is used to
tendency to resonance over the C1, is used to feed r.f. to the (minimum noise figure) is very connect the circuit to the follow-
operating range (2 GHz). When MMIC. The input of the device close to a conjugate power ing stage.
operation takes place at lower is already partially matched for match, a low noise figure can be [984125]
044
LED lighting
for consumer unit cupboard
D3
Design H. Bonekamp 1N4148 R4 that the transistor is cut off.
The consumer unit (or electric- 680
When the mains voltage
ity meter) cupboard in some fails, C1 is discharged via R1;
older houses is a badly lit place. R3 when the potential across it has
If the bell transformer is also dropped to a given value, the
22k
750mAh
D5
rent of about 7.5 mA via diode 100
D1 and resistor R2. The base of 25V
transistor T1 is high via R3, so
984110 - 11
045
hung between, say, a tree branch on loan. Select channel 20 on only 3 metres, then the remain-
at one side and a tent post, at zie tekst the CB rig and set C1 and C3 to ing 2.5 metres has to be wound
* see text /2
1
the other. Obviously, the wire mid-travel. Press the PTT button on a length of PVC tubing. This
ends then have to be isolated * siehe Text and adjust C2 for the best (that creates a so-called BLC (base-
using, for example, short lengths
* voir texte C3
is, lowest) SWR reading. Next, loaded coil) electrically short-
*
of nylon wire. It is even possible 40p alternately adjust C3 and C2 ened antenna. In practice, the
to use the ATU to tune a length until you get as close as possible added coil can be made some-
of barbed wire to 27 MHz. *
L to a 1:1 SWR reading. C1 may what shorter than the theoretical
The coil in the circuit con- K1
50
C1 C2 then be tweaked for an even bet- value, so the actual length is
sists of 11 turns of silver-plated ter value. No need to re-adjust best determined by trial and
copper wire with a diameter of 22p 40p the ATU until another antenna is error. Finally, the ATU has to be
about 1 mm (SWG20). The used. In case the length of the built in an all-metal case to pre-
internal diameter of the coil is 984079 - 11
wire antenna is exactly 12 vent unwanted radiation. The
15 mm, and it is stretched to a (5.5 metres), then C3 is set to trimmers are than accessed
length of about 4 cm. The tap for maximum capacitance. through small holes. The con-
the antenna cable to the CB larger one, C2, for coarse tuning. Although the ATU is nection to the CB radio is best
radio is made at about 2 turns The trimmers are adjusted designed for half-wavelength or made using an SO239 (UHF)
from the cold (ground) side. Two with the aid of an in-line SWR longer antennas, it may also be or BNC style socket on the ATU
trimmer capacitors are available (standing-wave ratio) meter used for physically shorter box and a short 50- coax cable
for tuning the ATU. The smaller which most CB enthusiasts will antennas. For example, if with matching plugs.
one, C1, for fine tuning, and the have, or should be able to obtain antenna has a physical length of (984079-1; LL)
046
single-supply operation
of the AD736
An Analog Devices Application C4 C8
9V
In dual-supply operation, the
output (pin 6) of the AD736 is at 100n 100n
1M
820k
2k2
10
trol real-world loads like T3
lamps, relays, and motors, there
are basically two camps: pro- IC1 BC V+
grammers and hardware spe- 1 6 5 557B T5
(5V)
D2
cialists. The combined species
seems to be rare! Anyway, this D1
*
1N4001
article is aimed at the latter BD902
group. The circuit diagram 2 4
shows a one-channel power dri- TIL111
BD901
ver with an (optional) electri- R1 R3 R5 R2 1N4001
cally isolated input and a power
330
*
2k2
47k
47k
R9
COMPONENTS LIST
10
BC BC BC
547B 547B 547B
Resistors: JP1 JP4
GND2
R1 = 330
R2,R3 = 47k
R4,R5 = 2k2 * see text * siehe Text * zie tekst * voir texte 984011 - 11
R6,R7 = 1M
Capacitor: well as sourcing current. required if inductive loads like trol more channels than just one
C1 = 100nF If galvanic isolation is not relay coils are controlled, and (say, four), you just build as
required at the input, omit the different Darlington pairs like many driver boards as you need.
Semiconductors: optocoupler and fit the two the BD911/912 are employed. Unfortunately, the printed cir-
D1 = LED jumpers. In that case, the cir- As opposed to the BD901/902, cuit board whose artwork is
D2,D3 = 1N4001 (optional, cuit is driven by a TTL-compat- the BD911/912 complementary shown here is not available
see text) ible logic signal. In case the pair does not have internal anti- ready-made from the Publishers.
T1,T2,T4 = BC547B optocoupler is used, the driver surge diodes across the collec- (984011-1)
T3 = BC557B
T5 = BD902 or BD912 (see
text) 1-110489 V+ V2+ 984011-1
T6 = BD901 or BD911 (see D1
H1
H3
text) C1
JP3
R8
D2
R5
R4
R6
CNY17-2 T3
JP2 T5
IN1
Miscellaneous: T2
T6
R1
GND1
D3
with jumper
R9
R3 T1 JP4
Heatsinks for T5/T6, as R2
H4
H2
required 984011-1
R OTKELE )C( (C) ELEKTOR
GND GND2
Cleveland, Ohio 44124, USA. 408-559-7114. Internet: www.xilinx.com. Advanced CMOS 5V FastFLASH technology
Supports parallel programming of more than
one XC9500 concurrently
GROUND
2 Available in 44-pin PLCC, 44-pin VQFP, and
OHN3040U 48-pin CSP packages
OHS3040U
983010 - 13 Description
UK: Xilinx Ltd., Benchmark House, 203 Brook- The XC9536 is a high-performance CPLD pro-
lands Rd., Weybridge, Surrey KT13 ORH. Tel. viding advanced in-system programming and
983010 - 15
(01932) 349401. test capabilities for general-purpose logic inte-
1 2 3
Application Example gration. It is comprised of two 36V18 Function
Anemometer, Elektor Electronics December Functional block diagram Features Blocks, providing 800 usable gates with propa-
1998. 5 ns pin-to-pin logic delays on all pins gation delays of 5 ns.
fCNT to 100 MHz
Features 36 macrocells with 800 usable gates Application example
Operates over a broad range of supply volt- Up to 34 user I/O pins Compact Multiburst Generator, Elektor Electron-
ages 5 V in-system programmable (ISP) ics January 1999.
Excellent temperature stability to operate in Endurance of 10,000
harsh environments program/erase cycles
Drive capability up to 5 TTL loads Program/erase over full commercial
Hall element, linear amplifier, and Schmitt voltage and temperature range
trigger on a single HallogicTM silicon chip Enhanced pin-locking architecture
Flexible 36V18 Function Block
89
12/98
Integrated Circuits Sensors
Programmable Logic Beaufort Scale
DATASHEET 11/98 DATASHEET 11/98
XC9536 I/O pins (PC44 case only) Power Management
Power dissipation can be reduced in the XC9536 Beaufort scale and correlated wind speeds
by configuring macrocells to standard or low-
Pin (PC44
Macrocell
Function
Notes
Order
case)
Block
Elektor Electronics
are turned off to minimize power dissipation. Description
Operating current for each design can be m/s mph knots
1 1 2 105
1 2 3 102 approximated for specific operating conditions calm 0 0.2 0-1 01
1 3 5 99 [1] using the following equation:
light air 0.3 1.5 1-3 13
1 4 4 96
1 5 6 93 [1] ICC (mA) = MCHP (1.7) + MCLP (0.9) + MC light breeze 1.6 3.3 47 46
1 6 8 90 (0.006 mA/MHz) f
gentle breeze 3.4 5.4 8 12 7 10
1 7 7 87 [1]
1 8 9 84
Where: moderate breeze 5.5 7.9 13 18 11 16
1 9 11 81
MCHP = Macrocells in high-performance mode
MCLP = Macrocells in low-power mode fresh breeze 8.0 10.7 19 24 17 21
1 10 12 78
1 11 13 75
MC = Total number of macrocells used strong breeze 10.8 10.7 25 31 22 27
1 12 14 72
f= Clock frequency (MHz)
moderate gale 13.9 17.1 32 38 28 33
1 13 18 69
1 14 19 66 fresh gale 17.2 20.7 39 46 34 40
XC9536 Global, JTAG and Power Pins
1 15 20 63
(PC44 case only) strong gale 20.8 24.4 47 54 41 47
1 16 22 60
1 17 24 57 Pin type Pin (PC44 case only) whole gale 24.5 28.4 55 63 48 55
1 18 54
I/O/GCK1 5 storm 28.5 32.6 64 75 56 65
2 1 1 51
2 2 44 48 I/O/GCK2 6 hurricane > 32.6 > 75 >65
2 3 42 45 [1] I/O/GCK3 7
2 4 43 42
I/O/GTS1 42
2 5 40 39 [1]
2 6 39 36 [1] I/O/GTS2 40
2 7 38 33 I/O/GSR 39
2 8 37 30
TCK 17
2 9 36 27
90
2 10 35 24 TDI 15
2 11 34 21 TDO 30
2 12 33 18
TMS 16
2 13 29 15
2 14 28 12 VCCINT 5 V 21, 41
2 15 27 9 VCCIO 3.3 V/5 V 32
2 16 26 6
GND 23, 10, 31
2 17 25 3
2 18 0 No Connects