You are on page 1of 5

f parking sonar

range monitor
to make parking safer

At some time or another, we all have to


Parking in crowded streets often causes one’s park our car in a crowded street or car
car to bump into another one. Even though this park. Now, parking is something that
many of us never master well and con-
normally happens at very low speeds, it should sequently tends to make us nervous.
be avoided. The range monitor is an aid to The fear is that we will bump our car
into the one behind the space we have
‘keeping an eye’ on the distance between the selected. An aid to warn us when we
get too close to that vehicle is, there-
bumper of your car and that of the one behind fore, very welcome.
you. It is a compact device that may prevent The circuit described in this article
is a fairly straightforward design that
angry faces. actuates an alarm when there is an
obstacle at a preset distance of
30–300 cm from the bumper of a vehi-
cle in which it is fitted. Such a distance
is fine in all practical conditions. It
takes over from a human ‘aid’ who
indicates by means of hand signals
Design by H Bonekamp how far you can reverse your car.

Elektor Electronics 4/98


20
THE DESIGN
The range monitor is based on ultra- 1 frame delay receive detector
sonic transducers: a sender and a generator frame
receiver. It makes use of the natural
property that sound travels through
air at a virtually constant speed of
340 m s–1. Any obstacle will reflect the
sound emitted by the transmitter,
which is then intercepted by the 40 kHz amplifier comparator
receiver. A measurement of the inter- generator
val between the time the sound is sent
and the time the echo is received
enables the distance to be computed.
The block diagram of the monitor
is shown in Figure 1. The frame gen-
erator produces rectangular pulses in
a fixed rhythm. The width of the
transmitter receiver
pulses determines the duration of the
frame. The intervals between the
pulses are long enough to prevent sig-
nal echoes from interfering with the 980030 - 12
frames.
The frames are ‘modulated’ by a
40 kHz signal produced by a second Figure 1. Block diagram of the parking
generator. The modulated pulses are sonar. The distance is computed from
then applied to the transmit module. the time delay between the transmitted
The frequency of 40 kHz is not chosen and received pulses.
randomly, but is equal to the reso-
nance frequency of the transducer.
The timing diagram in Figure 2
clarifies the process. The output of the from the frame generator. Only when the sounding of a buzzer then indicate
frame generator and the signal applied at least five 40 kHz pulses are detected that the minimum set distance has
to the transmit module are waveforms will the output of the detector become been reached and that the driver
1 and 2 in this diagram. active. The lighting of an LED and/or should stop.
To ensure that an alarm is actuated
when an obstacle is present at a cer-
tain distance, say, 50 cm, the receive
frame must have some relation
to the transmit frame. This is
arranged by passing the out-
put of the frame generator 2 frame
IC2b 6
through a delay line and
converting the consequent
signal to a pulse whose width
determines the window. See sig- transmit
window
nals 3 and 4 in the timing diagram. IC2a 3
Note that only signals that fit within
the window can be intercepted.
The reflected signal (or echo) is
intercepted by the receiver and delay
applied to an amplifier., which not IC2c 9

only raises the level of the signal but


also functions as band-pass filter. The
resulting signal is compared with a
receive
fixed voltage: the output of the com- window
parator is signal 5 in the timing dia- IC2d 12

gram. Note that this is identical to sig-


nal 2 but shifted in time.
The detector eliminates as many
spurious inputs as possible by check- comparator
IC1f 12
ing the number of received 40 kHz
pulses. Each receive frame should con-
tain at least five of these pulses. If this
is not so, the detector treats them as
noise, whereupon a new cycle is detector
IC1d 9
started at the arrival of the next pulse

output
Figure 2. Timing diagram IC1e 10
of the parking sonar.
t 980030 - 13

Elektor Electronics 4/98 21


C1 IC4
BZ1

3 IC1a
10p
IC1b
12V12V D8 L1

10µH
7806 6V

R3 1N4001
1 2 3 4
1 1

470Ω
D9
C14 C15 C16
IC2a IC1c
1 100µ 10µ
P1 3 5 6 100n
& 1 15V 25V 10V
4k7 C2 2 0 1W3
150k
R1

5k6
R2
1n 6V
f0
40kHz

14 C17 14 C18
R4 IC1 IC2 6V
1k 7 100n 7 100n
D1
R10
R5

