Вы находитесь на странице: 1из 9

design

Edited by Bill Travis


ideas
Circuit compensates
optocoupler temperature coefficient
J Michael Zias, Acme Electric Corp, Cuba, NY
hen using an optocoupler in a

W
10k 6
1
linear application, you
Figure 1 5 8 12V
should consider its gain 4 10k
2 3
drift with temperature. Traditional sin- 100V
IC2
+
IC1 1
gle- and dual-transistor-output devices H11AV1 402 LM358
2 2
4
have a notable gain drift with tempera-
ture. In recent years, some temperature-
compensated optocouplers have ap-
peared. However, another option is to use 2200 pF
1
6
two optocouplers or a dual optocoupler 10k
5
with appropriate feedback to make the 2
4 VOUT
drift of one device cancel the drift of the IC3
402
other. The circuit in Figure 1 accom- 402 H11AV1
plishes that task by using a differential
amplifier with the drift treated as a com-
mon-mode signal. In operation, it is in- By using two optocouplers instead of one, you can cancel temperature-dependent gain drift.
teresting to apply a dc signal to the input
and use digital voltmeters to simultane-
A a 1
ously monitor the output of each opto- INPUT GAIN = a = • ,
coupler and the differential amplifier.
a
A
OUTPUT 1 + Ab b 1+
1
Apply a heat gun and observe the indi- Ab
vidual outputs change rapidly where a/b is the ideal closed-loop gain
while the amplifier output moves Figure 2 and is multiplied by the loop-gain error
b
term. Given that the error term is small
(from the large gain A of the op amp), the
Circuit compensates optocoupler Control-system feedback theory explains the
gain of the system is seen as the ratio of
temperature coefficient ................................93 operation of the circuit in Figure 1.
the gains (current-transfer ratios) of the
Soft-start controller is much more slowly. This result occurs optocouplers. You can also easily find this
gentle on loads ..............................................94 even with optocouplers from different same ratio by setting the voltages to the
Method offers fail-safe manufacturers. With optocouplers of the op-amp inputs equal. The input and out-
variable-reluctance sensors ........................96 same type, you can observe good drift put signals for this analysis are currents,
cancellation. Parts from the same manu- which precision resistors translate to volt-
Circuit efficiently switches
facturer and dual devices give outstand- ages. The optocouplers in this design are
bipolar LED......................................................98
ing results. You can use individual opto- not particularly fast devices, so the phase
Circuit forms adjustable couplers instead of dual devices to meet delays could cause oscillation without a
bipolar clamp ..............................................100 safety-agency spacing requirements. feedback capacitor. You choose its value
Analog switch expands I2C interface ......102 To examine the method in control-sys- empirically by applying a pulse at the in-
tem terms, consider Figure 2, which put and observing the rise time and over-
Circuit safely applies power to ICs ..........104 shows one amplifier, a, in the forward shoot at the output.
Simple circuit forms path and another amplifier, b, in the feed-
peak/clipping indicator ..............................104 back path. Also consider the following Is this the best Design Idea in this
equation: issue? Vote at www.ednmag.com.
www.ednmag.com November 22, 2001 | edn 93
design
ideas

Soft-start controller is gentle on loads


Douglas Sudjian, Resonext Communications Inc, San Jose, CA
he control circuit in Figure 1 IC1’s output changes state, driving the age across Q2 and Q3 changes according

T senses a given load and automatical-


ly soft-starts the load by synchro-
nously adjusting the power to that load.
signal diode, D5, into and out of conduc-
tion. R6, R7, and C3 create a delay such
that the voltage at Q6’s gate decays slow-
to the time constant of R8 and C4. The ad-
ditional current that Q3 sources to C2 in-
creases the voltage rate of change at pins
You can also manually adjust the power ly to allow for the load’s switch-closure 6 and 7 of IC2. IC2, a TLC555CP, is a low-
delivered to the load by controlling the noise or missed ac cycles. Once Q6 turns power timer configured as a monostable
phase angle of the line voltage across the off, the voltage at the base of Q2 rises to a multivibrator.
load. The phase-angle adjustment for higher reference level, which voltage di- In the monostable mode, the timer is-
every ac half cycle covers 0 to 1808. When vider R3 and R4 sets. The bias current of sues a positive pulse output every time a
the isolation transformer, T1, senses the transistor pair Q2 and Q3 slowly passes negative-going trigger pulse arrives at Pin
load current in the ac ground return, through Q3 as the differential input volt- 2 of IC2. The output pulse width corre-

