Sie sind auf Seite 1von 5

designideas

Edited By Martin Rowe


and Fran Granville

readerS SOLVE DESIGN PROBLEMS

Circuit achieves constant current DIs Inside


over wide range of terminal voltages 44 Limit inrush current
Donald Boughton, Jr, International Rectifier, Orlando, FL in low- to medium-power


applications
Analog-circuit design often re- holding current in fluorescent or solid-
quires a constant-current sink. state lighting. Other examples include a 46 Electronically tinge
An example would be for a TRIAC (tri- precise current sink at the end of a long white-light source
ode-for-alternating current) dimmer line, such as a cable or an ADSL (asym- 48 Transistor boosts
metric digital-subscriber-line) modem, regulator current
VIN which produces a “signature” current
value that alerts the device at the source 48 Detect live ac-mains lines
R2
end, such as an exchange office or a
50k ▶To see all of EDN’s Design
cable center, that the remote equipment
Ideas, visit www.edn.com/
V1=0V R3 is attached. The trick is to make a circuit
designideas.
V2=200V 50k that gives a constant current over a va-
Q1
TD=1 µSEC
∙ MJD50 riety of terminal voltages.
TR=4 mSEC V1 A common circuit for achieving this
TF=1 µSEC ∙
PW=100 µSEC
task uses a sense resistor, a transistor, and smaller biasing resistors, and the circuit
PER=4.1 mSEC a power device. Figure 1 shows the cir- comes into regulation at a much lower
Q2
2N3904
cuit using a power transistor, Q1. The cir- terminal voltage.
R1
cuit provides an approximate constant Unfortunately, the current-sense resis-
13 current at high voltages, but it doesn’t tor, R1, in figures 1 and 2 doesn’t sense
enter regulation until it reaches nearly the bias current. As the terminal volt-
60V due to the base current the tran- age increases, the terminal current also
sistor requires. Figure 2 shows the cir- increases because of the increased bias
Figure 1 Resistor R1 sets a constant
cuit using a MOSFET, Q2, for the power current. A simple way to improve the
current through Q1. device. With a MOSFET, you can use regulation of both circuits is to add re-

VIN VIN

R2 R2
50k 50k

V1=0V R3 V1=0V R3
V2=200V 50k V2=200V 50k
Q1 Q1
TD=1 µSEC TD=1 µSEC
∙ IRF640NS ∙ IRF640NS
TR=4 mSEC V1 TR=4 mSEC V1 R4
TF=1 µSEC ∙ TF=1 µSEC ∙ 10k Q3
PW=100 µSEC PW=100 µSEC 2N3906
PER=4.1 mSEC PER=4.1 mSEC
Q2 Q2
2N3904 Q2N3904
R1 R1
13 13

Figure 2 This circuit substitutes a MOSFET for Q1 in Figure 1 Figure 3 The addition of Q3 and R4 improves current
and uses smaller resistors. regulation.

November 4, 2010 | EDN 43


designideas
sistor R4 and PNP transistor Q3 (Figure
VIN 3). R4 and Q3 form a constant-current
source to the collector of Q2. The circuit
R2
50k
diverts any excess bias current through
the collector of Q3 to sense resistor R1.
V1=0V R3 Thus, as the terminal voltage increases,
V2=200V 50k the bias current remains relatively con-
Q1
TD=1 µSEC
+ IRF640NS stant, and the current regulation appears
TR=4 mSEC V1 R4 much flatter.
TF=1 µSEC − 10k Q3 The negative temperature coeffi-
PW=100 µSEC 2N3906
PER=4.1 mSEC cient of the base-to-emitter junction
Q2 of transistor Q2 causes another prob-
2N3904
lem with this kind of circuit. The tem-
D1
BZX84C6V2/ZTX
R1 perature coefficient is approximately
146
−1.6 mV/°C, which causes the current
value to vary widely with temperature.

A 100-mv change
Figure 4 Adding a zener diode improves current regulation over temperature.
with temperature
does not seriously
affect the regulat-
ed current.

One way to approach this problem is


