This is only a preview of the November 1988 issue of Silicon Chip. You can view 47 of the 104 pages in the full issue, including the advertisments. For full access, purchase the issue for $10.00 or subscribe for access to the latest issues. Items relevant to "High Power PA Amplifier Module":
Articles in this series:
Articles in this series:
Articles in this series:
|
BUILD
CAR SA
By JOHN CLARKE
Is your car in danger of being
sideswiped in the street at night? This
project detects on approaching car's
headlights and automatically turns on
the brake lights to worn the driver.
Anyone who parks a car on the
street at night is aware of the
danger of sideswipes, particularly
in wet weather or if the street is
poorly lit. The problem is even
worse if the parked car is dark in
colour, with no reflective brightwork to warn the approaching
driver.
This problem has been made
worse in recent years by the switch
from reflective chrome bumper
bars to non-reflective plastic
bumpers. These days, it's all too
easy for a tired or inattentive
driver to be unaware of a parked
car - until it's too late.
This simple project is designed to
This inside view shows how one of the LDRs (the headlight detector) is
arranged to face through the side of the case. The other LDR faces upwards,
through the lid.
64
SILICON CHIP
overcome that problem. It mounts
on the rear parcel shelf and watches for an approaching car's
headlights. As soon as headlights
are detected, it turns on the parked
car's brake lights to warn the
driver in the approaching vehicle.
The brake lights then automatically switch off about five seconds
after the car passes.
During the daytime, an additional
light sensor disables the circuit to
prevent the car's battery from going flat. The circuit is also disabled
while the ignition switch is on. This
means that the car's brake lights
function normally when the car is
being driven.
How it works
Fig.1 shows the circuit of our
Automotive Night Safety Light. It's
very simple and is based on a 4093
quad Schmitt NAND gate IC.
Let's assume initially that the ignition is off and that both LDR1 and
LDR2 are in darkness. This means
that both LDRs will have high
resistance - up in the region of
several megohms, in fact. Pins 5
and 6 of ICla will thus be pulled
low by the 1ookn resistor and so pin
2 of IC1 b will be high.
The other input to IClb, pin 1, is
normally pulled low by the 47kQ
resistor. As a result, pin 3 is high
which means that D2 is reverse
biased and the circuit is disabled.
Now consider what happens
when LDR1 detects an approaching
car's headlights. When this happens, the resistance of LDR 1 immediately drops to a low value
(several hundred ohms) and pin 1
THIS SIMPLE
FETYUGHT
goes high. Because both inputs to
IC1 b are now high, pin 3 switches
low and this sets off a chain reaction through the circuit.
Assuming S1 is closed, DZ is now
forward biased and the 10µ,F
capacitor discharges into pin 3.
This pulls the inputs to parallel inverter stages IClc and IC1d low.
Their outputs (pins 10 and 11) thus
switch high and drive Ql via 3.3k0
current limiting resistors. Ql in
turn switches on the relay to activate the brake lights.
The brake lights stay on while
ever light shines on LDR1. As soon
as the car passes, LDR1 's resistance goes high again and pin 3 of
IC1 b switches high. DZ is now
reverse biased and so the 10µ,F
capacitor charges via the 470kn
resistor towards the positive supply
rail.
After about five seconds, the
voltage on the capacitor will be
high enough to cause IC1c and IC1d
to switch low again and turn Ql off.
The brake lights now turn off and
the circuit is ready for the next approaching vehicle.
Automatic override
LDRZ, Dl and IC1a automatically
disable the circuit during daylight
hours or if the ignition is turned on.
During daylight, LDRZ's resistance
is low and pins 5 and 6 of IC1a are
pulled high. Thus, pin Z of IC1b is
held low and the circuit is disabled.
Similarly, when the ignition is
turned on, pins 5 & 6 of IC1a are
pulled high via Dl and a Z7k0
resistor. The circuit is then disabled as before.
Note that LDRZ must be aimed in
a different direction to LDR 1, so
PARTS LIST
1 plastic case, 83 x 54 x
30mm
1 PCB, code SC05-1-1 088-1 ,
60 x 44mm
1 piece of Veroboard, 62 x
48mm (optional - see text)
1 mini PCB relay, SPOT, 23 x
20 x 15mm
2 ORP12 LORs
1 SPST switch
Semiconductors
1 4093 quad Schmitt NANO
gate
1 BC337 NPN transistor
2 1 N4002 1 A diodes
2 1N4148, 1N914 diodes
1 15V 1W zener diode
Capacitors
1 100µ,F 16VW electrolytic
capacitor
1 1 Oµ,F 16VW electrolytic
capacitor
Resistors (0.25W, 5%)
1 X 470k0, 1 X 100k0, 1 X
47k0, 1 x 27k0, 2 x 3.3k0, 1 x
470
Miscellaneous
Hookup wire, solder, connectors
etc.
D3
1N4002
470k
D2
1N4148
100
+
16VWI_
.,.
ENABLE
B
EOC
.,.
VIEWED FROM
BELOW
AUTOMOTIVE NIGHT SAFETY LIGHT
Fig.1: the circuit uses a 4093 quad Schmitt NANO gate to provide the logic and to drive transistor Qt.
LDRl is the headlight sensor while LDR2 disables the circuit during daylight hours.
NOVEMBER 1988
65
-
0
00~00~
-1088~
Here is the full size artwork for
the printed circuit board.
Construction
This close-up view of the PCB shows how diode D5 is installed with a loop in
one end to give stress relief. Sleeve the leads of the LDRs with plastic tubing
to prevent shorts when the board is installed in the case.
The two LDRs are simply pushed into small holes drilled through the lid and
side of the case. Note how the top LDR sits below the surface of the lid so that
it cannot pick up light from an approaching car's headlights.
that it cannot "see" an approaching car's headlights. If this
were to occur, pin 2 of IClb would
be pulled low each time a car approached and the circuit would be
disabled, thus defeating the purpose of the circuit.
The enable switch (S1) allows the
circuit to be manually switched off
66
SILICON CHIP
when not required.
Power for the circuit is derived
from the car battery. Diode D3 plus
the 470 resistor and 100µ,F
capacitor provide supply line
decoupling. ZDl clamps any spikes
on the supply line. D4's job is to protect Ql from spikes when the relay
turns off.
If you want to save money, it's
quite easy to build the circuit up on
a small piece of Vero board measuring 62 x 45mm. Fig.3 shows the suggested parts layout. You can use an
oversize drill to make the necessary
cuts in the copper tracks.
Take care when working with
Veroboard, though it's incredibly easy to make a mistake
that's hard to find later on. If you're
not too confident we suggest that
you opt for the printed circuit board
version shown in Fig.2. The relevant PCB is coded 05-1-1088-1 and
measures 60 x 44mm.
Follow the parts layout diagram
carefully when building the board.
In particular, make sure that the
IC, transistor, diodes and electrolytic capacitors are all correctly
oriented. Zener diode D5 should be
installed with a loop in one lead to
give stress relief (see photo).
The two LDRs should be mounted
at full lead length so that they can
later be pushed through holes in the
case. Sleeve their leads with plastic
tubing to prevent shorts when the
PCB is later installed in the case.
Construction of the board can
now be completed by connecting
lengths of insulated hookup wire to
the external wiring points. These
leads should be made long enough
to reach their respective destinations from the rear parcel shelf.
Either version will fit into a small
plastic case measuring 83 x 54 x
a8
.mt~ 'l~[o -:-7.
~1~~\\~
LOR1
ENABLE
--rn&~-1
~-01DuF
---+12v
~ ffi - ' - G N O
(
S1
ENABLE
TO
BRAKE LIGHT
SWITCH
Fig.2: install the parts on the PCB as shown here. Be
sure to use the correct diode at each location.
Fig.3 (right): here is the suggested parts layout for the
Veroboard version. You can use an oversize drill to
make the cuts in the tracks.
: r.l~---~7-;_o_o_..........
-•: )•-~-~-~-~-~~
o o _ _. . o• o
3.3k
oo ooo o ooo
O o o o 10~F,--..+
3.3k
[
O o o o o o
00000-"-..Joooo-oo
•
•
oo~•
100
oooooocno
•
oo
ICl
04
RELAY 1
o f 100~F
4093
o O
o?a
0 0 0
01
e
I
000000
0 0 f__l&0 ~ ~ O 0 0 O 0 0
o ~ o - - o oYo o oo oo ooo
o-c:::o-----.oo-£ru---ooooo
::v~::r-7-o_,::~:
Be careful when working with Veroboard as it's very easy to make a mistake.
Be sure to install all the wire links and take care with component orientation.
Note that the LDR circuitry was modified after this photo was taken.
30mm. The board simply sits on the
base with the leads emerging from
a small hole drilled near by. It is
then held in place by a small piece
of foam rubber when the lid is
screwed down.
The most critical aspect of the
assembly is the orientation of the
LDRs. LDRl (the headlight sensor)
must be oriented so that it faces out
through the side of the case while
LDR2 is mounted on the lid (see
photo). You will have to drill and
ream out holes in the appropriate
locations to accept the LDRs. Make
0 0
00000-----00
the holes just big enough so that the
LDRs are a push fit.
If you make the holes too big, the
LDRs can be glued in position from
the rear using epoxy resin. Be
careful not to cover the faces of the
LDRs with epoxy resin, though.
Each LDR should be mounted so
that its face is flush with the surface of the case.
Installation
The best place to mount this
device is on the rear parcel shelf. It
GND
IGNITION
TO SWITCH
ON BRAKE
LIGHTS
should be mounted so that LDRl in
the side of the case looks out
through the rear window. The
daylight sensor should face upwards so that it will be unaffected
by an approaching car's headlights.
If reflected light falling onto the
daylight sensor does prove a problem, try mounting the sensor in a
tube further down in the case. This
would also shield the sensor from
street lights.
Power for the unit must be derived from the unswitched + 12V rail.
The most convenient place to make
this connection is at the bootlight
switch. Alternatively, you can run a
lead through to the fusebox.
The ignition lead can be connected to any point that is switched
to + 12V by the ignition switch (ie,
to the accessories rail). The relay
contacts are simply wired in
parallel with the brakelight switch.
It's quite easy to find the
brakelight switch. It's a pushbutton
switch that is actuated by the brake
pedal. Install the wiring in a professional manner and terminate all
leads in automotive clip connectors
(available in automotive accessory
shops).
Finally, the enable switch can be
installed in any convenient place on
the dashboard. An automotive-style
push on/push off switch is the best
type to use here.
Don't use a switch with an integral light bezel - it will only add
to the current drain from the
battery.
116
NOVEMBER 1988
67
|