LINE

115V AC 15A 12V

R3
R2
20k 68k
50k 10k
1%
20k 5.1k 20k
22k 22k 1% 0.1 mF
Q1 Q2 Q3
Figure 1 1W 1W
2N3096 2N3096
2N3096 Q4
51k 53.6k
1% 8 4 2N3094
D1 0.047
1N4002 7 mF
D3 3
R8 10k
1N4001 R4 IC2
121k
54.9k 6 TLC555CP 5
1% R9
1%
D4 75k
45.3k
D2 1N5242 + C2
1% 2 1
AC-LINE 12.1V
+
C1 O.1 mF
INPUT 100 mF 16V 0.01 mF
20V
R1
2Ok

(NOT LINE GND) 12V

R7
100k 0.1 mF R6
8 51k D5
100k
5 1N4148 C4
NEUTRAL T1 1k +
3
2
6 22 mF
IC1 7 16V
220 pF LM311 Q6
560k 2 24k 2N7000
+ 1N4148
1
2:50
4
C3 +
10 mF
16V
1k 1M
100k

This soft-start circuit protects the load from large inrush currents.

94 edn | November 22, 2001 www.ednmag.com


sponds to the time it takes the voltage on
capacitor C2 to ramp from 0V to 2/3 VCC.
With a constant current essential-
ly charging C2, the charging is lin- Figure 2 AC 0
LINE
ear, and the output at IC2’s Pin 3 is pro- POWER TO LOAD
portional to the current set by R2. The
full-wave bridge, with D3 and D4 and fil- IC2
ter capacitor C1, forms a dc power sup- PIN 2
12
ply for the timer/controller. The com- IC2
0
PIN 3
mon cathode node for D1 and D2 pulls to
ground via R1 every time the line volt-
age approaches 0V. Q1 turns on and sup- 12
VOLTAGE
plies a negative-going trigger to Pin 2 of ACROSS R9
8

12
IC5 11
MAC223-8FP VOLTAGE AT Q5
MOC3052
340 COLLECTOR

1 4 0.01 mF
0
R5 MOV
30k
2 6
The circuit in Figure 1 provides soft-starting by adjusting the phase angle of the power applied to
Q5
47 the load.
2N3094
IC2. This pulse uses its negative edge to is floating; you must not tie these
provide a minimum pulse width of 200 grounds together. The design in Figure
msec to the base of Q4. The feedback pair 1 has successfully controlled fans and
150 Q4 and Q5 provides signal inversion and high-amperage universal motors (100
limits the current drawn from the 12V mA to 11A). One example is a router for
supply rail through IC3. When sufficient woodworking. By soft-starting these
LED current develops, the MOC3052 high-torque motors, the reaction torque
triac driver latches on and generates a (to the input current) that the user feels
gate current in the power triac, trigger- disappears. Moreover, other soft-start de-
ing it into the conducting state. Once the signs need two switches. The design in
power triac latches on, the triac driver Figure 1 needs only one on-off switch
LOAD enters its off state, even if the LED cur- (located at the load). Thus, less danger
INPUT rent still exists. exists for incurring an accidental starting
The power triac’s gate voltage falls be- condition. Figure 2 shows some of the
low the optocoupler’s threshold and waveforms associated with the circuit in
cannot hold the optocoupler. The longer Figure 1. T1 is a signal transformer that
the phase delay from the zero-crossing you can modify by wrapping two turns of
trigger, the smaller the conduction an- 14-gauge wire around the bobbin to act
gle and power delivered to the load. R5 as the primary winding.
facilitates on-off switching of the triac-
driver LED by providing a path for leak-
age currents. Potentiometer R2 provides
variable power to the load (to provide
motor-speed control, for example). R2
varies the dc-source current that charges
C2 every ac half-cycle. Note that the sig- Is this the best Design Idea in this
nal ground with respect to earth ground issue? Vote at www.ednmag.com.
www.ednmag.com November 22, 2001 | edn 95
design
ideas
Method offers fail-safe
variable-reluctance sensors
Phil Levya, Maxim Integrated Products, Sunnyvale, CA
ariable-reluctance sensors are the cable or sensor. The circuit in Figure the steel bar supplies the necessary mag-

