Bad Circuits - Test Your Knowledge

AI Thread Summary
The discussion focuses on analyzing "Bad Circuits" from "The Art of Electronics" by Horowitz and Hill, specifically highlighting the challenges students face in identifying errors in circuit schematics. Participants are encouraged to share problematic circuits they encounter and engage in discussions to enhance learning rather than simply providing answers. Key issues identified include the necessity of current-limiting resistors for LEDs and the implications of grounding and circuit design practices. The conversation also touches on the effects of load capacitance and fan-out limitations in TTL circuits, emphasizing the importance of proper circuit design for functionality and performance. Overall, the thread serves as a collaborative educational resource for understanding circuit design flaws.
  • #51
Here are another couple more bad opamp circuits from chapter 3 of H&H. They share a common theme in their problems...
 

Attachments

  • HH_Ch3i.JPG
    HH_Ch3i.JPG
    49.6 KB · Views: 764
  • HH_Ch3m.JPG
    HH_Ch3m.JPG
    51.3 KB · Views: 711
Engineering news on Phys.org
  • #52
[Circuit I. - +15V regulator]

So far I see the following problem with it - the missing base resistor shows an improperly biased BJT. If one wishes to turn on the transistor based on voltage, a FET should be used. Preferably a MOSFET so we don't accidentally forward bias the gate-source region. And also a MOSFET is better suited as an analog switch. If however, the current controlled device is desired, just pop in an appropriate base resistor.

I'll try to find some more errors.

Berkeman, does this circuit have a problem with varying VE due to varying VB as the output of the op-amp varies depending on the voltage differential?
 
Last edited:
  • #53
ranger said:
[Circuit I. - +15V regulator]

So far I see the following problem with it - the missing base resistor shows an improperly biased BJT.

Why can't the opamp supply the needed base current?

ranger said:
Berkeman, does this circuit have a problem with varying VE due to varying VB as the output of the op-amp varies depending on the voltage differential?

If you mean in the sense of PSRR (power supply rejection ratio), then not really. There is a more fundamental problem with the opamp supply voltage...
 
  • #54
berkeman said:
Why can't the opamp supply the needed base current?

I don't understand this. Why not have a resistor to bias the BJT? The BJT has a relatively low input impedance. Shouldn't we want to avoid large output currents to prevent excessive power dissipation on the output stage of the op-amp :confused:
 
  • #55
ranger said:
I don't understand this. Why not have a resistor to bias the BJT? The BJT has a relatively low input impedance. Shouldn't we want to avoid large output currents to prevent excessive power dissipation on the output stage of the op-amp :confused:

How do you provide feedback to stabilize the regulated output voltage if the opamp were not feeding the base?
 
  • #56
Powering the op-amp from its own stabilised output won't work. To bias the transistor, the op-amp output would have to be higher than the supply voltage, and that can't happen.

Powering the opamp from the unstabilized 20 to 30V supply should be OK.
 
Last edited:
  • #57
AlephZero said:
Powering the op-amp from its own stabilised output won't work. To bias the transistor, the op-amp output would have to be higher than the supply voltage, and that can't happen.

Powering the opamp from the unstabilized 20 to 30V supply should be OK.

Also, for better regulation of the output voltage I would supply the zener through a resistor from the stabilized 15V supply, not from the unstabilized supply.

That pretty much answers question "I". The opamp needs a supply that is high enough to let it comfortably control the BJT base voltage. Check the 741 datasheet to see how high the output can go with respect to the V+ supply, and add some margin. AlephZero's comment about how to supply the zener is also a good idea.

Now, with all those hints, the other circuit in "M" should be pretty easy to solve...
 
  • #58
We can't have 15V at the output of the first opamp if it is powered from +5V.
 
  • #59
antonantal said:
We can't have 15V at the output of the first opamp if it is powered from +5V.

Absolutely correct. So to summarize the answers for Post #51,

(i) The output voltage of an opamp is limited by its V+ supply rail, and also further limited by different amounts, according to the output voltage specification on the datasheet.

(m) (same answer as i)


I'll post another question in the morning. There are a couple on this same opamps page that are bothering me a bit. Not simple answers...
 
  • #60
