Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Bi-Colour LED coontrol with one pin?

2006-03-04 by Russell Shaw

Tom Becker wrote:
>  > ... switching both leds On.
> 
> Or off; your choice.  If you put the loads on the collectors, the base 
> current path you describe will turn both on if the control pin floats.
> 
> If you put the loads on the emitters, the switches become emitter 
> followers.  That makes a control dead zone where neither LED will be on 
> if the control pin floats since both bases are cut off.

You could rely on the 2 x(LED + 0.7) voltage drop to be less than 5VCC, so
2*(2.1+0.7) = 5.6V which is a bit marginal for my liking. You could add extra
diodes for more voltage drop. It's not really my style of design tho.

                   +5VCC
               --+------+--
                _|_     |
            LED \ /     |
                ---     |
                 |      |
                 >      |
                 <      |
                 >      |
                e|      |
AVR       PNP |/       |
---+      +---|        |
    |pin   |  b|\       |
    +------+    c|     c|
    |      |     |   b|/
---+      +----------|  NPN
                 |    |\
                 |     e|
                 |      >
                 |      <
                 |      >
                 |      |
                 |     _|_
                 |     \ / LED
                 |     ---
                 | GND  |
               --+------+--

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.