# “Perfect” transistor using an op-amp The U1:A(+IP) represents my input (0 to 6V).

I am trying to power a lamp which requires at most 6V@100mA, the input will vary between 0 and 6V but it doesn't provide enough power for the lamp (the input comes from another op-amp used to convert current from 0 to -2mA to a voltage between 0 and 6V).

As wikipedia states, this circuit is a Voltage follower boosted by a transistor : This particular circuit is very interesting as it provides these curves (for both voltage and current in the lamp) :  However, I am not able to figure out why this works, why is it able to work between 0 a 0.7V, when the transistor shouldn't let anything through ?

Thank you everyone, thanks to you I understand better how this circuit works.

• Look at the base of the transistor – crj11 Mar 6 '18 at 18:16
• Yes, I noticed that the op-amp adds 0.7V to match the transistor's requirements... but how ? – Dash Mar 6 '18 at 18:17
• The op amp is always drives the output so that the two inputs are matched. In the case where the + input is above the - terminal, it drives it high until they again are matched. This includes adding the extra voltage to turn on the transistor. – crj11 Mar 6 '18 at 18:19
• @Dash Because it is an op-amp, the op-amp will do everything it can to make sure that the (-) input is equal to the (+) input. Can it do that? Yes it can, if, its output is 0.7 V when (+) ~ 0 V. – Harry Svensson Mar 6 '18 at 18:20

It's no great mystery here...

In this configuration, the op-amp adjusts the output voltage according to the difference between the plus and minus pins to try and make those inputs equal.

When that happens the output must be $Vbe$ above whatever voltage is on the positive input.

As such this circuit will work all the way down to zero volts. That that point the base will be at $Vbe$.

Trying to go under zero volts at the input however will not work since the transistor can not sink current into the emitter.

However:

This circuit should be used with caution. Under certain stimuli, and depending on the op-amp, it is prone to oscillate.

Also, be aware that the start up current for that lamp may be more than the transistor can handle. Measure the cold resistance of the bulb to calculate the start-up current you can expect. Use of a base resistor to limit the current would be prudent.

Be careful with the power here too. The transistor needs to dissipate as much power as the light-bulb at 6V. That may be asking too much of a little 2N2222. If you don't know the watts, measure the current through the bulb when you apply 6V to it, and multiply that by 6.

Adding a series resistor.. ~50R 1W above the transistor to share some of the power dumping and limit the current may also be wise here.

• The lamp can handle a maximum of 100mA, while the transistor can handle a maximum of 800mA, so it should be okay. I called that a lamp but it's a really tiny one, not a light bulb meant to light a room. – Dash Mar 6 '18 at 18:37
• @Dash what is the cold resistance of the bulb though? – Trevor_G Mar 6 '18 at 18:38
• The cold resistance of the bulb is 60 Ohms. – Dash Mar 6 '18 at 18:42
• @Dash what is the wattage of the bulb? – Trevor_G Mar 6 '18 at 18:45
• No idea, this information hasn't been given to us. The only thing I can say that may give you an idea is that the bulb is less than 1cm in diameter. – Dash Mar 6 '18 at 18:49

Inside of the BJT transistor there is a diode, it goes from base to emitter. Let's say that the $V_{BE}=0.7\text{ V}$ and that it never changes. It is the current that flows from the base to the emitter that is amplified by $\beta$ and flows from collector to emitter.

When the lamp has 0.1 V across itself, the voltage at the base of the BJT transistor is:
$0.1+V_{BE}=0.8\text{ V}$

When the lamp has 1 V across itself, the voltage at the base of the BJT transistor is:
$1+V_{BE}=1.7\text{ V}$

Can the op-amp output 0.8 V? Yes

Can the op-amp output 1.7 V? Yes

The op-amp will do everything in its power to turn its $V^-_{input}$ to its $V^+_{input}$, it is only allowed to change its output to do so.

So imagine that $V^+_{input}= 1\text{ V}$ and that $V^-_{input} = 0\text{ V}$, this is an error of 1 V, an op-amp has an open-loop amplification of several thousand. So just imagine that the error is 100 thousand. That is a positive value, so the output of the op-amp will go up. As the output reaches 1.7 V, the $V^-_{input}$ will reach 1 V. The error will be 0 because $V^+_{input}-V^-_{input}=0$. This means that the output should not change, 1.7 V is a good value.

As you can see, in this setup it can actually function without any problems.

Think about the open-loop gain of an op-amp - most low quality ones are at least 100,000. So, if the output isn't "bolted" hard against one of the supply rails then the voltage difference between +in and -in must be trivially small like a milli volt. This is what negative feedback gives you.

Therefore the voltage at the emitter (-in) must be (within reason) the same as the voltage at the +in input.

As you try this at high frequencies the natural open-loop of a jelly-bean op-amp drops about 20 dB per decade from about 10 Hz. At 100 kHz the fantastic open loop gain seen at DC has dropped to about 20 dB or 100: - Think of an op-amp with negative feedback as a control system like this: - You set a position demand and you measure the motor position with a potentiometer. You then compare demand with actual position in an error amplifier (high gain) and the resulting output drives the motor so that the error is minized.

You might just as well have shorted the system out like this: - Related question