Re: Newbie transistor question



realexander wrote:

Hi,

I'm having trouble getting a transistor to work the way I thought it
should, and I hope someone could help me.

I'm using a PIC to drive common anode 14-segment LEDs. Since the PIC
I/O line can't supply enough current, I'm trying to use a 2N2222
transistor instead. The PIC directly drives the 2N2222's base (no
intervening resistor), the collector is tied to +5 and the emitter to
the common anode. The problem is that, while the LEDs light, they are
very, very dim - only visible in a dark room.

I thought maybe that the PIC wasn't saturating the transistor, so I put
in a pull-up resistor on the base. No difference. I connected the base
directly to +5, and the LEDs were still dim. The emitter shows +4V (5
volts in the collector, 4 volts out the emitter??!!) If I tie the LEDs
common anode to +5, they light up nicely, but of course I can't
multiplex a bunch of LEDs with the anodes tied to +5.

Am I using an inappropriate transistor? Am I using it wrong?

Thanks,
Bob Alexander

A 0.6 or 0.7V drop from base to emitter is to be expected -- if you're seeing 4.3 or 4.4 volts on the emitter (assuming 5V on the base) and rounding down then your transistor is working as expected.

What are you doing to limit the current of your LEDs, and how are you switching the cathodes of the LEDs? I suspect that with the voltage drop on the transistor your current limiting resistor is now too large, and your LED current is insufficient. You can probably get your current back up either by using lower resistance current limiting resistors, or by using a PNP transistor in common emitter. The PNP in common emitter will only drop 0.2V or so -- connect it emitter to +5V, collector to the LED, resistor between PIC and base, and remember that pulling the base _down_ will turn the transistor _on_.

--

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

Posting from Google? See http://cfaj.freeshell.org/google/

"Applied Control Theory for Embedded Systems" came out in April.
See details at http://www.wescottdesign.com/actfes/actfes.html
.



Relevant Pages

  • Re: About some parts on logical circuits
    ... chance on some pushbutton switch logic? ... I wasn't aware of the pull-down resistor issue. ... Since each transistor will have to feed a dozen of LEDs at 40mA ... Run the LEDs off the transistor's collector. ...
    (alt.guitar.amps)
  • Re: Switching +/-12V from 6/0V
    ... total current through the 1K emitter resistor. ... > collector and emitter. ... It's the transistor that drops the rest of the voltage. ...
    (sci.electronics.design)
  • Re: Amplify 1.5v DC to 5v DC?
    ... with the transistor being a 2N3904. ... in that example the emitter resistor is required because the input ... >one NPN feeding in to the base of another NPN? ...
    (sci.electronics.basics)
  • Re: Transistors
    ... What should I consider to do regarding DC biasing of the transistor ... Collector to V+ through a 1K resistor. ... The key voltage is between the base and emitter. ...
    (sci.electronics.design)
  • Re: Weird transistor failures
    ... >>I have had a number of failures of simple transistor LED drives which I ... >>is grounded, the collector has two white leds, a ... >>red LED in series and a 240 Ohm resistor. ...
    (sci.electronics.design)

Quantcast