Controlling LED with Transistor

5 replies · 4K views · last reply
Staff Emeritus
Science Advisor
Gold Member
Messages
5,197
Reaction score
38
I want to implement the following very simple logic:

Voltage at point "A" is high ==> LED is OFF

Voltage at point "A" is low or floating ==> LED is ON

and I came up with the attached circuit to implement it. I'm just wondering if there is anything "bad" about doing it this way, or if this circuit is OK.
 
Attachments
  • Circuit schematic of an NPN transistor driving an LED: input A feeds a base resistor into the transistor base, with Vcc through a resistor to the collector node and the LED from that node to ground through the emitter.
    led_npn.png
    3.2 KB · Views: 577
You should be okay with this basic inverter, assuming:
1) The LED forward voltage is higher than the BJT's saturation voltage [itex]V_{CE(SAT)}[/itex], and lower than [itex]V_{CC}[/itex], and
2) The base resistor is selected such that the BJT actually saturates
 
MATLABdude said:
You should be okay with this basic inverter, assuming:
1) The LED forward voltage is higher than the BJT's saturation voltage [itex]V_{CE(SAT)}[/itex], and lower than [itex]V_{CC}[/itex],

Okay, well I have measured a fairly large forward voltage for this LED, ~ 1.8 V, whereas it appears that the collector is pulled down to 0.2 V when conducting (I assume that this is the saturation voltage). My Vcc is 6.0 V, since I'm using 4 AA batteries.

MATLABdude said:
and
2) The base resistor is selected such that the BJT actually saturates

My understanding of what saturation is is that the base current is large enough that the expected collector current IC = βIB, is so large that it cannot possibly be achieved by a voltage drop across the collector resistor. The required voltage drop would mean pulling the collector below ground, which the transistor cannot do. Instead the collector just gets pulled down to some small voltage value that is almost 0 -- the saturation voltage. It seems like with a choice of base resistor of 1k or 10k, saturation is happening easily. Am I understanding things correctly?
 
Things sound like they're all right. When I learned of saturation, it was "starving the collector", but it could just as easily be "stuffing the base", depending on your context and what you have available. When you design for saturation, you get to choose the value for beta, such that [itex]\beta_{SAT} < \beta_{\circ}[/itex]
 
http://profmason.com/wp-content/uploads/2010/11/LogicProbe.jpg
 
Last edited by a moderator:
There is one-thing 'stupid' of the circuit. It will consume more power when the led is OFF.
If you wanted to have no power consumed when the led is off Pherhaps you could do so in this way. I have guessed some values.
Hand-drawn schematic of an LED driven by an NPN transistor: Vcc 5V at top through a 330Ω resistor to an LED labelled 2V, emitter to ground; base via 100Ω resistor from input A, with 5K pull-down resistor to ground.