V preferred for industrial and automo- 1 is a fail-safe variable-reluctance sensor netic flux. The rotating target causes a
tive environments, because they sus- for low- to medium-speed operation.
tain mechanical vibration and operation
change in reluctance and, hence, a change
The circuit comprises L1; R1; and a in the amount of magnetic flux conduct-
to 3008C. In most applications, they sense quad RS-422/RS-485 receiver, IC1. It pro- ed. This change produces a correspon-
a steel target that is part of a rotating as- vides the complementary, independent ding change in the current induced in L1.
sembly. Because the unprocessed signal output signals VOUT and VOUT. Table 1 lists R1 converts the L1 current to a time-vary-
amplitude is proportional to target speed, the resulting fail-safe modes. The supply ing voltage. This voltage goes to the in-
a sensor whose signal-processing circuit- voltage can be 10V, 12V, or the control puts of IC1, whose input-voltage range of
ry is designed for high speed ceases to system’s 24V-dc source. Coil L1 consists 625V, input threshold of 60.2V, and
function at some lower rate of rotation. of 2600 turns of #32 magnet wire wound typical input hysteresis of 45 mV enable
Hall-effect sensors are preferable for on a 0.8-in. steel bar of 0.2-in. diameter, the VR sensor to operate at low speeds.
speeds of several pulses per second, but with 0.125 in. protruding from the sen- The separate, complementary outputs
they require the attachment of a magnet sor face. A magnet attached to the back of come from separate, ESD-protected in-
to the rotating assem-
bly. They’re thus prone TABLE 1—FAIL-SAFE MODES (TWO CYCLES OF VOUT OR VOUT)
to failure when the (VOUT, VOUT) Mode
magnet is broken or (1,0) then (0,1) or (0,1) then (1,0) Normal mode, both pulses valid
damaged. Neither vari- (1,0) then (0,0) or (0,0) then (1,0) Failure, valid VOUT pulse, VOUT failure, cable failure, or partial sensor failure*
able-reluctance nor (0,1) then (0,0) or (0,0) then (0,1) Failure, valid VOUT pulse, VOUT failure, cable failure, or partial sensor failure*
Hall-effect sensors of- Always (1,1) Short-circuited cables or failure in IC1
fers fail-safe detection Always (0,0) Severed cables, failure in IC1 or failure in Q1 and Q2
of the processed signal
*System remains functional in failure modes.
in the event of failure in

10 TO 24V

Figure 1 STEEL
5V 1
ROTATING IN OUT 3 5V
TARGET IC2
4 MAX1615
5V R2
G 5
SHDN + 1k
12 16 4 C2
G VCC 5/3
C1 4.7 mF
2 0.1 mF GND
A1
2
IC1 VOUT
MAX3095
Q1
1
L1 R1 B1 Y1 3
47k
7
B2
10V
6
A2
8 R3
GND Y2 5 1k
VOUT
10
A3 Y3 11
9 B3 Q2 GND
14 A4 Y4 13
BAR 15
B4
MAGNET

NOTE: Q1, Q24FAIRCHILD FDV303N.

This circuit provides a fail-safe, low- to medium-speed variable-reluctance sensor.