berkeman said:
AlephZero's comment about how to supply the zener is also a good idea.

I posted the zener comment, then decided (incorrectly) that it wouldn't work and deleted it. :rolleyes:

It will work, of course.
 
  • #61
Hey berkeman,

I don't have a scanner right now. Could you post circuit B (x100 op-amp output stage for audio amp) and circuit G (x100 audio amp. (single supply)) so we can get some thoughts on it? You should of course post yours first.

thanks.
 
  • #62
ranger said:
Hey berkeman,

I don't have a scanner right now. Could you post circuit B (x100 op-amp output stage for audio amp) and circuit G (x100 audio amp. (single supply)) so we can get some thoughts on it? You should of course post yours first.
The order of the figures must have changed in the 2nd edition of H&H, but I think these are what you're asking for. They're getting a bit harder now...

[G] x100 opamp output stage for audio amp (with BJT input amp)

[J] x100 audio amplifier (single supply)
 

Attachments

  • HH_Ch3_BJT_x100opamp.JPG
    HH_Ch3_BJT_x100opamp.JPG
    42 KB · Views: 734
  • HH_Ch3_9V_x100.JPG
    HH_Ch3_9V_x100.JPG
    44.5 KB · Views: 723
Last edited:
  • #63
For the first circuit, I don't know what is the range of the input voltage but if it can reach a higher value than the potential on the base of the BJT, that electrolytic capacitor is not a good idea.

In the second circuit, there is no dc path to the ground for the inverting input.
 
Last edited:
  • #64
Circuit G:

It seems a coupling capacitor is missing from the output of the bjt amplifier to the input of op-amp. There should also be resistor to ground to cater for the bias current on the non-inverting input. Also the resistor will set the f3dB frequency; I guess we don't want to amplify all frequencies.
Shouldn't we also want to add a cap in series with the 1K to have unity gain at DC? We'd of course choose C to have the appropriate f3dB frequency.
 
Last edited:
  • #65
antonantal said:
For the first circuit, I don't know what is the range of the input voltage but if it can reach a higher value than the potential on the base of the BJT, that electrolytic capacitor is not a good idea.
Good point about the cap, but they are probably assuming a pretty small signal (no more than 15V/100 one would hope), centered around ground as the audio input.

antonantal said:
In the second circuit, there is no dc path to the ground for the inverting input.

You don't need a DC path to ground, per se, you just need a DC source for the input bias current. The opamp output DC connection could supply that. The issue with the 2nd circuit is something different. Hint -- be sure to double-check the datasheet for the LM358. It has some unique characteristics that the author of this bad circuit was apparently trying to use...
 
  • #66
ranger said:
Circuit G:

It seems a coupling capacitor is missing from the output of the bjt amplifier to the input of op-amp. There should also be resistor to ground to cater for the bias current on the non-inverting input. Also the resistor will set the f3dB frequency; I guess we don't want to amplify all frequencies.
Shouldn't we also want to add a cap in series with the 1K to have unity gain at DC? We'd of course choose are to have the appropriate f3dB frequency.

Good stuff, ranger. Yes, the input offset at the V+ input of the opamp would peg the output of the x100 amp. And adding a cap and ground bias resistor will mostly fix that. Adding a cap to the 1k pulldown resistor to ground on the V- input will roll off the DC gain as you say, but it would also help fix one last problem that this circuit would have if you just left the opamp's gain setting resistor as they are right now. Can you see what that would be?
 
  • #67
Unfortunately, I cannot quite put my finger on the last problem, berkeman :redface:

But does it have to do with trimming the off-set voltage?
 
  • #68
ranger said:
Unfortunately, I cannot quite put my finger on the last problem, berkeman :redface:

But does it have to do with trimming the off-set voltage?

Not exactly. Since the gain is x100, and the supply rail is 9V, try putting in a conservative signal to give you a 5Vpp output signal, so 5V/100 = 50mVpp. What will the output look like?
 
  • #69
ranger said:
Unfortunately, I cannot quite put my finger on the last problem, berkeman :redface:

But does it have to do with trimming the off-set voltage?