120k
390k 1N delay
4148 30cm - 3m 6V
IC2c
4 P2 R6 9 C5 R8 IC2d IC1d
6 8 12 D3 R9
5 & 1k2 10 & 1k 11 9 8
13 & 2k2 1
47k 10n R11 R14
IC2b D2 1N4148
BZ2

1k8

1k8
window R7 R22 D7
C3 C4 20cm C6
6V 1N4148

82k

56k
detector D4 D5 D6
470n 470n >5 33n
R16
12
1N4148
120k

1N4001
IC1f
1 R12
4V

1k
13
P3 5 IC1e T1
3 7 6V 11 10
100k C13 R20 IC3b 1
1 6 R13
R15 IC3a 1k2 C7

2M2
2 R19
3k9 3n3
BC557B

100Ω
C8
R18 R21 470n
1n 330k 100k
2V5
X1 R17
C11 C12 8
150k

C9 C10
IC1 = 74HC04 IC3
100n 220µ 4
10µ 100n IC2 = 74HC132 10V
10V
IC3 = OP279G
980030 - 11

0
Figure 3. Complete circuit
C15 C14
P3 C10 C9 diagram of the parking sonar.
4 D9
The transducers are X1 and
H4

H1

12V C8
L1
R19
R17
R16

Bz1, while Bz2 and D6 are the