96 edn | November 22, 2001 www.ednmag.com


design
ideas
puts. IC1’s outputs Y1 and Y2 can source IC1. Figure 2 illustrates low- (Figure 2a) For 3V applications, replace IC1 with a
as much as 10 mA. They alternately and medium-speed (Figure 2b) opera- MAX3096 IC.
switch the logic-level, n-channel MOS- tion for the sensor. For 5V-supply appli-
FETs Q1 and Q2, which in turn provide cations in which you can locate a micro-
VOUT and VOUT. A low-dropout regulator, controller close to the sensor, you need Is this the best Design Idea in this
IC2, provides the 5V power source for only L1, R1, and IC1 for a direct interface. issue? Vote at www.ednmag.com.

Figure 2

CHANNEL 1 CHANNEL 1
FREQUENCY FREQUENCY
4.958 Hz 752.4 Hz

CHANNEL 3 CHANNEL 3
PEAK TO PEAK PEAK TO PEAK
270 mV 5.70V

(a) (b)

These waveforms represent operation at 4.9 Hz at 2.4 revolutions/sec (a) and 752.4 Hz at 376.2 revolutions/sec (b). Channel 1 is VOUT, Channel 2 is VOUT,
and Channel 3 is the voltage across R1.

Circuit efficiently switches bipolar LED


Spehro Pefhany, Trexon Inc, Toronto, ON, Canada
he circuit in Figure 1 represents 5V

T one method to switch a bipo-


lar, two-color LED using an
SPDT mechanical switch or relay. This
Figure 1
12V

RED GREEN
Figure 2
RS
130

SPDT
circuit wastes power and does not work SPDT
properly if the power-supply voltage is GREEN RED
not substantially more than the sum of D1
the LEDs’ forward voltages. The circuit is, D2
D2
therefore, marginal, to the point of be-
ing unusable, with a 5V supply and a red RA RB
D1
or green LED, which typically has a total
forward voltage of 4V. You can use a cir-
R1 R2
cuit resembling a flip-flop (Figure 2) that This switching circuit wastes power and does
doesn’t suffer the disadvantages of the not work with low supply voltages. 750 1.8k
circuit in Figure 1. It adds only one
VCE(SAT) voltage to the VF of each LED, so costs less than a dime for the parts, which
plenty of headroom exists with a 5V sup- include three resistors and two inexpen- In this “flip-flop” switch, the only losses come
ply and a series resistor to control the sive, general-purpose npn transistors, from the VCE(SAT) and the base currents of the
LEDs’ current. The circuit in Figure 2 such as the 2N4401 or the C8050. In this transistors.
98 edn | November 22, 2001 www.ednmag.com
design
ideas
example, D1 is red (VF151.6V), and D2 is base drive is a function of the VF of the power supply. The circuit requires only
green (VF252.4V). Based on D2, the driven LED, so you can calculate the base two connections, rendering it ideal for
green LED, you can calculate that resistors, using a forced beta of 20, as fol- front-panel use. Because the 130V resis-
R S5(5V22.4V20.1V)/0.02A5125V lows: tor is in series with the power supply, any
(use 130V for 19 mA). R1520(VF120.7V)/ILED15720V part of the circuit beyond RS can short
As a result, using a single resistor, D1 (use 750V). to ground without causing damage.
has a current of 25 mA. If it is desirable R2520(VF220.7V)/ILED251.8 kV.
to have equal or arbitrarily different cur- The base drive reduces the actual LED
rents, you can insert an additional resis- current by 5%, which is visually negligi-
tor in one leg of the switch to increase the ble. As a bonus, the circuit does not in- Is this the best Design Idea in this
effective RS for that switch position. The troduce any switching glitches into the issue? Vote at www.ednmag.com.

Circuit forms adjustable bipolar clamp


Pautasso Luciano, Nichelino, Italy
he easy way to clamp a signal to a

T given value is to use two zen-


er diodes, connected back-to-
back. This method has several disadvan-
F i g u r e 1

