Dick Cappels' project pages http://www.projects.cappels.org

return to HOME (More projects including LED projects)

FAST PRECISION LED DRIVER

Originally appeared in EDN/Reed Business Information August 21, 2003




What it is

The circuit allows a precision regulated drive current to be set to drive an LED, and in response to a TTL level signal, the LED is switched on and off with rise and fall times of less than 500 nanoseconds and less than 7% overshoot. This was designed for biological experiments to study the photo repsonse of cone cells rabbit eyes. This circuit may also be useful in systems that require a stable pulsed light source, such as those  that measures light transmission (turbidity and densitomitry insturments,  for example) and for the transmission of low speed optical data (to 200 kHz). The components are all easy to obtain and low cost.

How it works

The circuit consists of an adjustable regulated current source (the op amp and Q2), a differential amplifier (Q3 and Q4) driven as a switch, and a level shifter (Q1) to shift the TTL input signal to levels necessary to drive the differential pair. The current from the current source is switched to either the +5 volt supply to the LED by the differential amplifier.

The current current source (explained assuming the current is set to 50 ma):

The current source establishes the current that drives the LED. Voltage on the wiper of R6 is set to 0.5 volts, and this voltage is the reference for the op amp. By virtue of the feedback from the emitter of Q2, the op amp maintains 0.5 volts across R9, which is a 10 ohm resistor. The current through this resistor is 0.5V/10 ohms = 50 ma.

The emitter current is equal to the current through R9 because the op amp's inverting input does not draw any appreciable current. Q1's emitter current is shared between the base and collector of Q2, and because of Q2's high current gain (greater than 100), more than 99% of the emitter current is passed to the collector, and this ratio is stable. Thus, the voltage set by R6 determines the collector current in Q2. The collector of Q2 is connected to the emitters of differential pair Q3 and Q4.

The 4.7k resistor, R8 is used to compensate for input bias drift. It is approximately equal to the resistance seen at the other op amp terminal.

C4 is to reduce the pickup of noise on the noninverting input of the op amp. On my breadboard, a couple of microseconds of ringing was seen on the output of the circuit until I put this capacitor in place. In your particular layout, you might need something like is for the inverting in put of the op amp. If you do, put a small capacitor across R8 instead of from the inverting input to ground because to put it to ground would induce a phase shift that could cause the circuit to oscillate.

Differential pair Q3 and Q4:

Transistors Q3 and Q4 are connected as an over-driven differential pair. The emitters are supplied current from Q2. Of the two transistors, the one with the highest base voltage will conduct all of the emitter current, which is equal to the collector current on Q2.

The all-or-nothing switching action results from the large difference in base voltages between the two transistors. When Q3 has the high base voltage, current from Q2's collector goes to the +5 volt regulator. When Q4 has the higher voltage, current from Q2's collector goes through the LED then to the +12 volt power supply.

When the LED is off, Q3's base is pulled to about +5 volts while the base of Q4 remains at +2.5 volts, which makes Q3's emitter more positive than that of Q4, and so reverse biasing Q4's emitter so it cannot draw any of the current from Q2.

When the LED is on, the base of Q3 is switched to less than 1 volt while the base of Q4 is kept at +2.5 volts, thus assuring that the emitter of Q3 is reverse biased and all the current from Q2 goes through the emitter (and therefore the collector) of Q4.

A small amount of the current from Q2 is used as base drive on Q3 (when Q3 is conducting) and Q4 (when Q4 is conducting). As is the case with Q2, this fraction of the total current is less than 1% of the total and is stable.

Voltage divider R10 and R11 create a 2.5 volt bias current for the base of Q4, while the voltage on the base of Q3 is switched by Q1 to well above and well below 2.5 volts. The 2.5 volt reference is also used to bias the base of the level shifter, Q1.

Level shifter, Q1:

Q1 is a common-base amplifier. Its is essentially the same as a TTL input stage, with the exception of the 1000 pf capacitor across the base resistor, R4. 