to add a 6.2V zener diode, D1, in series
with the emitter of Q2, which increases
the sense voltage (Figure 4). A 6.2V
diode has a positive temperature coef-
ficient, which counteracts the negative
temperature coefficient of the transis-
tor. Furthermore, the total sense volt-
age is much larger, so 100 mV or so of
voltage change with temperature does
not seriously affect the regulated cur-
rent. Figure 5 shows a PSpice simula-
Figure 5 A constant current in Q1 has a steep rise relative to VIN.
tion of the circuit that uses a MOSFET
for Q1.EDN

rectifier-diode selection must account


Limit inrush current in low- for this nonrepetitive spike. An initial

to medium-power applications spike also affects the lifetime of the bulk


capacitor. The circuit in Figure 1 lets
JB Castro-Miguens, Cesinel, Madrid, Spain you avoid the large initial spike.
C Castro-Miguens, University of Vigo, Vigo, Spain At turn-on, if the instantaneous recti-


fied ac-line voltage is greater than about
When switched-mode power sup- cuits the power supply’s diode bridge. 14V, MOSFET Q1 is on, ensuring that
plies, including those for note- With a large bulk capacitor, the cur- IGBT (insulated-gate bipolar transistor)
book computers, turn on, the bulk ca- rent spike can trigger the mains breaker Q2 is off. In this situation, no current flows
pacitor of the uncontrolled rectifier is or even destroy rectifier diodes. Capaci- through charging the bulk capacitor.
completely discharged. This can result tor and line ESRs (equivalent series re- Whenever the rectified ac-line volt-
in a large charging current for a high in- sistances) and inductances help to re- age is lower than the voltage across the
stantaneous line voltage because the dis- duce the initial spike. Even so, current bulk capacitor plus approximately 14V
charged capacitor temporarily short-cir- peak can reach tens of amperes. The (V1=VIN−VOUT≤14V), Q1 is off, and Q2

44 EDN | November 4, 2010


designideas
and Q2 is on, making charging of the ca-
VIN
pacitor possible.
R1 + The current-limiting circuit lets you
D1 D2 R3
770k C RLOAD VOUT implement straightforward overvoltage
330k
1% −
protection. When the rectified output
voltage is higher than 380V, the refer-
Q2
+ ence-to-anode voltage of IC1 is higher
V1 than its internal reference of 2.495V,
VAC IGBT −
R4 making the anode-to-cathode voltage
33k
VREF IC1 drop to approximately 2V. In this situ-
TL431 1%
0.5W Q1 ation, the cathode sinks the current
D5 R5
BS170
D6
across R3, turning off Q2.
R2
D3 D4 5.6k 8.2V 6.8k 15V When the rectified line voltage is
1%
1% 0.5W
0.5W
0.5W lower than 380V, the cathode current of
the TL431 is approximately 0A. Thus,
Q2 turns on through R3, connecting bulk
Figure 1 You can use this circuit to limit inrush current and clamp the output voltage capacitor C and RLOAD to the full-wave
to values lower than 380V. rectifier if V1=VIN−VOUT≤14V.
All the components have a small power
turns on through R3, connecting the ca- In the steady state, whenever the rec- dissipation. The GP10NC60KD transis-
pacitor and RLOAD to the rectifier. Q2 re- tified input ac voltage matches the volt- tor, with an input of 230V rms and a load
mains on thereafter, making Q1 useless. age across the bulk capacitor, Q1 is off as high as 500W, is suitable for Q2.EDN

Electronically tinge white-light source hue of the output light. To get turquoise
or bluish-green-tinted white light, you
Marián Štofka, Slovak University of Technology, Bratislava, Slovakia simply ground the PD2 pin for short peri-


