J
JIW
In my circuit at http://pat7.com/jp/q1.png (and .jpg)
I put a well-known constant-current circuit (2 transistors,
2 resistors, current ~ Vbe/R3 ~ .7V/24ohms ~ 29mA)
on the high side, with the intention of controlling
current to several LED's with 1 CC circuit, rather
than using several. I only turn on one LED at a time -
red, green, or yellow.
Figure 70 in AT90S2313 pdf shows a drop of .6
to .7V when an output sinks 30mA and Vcc=5V;
the CC circuit will drop about 1.4V; D1 drops .5
to .7V; which from 5.6V B1 leaves over only 2.8V,
too low for my green LED, so I have B2 ~ 1.4V
in series.
I haven't built this version yet, and would like to
know if anyone sees any dumb problems with it.
Also, when micro is in power-down sleep
(drawing < 1 microamp) with PD0,1,2 high, how
much leakage will there be through the LED's?
-jiw (posting w/ google while traveling)
I put a well-known constant-current circuit (2 transistors,
2 resistors, current ~ Vbe/R3 ~ .7V/24ohms ~ 29mA)
on the high side, with the intention of controlling
current to several LED's with 1 CC circuit, rather
than using several. I only turn on one LED at a time -
red, green, or yellow.
Figure 70 in AT90S2313 pdf shows a drop of .6
to .7V when an output sinks 30mA and Vcc=5V;
the CC circuit will drop about 1.4V; D1 drops .5
to .7V; which from 5.6V B1 leaves over only 2.8V,
too low for my green LED, so I have B2 ~ 1.4V
in series.
I haven't built this version yet, and would like to
know if anyone sees any dumb problems with it.
Also, when micro is in power-down sleep
(drawing < 1 microamp) with PD0,1,2 high, how
much leakage will there be through the LED's?
-jiw (posting w/ google while traveling)