Oh wait, you said "last problem", so I thought you meant the 2nd circuit. But if you're referring to my last comment for the first circuit, then yes, the problem is with the input offset voltage being amplified by x100. What do you typically do to minimize the input offset voltage component generated by the input offset current for the opamp? And assuming that you do that here, what are you left with as an input offset voltage for, say, an LM741 opamp? So what do you get for an output error after the x100 amplification?
 
  • #70
berkeman said:
Oh wait, you said "last problem", so I thought you meant the 2nd circuit. But if you're referring to my last comment for the first circuit, then yes, the problem is with the input offset voltage being amplified by x100. What do you typically do to minimize the input offset voltage component generated by the input offset current for the opamp? And assuming that you do that here, what are you left with as an input offset voltage for, say, an LM741 opamp? So what do you get for an output error after the x100 amplification?

Yes, I meant the last problem with circuit G.

Well to minimize such offset voltage, one could use a trimming network or simply use an op-amp with very small VOS or a FET amplifier which has little input current. Another way I see to eliminate the input-offset voltage due to offset current is to make the the resistances of both the inverting and non-inverting input equal. In this way, both inputs will have negligible offset voltage due to offset current becuase they see the same equivalent resistance.

According to the datasheet for the 741, we should expect a typical offset voltage of about 1mV. I guess this also applies to a properly trimmed op-amp?
 
Last edited:
  • #71
ranger said:
Yes, I meant the last problem with circuit G.

Well to minimize such offset voltage, one could use a trimming network or simply use an op-amp with very small VOS or a FET amplifier which has little input current. Another way I see to eliminate the input-offset voltage due to offset current is to make the the resistances of both the inverting and non-inverting input equal. In this way, both inputs will have negligible offset voltage due to offset current becuase they see the same equivalent resistance.

According to the datasheet for the 741, we should expect a typical offset voltage of about 1mV. I guess this also applies to a properly trimmed op-amp?

You've pretty much got [G] figured out, ranger. Good job. You might be able to trim out the remaining offset voltage, but I honestly don't know how stable that would be over temperature and aging. Usually you'll just try to do something that minimizes the offset, and be careful that your gain is not too high. The gain rolloff capacitor in the V- leg to ground is one way to get rid of the DC input offset voltage issue, if you can afford the loss of low-frequency gain, and time constant at circuit turn-on.

So how about the 2nd circuit...?
 
  • #72
Well I didn't look at the specs for the op-amp on the last circuit, but it looks like the non-inverting input needs to be biased up a bit. Wouldn't the output be clipped on the low side?
 
  • #73
dlgoff said:
Well I didn't look at the specs for the op-amp on the last circuit, but it looks like the non-inverting input needs to be biased up a bit. Wouldn't the output be clipped on the low side?

Yes, absolutely. The LM358 is used when the inputs are going to be near ground, but it certainly can't drive down below ground when amplifying an AC signal. So you would need to do something like bias up the V+ input to half of the supply or something in order to keep the output signal centered between the top rail and ground.

So to summarize the answers for the two circuits in Post #62,

[G] As drawn, there will be an input DC offset that will peg the output of the x100 amp. And even with a fix to the input offset from the BJT stage, a V- side capacitor should be used to eliminate the input offset voltage of the opamp, to avoid about a 100mV output offset error.

[J] The output will clip at ground as drawn. The input needs to biased to half of the supply to keep the output nominally centered between the upper rail and ground.
 
  • #74
Okay, how about a couple last opamp circuits, and then we can switch gears. Here are two more from H&H Chapter 3 on opamps. I especially like the 2nd one [F], which was published in another textbook as an example of a "good" circuit idea...:rolleyes:

[D] Voltage-controlled current source

[F] 200mA "current source"
 

Attachments

  • HH_Ch3_Isource.JPG
    HH_Ch3_Isource.JPG
    30.9 KB · Views: 1,369
  • HH_Ch3_200mA_NBad.JPG
    HH_Ch3_200mA_NBad.JPG
    38.4 KB · Views: 1,342
  • #75
berkeman said:
Okay, how about a couple last opamp circuits, and then we can switch gears. Here are two more from H&H Chapter 3 on opamps. I especially like the 2nd one [F], which was published in another textbook as an example of a "good" circuit idea...:rolleyes:

[D] Voltage-controlled current source

