L
Lauri Alanko
Guest
Thanks again for your explanations. You went into a bit more detail
than I really needed, but it is no doubt valuable to some other
readers.
In article <js3ht8hda912bfj73r7sq7aklhe9cpii4t@4ax.com>,
Jon Kirwan <jonk@infinitefactors.org> wrote:
Falstad's simulator this doesn't seem to work unless there is a
resistor in Q1's base. Otherwise the (ideal, zero-impendance)
low-level pin will drain all current through the base. In real world
things might work differently.
Anyway, since the current reference is now shared by the entire
circuit, I might as well use some more expensive current source, e.g.
one based on an op-amp or voltage regulator:
gnd---(->
----- to current mirror
|
|/c
PWM---R1--|
|>e
|
gnd
Is there some advantage here over the simple resistor-transistor
current source? It would seem that here the PWM control isn't draining
any of our meticulously measured current. Which current source
would be most suitable for a fast switching load?
design. I remembered BJTs as current-controlled devices, and had
forgotten that they can also be viewed as voltage-controlled.
The most crucial thing, evidently, is that the exact ratio of current
control is unpredictable, whereas voltage control is much more
reliable (given that the current mirror depends on the same voltage
producing exactly the same current on both transistors).
scalability outweighs the constant costs.
Besides, it's not wasting the same _power_: I will generate the
current reference from +5V, whereas the leds will use +12V.
battery-powered device.
Lauri
than I really needed, but it is no doubt valuable to some other
readers.
In article <js3ht8hda912bfj73r7sq7aklhe9cpii4t@4ax.com>,
Jon Kirwan <jonk@infinitefactors.org> wrote:
I haven't yet tried this out (I'm away from my components) but inSo let's look at a revised (I renumbered the parts) version
of the last circuit, which can handle several series chains
of LEDs all operating at the same current:
: Vcc +V +V
: | | |
: | | |
: | --- ---
: | \ / Dan \ / Dbn
: \ --- ---
: / Rset | |
: \ | |
: / . .
: | . .
: | . .
: | more more
: | LEDs LEDs
: Q1 | here here
: |<e Vcc . .
: PWM-----| | . .
: |\c | . .
: | | . .
: | | | |
: | Q3 | | |
: | |/c --- ---
: +---| \ / Da1 \ / Db1
: | |>e --- ---
: | | | |
: | | | |
: | | | |
: Q2 c\| | |/c Qa |/c Qb ... Qz
: |---++--| ,--|
: e<| | |>e | |>e
: | | | | |
: | | | | |
: | | | | |
: | | | | |
: | | | | |
: gnd | gnd | gnd
: | |
: '---------+------- ... Qz
So, yes. Q1 and Rset determine the current.
Falstad's simulator this doesn't seem to work unless there is a
resistor in Q1's base. Otherwise the (ideal, zero-impendance)
low-level pin will drain all current through the base. In real world
things might work differently.
Anyway, since the current reference is now shared by the entire
circuit, I might as well use some more expensive current source, e.g.
one based on an op-amp or voltage regulator:
gnd---(->
|
|/c
PWM---R1--|
|>e
|
gnd
Is there some advantage here over the simple resistor-transistor
current source? It would seem that here the PWM control isn't draining
any of our meticulously measured current. Which current source
would be most suitable for a fast switching load?
Actually I had forgotten about this before I saw the current mirrorLet's pause a moment. I'm sure you recall one of the BJT
equations:
1. Ic = Is * ( e^(Vbe/(kT/q)) - 1 )
design. I remembered BJTs as current-controlled devices, and had
forgotten that they can also be viewed as voltage-controlled.
The most crucial thing, evidently, is that the exact ratio of current
control is unpredictable, whereas voltage control is much more
reliable (given that the current mirror depends on the same voltage
producing exactly the same current on both transistors).
This is not a problem, since I'm going to have tens of chains. TheOne idea that is sometimes applied in cases where wasting the
same LED current on Q1 and Q2 (means that if you have 5
chains of LEDs, each at 20mA, you are using 120mA from the
supply with 20mA of it NOT going to LEDs),
scalability outweighs the constant costs.
Besides, it's not wasting the same _power_: I will generate the
current reference from +5V, whereas the leds will use +12V.
Neat trick. I might consider that if I only had a few leds in aBut you could certainly consider the idea of dropping your
Rset current downward to 2mA, for example, using a factor of
10 multiplier (which means you need a Q2 emitter resistor
that drops 60mV at 2mA, or a value of 30 ohms at a guess.)
battery-powered device.
Lauri