Help understanding this LED lighting transistor circuit

This circuit is designed to provide a constant current to the LED independent of the supply voltage.

The MOSFET is turned on by the voltage at the collector of Q1. As soon as the current through R1 (which is the same as through the LED) results in a drop of about 0.6V, Q1 will start to turn on and divert current through R2.

This will then reduce the voltage at M1 gate to control the current through M1 and the LED.

The negative feedback will stabilize the current through D1, M1 and R1 at about 5mA as that will result in 0.6V at Q1 base.

The current will vary slightly as the supply voltage varies but much less than just using a resistor.

Also vary with temperature as the Vbe of the transistor will have ~2.2mV/deg temperature coefficient.

The same circuit can be used where M1 is a BJT (such as 2n2222) rather than a MOSFET. The value of R2 will be more critical as the transistor will require some base current from the R2.


It should be noted that this is not the simplest circuit for a current source. Driving a LED with 5mA current can be done with a single transistor:

enter image description here

Besides being simpler, this schematic has the advantage of current value being dependent on zener voltage (with 2-5% tolerance commonly available) instead of Vbe which can vary as much as 20% from one transistor to the other. There's also an extra diode D for temperature compensation, but it can be left out for devices which don't have high precision requirements or are intended to be used indoors.

The schematic you've found is better suited for high current applications. Because the current trough the load is decided by the Vbe of Q1 and R1, and the current through Q1 is small, you can achieve high load currents without any significant heat (and related parameter drift) in Q1.

For 5mA application however, it's a waste of perfectly good N-MOS.