[F] 200mA "current source"

I'll give it a shot.
[D] I think it has something to do with R.

[F] Quick question about F. That "zener" thing in the middle with 9v next to it, does that mean there's a 9v voltage drop across it?

Sorry if I'm wrong, I'm still an undergrad with almost no real life experience.
 
  • #76
EugP said:
I'll give it a shot.
[D] I think it has something to do with R.

[F] Quick question about F. That "zener" thing in the middle with 9v next to it, does that mean there's a 9v voltage drop across it?

Sorry if I'm wrong, I'm still an undergrad with almost no real life experience.

Yes a zener is supposed to show a constant voltage.
It was intended as a 9v reference. Note that there is a maximum current that can flow thru the 240 ohm resistor before the voltage will drop below 9v.

In [D] there is something you can do with R that would fix the major issue.
What do you think it is?
 
  • #77
NoTime said:
Yes a zener is supposed to show a constant voltage.
It was intended as a 9v reference. Note that there is a maximum current that can flow thru the 240 ohm resistor before the voltage will drop below 9v.

In [D] there is something you can do with R that would fix the major issue.
What do you think it is?

For [D] I think the R and "load" should be switched.

I'm still thinking about [F] though, I've never seen that before.
 
  • #78
D won't work because the opamp is supposed to be operating in a linear mode, but its two inputs are are different voltages. For example think about the case where the load has zero resistance. One input is at 0V, the other is at the "control voltage".

Swapping R and the load seems to fix that problem.
 
  • #79
F: I'm assuming the op amp has a +15/-15 power supply, not +15/0.

If you took away the 240 resistor, this would "sort of" work, except that all the load current would flow through the zener. A typical small zener wouldn't take 200mA current and 1.8W dissipation though.

I suppose the 15V / 240R is meant to supply 25 mA through the zener which seems a sensible design value.

If that's identified the problem, somebody else can have a go at fixing it.
 
  • #80
For circuit F, I think we need a resistor from the non-inverting input to ground to deal with offset voltage due to the small input bias current. Or are we intentionally leaving it this way to amplify the [offset] voltage difference to produce an output?

For circuit D, I also think that swapping the positions of the R and the load will work. With the circuit we'd want to fix it by having R connected to the inverting input to ground. And have the load connected to R and the output of the op-amp.
 
Last edited:
  • #81
Good job folks on circuit [D]. Yep, the reference resistor and the load were swapped. Doh!

On [F], if the opamp is doing its job and holding its V- input at ground, what is the voltage on top of the "9V" Zener (just calculate the resistor voltage divider first, ignoring the Zener diode). So what does this mean the current through the load really is?

It looks like they were trying to make an opamp circuit that would take a current 9V/45 Ohms and pass that current through the load. Maybe altering the 240 Ohm resistor value might make this circuit work, but it's dumb to brute force push extra current through the 9V Zener (and have to use a bigger, more expensive Zener part), when the opamp is supposed to be the amplifying device. Do you see a way to use the topology of circuit [D] instead (after being fixed with the swap that we talked about)?
 
  • #82
berkeman said:
Maybe altering the 240 Ohm resistor value might make this circuit work
Not if a 200ma load current is desired.
200ma * 45 Ohms is a 9v drop.
At least they got the values right even if they wired it wrong. :smile:
 
  • #83
berkeman said:
Good job folks on circuit [D].
It looks like they were trying to make an opamp circuit that would take a current 9V/45 Ohms and pass that current through the load. Maybe altering the 240 Ohm resistor value might make this circuit work, but it's dumb to brute force push extra current through the 9V Zener (and have to use a bigger, more expensive Zener part), when the opamp is supposed to be the amplifying device. Do you see a way to use the topology of circuit [D] instead (after being fixed with the swap that we talked about)?

So our problem now is to not push 200mA thru the zener? If we used the fixed version of circuit D, we would apply the reference voltage of 9V to the non-inverting input. We'd of course need to bias the zener properly by choosing an appropriate resistor. Since the fixed version of circuit D uses negative feedback, we would have the zener voltage at the inverting input. So if we use R to be 45ohms, we'd have a current of 200mA thru the load. IN this configuration we don't have to worry about excess current thru the zener because we are using the resistor to get the appropriate zener current for voltage regulation.
 