When the input signal is greater than 2 volts (the LED is off), the base of Q1 is biased to +2.5 volts and no significant current flows through Q1's collector. As a result of this condition, the collector voltage and therefore the base of Q3, is held at +5 volts -the condition that causes all the current from Q2 to be dumped into the +5 volt power supply.

When the input signal is lower than 0.4 volts, the emitter of Q1 is essentially grounded and base current is drawn through the 10k resistor causing Q1 to saturate and in doing so, pulling the base of Q3 low. This condition corresponds to all of the current from Q2 being passed through Q4 to the LED.

When the input signal switches from low to high, energy stored in C3 is used to develop a reverse bias across the base-emitter junction of Q1 to deplete the stored base charge, thus reducing storage time and allowing the collector signal to switch within hundreds of nanoseconds rather than several microseconds. C3 needs to be adjusted for the specific type of transistor being used. Too large a value for C3 could result in increased storage time or possibly damage to Q1, therefore, it is important to use the minimum capacitance that provides acceptable storage time (storage time is not the same as rise and fall time).

OTHER STUFF:

D1 and D2 are to minimize effects on performance and possible damage to Q1 that might result in overshoot on the control input as a result of the transmission line being long and unterminated.

R1 is intended to provide a little degeneration to minimize the chance of Q1 oscillating when connected to a long cable.

D3 is meant to protect both Q4 and D4 from overshoot on the wires leading to the LED in case it is necessary to have long leads between the current source and the LED. If you are going to use a really long cable, you might also want to put a reverse protection diode across the LED to prevent degradation of the LED from reverse voltage resulting from ringing on the cable.

If you want to put R6 at the end of a long wire, increase the value of C4 to reduce the amount of hum picked up by the circuit. Decreasing R5, R6, and R8 would also be a good idea if R6 were to be made remote.

 

Building it

This can be built without a printed circuit board (the breadboard was), but be careful to keep the conductors with the pulses on it (those connected to the base and emitter of Q2 and the collector of Q4 away from the inverting feedback of the op amp.

Be careful with the dissipation of the output (Q2) 2N4401. It can handle about 300 mw in free air (25C ambient), which means that when running at 50 ma, the collector to emitter voltage needs to be 6 volts or less. The emitter voltage should be about 1.9 volts, so that means that at 100% duty cycle, the collector voltage shouldn't exceed about 8 volts, so you might need to put a resistor in series with your LED. This all depends on duty cycle (This is R12 in the schematic.). At a 50% duty cycle, the collector voltage can be +14 volts when the transistor is on. The 2N4401 data sheet is enclosed for reference. By the way, this is all based on the to-92 package.

You can put LEDs in series, but you will have to carefully increase the voltage as you do so. You might also find its helpful to put a small resistor in series with the LEDs to lower the collector voltage of the output transistor to minimize power dissipation, this all depends on how many LEDs you want to drive.

The op amp is 1/4 LM324 or 1/2 LM358. Feel free to make substitutions, but use an internally compensated op amp that has a common mode input range that includes ground.

Other notes:

I used a dedicated 7805 regulator for power and bias. I think this is a much better idea than dragging wires from a bench supply to power the low voltage circuitry because noise from the bench supply would show up in the Led output. Using the dedicated 7805 the LED current levels are pretty much independent of the power supply voltage provided there power supply voltage is high enough to drive the circuit but not so high as to cause failure of the 2N4401 (about 40 volts) or the 7805 (probably around 30 volts).

The circuit uses only a positive power supply, because real-life op amps have offset voltages, it will not be possible to get to operating current (when the LED is pulsed on) to zero ma with this circuit. It should be able to get down to less than 1 milliamp with the worst case offset current. There are tricks if you want to go to lower current, but going lower comes at a cost of increased parts count and/or reduced stability.

Danger of Eye Damage From Visible Light Emitting Diodes

 

HOME (More projects including LED projects)
Please see the liability disclaimer on the HOME page.
Contents ©2003, 2006 Richard Cappels All Rights Reserved        http://projects.cappels.org   First posted August 2003