VIN
2
1

3 +
8

IC1A
TL082
15V

1
680
6
1

5 +
IC1B
TL082
7
VOUT

tages. The accuracy of the clamping


4 15V 390k
depends on the tolerance of the zener 115V 1%
diodes, and the clamping is not ad- 2 1 8
D1
IC2A
justable, except by changing diodes. The TL082
1
3 +
circuit in Figure 1 is a bipolar clamper 4
1N4148

with a range of 61 to 610V, with the 390k 115V


1%
clamping level a function of the input
VCLAMP. IC1A, IC1B, and IC3A are unity-gain
15V 6
buffers. IC2A is a positive clamper, and 8 1
IC2B
D2
2 7
IC2B is a negative clamper. Figure 2 shows 1 TL082
IC3A 1 5 + 1N4148
the transfer function, with VCLAMP set at 3
TL082
VCLAMP +
25V. You can change VCLAMP over the
range of 21 to 210V and thereby change 115V

the clamping level. If VIN is within


2VCLAMP to 1VCLAMP, then VOUT 5VIN. If This circuit provides adjustable clamping over the range of 61 to 610V.
VIN exceeds VCLAMP, then VOUT5VCLAMP.
To explain how the circuit works, assume open switch. The feedback loop around D, D2 conducts, and D1 is an open switch.
four cases, with four values of VIN. Basi- IC2A regulates the anode of D1 to 5V and
cally, the circuit works in two modes: the the output of IC2A to 4.4V. In cases B and Is this the best Design Idea in this
linear mode, in which diodes D1 and D2 C, both diodes are open switches. In Case issue? Vote at www.ednmag.com.
are open switches, and the clamped
mode, in which the diodes are closed
OUTPUT
switches. Table 1 gives results for the 10
Figure 2
four cases. In Case A, the input is 7V, 8
VCLAMP is 25V, D1 conducts, and D2 is an 6 OUTPUT
4 CLAMPED

TABLE 1—RESULTS FOR CLAMPED INPUT 0


2

AND LINEAR MODES 210 25 22 0 5 10

OUTPUT 24
Case VIN (V) VOUT (V) Mode
CLAMPED 26
A 7 5 Clamped 28
B 3 3 Linear 210
C 13 13 Linear
D 17 15 Clamped With VCLAMP set at 25V, the output clamps firmly at 65V.

100 edn | November 22, 2001 www.ednmag.com


design
ideas
Analog switch expands I2C interface
Luca Vassalli, Maxim Integrated Products, Sunnyvale, CA
erhaps the most effective way to devices could have the same address in mand). You can switch the three auxiliary

P gain board space and increase com-