IC4 D8 C16 IC3 X1
indicator elements.
R20 R15
R21 R18
T
1-030089 C13
tnemgeS )C(
C12 C11 C18
C2 C17 R7
R22
R1 R8
R10

D3
R2 R9
R5 C5
C6 R4
IC2 R6
IC1 D1 C4
R12 D2
C1
P1 D4
R13 C3 P2
R3 T1
R11
D7 Figure 4. Printed-circuit
D5 C7 R14
H3

H2

BZ1 980030-1 - BZ2 + A D6 K board for the parking sonar.

Parts list

Resistors:
R1, R17 = 150 kΩ
R2 = 5.6 kΩ
R3 = 470 Ω
R4, R8, R12 = 1 kΩ
R5 = 390 kΩ
R6, R20 = 1.2 kΩ
(C) Segment
980030-1
R7 = 82 kΩ
R9 = 2.2 kΩ
R10, R16 = 120 kΩ
R11, R14 = 1.8 kΩ
R13 = 2.2 MΩ
R15 = 3.9 kΩ

22 Elektor Electronics 4/98


CIRCUIT
DESCRIPTION 5
The circuit diagram of the range mon-
itor is shown in Figure 3.
The frame generator is based on
gate IC2b. It is a simple oscillator that
produces pulses at a frequency of
about 10 Hz. Network R4-C3 deter-
mines the width of the pulses and thus
of the transmit frame. The pulse inter-
val is determined by network R5-C3.
The duration of each frame is equal to
a period of the frame generator out-
put.
The stability of the 40 kHz oscilla-
tor is rather better than that of the
frame generator, which is why it is
based on two op amps, IC1a and IC1b,
and the frequency can be fine-tuned
with P1.
The outputs of the two generators
are combined by IC2a, which ensures
that the transmit frame is modulated
(‘filled’) with ultrasonic pulses. The
resulting signal is applied to the trans-
mit module, Bz1, via IC1c in a sort of
bridge circuit.
The delay line, consisting of IC2c,
P2, R6 and C4, is essential for the cor-
rect functioning of the monitor. The
distance between transmitter and
obstacle is set to between 30 cm and 3
metres with P2.
The output signal of gate IC2c is dif-
ferentiated by network R7-C5, where-
upon, in conjunction with the hys-
teresis of gate IC2d, it determines the
width of the receive frame. Figure 5. Photograph of the completed prototype.
Resistor R8 limits the current Because of the small current drain, regulator IC4
through IC2. does not need a heat sink.
The receiver module is indicated in
the circuit diagram by X1. It is followed
by two amplifier cum band-pass filter
combinations, based on IC3a and IC3b. the input capacitance of IC2d, form a ensures that the input voltage of IC1d
These op amps are arranged to give an low-pass filter for the comparator out- will be sufficiently low to cause its out-
amplification of ×50 each at 40 kHz. put. put to change state only after five
Variable potential divider To prevent false alarms, the output pulses have been received (penulti-
R16-P3-R17 enables setting IC3a and of detector IC1d can change state only mate signal in the timing diagram).
IC3b to a reference voltage that ensures when the receive frame contains at When a suitable signal is received
that inverter IC1f, which operates as a least five 40 kHz pulses. This is effected that fits in the receive frame, a short
comparator, obtains the correct bias by applying the signal to network positive pulse appears at the output of
voltage. In this way, P3 sets the sensi- D3-R9-R10-C6 after it has passed IC1d. At the same time D5 lights briefly.
tivity of the circuit. Resistor R22 and through the receive frame. This The function of this diode is limited,

R18 = 330 kΩ C10 = 0.1 µF* Integrated circuits:


R19 = 100 Ω C11, C15, C17, C18 = 0.1 µF high stabil- IC1 = 74HC04
R21 = 100 kΩ ity IC2 = 74HC132 (SGS Thomson – see
R22 = 56 kΩ C12 = 220 µF, 10 V, radial text)
P1 = 4.7 kΩ preset potentiometer C13 = 0.0033 µF* IC3 = OP279G
P2 = 47 kΩ preset potentiometer C14 = 100 µF, 25 V, radial IC4 = 7806
P3 = 100 kΩ preset potentiometer
* metallized polyester (MKT) Miscellaneous:
Capacitors: L1 = choke, 10 µH
C1 = 10 pF Semiconductors: Bz1 = 400ET180 (Mercator)
C2, C8 = 0.001 µF* D1–D4 = 1N4148 X1 = 400ER180 (Mercator)
C3, C4, C7 = 0.47 µF* D5, D6 = LED, red, low current Bz2 = active buzzer, 5 V, <100 mA
C5 = 0.01 µF* D7, D8 = 1N4001
C6 = 0.033 µF* D9 = zener diode, 15 V, 1.3 W
C9, C16 = 10 µF, 10 V, radial T1 = BC557B

Elektor Electronics 4/98 23


however, to the calibration. To obtain (IC2) from SGS-Thomson since other The transducers specified in the
a clear indication that a proper signal makes may have a different hysteresis. part list are both watertight.
has been intercepted, the output pulse With the exception of the trans- The indicator diode and/or buzzer
needs to be stretched and this is done ducers, the indicator diode and the should, of course, be placed near the
by R12-C7-R13. The stretched pulse is buzzer, all components are housed on driver, for instance, in or near the
inverted by IC1e (last signal in the tim- the board. instrument panel.
ing diagram), whereupon an audible To minimize any interference, it is
and/or an optical indication (by Bz2 essential that the monitor is housed in CALIBRATION
and D6 respectively) are actuated. a properly earthed metal enclosure. When the monitor is switched on, it
Note that the receive frame can be The transmit and receive modules will be active for about a second,
widened or narrowed by adapting the should be mounted at some distance which is the time needed by C9 to get
value of R7 as appropriate. For most from each other, preferably in or near fully charged. No attempt has been
situations, however, a width of 20 cm, the rear bumper or, in older cars, the made to eradicate this power-on indi-
as in the present design, is a good rear spoiler. They must, of course, cation since it tells the driver that the
practical value. point in a direction immediately monitor is operating.
The regulator circuit based on IC4 behind the vehicle. The transducers The three preset potentiometers are
ensures a stable 6-V power supply. must be linked to the monitor (termi- adjusted with the aid of a good mul-
Inductor L1 and diode D9 protect the nals X1 and Bz1) via lengths of timeter.
supply lines against interference and screened cable (twin-core in case of 1. Set the multimeter to an appropri-
overvoltage peaks. the transmitter). The screens must be ate alternating voltage range and con-
Diode D8 provides protection connected to the supply line earth. nect it across R3. Short-circuit C3 with
against wrong polarity of the 12-V It is advisable to keep the lines to a length of circuit wire. Turn P1 until
lines. Note that these lines are best the transmit module as far away as the meter reading is a maximum. Seal
taken from the reversing lights. possible from the input amplifier to the preset with some nail varnish and
prevent transmit pulses being injected remove the short-circuit from C3.
CONSTRUCTION directly into the receiver. 2. Short-circuit terminals X1 and turn
The monitor is best built on the Note that the case of the transmit P3 until diode D5 just goes out.
printed-circuit board in Figure 4, module is connected internally to one 3. Place an obstacle at the desired dis-
which is, however, not available ready- of the terminals; it is, therefore, essen- tance from the rear bumper and adjust
made. Populating the board should tial that the module is isolated from P2 until diode D5 begins to flash.
not cause any undue difficulties. Note the monitor enclosure and/or the car [980030]
that it is advisable to use a 74HC132 chassis.

Elektor Electronics 4/98 25

You might also like