Maker Pro
Maker Pro

NPN transistor as switch for LED problem

David Lacroix

Sep 15, 2016
13
Joined
Sep 15, 2016
Messages
13
Hi,

I used an NPN transistor as a switch to light up a small LED. The circuit works great but when I cut the base current for the transistor the LED stays lit just a tiny bit. I'm using a 220 ohm resistor for the LED and a 100 ohm for the base of the transistor.

What causes this?

Thx
 

davenn

Moderator
Sep 5, 2009
14,254
Joined
Sep 5, 2009
Messages
14,254
Hi,

I used an NPN transistor as a switch to light up a small LED. The circuit works great but when I cut the base current for the transistor the LED stays lit just a tiny bit. I'm using a 220 ohm resistor for the LED and a 100 ohm for the base of the transistor.

What causes this?

Thx

and what voltage supply ?
show us your circuit

you may also need a ~ 1k resistor from the base to 0V to ensure the transistor is properly cut off
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
And/or maybe a moderate value resistor across the LED so the leakage current does not flow through the LED. The resistance must be such that the leakage current causes a voltage drop significantly less than Vf for the LED
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
Steve, I've never had to shunt a LED. Have you experienced that? Are you referring to situations with very high VCC or when using Germanium Transistors? :p

Chris
 

David Lacroix

Sep 15, 2016
13
Joined
Sep 15, 2016
Messages
13
and what voltage supply ?
show us your circuit

you may also need a ~ 1k resistor from the base to 0V to ensure the transistor is properly cut off

12V from 8 AA batt.

Circuit is 12V to 220ohm to LED to collector then emitter to ground and then 12V to 100ohm to base.
 

David Lacroix

Sep 15, 2016
13
Joined
Sep 15, 2016
Messages
13
And/or maybe a moderate value resistor across the LED so the leakage current does not flow through the LED. The resistance must be such that the leakage current causes a voltage drop significantly less than Vf for the LED

What is a moderate value for you?
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
It depends on the leakage current. If it is 0.1 mA and you don't want more than 1V across the LED, then 10k would be the value I'd start with.

If you are pulling the base low with a similar value resistor then a leakage of 0.1mA is pretty huge.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Oh, and a base resistor of 100 ohms! If taken to 12V then that's over 100mA of base current. I hope your transistor can handle that. Its also more than that used by the LED!
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
That unspecified NPN transistor is probably toast by now with a 100 Ω resistor connected from base to +12 V... unless it is a 2N3055 power transistor, which would be a bit of overkill for lighting up your typical LED. IIRC, the 2N3055 needs a huge amount of base current to turn on properly and the emitter-collector leakage current approaches one milliampere when the base-emitter voltage is zero, Whatever, I would raise the base resistor value to 10 kΩ, shunt the base-emitter junction with 1 kΩ, and replace the transistor.
 

HellasTechn

Apr 14, 2013
1,579
Joined
Apr 14, 2013
Messages
1,579
And/or maybe a moderate value resistor across the LED so the leakage current does not flow through the LED. The resistance must be such that the leakage current causes a voltage drop significantly less than Vf for the LED

Changing the LED resistor will also affect the brightness of the led when fully on.
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
Try this. R1 can be as shown and will provide about 18mA of LED current. Raising it to 1K will reduce LED current to about 11mA. This assumes a RED LED.

Chris
upload_2016-9-23_9-40-19.png
 

David Lacroix

Sep 15, 2016
13
Joined
Sep 15, 2016
Messages
13
I guess I've probably toasted those transistors. I've just started playing around with electronics, I'm at step 1 haha...damn

ps: when a transistor is toasted, could it conduct current straight from collector to emitter without anything from base, because that would answer some questions about my last experiment...
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
I guess I've probably toasted those transistors. I've just started playing around with electronics, I'm at step 1 haha...damn

ps: when a transistor is toasted, could it conduct current straight from collector to emitter without anything from base, because that would answer some questions about my last experiment...
Yes, a shorted Collector - Emitter junction will conduct all the time. Are you sure you have the pinouts correct?

Chris
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
I guess I've probably toasted those transistors. I've just started playing around with electronics, I'm at step 1 haha...damn

ps: when a transistor is toasted, could it conduct current straight from collector to emitter without anything from base, because that would answer some questions about my last experiment...
Absolutely! A transistor is a piece of doped silicon with precisely implanted ions that define where the emitter- base, and base-collector junctions are. If you "toast it" all that stuff melts and fuses together into a single conductive chunk of silicon. Usually. You can also vaporize the internal wire bond connections from the package terminals to the silicon and create an open circuit, often at the same time letting the "magic smoke" out when a plastic encapsulation opens up to atmosphere.
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
Yes, a shorted Collector - Emitter junction will conduct all the time. Are you sure you have the pinouts correct?

Chris
Sorry, Chris... there is no collector-emitter junction. There is the emitter-base junction and base-collector junction between the emitter and the collector. Melt those junctions to create an emitter-collector short. You can tell you have done this "right" by measuring the resistance from emitter to collector with an ohmmeter. Should get the same (low) reading with either polarity of the two probes. Don't ask me how I know this. :D
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
I believe it is possible to produce doped channels across the base. These produce a resistive connection between emitter and collector without significantly affecting the base-emitter or base-collector junction.

Apparently this results in increased leakage, but with transistor action still taking place.

It's not a typical failure mode, especially after smoke-releasing incidents.
 

CDRIVE

Hauling 10' pipe on a Trek Shift3
May 8, 2012
4,960
Joined
May 8, 2012
Messages
4,960
A mis-speak. I should have said "a short between the emitter and collector pins". I've seen it happen many times when max Vce is exceeded or from HV kickback. I didn't include any statements regarding the base because the transistor would be useless anyway.

Chris
 
Top