L
Lauri Alanko
Guest
Hello.
I need to wire some leds, and I figure that a transistor for each
series is a good way to ensure that the leds get constant current,
with the additional benefit that I can run PWM through the base of the
transistor to control the brightness.
However, I'm unsure about the best way to do this. The most common
design I see is this:
V1 ---- LOAD ---- \Q1-> ---- R1 ---- GND
-----
|
V2
That is, Q1 is NPN, and the load is connected to its collector, V2 to
the base, and R1 to the emitter. This limits the collector current to
about:
Ic = (V2 - Vbe) / R1
I see how this works, but adding a resistor under the load seems
to increase the minimal voltage dropout (and thus lower the maximum
current limit) unless V2 is very low. Another approach is the following:
V1 ---- LOAD ---- \Q1-> ---- GND
-----
|
V2 ---- R1
That is, we just limit the base current directly. Here the collector
current is:
Ic = beta ((V2 - Vbe) / R1)
This seems better to me. We can use an arbitrary voltage at V2 (a 5V
PWM signal should be fine), and the minimum dropout is just the
transistor's Vce at saturation.
However, I haven't seen the second circuit anywhere. Is there some
non-obvious problem with it?
Thanks,
Lauri
I need to wire some leds, and I figure that a transistor for each
series is a good way to ensure that the leds get constant current,
with the additional benefit that I can run PWM through the base of the
transistor to control the brightness.
However, I'm unsure about the best way to do this. The most common
design I see is this:
V1 ---- LOAD ---- \Q1-> ---- R1 ---- GND
-----
|
V2
That is, Q1 is NPN, and the load is connected to its collector, V2 to
the base, and R1 to the emitter. This limits the collector current to
about:
Ic = (V2 - Vbe) / R1
I see how this works, but adding a resistor under the load seems
to increase the minimal voltage dropout (and thus lower the maximum
current limit) unless V2 is very low. Another approach is the following:
V1 ---- LOAD ---- \Q1-> ---- GND
-----
|
V2 ---- R1
That is, we just limit the base current directly. Here the collector
current is:
Ic = beta ((V2 - Vbe) / R1)
This seems better to me. We can use an arbitrary voltage at V2 (a 5V
PWM signal should be fine), and the minimum dropout is just the
transistor's Vce at saturation.
However, I haven't seen the second circuit anywhere. Is there some
non-obvious problem with it?
Thanks,
Lauri