Vous êtes sur la page 1sur 1

SMALL CIRCUITSCOLLECTION

Magnetic Proximity Switch


with Toggle 043
T.K. Hareendran
+12V
This proximity switch employs a reed switch as the sensor
device and the good old CD4017 decade counter for pulse
C2 C3
processing. When the circuit is first switched on, the 4017 is
S1 10µ 100n
reset by the short pulse generated by C2-R3. This results in 16V
D1
the Q0 output (pin 3) being pulled high and the LED coming D2 RE1
REED
on to indicate standby mode. SWITCH 1N418 16
When a permanent magnet is held in the vicinity of the red 9
11

switch, the switch closes, generating one clock pulse at pin 14 CTRDIV10/ 8 9 1N4148
R1 DEC 6
7

1k
of the 4017. This is indicated by Q1 (pin 2) going high and 5
6
relay Re1 being energized via transistor T1. 15
CT=0 5
1
10
If the magnet is removed from the reed contact and then IC1 4
7
4017 3
moved toward it again, IC1 is again clocked and the relay is de- 2
4 T1
R5
14 2
energized. In this way a toggle function is realized. Actually, Q2 & + 1 4k7
3
goes high (pin 4), which causes the counter to be reset via 13
0
12 R4 BC547
CT≥5
diode D1. Since the circuit draws only a few milliamps,

1k
R2 R3 8
almost any mains adapter with a (loaded) output voltage of C1
2k2

100k

D3
about 12 VDC is suitable for powering the proximity switch. In 22µ
16V
all cases, the relay coil current will be the determining factor.
(024035-1) 024035 - 11

Super-Fast Comparator 044


Generating digital square-wave signals at logic levels from 0V...+12V +3V/+5V
fast signals having frequencies up to 150 MHz (such as sinu- *
soidal signals from quartz-crystal oscillators) is not particu-
C1 C2
larly easy. The discrete circuits used for this purpose are rel-
atively complex and require fast HF transistors. 100n 100n

This problem can now be solved in a considerably simpler 10 9


manner using the fast Linear Technology LT1715 dual com- VCC VCC OUT
VIN A
parator (www.linear-tech.com/pdf/1715f.pdf). This IC has sep- 1 +INA VOUT A
+VCC OUT
arate supply pins for the input region (Vcc and Vee) as well as OUTA 8
2 –INA 0V
for the output region (Vcc,out). This makes it easy to match one VREF A

side to the applied signal voltage, while the supply voltage IC1
VIN B LT1715
Vcc,out directly determines the logic level of the output signal. 4 +INB VOUT B
+VCC OUT
Note that the maximum allowable difference between Vcc and OUTB 7
3 –INB 0V
Vee is 13 V. For instance, with negative input signals the input VREF B

region of the comparators can be operated with Vcc = 0 V and VEE GND
5 6
Vee = –12 V. The input voltage may range from Vee to (Vcc –
1.2 V). The digital rail-to-rail output is laid out symmetrically inside
C3
the IC to achieve equal rise and fall times. The reference voltage
sources shown in the figure symbolically represent the voltage 100n
* see text
dividers that determine the threshold levels of the two compara-
tors. The LT1715 is housed in a 10-pin MSOP package. 0V...–12V * 024089 - 11
(024089-1)

12/2002 Elektor Electronics 77

Vous aimerez peut-être aussi