Transistor question

Anything not related to a specific project.

Transistor question

Postby nowait » Fri Mar 22, 2013 4:32 am

Good Morning,

I have a circuit with some RGB LEDs connected (each with a resistor) going into a transistor. Looks something like the attached image. Each resistor is for 20mA at 2.1V. (150R) This is the red leds only.
dp_question.PNG


My question is, it works but the LEDs are not as bright as I was expecting. The voltage across the transistor is only ablot 3.5V and should be 5. Am I missing something?
The transistor is a http://www.fairchildsemi.com/ds/KS/KSP45.pdf
Thanks
Ryan
nowait
Newbie
Newbie
 
Posts: 17
Joined: Thu Oct 28, 2010 4:59 am

Re: Transistor question

Postby sqkybeaver » Fri Mar 22, 2013 8:26 am

the voltage across the emiter-base should be close to zero.
20mA through a 150 ohm is a 3 v drop across the resistor alone.

what is the forward voltage of the LED?
User avatar
sqkybeaver
Hero Member
Hero Member
 
Posts: 1095
Joined: Tue Dec 07, 2010 8:50 am
Location: New Hampshire, USA

Re: Transistor question

Postby dolabra » Fri Mar 22, 2013 8:37 am

Also, how are you biasing the transistor, are you sure you are driving into saturation?
dolabra
Full Member
Full Member
 
Posts: 234
Joined: Tue Sep 06, 2011 6:45 pm

Re: Transistor question

Postby nowait » Fri Mar 22, 2013 8:42 am

Sorry the LEDs are 2.1V forward voltage and 20mA typical current. Supply is 5V.
I did some more reading and I think the problem was that I needed to add a resistor to the input of the transistor to limit the base-emmiter current. I did that and it now seems fine, just not totally sure why :)
nowait
Newbie
Newbie
 
Posts: 17
Joined: Thu Oct 28, 2010 4:59 am

Re: Transistor question

Postby sqkybeaver » Fri Mar 22, 2013 8:53 am

nowait wrote:I think the problem was that I needed to add a resistor to the input of the transistor to limit the base-emmiter current.


that will do it just about every time.
User avatar
sqkybeaver
Hero Member
Hero Member
 
Posts: 1095
Joined: Tue Dec 07, 2010 8:50 am
Location: New Hampshire, USA

Re: Transistor question

Postby doub » Fri Mar 22, 2013 8:58 am

nowait wrote:I did that and it now seems fine, just not totally sure why :)


Without a resistor to limit the current going into the base, you probably exceeded the maximum current that the PIC can source, which may have put the PIC pin in an unstable state (also possibly damaging it).
doub
Full Member
Full Member
 
Posts: 131
Joined: Tue Aug 07, 2012 8:59 pm

Re: Transistor question

Postby Bertho » Fri Mar 22, 2013 4:01 pm

nowait wrote:...I did some more reading and I think the problem was that I needed to add a resistor to the input of the transistor to limit the base-emmiter current. I did that and it now seems fine, just not totally sure why :)


With an average current gain (Hfe) of 90, according to the datasheet, and a Vbe(sat) drop of 0.75V, you need a base-resistor to match the currents.

The minimum base current is 8*20mA/90 or about 1.8mA. However, the minimum Hfe is indicated at 40, which means that you would need to push 4mA into the base for guaranteed collector current (without going into complete saturation).

With a PIC driving at 5V, you need a resistor of maximum value (5V-0.75V)/4mA ~ 1kOhm. To be guaranteed in the saturation region, you should add 10..20% driving current to the base, which would result in an 820Ohm base resistor. The PIC pins can drive this without problem.

The Vce saturation voltage will be hovering between 0.1V and 0.25V, but can be as high as 0.75V according to the datasheet (max value). At a saturation voltage of 0.2V, you will see about 18mA current per LED ( because (5-0.2-2.1)/150=18mA).
User avatar
Bertho
Sr. Member
Sr. Member
 
Posts: 347
Joined: Mon Sep 19, 2011 4:34 pm
Location: Somewhere in the vicinity of Betelgeuse

Re: Transistor question

Postby kdittyr » Mon Mar 25, 2013 1:05 pm

@Bertho - that is great information, thanks.
K - Ditty - Arrrrrrrr ( like a pirate )
User avatar
kdittyr
Newbie
Newbie
 
Posts: 22
Joined: Mon Apr 02, 2012 10:21 am


Return to General discussion