ods. The relative content of the red com-
White-light LEDs are becoming its wiper pin is one-third scale for IC3, set ponent then decreases below one-third of
commonplace in everyday life. A by the resistor RSH=RA1B1/2, where RA1B1 full-scale. If you ground the PU1, PD1,
classic white LED is an InGaN (indium- is the resistance between the ends of the PU2, or PD2 pins for short periods, you
gallium-nitride) LED, emitting spectrally potentiometer. Voltage follower IC8A en- can arbitrarily set hues of the light. The
“pure” blue light. Photoluminescence sures that the voltage at potentiometer color resolution comes from adding or re-
spreads the spectrum of these LEDs and IC3 remains a constant reference voltage moving current in approximately 3% steps
converts it into a light resembling day- regardless of the position of wiper P1. Volt- while removing or adding an equal num-
light. This conversion takes place in a age follower IC8A is necessary because the ber of approximately 3% steps of the re-
layer of yellow ZnSe (zinc selenide), resistance between the A1 and B1 termi- maining basic color components. A 100%
which covers the InGaN chip. Due to nals of IC3 varies from 10 kΩ for wiper step equals the total light intensity, regard-
production tolerances in the thickness of P1, when grounded, to 3.33 kΩ for the less of color. This intensity is constant be-
the ZnSe layer, these white LEDs are A1 position of P1. In this way, the drivers cause the sum of currents flowing through
available in yellowish warm-white, neu- for the red, green, and blue LEDs gener- the red, green, and blue LEDs is constant
tral, and slightly bluish cool-white grades. ate the same value of current of VREF/3RF, and has a value of VREF/RF. The resistive
To derive another hue from a white-light where VREF is the reference voltage. Thus, DACs have wiper-position margins.
source, you can use the LED driver circuit you get white light at power-on. The zero-scale relative margin is typi-
in Figure 1. If you require, for example, a pale-pink cally 1% of full-scale. The upper-position
The light source, IC1, is an Avago hue, you ground the PD1 pin for a short relative margin, or margin of the upper
Technologies (www.avagotech.com) period. Wiper P1 thus moves down by value of resistance between the B and
ASMT-MT00 RGB (red/green/blue) one step, decreasing the content of green the wiper terminals, is dV=2.4% of full-
LED. The driver contains two resis- light in the resulting light while increas- scale. Resistor RSH artificially increases
tive DACs, IC3 and IC5, which func- ing the contents from the red and blue the upper margin of the VOUTG voltage.
tion as potentiometers (Reference LEDs. The sum of the IR, IG, and IB cur- The following equation yields the maxi-
1). The DAC’s preset pins, PRE1 and rents remains constant, regardless of the mum settable voltage for VOUTG:
PRE2, are grounded. Both resistive positions of wipers P1 and P2. The lumi-
VOUTGMAX≃ 1 × VREF
DACs are therefore set to midscale after nous intensity of the output light holds
power-on. constant. Any further short-term ground- 1+3𝛅𝛅V
The true midscale for the IC3 DAC at ing of the PD1 pin leads to a deeper violet ≃(1−3𝛅𝛅V)×VREF.

46 EDN | November 4, 2010


By evaluating the equation, you de- results in highly discernible hues. from midscale toward full-scale, the
termine you can set 92.8% green and Paralleling the RSH between the B1 step change rises and triples to a value
subdivide the remaining 7.2% be- and P 1 terminals of resistive DAC of 3/32 at full-scale. This nonlinear
tween the red and blue components IC 3 causes these terminals to ex- behavior has, however, no detrimental
by grounding PU1 for a long time. If hibit nonlinear behavior. The step effects. In contrast, close to the mid-
you also ground the PU2 pin for more change of voltage at wiper P 1 de- scale, it makes the resolution 1.5 times
than 4 seconds, you get a yellowish- or creases to two-thirds at the midscale that of the resistive DAC alone.EDN
warm-green color. In contrast, if you of IC3 and gradually rises when mov-
ground the PD2 pin for more than 4 ing the wiper from the midscale to- Reference
seconds, you get aqua or a cool-green ward zero. At zero, this step change 1 Štofka, Marián, “Set LEDs’ hue from

color. Thus, changing even a moderate recovers fully to its original rela- red to green,” EDN, Oct 21, 2010, pg
7.2% of basic components of the light tive value of 1/32. When moving P 1 59, http://bit.ly/a96DXg.

5V

VOUTR IG IR IB IC1
ASMT-MT00
R R GREEN RED BLUE
100k 100k
0.2% 0.2% VOUTB
VDD

IC5
VOUTGCOMPLEM A2 AD5228 8 8
2 – 6 –
1 7
P2 IC6A IC6B
3 5
R + +
4 Q2B
100k PRE2 4 AD8692 Q1B
0.2% B2 BF137

R RB
100k 470k
0.2%
GND
RF
4.7
PU2 PD2 LOGIC CONTROL