Last edited:
  • #84
Looks like you have the right idea.

ranger said:
we would apply the reference voltage of 9V to the non-inverting input.
...
we would have the zener voltage at the inverting input.
Yes, the negative feedback voltage will approximate the reference voltage.
Why won't it be exact?

ranger said:
We'd of course need to bias the zener properly by choosing an appropriate resistor.
The choice of zener bias resistor (the 240 ohm) will affect the final load current.
Why?
 
  • #85
NoTime said:
Yes, the negative feedback voltage will approximate the reference voltage.
Why won't it be exact?
Because the feedback loop tends to subtract some of the output voltage proportional to Z*Vout; where Z is impedance and is obtained by applying the voltage divider to resistors on the inverting input (feedback network)?

NoTime said:
The choice of zener bias resistor (the 240 ohm) will affect the final load current.
Why?

Does it have to do with the fact that the inverting and non-inverting inputs see different resistance? And becuase of the high bias current on the non-inverting input, we have offset voltage due to this?
 
Last edited:
  • #86
ranger said:
Because the feedback loop tends to subtract some of the output voltage proportional to Z*Vout; where Z is impedance and is obtained by applying the voltage divider to resistors on the inverting input (feedback network)?



Does it have to do with the fact that the inverting and non-inverting inputs see different resistance? And becuase of the high bias current on the non-inverting input, we have offset voltage due to this?
No. The answers have to do with the properties of real op-amps and zeners.

You are vaguely headed in the right direction with the first answer.

Your second answer makes me wonder just where did you put the 240 ohm resistor and zener?
 
  • #87
NoTime said:
No. The answers have to do with the properties of real op-amps and zeners.

You are vaguely headed in the right direction with the first answer.

Your second answer makes me wonder just where did you put the 240 ohm resistor and zener?

Well, let me recap [IIRC] the properties of real op-amps. They have offset voltage, bias and offset [input] current, output current limit, and gain degradation with increasing frequencies.

With regards as to why the inverting input will not see the exact zener voltage - the best answer I can come up with is that the feedback network subtracts some of the output voltage.

The 240ohm is connected to the 15V power supply, the zener to ground (anode:ground; cathode:non-inverting input), and the non-inverting input is hooked up to the zener to get the reference voltage. No?
 
Last edited:
  • #88
ranger said:
The 240ohm is connected to the 15V power supply, the zener to ground (anode:ground; cathode:inverting input), and the inverting input is hooked up to the zener to get the reference voltage. No?
Ouch! No!

Where did you lose this statement?
ranger said:
we would apply the reference voltage of 9V to the NON-inverting input.

Take another look at the revised circuit [D]
 
  • #89
NoTime said:
Ouch! No!

Where did you lose this statement?Take another look at the revised circuit [D]

That was a typo, sorry. I'll fix it in post #87 so others don't get confused.

Care to give anymore hints?
 
Last edited:
  • #90
ranger said:
That was a typo, sorry. I'll fix it in post #87 so others don't get confused.

Care to give anymore hints?

The statement might have been a typo on your part.
But, it was correct :smile:
And the reason I thought you had this figured out.
 
  • #91
So I guess we can wrap up circuits D and F?
 
  • #92
ranger said:
So I guess we can wrap up circuits D and F?
So what is your final solution?
Say where the 45 ohm resistor gets connected also.

You could also try to figure out what the op-amp parameter is that you left out of the list before. :smile:
 
  • #93
NoTime said:
So what is your final solution?
Say where the 45 ohm resistor gets connected also.

You could also try to figure out what the op-amp parameter is that you left out of the list before. :smile:

Well my final solution is this:
https://www.physicsforums.com/showpost.php?p=1392945&postcount=83

I'm still unsure as to whether the answers to the questions you asked in post #84 are in my post #85 and #87.

I believe the final op-amp property I left out was slew rate.
 
  • #94
ranger said:
After your statement that this solution involves connecting the 240 ohm and zener to the inverting (-) input of the op amp. I have to say your solution is wrong and it's back to the drawing board for you.

ranger said:
I'm still unsure as to whether the answers to the questions you asked in post #84 are in my post #85 and #87.

