Need help with active low BJT LED

Thread Starter

Sonoma_Dog

Joined Jul 24, 2008
99
ok I need this LED Active low, means when the Vin is low the LED turns on.

I have 2 circuit in mind, wanted to know which one works (or works better).
I don't have time to figure out the resistor values yet.

please point me to the right direction.

Thanks a lot in advance!
 

SgtWookie

Joined Jul 17, 2007
22,230
Try using a PNP transistor instead, like this:



The signal input to R1 must come within 0.5v of V+ in order to turn Q1 off.

When the input to R1 is pulled low, 20mA will flow through R1, which is the maximum that many microcontrollers can sink. It's OK to increase R1, but it should allow at least 1/10 of the desired collector current.

R2 was selected to provide 20mA current through an LED rated for Vf=2V@20mA.
 

Attachments

Thread Starter

Sonoma_Dog

Joined Jul 24, 2008
99
after a bit of research, looks like PNP phototransistor does not exist. That also means I must work with a NPN transistor. : (
 

beenthere

Joined Apr 20, 2004
15,819
If you have an old 2N404 around, you can use it as a phototransistor by grinding off the top of the TO-5 can. It may not pass enough current to let the LED do more than slightly glow.
 

SgtWookie

Joined Jul 17, 2007
22,230
OK, you threw a curve ball. You didn't start off saying that you were using an NPN phototransistor.

You might be able to simply use the NPN phototransistor to sink current from the LED, but you wouldn't be able to adjust the light threshold.

Or you could try it like this:



Similar to the first circuit I posted, except the NPN phototransistor Q2 is turning on the PNP transistor.

R3 provides some adjustment for the light threshold.
R4 limits current in case R3 is accidentally turn to 0 Ohms, which would burn up the phototransistor.
 

Attachments

Top