Re: Driving red/green LED from high/low/tri-state output



On 2007-03-06, Joel Kolstad <JKolstad71HatesSpam@xxxxxxxxx> wrote:
I have a battery charger IC that tells you the IC's function via a "staus" pin
output that's one of three states: Hi-Z when a battery isn't present or is too
hot or cold to charge, high when it's actively charging, and low when it's
finished charging. I'd like to convert this signal to drive two LEDs, red and
green (they're actually both in one package, but all 4 pins are accessible).

The idea being that Hi-Z=>off, high->red (charging), and low->green
(finished). What's the easiest way to do this?


So far I haven't thought up
any easy schemes... and my first -- now obviously dumb -- approach of
connecting the pin to the two LEDs connected back to back -- with current
limiting resistors -- doesn't work in that a Hi-Z output just causes both LEDs
to glow dimly!

you're so close to the answer....

.-------------------------------------------------------------.
| This is an ascii schematic, if the diagram appears garbled |
| try switching to a fixed-pitch font (courier works well) |
| pasting it into notepad works well on ms-windows. |
| or in google groups "view source" (found under options) |
`-------------------------------------------------------------'



green
LED
in ---+--|<----+--[RX]--- +v
| |
| |
+--->|---+--[RX]--- gnd
red
LED




--

Bye.
Jasen
.



Relevant Pages

  • Re: Driving red/green LED from high/low/tri-state output
    ... output that's one of three states: Hi-Z when a battery isn't present or is too hot or cold to charge, high when it's actively charging, and low when it's finished charging. ... I'd like to convert this signal to drive two LEDs, red and green (they're actually both in one package, but all 4 pins are accessible). ...
    (sci.electronics.basics)
  • Re: Driving red/green LED from high/low/tri-state output
    ... actively charging, and low when it's finished charging. ... but all 4 pins are accessible). ... approach of connecting the pin to the two LEDs connected back to back ...
    (sci.electronics.basics)
  • Re: Driving red/green LED from high/low/tri-state output
    ... hot or cold to charge, high when it's actively charging, and low when it's ... connecting the pin to the two LEDs connected back to back -- with current ... limiting resistors -- doesn't work in that a Hi-Z output just causes both LEDs ... The forward voltage drops of the two LEDs plus the four small signal ...
    (sci.electronics.basics)