Q2G Q2R
2 8 8 Q1G Q1R
6 BF137 BF137
– –
IC8A 1 IC8B 7
3 5
+ + RB RB
4 4 470k 470k
AD8692
RF RF
3.9k VOUTG 4.7 4.7

1.25V R R
100k 100k
0.2% 0.2%
RS
100 nF VDD
400k

IC3
A1 AD5228 8 8 8 8
2 6 2 6
– – – –
VREF IC4A 1 IC4B 7 IC7A 1 IC7B 7
P1 VSET 3 5 3 5
IC2 R + + + +
4 4 4 4
ADR1581 100k AD8692
0.2% PRE1 AD8692
B1

R RSH
100k
0.2%
GND

NOTES: RAB=10, 50, OR 100 kΩ.


PU1 PD1 RSH=RA1B1/2.

LOGIC CONTROL

Figure 1 At power-up, the AD5228s are set automatically to their midscales, and the circuit produces white light. Short-term grounding of
four control pins lets you tinge the light while holding intensity constant.

November 4, 2010 | EDN 47


designideas V+

Transistor boosts R1
100 MJE350

regulator current
Yngve Linder, Örsundsbro, Sweden


IN LM317LZ OUT
Some circuits require a constant-current source that
ADJ RADJ
doesn’t necessarily connect to a power-supply rail or to
ground. The circuit in Figure 1 shows a simple method for
achieving that configuration.
The LM317 voltage regulator develops 1.25V between the LOAD ILOAD =1.25V/RADJ
OUT and the ADJ pins. Placing a resistor between those pins
produces a constant current. Thus, the circuit’s output current is
V–
1.25V/RADJ. The transistor lets the circuit source more current
than the regulator alone can provide once the current through Figure 1 This simple method achieves a constant-current
source that doesn’t necessarily connect to a power-supply rail
R1 creates enough voltage to turn the transistor on. Otherwise,
or to ground.
the regulator supplies the load current.EDN

develops a voltage across the CD4011


Detect live ac-mains lines at pins 1 and 2. This voltage produces
Raju R Baddi, Raman Research Institute, Bangalore, India square waves at the output of the gate,


driving the LED active. In the absence of
You can use a simple battery-pow- You simply bring the detector coil near any hot ac wire near the detector plate,
ered circuit to detect whether an the socket to see whether it has a proper the 1N4148 diode connected to the first
ac-mains wire is live without making ac connection. If it does, then the LED gate’s inputs keeps the gate biased. This
any electrical contact with it. The cir- will illuminate (Figure 1). bias ensures that, under normal condi-
cuit uses a CD4011 NAND gate’s high The detector in this case is a coil of tions, the final output from the gates is
input impedance to sense a magnetic copper wire. When you place it near a low, keeping the LED off.
field from a 50- or 60-Hz ac-mains line. live wire carrying ac current, the coil Placing the detector plate close to a live
wire sets up an oscillating voltage at the
14 gate’s input at pins 1 and 2. That voltage
produces square waves corresponding to
CD4011 150
5
4
the ac-mains frequency. The remaining
6 three gates of CD4011 connect in paral-
1N4148
DETECTOR 1 +
lel, which increases the current through
8
PLATE OR COIL 3
9
10 3.6V the LED enough to light it.
2 A rechargeable, 3.6V nickel-cadmium
12 battery powers the circuit. You can as-
1N4148 11 LED
13 POWER semble the detector into a convenient,
SOCKET
FOR
pocket-sized glue-stick tube (Figure 2).
CHARGING The circuit consumes nearly no power
7
when the indicator LED is off. Thus, you
Figure 1 A battery-powered live-wire detector lights an LED in the presence of a field.
can also power the circuit using lithium
cells, such as the popular CR2032.EDN

INSULATED COPPER-WIRE COIL LED ON/OFF GLUE-STICK TUBE

POWER
3.6V SOCKET
+ NICKEL-CADMIUM FOR
IC BATTERY CHARGING

PCB
SHORT PIECE
VARNISH FROM GEL-PEN
COATING REFILL TUBE

Figure 2 The circuit can fit into an empty tube of glue. Be sure to varnish the coil for best performance.

48 EDN | November 4, 2010

Das könnte Ihnen auch gefallen