ponent density is to minimize
wiring on the board. A widely used ar-
some application. In Figure 1, analog
switch IC1, which is I2C-controlled, con-
nects auxiliary branches that contain de-
buses on the fly. Power-up sets the
switches to soft mode, an off state with
12-msec switching time. Then, a com-
chitecture that allows such miniaturiza- vices with the same address to the main mand byte of 0b11000000 sets the
tion is the I2C bus. Comprising only a I2C bus. IC2 and IC3, for example, have switches to hard mode (400-nsec switch-
bidirectional data line, SDA, and a clock the same address but are located on dif- ing time). Subsequent commands select
line, SCL, this bus requires no chip selects ferent auxiliary buses. the desired auxiliary bus. Command
or other additional connections. Micro- The arrangement in Figure 1 prevents 0b1000011, for example, selects auxiliary
controllers from Philips, Microchip, and the master from addressing multiple bus 1. The main I2C bus includes neces-
other manufacturers include dedicated slaves at the same time. If that situation sary pullup resistors, and the auxiliary
I2C interfaces, but you can also imple- occurs, the data becomes corrupted dur- buses include weaker pullups that ensure
ment the interface in software. To com- ing a master-read protocol, and all slaves a high state when you deselect the bus.
plete this task, you associate a 7-bit ad- may not receive data during a master- The circuit in Figure 1 allows you to add
dress with each master or slave trans- write protocol. The analog switch accepts three times more devices on the bus. For
ceiver and factory- or pin-program the bidirectional signals as required for the a wider selection, you can replace the
device with two to four address options. SDA line. The switch has low on-state re- MAX4562 with a MAX4572, whose 14
An increasing number of slaves now in- sistance, adds almost no leakage on the switches allow you add as many as seven
clude the I2C interface, but some of their lines, and provides four selectable slave auxiliary buses.
128 address locations are reserved for addresses. You simultaneously control
special functions, so not all locations are the switches by using the simple Send- Is this the best Design Idea in this
available to a designer. Yet, two or more Byte protocol (address plus 8-bit com- issue? Vote at www.ednmag.com.

VDD
IC2
ADDRESS: 0250 ADDRESS: 0251 ADDRESS: 0252
Figure 1
SDA SCL SDA SCL SDA SCL
2250k
AUXILIARY I2C
BUS 1
VDD
IC1 IC3
MAX4562 ADDRESS: 0250 ADDRESS: 0251 ADDRESS: 0252
22
SDA SCL SDA SCL SDA SCL
COM3 NO3 50k

NO1A AUXILIARY I2C


COM1
BUS 2
NO1B

VDD
ADDRESS: 0250 ADDRESS: 0251 ADDRESS: 0252
COM4 NO4 SDA SCL SDA SCL SDA SCL

NO2A 2250k
COM2 AUXILIARY I2C
NO2B
BUS 3

ADDRESS: 0298
SDA SCL A1 A0
MICROCONTROLLER VDD
ADDRESS: 0291 ADDRESS: 0292 ADDRESS: 0293
WITH I2C INTERFACE
SDA SCL SDA SCL SDA SCL
225k

SDA MAIN
SCL I2C BUS

This I2C-controlled analog switch expands by three the number of devices connected to the bus.

102 edn | November 22, 2001 www.ednmag.com


design
ideas
Circuit safely applies power to ICs
Clayton Grantham, National Semiconductor, Tucson, AZ
V SAFE
upervisory circuits normally

S
VIN (<30V) (3.1 TO 5.5V)
monitor a microprocessor’s
supply voltage, asserting reset Figure 1 R3 R4
4k 1M Q2
to the IC during power-up, power-down, 5 NDS8947
VCC
and brownout. In this way, the circuit en- R1
sures that the supply voltage is stable be- 1M IC1
LM3722
fore the microprocessor boots, thus pre- Q1 4
MR 3.08V
2SD601
venting code-execution errors. Many RESET 3 Q3
analog and digital ICs also need a well- GND R5 2SD601
behaved start-up of their supply to avoid R2 1M
120k 1, 2
latch-up and logic-state errors. In addi-
tion to low-supply conditions, low-volt-
age CMOS circuits need overvoltage pro-
tection from any supply runaway. The This LM3722 configuration connects only safe voltages to sensitive ICs.
additional components in Figure 1 ex-
tend IC1’s supervisory functions to con- Adjustment of R2 for an exact overvolt-
nect VIN to VSAFE only when VIN is within TABLE 1—VSAFE HYSTERESIS age value nullifies VBE1’s accuracy error.
set limits. This function protects circuit- OVER TEMPERATURE Table 1 shows typical setpoints over tem-
ry at the VSAFE terminal from power-up VSAFE 088C 2588C 5088C perature. If you need further error re-
transients and overvoltage damage. As a On (V) VIN increasing 3.2 3.2 3.2 duction, you could exchange Q2 for a
supervisory circuit, IC1 asserts a reset sig- Off (V) VIN increasing 6.1 5.5 4.9 comparator and voltage reference. For
nal that is delayed by more than 100 msec On (V) VIN decreasing 6 5.4 4.8 VIN within the set limits, 3.1 to 5.5V, the
whenever VIN decreases below the pre- On (V) VIN decreasing 3.1 3.1 3.1 circuit draws only 16 mA. A total of 5 mA
cisely trimmed reset threshold. You can flows into both the R1 and R4 nodes, and
custom-select the reset threshold from is Q2’s pullup resistor; R5 limits Q3’s base 6 mA flows into R3’s node. R3 protects IC1
2.32 to 4.63V. You can also use current. Using Q1 as an inexpensive 0.6V by providing current limiting of less than
a manual input, MR, to assert the reset switch, resistor dividers R1 and R2 set the 6 mA) for high voltages at VIN. The typi-
signal. overvoltage threshold according to the cal IC1 current of 6 mA through R3 in-
This application uses IC1’s delayed re- equation VOV 5VBE1(R11R2)/R2. An in- creases the undervoltage setpoint by 24
set signal to control switch Q2. The delay ternal 22-kV resistor at IC1’s MR input mV.
ensures that VIN is stable before applica- provides Q2’s pullup. Typical VBE1 accu-
tion to VSAFE. Q3 inverts and isolates IC1’s racy and temperature-coefficient errors Is this the best Design Idea in this
reset signal to control the gate of Q2. R4 are 610% and 22 mV/8C, respectively. issue? Vote at www.ednmag.com.