I believe the final op-amp property I left out was slew rate.

Slew rate is the same concept as "gain degradation with increasing frequencies".
However, one of the words in your original statement does relate to my question, but not as presented.

The question on the zener biasing is still unanswered.
 
  • #95
NoTime said:
After your statement that this solution involves connecting the 240 ohm and zener to the inverting (-) input of the op amp. I have to say your solution is wrong and it's back to the drawing board for you.

I indicated that it was a typo, and the linked post (#83) states that I have the zener to the non-inverting input. You're beginning to confuse me :confused:
 
  • #96
ranger said:
I indicated that it was a typo, and the linked post (#83) states that I have the zener to the non-inverting input. You're beginning to confuse me :confused:

:smile: I, apparently, am confused.

Ok, but Berkman will have to provide any additional challenges, since I don't have the book.

I would still be interested if you can come up with answers to my additional questions :smile:
 
  • #97
Okay, I'll take sometime to think about them. But others should definitely step in and make an attempt to avoid a stall here. The questions that NoTime is talking about can be found here:
https://www.physicsforums.com/showpost.php?p=1392983&postcount=84
My attempt is here:
https://www.physicsforums.com/showpost.php?p=1393025&postcount=85

Just in case anyone got lost, NoTime's questions are in response to the fix for circuit F:
https://www.physicsforums.com/showpost.php?p=1392945&postcount=83
 
Last edited:
  • #98
The attachment is what I think Ranger meant (and I agree with it).

Re the 240R resistor and zener, the zener isn't an ideal regulator so the voltage across it depends on the current through it. The 240R gives a current of 25ma which presumably is the recommended current sheet given on the data sheet for the part number being used.

After changing the circuit, the only function of the zener is as a voltage reference, it doesn't need to be a high current device taking the full 200ma load. 25ma seems a bit high for a low power zener. I would have thought about 5ma would be enough. Changing the 240R to 1.2K would set the current to 5ma.
 

Attachments

  • constcurrent.gif
    constcurrent.gif
    1.7 KB · Views: 1,270
  • #99
Well, you folks have been busy over the weekend! I'm not sure I'm 100% in synch with where you are on the latest problem, but I think there were two last things that NoTime and ranger were discussing.

** I think that NoTime may be referring to the limited Iout of most opamps (is that right?), and that would be my fault for not mentioning that I was assuming that we were carrying along the high-current opamp shown in the original 200mA Bad Circuit. Most opamps are not going to give you that kind of output current. The issue of unbalanced input impedances was mentioned by ranger -- where the input bias offset current will generate an error term in the output. This is hard to avoid in this simple implementation, but could be mitigated if the opamp had fairly low input bias current offset specs.

** The second issue raised by NoTime is a very important one, and I'll add an extra twist to it. Look at a datasheet for Zener diodes, like this one:

http://www.vishay.com/docs/85763/bzx84v.pdf

What current is the Zener voltage measured at for this small-signal Zener family? What should the resistor in our circuit be, if we were using this Zener series? What would be the effect of chosing a smaller or larger resistor than this?

And for my extra-credit Quiz Question -- how does the temperature coefficient of Zener diodes vary with Vz? What value of Zener diode generally has the lowest temperature coefficient?
 
Last edited:
  • #100
berkeman said:
** The second issue raised by NoTime is a very important one, and I'll add an extra twist to it. Look at a datasheet for Zener diodes, like this one:

http://www.vishay.com/docs/85763/bzx84v.pdf

What current is the Zener voltage measured at for this small-signal Zener family? What should the resistor in our circuit be, if we were using this Zener series? What would be the effect of chosing a smaller or larger resistor than this?

And for my extra-credit Quiz Question -- how does the temperature coefficient of Zener diodes vary with Vz? What value of Zener diode generally has the lowest temperature coefficient?

Well if we want to get the 9V regulation, we could go with the BZX84C9V1-V, which has a range of 8.5V-9.6V. it seems that they are indicating that they got that range by using a test current of 5mA. We are way over that limit here (62mA). We would need to use a bigger resistor to trim the current down to 5mA.

I have to run. I'll see if I can get to the quiz question later.
 
Back
Top