Simple circuit forms peak/clipping indicator


Steven Hageman, Agilent Technologies, Santa Rosa, CA
he simple peak detector in Figure simultaneously apply to both left and positive peaks to pass while disconnect-

T 1 is the result of a need for a single-


5V-supply, level/clipping indicator
for a multimedia-PC sound system. The
right stereo inputs. The output is suitable
for driving a bar-graph display or for ana-
log-to-digital conversion and display
ing the op amp from the hold capacitor,
C1, on negative peaks. Also, because the
diodes have an OR connection, the cir-
design is unique in that it detects both with a microprocessor. The circuit oper- cuit detects only the larger peak from the
stereo channels on a single peak-hold ca- ates as a dual positive-peak-detector cir- left or right stereo input. The values
pacitor. All the adjustments in the circuit cuit. The dual diode, D1, serves to allow shown in Figure 1 are for standard 200-

104 edn | November 22, 2001 www.ednmag.com


design
ideas
mV-rms line-input levels, such as those
5V
you’d find on a PC’s sound-card
Figure 1 0.1 mF
line input. Your personal prefer-
ence or exact needs might require other
performance parameters, and you can LEFT 0.1 mF 8
3 +
AUDIO
easily adjust these values. IC1A 1
R4 LMC662CM
The gain for both stereo channels is 100k 2 _ D1
equal to 11R2/R3. The circuit as shown 4
BAV70
has a gain of 5. For a full-scale 200-mV-
rms input, this gain produces an output
R3 R2 R1
of approximately 1.4V. This value is con- 49.9k 200k 1k
venient for this application, which uses PEAK
OUTPUT
three green LEDs, two yellow LEDs, and `
one red LED to show the relative peak C1
RIGHT 5 1 mF
+
levels of the stereo channels. Nominal, AUDIO
R5
IC 1B
7
0.1 mF LMC662CM
full-scale line input of 200 mV rms lights 100k
6 _
two of the green LEDs. “Attack time” is
the time it takes the peak detector to re-
spond to 69% of an input-signal peak, or
one time constant. The time constant This simple circuit provides peak detection and clipping indication for a PC’s stereo channels.
R1C1 sets the attack time. In this circuit,
the attack time is 1 msec. The decay time compared with R21R3). The decay time easily obtain them by following the
is the time it takes the peak to decay to in this case is 250 msec, because that val- design equations above.
31% of its original value, or one time ue produces a pleasing-looking bar-
constant. This time equals (R21R3)C1 graph display. Some applications may Is this the best Design Idea in this
(assuming that R1 is negligibly small need different response rates; you can issue? Vote at www.ednmag.com.

106 edn | November 22, 2001 www.ednmag.com

Вам также может понравиться