EEVblog #600 - OpAmps Explained - What is an Operational Amplifier?
-
0:00 - 0:03>> Hi, welcome to Fundamentals Friday.
-
0:03 - 0:05Today, we're going to take a look at
-
0:05 - 0:09the operational amplifier or better known as the op-amp,
-
0:09 - 0:11really important building block.
-
0:11 - 0:14Absolutely essential that you understand how they work.
-
0:14 - 0:17Now, there are two ways to learn about op-amps.
-
0:17 - 0:21One is this way, the hard way.
-
0:21 - 0:24We don't want to do it that way, that sucks.
-
0:24 - 0:29So, let's get rid of this and let's do it the easy way.
-
0:29 - 0:32So, what is an op-amp or an operational amplifier?
-
0:32 - 0:34Well, the name operational amplifier
-
0:34 - 0:36comes from the fact that when they were first developed,
-
0:36 - 0:40they were developed to do mathematical operations. Hence,
-
0:40 - 0:45the name operational amplifier and back then, we didn't have digital computers.
-
0:45 - 0:48They used these for analog computers,
-
0:48 - 0:53so analogue mathematical operations; addition, subtraction, integration,
-
0:53 - 0:56differentiation, stuff like that, even that real hard calculus stuff,
-
0:56 - 1:00op-amps could actually do these operations in hardware.
-
1:00 - 1:02Not all this digital software rubbish.
-
1:02 - 1:03So, that's where they came from.
-
1:03 - 1:06So although, we don't have analog computers today,
-
1:06 - 1:10we still use them for those mathematical operations.
-
1:10 - 1:14You can turn an op-amp into an integrator, for example.
-
1:14 - 1:18You can turn it into a summer which is just an adder and things like that.
-
1:18 - 1:22So, they are really useful circuit building blocks but the main thing we've got to look
-
1:22 - 1:26at is the operational amplifier as an actual amplifier,
-
1:26 - 1:28because that's what they're most commonly used for
-
1:28 - 1:31and probably what you'll mostly use them for as well.
-
1:31 - 1:34So, an op-amp is essentially just an amplifier.
-
1:34 - 1:36Yes, it can be used for those mathematical operations
-
1:36 - 1:39but essentially, what it comes down to is
-
1:39 - 1:44this is a differential amplifier and what that means is that,
-
1:44 - 1:46it's got two inputs over here which we'll talk about and
-
1:46 - 1:49an output and it's got some gain in there,
-
1:49 - 1:52because amplifies have a gain.
-
1:52 - 1:56What it does is it takes the difference between these two input signals,
-
1:56 - 2:00amplifies it by its internal gain or what's called open loop gain,
-
2:00 - 2:03and gives you an output voltage.
-
2:03 - 2:09But op-amps really can't be used as differential amplifiers on their own,
-
2:09 - 2:11even though that's what they are.
-
2:11 - 2:15Rather confusing, but an important aspect you should understand.
-
2:15 - 2:19So, why can't this be used as just a differential amplifier,
-
2:19 - 2:22input signal here, output signal with some gain in there?
-
2:22 - 2:26Well, the answer is they are not designed to be used as differential amplifiers as
-
2:26 - 2:30strange as that may seem because they are essentially differential amplifiers.
-
2:30 - 2:34That was that hard circuit you saw over here before was actually
-
2:34 - 2:38the internal circuitry of an op-amp showing it as a differential amplifier.
-
2:38 - 2:41But hey, let's forget about differential amplifiers.
-
2:41 - 2:45I shouldn't even mentioned it, but it is important to understand
-
2:45 - 2:49the operation of how an op-amp actually works.
-
2:49 - 2:51Now, the reason they don't work as differential amplifiers is
-
2:51 - 2:54because the op-amp, the natural gain,
-
2:54 - 2:59the internal natural gain of the op-amp is enormous and that's
-
2:59 - 3:04the first thing you need to know about op-amps is it's not quite infinite,
-
3:04 - 3:07but you can think of it as infinitely large.
-
3:07 - 3:09It's like millions of times and well,
-
3:09 - 3:11the datasheet won't even tell you.
-
3:11 - 3:14So, if we just try to use an op-amp like this with
-
3:14 - 3:19no external circuitry and just feed like one millivolt on the input here,
-
3:19 - 3:23the gain is so large that the output voltage is going to be so
-
3:23 - 3:27huge that it's just not a practical device at all.
-
3:27 - 3:30So, that's why you never see an op-amp without
-
3:30 - 3:34any external circuitry or what's called negative feedback.
-
3:34 - 3:35So, that brings us to
-
3:35 - 3:40our first practical application for the op-amp which is a comparator.
-
3:40 - 3:43Before we look at that, we will look at the symbol here.
-
3:43 - 3:46Now, an op-amp is typically drawn as a triangle like this.
-
3:46 - 3:49It's got two inputs over here and one input here.
-
3:49 - 3:53Sometimes, it might be flipped depending on the ease of
-
3:53 - 3:57drawing your circuit and the way the signal flows but it's exactly the same thing.
-
3:57 - 3:59Now, these two inputs here,
-
3:59 - 4:04the positive input is called the non-inverting input.
-
4:04 - 4:06Easy to remember because it's positive.
-
4:06 - 4:10The inverting input is likewise easy to remember because it's negative.
-
4:10 - 4:12Negative inverts something.
-
4:12 - 4:17So, that's the terminology you should be using when referring to op-amp's.
-
4:17 - 4:19Very important to get the terminology right otherwise,
-
4:19 - 4:21you'll sound like a bit of a deal.
-
4:21 - 4:23Now, there's an output pin here,
-
4:23 - 4:25easy and there's two power supply pins,
-
4:25 - 4:28a positive and a negative one, which we'll talk about as well.
-
4:28 - 4:31So, I mentioned that the gain of an op-amp
-
4:31 - 4:36naturally inside is designed to be enormous, almost infinite.
-
4:36 - 4:40So, what happens if you just feed voltage on the input here?
-
4:40 - 4:45Well, let's assume that we have one volt on our non-inverting input here and we have
-
4:45 - 4:531.01 volts or slightly above 10 millivolts or even one millivolt above this one here.
-
4:53 - 4:55Well, the amplifier will actually amplify
-
4:55 - 4:59the difference or attempt to amplify the difference between these two inputs.
-
4:59 - 5:07So, the output here will be this huge gain like a million times that one millivolt.
-
5:07 - 5:12So, it'll try and output hundreds and hundreds of thousands of volts and well,
-
5:12 - 5:16it can't do it because well your circuit is only 5,10,15 volts something like that.
-
5:16 - 5:19So, your output is going to saturate.
-
5:19 - 5:23So, if you've got one volt here and let's say,
-
5:23 - 5:311.001 volts here, then your output is going to go boom right up to V plus.
-
5:31 - 5:35It's just going to saturate right up at the positive voltage.
-
5:35 - 5:38So, we've got ourselves a comparator and likewise,
-
5:38 - 5:41if you switch those voltages around so that
-
5:41 - 5:46the non-inverting input is bigger than the inverting input even by a tiny amount.
-
5:46 - 5:52Bingo. Your output is then going to go from positive and it's going
-
5:52 - 5:57to slam right down to the negative right down here.
-
5:57 - 6:01So, you can see that it's just used as a comparator.
-
6:01 - 6:03It's going to be a very crude comparator,
-
6:03 - 6:06and you can use an op-amp as a comparator in a pinch,
-
6:06 - 6:12but they are quite as good as a proper comparator that you can actually buy.
-
6:12 - 6:13They're designed to be comparators,
-
6:13 - 6:17but hey, we can actually use op-amps as comparators.
-
6:17 - 6:21But that's what happens if you connect an op-amp with
-
6:21 - 6:26no feedback at all and what that's called is the open loop configuration.
-
6:26 - 6:28Because there is no loop. There's no loop.
-
6:28 - 6:31The loop is open and we'll close the loop in a minute.
-
6:31 - 6:34But with an open-loop configuration like that,
-
6:34 - 6:37an op-amp is just a comparator.
-
6:37 - 6:41So, now, that we've got that little non-circuiter out of the way,
-
6:41 - 6:44the odd bowl configuration of the comparator for the op-amp,
-
6:44 - 6:48let's have a look at what way op-amps come really useful,
-
6:48 - 6:50and that's as proper amplifiers.
-
6:50 - 6:52Now, to do that, as I said,
-
6:52 - 6:56we need to go from the open-loop configuration with
-
6:56 - 6:59no feedback to adding what's called negative feedback,
-
6:59 - 7:02and hence, the t-shirt, negative feedback.
-
7:02 - 7:08Once you do that, op-amps become incredibly useful and powerful devices.
-
7:08 - 7:11Now, there are two rules with op-amps.
-
7:11 - 7:13That's all you have to remember.
-
7:13 - 7:16It's fantastic. This is how easy op-amps are.
-
7:16 - 7:19If you know these two rules, if you remember these two rules,
-
7:19 - 7:23you can analyze practically any op-amp circuit.
-
7:23 - 7:27You can't get into the real nitty-gritty details of the performance of it perhaps,
-
7:27 - 7:31but you can look at a schematic and you can understand how it works,
-
7:31 - 7:34and the two rules are very simple.
-
7:34 - 7:40Rule number one, no current flows in or out of these inputs.
-
7:40 - 7:48So, there's nothing flowing in or out of these two input pins, ever. That's it.
-
7:48 - 7:53Nothing. Nothing flows in or out regardless of how you connect the circuit out,
-
7:53 - 7:57whether it was the open-loop comparator configuration we saw before,
-
7:57 - 8:01or whether or not, it's a closed loop configuration and
-
8:01 - 8:04inverting or non-inverting amplifiers we're going to look at,
-
8:04 - 8:06nothing flows in or out.
-
8:06 - 8:08Rule number two.
-
8:08 - 8:13Now, this rule only applies when you have a closed loop like this.
-
8:13 - 8:16It doesn't apply at all to the open loop.
-
8:16 - 8:18One we just saw with the comparator.
-
8:18 - 8:20That's why I did the comparative first even though
-
8:20 - 8:23it might have been a little bit confusing to stop that way.
-
8:23 - 8:26Most people stop op-amp explanations with these two rules.
-
8:26 - 8:30But I wanted to show you that comparative first because to highlight,
-
8:30 - 8:34that rule number two it does not apply or only applies
-
8:34 - 8:38to closed loop configurations with negative feedback.
-
8:38 - 8:45Now, rule number two is the op-amp does whatever it can internally.
-
8:45 - 8:48Internal circuitry, which we won't go into, but it does whatever
-
8:48 - 8:53it can to keep these two input voltages the same.
-
8:53 - 8:58Now, the op-amp can't actually change its input voltage.
-
8:58 - 9:03These are inputs, it has no way to actually drive a voltage out and keep them the same,
-
9:03 - 9:06but it can do it with feedback,
-
9:06 - 9:10and that's why this rule only applies to closed loop configuration.
-
9:10 - 9:13So, the op-amp only has control over its output.
-
9:13 - 9:17But if you have feedback, it will change this output voltage to make
-
9:17 - 9:21sure this input equals this input here,
-
9:21 - 9:25and that's a very powerful rule of op-amps.
-
9:25 - 9:28If you see a closed loop configuration like this,
-
9:28 - 9:31you can be pretty sure, that rule, is going to apply.
-
9:31 - 9:33So, using these two rules,
-
9:33 - 9:37let's look at the simplest op-amp configuration possible,
-
9:37 - 9:38and it's not this.
-
9:38 - 9:41It actually has no external components.
-
9:41 - 9:46So, what it has is the output tied back to the inverting input like
-
9:46 - 9:48this and your phages signal or your voltage
-
9:48 - 9:51into the non-inverting positive input like that,
-
9:51 - 9:54and this is called an op-amp buffer.
-
9:54 - 9:56So, using our two rules,
-
9:56 - 10:00very easy to analyze this op-amp buffer circuit.
-
10:00 - 10:03Let's just do DC, because op-amps.
-
10:03 - 10:08The other thing is op-amps are DC coupled amplifiers like
-
10:08 - 10:14an amplified DC as well as AC signals. It's very important property.
-
10:14 - 10:17So, but let's do the DC case.
-
10:17 - 10:21We're fading one volt into a non-inverting input here.
-
10:21 - 10:23What do we get on the output of our op-amp?
-
10:23 - 10:31Well, look, rule number 2, always applies. When you've got feedback in an op-amp circuit.
-
10:31 - 10:36The op-amp tries to keep these two input voltages identical.
-
10:36 - 10:39So, because of the rule, this inverting input here,
-
10:39 - 10:42is going to be equal to this pin up here.
-
10:42 - 10:48The op-amp will ensure that by driving this output to get this input to match this one.
-
10:48 - 10:49So, if you got one volt here,
-
10:49 - 10:51then we've got one volt here,
-
10:51 - 10:53and because it's just connected by a bit of wire,
-
10:53 - 10:55we got to get one volt out here.
-
10:55 - 10:57That's why it's called a buffer.
-
10:57 - 11:01It's not an amplifier because there is no gain.
-
11:01 - 11:02One volt in, one volt out,
-
11:02 - 11:05minus one volt in, minus one volt out.
-
11:05 - 11:07Whatever the voltage is within
-
11:07 - 11:12the limits of the power supply voltages you see. What you see is that?
-
11:12 - 11:17Well, rule number 1. No current flows in or out of the inputs.
-
11:17 - 11:20So, nothing, no current flows in.
-
11:20 - 11:22So, if you've got a load over here, I don't know,
-
11:22 - 11:25it could be some sort of sensor or whatever.
-
11:25 - 11:32It could be a low pass filter. For example, like you're fading a pulse with
-
11:32 - 11:35modulated signal from your micro-controller or something like that,
-
11:35 - 11:38and then you want to buffer that voltage off there.
-
11:38 - 11:40Because no current flows into the input.
-
11:40 - 11:45This op-amp does not disturb your sensor or your circuit
-
11:45 - 11:47that you're actually trying to do.
-
11:47 - 11:52It's what's called a very high impedance input, essentially open circuits.
-
11:52 - 11:54So, it doesn't disturb anything you hook up to it.
-
11:54 - 11:59But the op-amp has what's called a low impedance output,
-
11:59 - 12:02so it can drive a reasonable amount of current,
-
12:02 - 12:04milli-amps, tens of milli-amps.
-
12:04 - 12:08That sought of things some can go as high as a couple of 100 milli-amps via power op-amps,
-
12:08 - 12:10but it can drive a reasonable amount of current.
-
12:10 - 12:13So, that's why it's buffering the signal,
-
12:13 - 12:17a high impedance signal and giving you a low impedance output.
-
12:17 - 12:22Just allows you to drive things with a sensitive input like that.
-
12:22 - 12:26Pretty easy. Very useful configuration, the op-amp buffer.
-
12:26 - 12:29Now the next configuration we're going to take a look at
-
12:29 - 12:32is what's called the non-inverting amplifier,
-
12:32 - 12:36and this is where we tie him L op-amp based that huge,
-
12:36 - 12:41unwieldy gain that changes everywhere with temperature and it's horrible.
-
12:41 - 12:44Anyway, it's got this massive unusable gain in there as
-
12:44 - 12:48a differential amplifier but as a single ended amplifier,
-
12:48 - 12:50that's what single end domains you fade input here,
-
12:50 - 12:52and it's always referenced to ground.
-
12:52 - 12:56We can use these as a single ended amplifier,
-
12:56 - 13:01and we can time that gain by adding negative feedback on it,
-
13:01 - 13:05and I want to explain negative and positive feedback in the mechanisms and how it works.
-
13:05 - 13:08Because, well, that's for a more advanced topic.
-
13:08 - 13:11But anyway, we fade in a feedback resistor here.
-
13:11 - 13:12Just like we did before,
-
13:12 - 13:16we showed it up but we put a resistor in there and we put a resistor back down to ground.
-
13:16 - 13:20So, what it's doing now is this input, the inverting input,
-
13:20 - 13:25is taking a small portion. This feedback resistor we'll call R_f,
-
13:25 - 13:29is always bigger than R_1 here.
-
13:29 - 13:35So, we've just got a voltage divider here that feeds back a smallest part of the input,
-
13:35 - 13:37and that's essentially what negative feedback it.
-
13:37 - 13:42You're taking a part of the output and you're feeding it back to the input,
-
13:42 - 13:45and there's a very simple formula you need to remember for
-
13:45 - 13:49this non-inverting amplifier configuration.
-
13:49 - 13:54I won't try and derive it, but the gain of this amplifier or what's called A_v,
-
13:54 - 13:55that's the actual terminology used.
-
13:55 - 13:58A_v is just gain. You can use gain.
-
13:58 - 14:03Gain equals R_f. The feedback resistor divided by R_1,
-
14:03 - 14:06which goes down to ground here, plus one.
-
14:06 - 14:09You've got to add that plus one on there. So, easy.
-
14:09 - 14:12If we've got annoying k feedback resistor and a 1K,
-
14:12 - 14:14resistor down to ground here.
-
14:14 - 14:20Now, gain is 9_k or 1K or nine plus one, a gain is equal to 10.
-
14:20 - 14:26So, if we fade one volt into the input here, will get 10 volts on the output, easy.
-
14:26 - 14:29Because we have got positive and negative rials which we'll get into,
-
14:29 - 14:34we can feed Ac or DC signals into here about ground
-
14:34 - 14:39and so we can feed negative one volt into here and we'll get negative 10 volts out.
-
14:39 - 14:40So, there you go.
-
14:40 - 14:45That is the basic configuration of a non-inverting amplifier.
-
14:45 - 14:47You might see weird configurations.
-
14:47 - 14:51They might be a capacitor across here or something like that,
-
14:51 - 14:52which we won't get into in this one.
-
14:52 - 14:55But the configuration is the same,
-
14:55 - 14:57if you see your input being fed into
-
14:57 - 15:02the non-inverting input and the feedback going back to the inverting input,
-
15:02 - 15:05you know that's a non-inverting amplifier,
-
15:05 - 15:08and this formula here applies.
-
15:08 - 15:13From this formula, you can also see why our buffer amplifier had a gain of one before,
-
15:13 - 15:17because their feedback resistor is zero, was zero.
-
15:17 - 15:20So, zero on one here which was infinite.
-
15:20 - 15:27So zero on over infinity or very large value is zero plus one.
-
15:27 - 15:29So, our gain is one.
-
15:29 - 15:32That's why our buffer had a gain of one, easy.
-
15:32 - 15:37The math doesn't lie. So, now we get onto the second of our two major configurations.
-
15:37 - 15:40We've already looked at the first one, which was the non-inverting amplifier.
-
15:40 - 15:43The buffer, was just a variation of that.
-
15:43 - 15:46Now, we have, instead of the non-inverting amplifier,
-
15:46 - 15:49we have the inverting amplifier.
-
15:49 - 15:51How can you tell it's an inverting amplifier?
-
15:51 - 15:54Well, just like before, we could tell it was a non-inverting
-
15:54 - 15:57one by the signal going into the positive input, here.
-
15:57 - 16:00The non-inverting input, hence, the name non inverting amplifier,
-
16:00 - 16:07our signaled nail goes into our inverting amplifier pin.
-
16:07 - 16:10So, hence, it's called an inverting amplifier.
-
16:10 - 16:13You'll notice that I've switched the two symbols around here.
-
16:13 - 16:15The positive is now on the bottom.
-
16:15 - 16:21Now, op-amp hasn't changed, I've just done that visually to make it a bit easier here,
-
16:21 - 16:24and that's what you'll commonly find in schematics
-
16:24 - 16:27and CAD packages and all stuff you might find them flipped around,
-
16:27 - 16:29upside down back to front.
-
16:29 - 16:31Whoop-de-doo, all going all around the place.
-
16:31 - 16:34Some pointing down for various feedback possible.
-
16:34 - 16:37So, that's exactly the same op-amp.
-
16:37 - 16:39It's just visually different.
-
16:39 - 16:40You can draw it anyway you all want.
-
16:40 - 16:44Now, our inverting amplifier, that this one is,
-
16:44 - 16:47we have the same as before. We have our feedback resistor,
-
16:47 - 16:54we have our negative feedback going to, in this case, our inverting amplifier pin,
-
16:54 - 16:56instead of our non-inverting one.
-
16:56 - 17:02So, now we are feeding out input through the resistor here.
-
17:02 - 17:04So, it's a different configuration, our signal is not going
-
17:04 - 17:08directly into the non-inverting pin.
-
17:08 - 17:12This brings up our next really important concept with op-amp that you
-
17:12 - 17:14really need to understand.
-
17:14 - 17:20Here's where rule number 1, really comes into play in trying to analyze this thing.
-
17:20 - 17:23It's called virtual ground. Stick with me.
-
17:23 - 17:26So, once again, how do we analyze this?
-
17:26 - 17:29Always go back to your two rules.
-
17:29 - 17:31What's our second rule here?
-
17:31 - 17:33The op-amp tries to keep the input voltages the same.
-
17:33 - 17:37In fact, it will, if you've got this non-inverting configuration
-
17:37 - 17:39and you haven't hit the rails yet.
-
17:39 - 17:41So, if the amplifier is working normally,
-
17:41 - 17:44within normal bounds of your past [inaudible] rail,
-
17:44 - 17:48these two inputs will always be the same.
-
17:48 - 17:54So, we're actually connected our non-inverting input down to ground here.
-
17:54 - 17:57It's connected to ground. We forced it to ground.
-
17:57 - 17:58It's never going to change.
-
17:58 - 18:02So, what is the inverting input here going to do?
-
18:02 - 18:06Well, of course, rule number 2, it's going to be identical, it's going to be the same.
-
18:06 - 18:09So, this point is also going to be ground or zero volts.
-
18:09 - 18:14So, this seems like almost like a pointless circuit,
-
18:14 - 18:16because look at rule number 1, no current flows in or out.
-
18:16 - 18:22So, there's no current flowing in or out of that pin and its ground.
-
18:22 - 18:28We've got both pins grounded and no current flows in or out.
-
18:28 - 18:31So, what's the point of having an op-amp?
-
18:31 - 18:33It's very confusing concept.
-
18:33 - 18:38But once you grasp it, you go, ugh, it's easy and it's quite brilliant.
-
18:38 - 18:41So, the op-amp you, remember, does whatever it needs to
-
18:41 - 18:44on the output drives it to whatever voltage
-
18:44 - 18:46positive and negative in order to make sure that
-
18:46 - 18:50this inverting pin here is equal to the non-inverting pin down here.
-
18:50 - 18:53Makes them the same. We've force this pin,
-
18:53 - 18:54so it can't change this pin.
-
18:54 - 18:57All it can do is change the voltage
-
18:57 - 19:01via the nature of the feedback resistor here to make this zero.
-
19:01 - 19:05Trust me, we'll do a practical measurement of this in a minute.
-
19:05 - 19:08This node here will actually be zero volts.
-
19:08 - 19:11This confuses the heck out of a lot of beginners.
-
19:11 - 19:13They build up their op-amps circuit, they start probing
-
19:13 - 19:16around and they've got their input signal here.
-
19:16 - 19:17It's a one kilohertz, one volt, side way, for example.
-
19:17 - 19:23And here's how they measure. This side of the resistor and the signals there.
-
19:23 - 19:25They measure this side of the resistor.
-
19:25 - 19:27It's ground, the signals is vanished.
-
19:27 - 19:32where's it gone? Strange, but true.
-
19:32 - 19:37So, let's follow this through and use our rules and see if we can analyze this circuit.
-
19:37 - 19:40Once again, the DC case to make it easy.
-
19:40 - 19:44We have got one volt on the input here.
-
19:44 - 19:47Positive one volt with respect to ground of course.
-
19:47 - 19:49Now, we've said before, that trust me,
-
19:49 - 19:52we'll measure it later but this pin is going to be ground.
-
19:52 - 19:55It is going to be zero volts there always.
-
19:55 - 20:01So, all we have got is one volt across our R_1 here, which is 1K. So,
-
20:01 - 20:05we're going to have, one milli-amp flowing through there.
-
20:05 - 20:07Where does it flow?
-
20:07 - 20:11Well, it doesn't flow down here to ground.
-
20:11 - 20:14How can it? Because no current. Rule number 1.
-
20:14 - 20:18No current flows into or out of the input pins.
-
20:18 - 20:20So, it can't flow through the ground here.
-
20:20 - 20:24It has to flow. It's going through here, it's going somewhere.
-
20:24 - 20:26There's one volt across that 1K resistor,
-
20:26 - 20:29Ohm's law, always that must be obeyed.
-
20:29 - 20:31So, that current is flowing, trust me.
-
20:31 - 20:33It can't flow into the input pin.
-
20:33 - 20:34When we know it's high impedance,
-
20:34 - 20:38so it must be flowing up here like this through
-
20:38 - 20:42this 10K resistor and it's being sourced from the output.
-
20:42 - 20:45Remember, this op-amp has internal circuitry.
-
20:45 - 20:52It's got an output buffer, so it can actually drive currents into
-
20:52 - 20:56and out of the various supplies back into there.
-
20:56 - 20:59That is where it's sinking the current too.
-
20:59 - 21:02That's the sneaky part about this.
-
21:02 - 21:06Our current is now being forced up this node, here,
-
21:06 - 21:11and is flowing through, in this case, feedback resistor R_f, which is 10K,
-
21:11 - 21:13I made it 10 times larger you will see why in a minute,
-
21:13 - 21:16then it must be flowing through this.
-
21:16 - 21:19So, we must have a voltage drop across that resistor.
-
21:19 - 21:22Once again, Ohm's law, always must be obeyed.
-
21:22 - 21:26So, if we have got that one milli-amp flowing through our 10K there,
-
21:26 - 21:31we're going to have 10 volt drop across this resistor with
-
21:31 - 21:35positive here and negative here.
-
21:35 - 21:41Aha, negative. These are voltages are with respect to the ground here.
-
21:41 - 21:43Now, here's where it gets a little bit tricky.
-
21:43 - 21:46This positive voltage here, it's we are going to get
-
21:46 - 21:49the plus 10 volts across that resistor there.
-
21:49 - 21:55But because this pin is positive, but were forced, we know these pin is zero, okay.
-
21:55 - 21:59We know it's zero because we've forced it by Y of the op-amp action
-
21:59 - 22:03and rule number 2 here, in what's called a virtual ground ,
-
22:03 - 22:04which I'll talk about in a minute.
-
22:04 - 22:08Then we have, that means, if this is ground,
-
22:08 - 22:15this is positive then we've got minus 10 volts coming out of here.
-
22:15 - 22:21Bingo. There's our inverting amplifier one vote in minus 10 volts out.
-
22:21 - 22:30So, our gain, our formula A_v gain equals R_f on R_1.
-
22:30 - 22:34There is no plus one with the inverting amplifier.
-
22:34 - 22:38The plus one only applies to the other non-inverting configuration.
-
22:38 - 22:41So, by Y of op-amp action,
-
22:41 - 22:44we'll call it a negative feedback here.
-
22:44 - 22:46This point, this node here,
-
22:46 - 22:51at the inverting pin is what's called a virtual ground.
-
22:51 - 22:54Because typically, in this configuration,
-
22:54 - 22:58it is actually grounded because we've grounded this pin, it doesn't have to be,
-
22:58 - 23:01we can fade other voltages into this pin and
-
23:01 - 23:04offset and do all sorts of other stuff but it's still called,
-
23:04 - 23:07even if you do fade another opinion here,
-
23:07 - 23:09it's still called virtual ground.
-
23:09 - 23:11Because it's virtual, it's not real,
-
23:11 - 23:14it's not hard tied, if it was hard tied to ground,
-
23:14 - 23:17if we actually tied that pin to ground,
-
23:17 - 23:18this thing wouldn't work.
-
23:18 - 23:22Because all of our current would flow through here.
-
23:22 - 23:26Through this resistor down to ground and around like that.
-
23:26 - 23:29Then this output here, well,
-
23:29 - 23:31it wouldn't know what to do the output would be zero
-
23:31 - 23:33because they'd be zero volts are difference in here.
-
23:33 - 23:38Remember it's still a differential amplifier as such.
-
23:38 - 23:39So, we've got zero votes difference here.
-
23:39 - 23:41We're going to get zero out.
-
23:41 - 23:44We'd have no current flowing through here and would have zero volts out.
-
23:44 - 23:50So, you can see that it doesn't work unless if you tied that hard brand.
-
23:50 - 23:54But when it becomes a virtual ground by nature of the op-amp action,
-
23:54 - 23:56it will magically works.
-
23:56 - 23:57I hope that makes sense.
-
23:57 - 23:59Because once you get it, it's really easy.
-
23:59 - 24:02So, if functionality wise it's pretty much exactly like
-
24:02 - 24:05the non-inverting amplifier except it
-
24:05 - 24:08inverts and that's it and the gain formula is slightly different.
-
24:08 - 24:11But apart from that pretty much works exactly the same,
-
24:11 - 24:16but that magic virtual ground is at play in this configuration.
-
24:16 - 24:21Of course, as with op-amps there DC couples or works with DC signals.
-
24:21 - 24:23You can just fade in a fixed DC voltage.
-
24:23 - 24:27As I said one volt DC and would give minus 10 volts out.
-
24:27 - 24:32In this case with these value resistance or we can fade in a one volt peak
-
24:32 - 24:37to peak or RMS sine wave for example, about the ground.
-
24:37 - 24:38So, it's centered on ground like this.
-
24:38 - 24:41This is the blue waveform here.
-
24:41 - 24:43Let's just say that's one volt, it's not quite the scale.
-
24:43 - 24:48But you'll get the idea and then our output will be the inverse of that.
-
24:48 - 24:50So, when the input rises,
-
24:50 - 24:54the output goes negative because it's an inverting amplifier.
-
24:54 - 24:56Now, of course one of the disadvantages of
-
24:56 - 24:59the inverting amplifier compared to the non-inverting we saw
-
24:59 - 25:04before is that as you can see there is input current coming from your load here.
-
25:04 - 25:08So, you don't want to use this when you have a high impedance load.
-
25:08 - 25:12Because then it can change the gain equation and marks everything up.
-
25:12 - 25:17That's where you want a non-inverting amplifier or at least a buffer.
-
25:17 - 25:19Some people will actually follow,
-
25:19 - 25:24will put a buffer on the input here and then drive the inverting amplifier.
-
25:24 - 25:26But usually in that sort of case,
-
25:26 - 25:28you'd probably use a non-inverting amplifier.
-
25:28 - 25:34Now, we have to go deeper into this and talk about the power supplies and split rials
-
25:34 - 25:37and all these sort of stuff and that
-
25:37 - 25:41single supply op-amps or try and keep it as brief as possible.
-
25:41 - 25:42Because assorting this configuration,
-
25:42 - 25:45the op-amp only has two power pins.
-
25:45 - 25:49It's usually called V plus and V minus.
-
25:49 - 25:51Now, v minus you can actually
-
25:51 - 25:55connect that to ground there is nothing regardless of what the daughter
-
25:55 - 25:58she's telling you there's nothing inherent in op-amps that
-
25:58 - 26:01make them really a single supply op-amps.
-
26:01 - 26:05So, you can take an op-amp that is V plus and V minus and
-
26:05 - 26:09connect these down to ground like that.
-
26:09 - 26:11There's nothing to stop you as long as you meet
-
26:11 - 26:16the minimum voltage specification and don't exceed the maximum etc.
-
26:16 - 26:18So, what happens if we did that in this case?
-
26:18 - 26:22Our input is a non-inverting input is also grounded here.
-
26:22 - 26:25Well, now it becomes a problem.
-
26:25 - 26:28You get into the practical limitations of op-amps.
-
26:28 - 26:32We've been talking about what's called an ideal op-amp up until this point.
-
26:32 - 26:35These rules here aren't strictly true,
-
26:35 - 26:39I lied but they still a fantastic way,
-
26:39 - 26:44even professionals use to analyze these circuits as a first order, as a first pass.
-
26:44 - 26:45No current flows in or out.
-
26:45 - 26:48Well, if you've been watching my videos you know I've done
-
26:48 - 26:52a previous video on this talking about input bias currents.
-
26:52 - 26:55A little itty bitty teeny-weeny currents can flow
-
26:55 - 27:00into and out of these pins depending on what type of op-amp you're actually got.
-
27:00 - 27:04That's a real practical limitation of these things.
-
27:04 - 27:06The other one is that,
-
27:06 - 27:10I talked about in previous video which I'll link in down below if you haven't seen it.
-
27:10 - 27:16The inputs cannot necessarily go right to the rials bit,
-
27:16 - 27:18whether it's positive, negative,
-
27:18 - 27:20reference to ground or whatever.
-
27:20 - 27:25So, you can get what's called a rial to rial op-amps or rial to rial input op-amps.
-
27:25 - 27:30In this case, if you had a rial to rial input op-amp then, yeah,
-
27:30 - 27:33you might be able to get away with this and have
-
27:33 - 27:39the non-inverting input tied down to ground like this.
-
27:39 - 27:43But hang on, what's the point of that?
-
27:43 - 27:45If you've only got ground,
-
27:45 - 27:47this is an inverting amplifier.
-
27:47 - 27:49It inverts your signal.
-
27:49 - 27:50So, if you fade one volt in,
-
27:50 - 27:56you are going to try the op-amp is going to try and give you minus 10 volts out.
-
27:56 - 28:01But how does it do that when your supply is negative of that?
-
28:01 - 28:04It doesn't work. So, you have to,
-
28:04 - 28:06it's got no room to do it.
-
28:06 - 28:08So, your op-amp has to always be payload in
-
28:08 - 28:13the configuration that you expect your input signals to be referenced to.
-
28:13 - 28:19So if we were to use the inverting op-amp configuration like this
-
28:19 - 28:25with a single supply rail like this and we wanted to amplify AC signals,
-
28:25 - 28:29well, the signals can't go negative like this.
-
28:29 - 28:31I get a negative on the input but you never
-
28:31 - 28:33go to get that negative voltage on the output.
-
28:33 - 28:36But you still want to amplify a signal cleanly like this.
-
28:36 - 28:39But what we need to do is the zero-point,
-
28:39 - 28:44needs to go right down the bottom here like this.
-
28:44 - 28:45So, we need to offset.
-
28:45 - 28:47So, if that's zero volts,
-
28:47 - 28:50we need to offset our input ref,
-
28:50 - 28:54our input and output reference by a certain amount of voltage. How much?
-
28:54 - 28:58Well, typically, half of your supply rial to maximize your headroom.
-
28:58 - 29:00How do we do that? I hinted at it.
-
29:00 - 29:04Before you feed in if this is V plus,
-
29:04 - 29:06you'd go a V plus on two,
-
29:06 - 29:08you would feed that volt is half rial.
-
29:08 - 29:13They usually do that simply by putting a resistor like
-
29:13 - 29:18that going to V plus and a resistor down there,
-
29:18 - 29:19going down to ground,
-
29:19 - 29:21and bingo voltage divider.
-
29:21 - 29:22They show half rial.
-
29:22 - 29:27So, we're offsetting a voltage here, a virtual ground.
-
29:27 - 29:30Remember this is still called a virtual ground even though it's not going to be.
-
29:30 - 29:32So, the voltage here,
-
29:32 - 29:37is going to be equal to the voltage here due to our second op-amp rule.
-
29:37 - 29:40So, if our power supply is 20 volts for example,
-
29:40 - 29:46this point here would be half that if we make these exactly the same value.
-
29:46 - 29:48Of course, mark them the same value of half rial.
-
29:48 - 29:55So, we have an offset voltage here at this point and that shifts away fro up.
-
29:55 - 29:57We'll see that in the practical experiments to follow.
-
29:57 - 30:01Now, as I said some time back you might see some other components
-
30:01 - 30:05around here like few capacitors and things like that around the circuit,
-
30:05 - 30:10that is to change the bandwidth of the circuit effectively.
-
30:10 - 30:13Because we're not going to go into it I'll have to do
-
30:13 - 30:17a second part of this video that goes into op-amp bandwidth and things like that.
-
30:17 - 30:22I have done one on cascading op-amp bandwidths which I'll linking down below.
-
30:22 - 30:25But suffice it to say that
-
30:25 - 30:29an ideal op-amp that we've been looking at has an infinite bandwidth.
-
30:29 - 30:32It's infinite frequencies and signals but in practice,
-
30:32 - 30:35no of course now you practical op-amp might have
-
30:35 - 30:39a one megahertz bandwidth or a 100 kilohertz bandwidth or something like that.
-
30:39 - 30:42It could be a nice fast 100 megahertz,
-
30:42 - 30:46but it's always going to have a bandwidth which changes with
-
30:46 - 30:50your gain or gain bandwidth product and I've done a separate video, I'll link it in.
-
30:50 - 30:53But sometimes you might see a little bypass capping,
-
30:53 - 30:56there might be 10 buff or a 100 buff, something like that.
-
30:56 - 31:00That's just a rolling off the frequency response of that.
-
31:00 - 31:05Likewise, you might see a little cap across something like this, for example,
-
31:05 - 31:11if you are offsetting this thing using a single supply like this.
-
31:11 - 31:15I won't go into the details but basically any noise
-
31:15 - 31:19on this point here will be amplified and picked up on the virtual ground,
-
31:19 - 31:21so you'll get noise on your output signal.
-
31:21 - 31:25So, you might stick a big OS in one or 10 micro-farad cap
-
31:25 - 31:30across here for example and really make that virtual ground really noise free.
-
31:30 - 31:33But that's beyond the basics.
-
31:33 - 31:35One little mistake that I noticed, oops!
-
31:35 - 31:38My formula here for the inverting amplifier,
-
31:38 - 31:42it needs a negative in front of it because the gain is actually native.
-
31:42 - 31:44So, the gain needs,
-
31:44 - 31:49in this case is not 10, it's minus 10.
-
31:49 - 31:53So, just back to this voltage rial thing briefly,
-
31:53 - 31:56because it is something that is rather
-
31:56 - 31:59confusing because there is no ground pin on an op-amp.
-
31:59 - 32:02There is only the positive and negative.
-
32:02 - 32:03So, we'll, where does your reference go?
-
32:03 - 32:06Well the reference is part of the external circuit.
-
32:06 - 32:10In this case, back to our non-inverting amplifier configuration.
-
32:10 - 32:12He's our ground reference here and then
-
32:12 - 32:16our positive and negative supply is here like this.
-
32:16 - 32:19I plus 15 volts and minus 15 volts.
-
32:19 - 32:24If we want to fade in a signal that goes both positive and negative.
-
32:24 - 32:27If we're only fading in a signal that's positive above ground
-
32:27 - 32:32then this here could be tied down to here like this.
-
32:32 - 32:35Then it has to be above that,
-
32:35 - 32:38the output cannot magically go negative.
-
32:38 - 32:42It can only go negative to a ground reference if you have
-
32:42 - 32:46that minus 15 volt rialling there. Clear as mud.
-
32:46 - 32:49Just like the inverting configuration,
-
32:49 - 32:52if we wanted to pair on this from a split supply,
-
32:52 - 32:55we can have this grounded like this and then we can add
-
32:55 - 33:01a bias voltage in here like this to actually offset the voltage.
-
33:01 - 33:04Then it can get into all sorts of we doing
-
33:04 - 33:07wonderful things with AC coupling these amplifies.
-
33:07 - 33:11All of the opening of configurations we looked at have been DC coupled,
-
33:11 - 33:13but you can actually AC couple them so much.
-
33:13 - 33:18Why is stopped might seem capacitors on the inputs and outputs to the op-amps.
-
33:18 - 33:22Now, he's a tricky configuration which I'll briefly touch on that
-
33:22 - 33:25combines the two different configurations
-
33:25 - 33:28we've seen before and a couple of the things we've looked at.
-
33:28 - 33:29It's the differential amplifier.
-
33:29 - 33:31You know how I said op-amps are,
-
33:31 - 33:34essentially a differential amplifier that's how they work,
-
33:34 - 33:39but they do that in the open-loop configuration.
-
33:39 - 33:40So, they hopeless, they're useless for that.
-
33:40 - 33:47But if you combine the inverting amplifier configuration that we just saw.
-
33:47 - 33:50So, we've got the feedback going here our signal going in,
-
33:50 - 33:54that's a standard inverting configuration.
-
33:54 - 34:00We have exactly those two resistors that we saw before to buyers that voltage up.
-
34:00 - 34:02But instead of going to the supplier rial,
-
34:02 - 34:09we make that other differential input and bingo it becomes a differential amplifier.
-
34:09 - 34:13I'll let you go through the actual calculation yourself to find out.
-
34:13 - 34:15But basically, the difference that we fading in,
-
34:15 - 34:19if we fade it in any one volt into here and 1.1 volts into here,
-
34:19 - 34:21we have a difference of 0.1 volts and
-
34:21 - 34:25the gain of this amplifier exactly like the inverting configuration,
-
34:25 - 34:30negative R_2, on R_1 we used R F before I'll call it R_2 here.
-
34:30 - 34:33So, R_2 on R_1 10K on 1K.
-
34:33 - 34:36We have a gain and you're going to add negative in there.
-
34:36 - 34:38So, it's a gain of minus 10.
-
34:38 - 34:41But because L bias voltages is not fixed it's
-
34:41 - 34:47actually the differential input signal. Look what happens.
-
34:47 - 34:48We got one volt here.
-
34:48 - 34:50We've got a divider it here.
-
34:50 - 34:52R_1 these two values are the same,
-
34:52 - 34:53R_1 is equal to R_1 here,
-
34:53 - 34:55R_2 is equal to R_2 here.
-
34:55 - 35:01They must match precisely to get good common mode rejection ratio which we won't go into.
-
35:01 - 35:04But suffice it to say if I got one volt on this point here relative to ground,
-
35:04 - 35:09we'll have 0.99999 repaid out at that point there,
-
35:09 - 35:11and that becomes our virtual ground.
-
35:11 - 35:13Bingo, I will have that same voltage there,
-
35:13 - 35:20then we'll have a 1.1 volts here that has X and then you subtract that from that,
-
35:20 - 35:22that and you get X amount of current flowing through here,
-
35:22 - 35:25which then must flow through the 10 K which has 1.
-
35:25 - 35:30999 voltage across it subtract the difference there.
-
35:30 - 35:34It's exactly the same configuration as before with the bias voltage.
-
35:34 - 35:38But they will lift with an output voltage of minus one.
-
35:38 - 35:44So, if amplified, the difference in our input signal by the gain here 10.
-
35:44 - 35:49It's not a terrific differential amplifier, but it works.
-
35:49 - 35:54So, we've timed out op-amp that is a differential amplifier anyway, but pretty unusable.
-
35:54 - 35:58We've actually made it into a pretty usable differential amplifier.
-
35:58 - 36:00Beauty. Just combines both of
-
36:00 - 36:05those techniques and there's lots of tricky stuff like this you can do with op-amps,
-
36:05 - 36:09and just briefly another one of these tricky configurations goes back to the name
-
36:09 - 36:13the operational amplifier and one of those mathematical operations the integrator.
-
36:13 - 36:15We won't go into integrals and all that sort of stuff.
-
36:15 - 36:22But what we can do basic inverting configuration here instead of a feedback resistor,
-
36:22 - 36:25we have a feedback capacitor. What does that do?
-
36:25 - 36:29Well, L standard input voltage here following the rule
-
36:29 - 36:34no current flows in but we have a virtual ground of course rule number two.
-
36:34 - 36:36So, if that's one K,
-
36:36 - 36:40and that's one volt there where we have one milli-amp flowing through that resistor.
-
36:40 - 36:42Where does it flow?
-
36:42 - 36:43Can't flow into the op-amp,
-
36:43 - 36:47it's got to flow up here and through the capacitor.
-
36:47 - 36:53So, you've got effectively a constant current of one milli-amp.
-
36:53 - 36:57This is now a constant current flowing through this resistor.
-
36:57 - 37:01When you have a constant current flowing through a capacitor,
-
37:01 - 37:04you end up with.
-
37:04 - 37:08>> Well, in this case, it's going to ramp negative, down like that.
-
37:08 - 37:14If our input is a step and it goes up like that,
-
37:14 - 37:19the constant current, because it takes time to charge a capacitor,
-
37:19 - 37:23the voltage on the capacitor will increase like that.
-
37:23 - 37:25I say increase because it's an inverting amplifier.
-
37:25 - 37:26So, it's going to go negative.
-
37:26 - 37:28But that's what it does,
-
37:28 - 37:30and that's an integrator,
-
37:30 - 37:35and that is actually a mathematical integral of your input signal.
-
37:35 - 37:38Anyway, that's way too much theory,
-
37:38 - 37:41more than I wanted to do and longer than I wanted to take actually.
-
37:41 - 37:45But suffice it to remember that these two rules
-
37:45 - 37:48of op-amps allow you to analyze practically any configuration,
-
37:48 - 37:50and as a bit of homework,
-
37:50 - 37:54I got to recommend you look at the summing op-amp configuration,
-
37:54 - 37:57the summing amplifier, and figure out how it works because
-
37:57 - 38:00you're going to be using those two rules to figure it out.
-
38:00 - 38:01So, I'll leave that one up to you.
-
38:01 - 38:03But enough of that, let's head on over to
-
38:03 - 38:05the benchy and see if we can measure some stuff.
-
38:05 - 38:09Make sure I wasn't bullshitting you about this virtual ground stuff.
-
38:09 - 38:11Let's check it out. Sounds a bit sas.
-
38:11 - 38:14See if it really works.
-
38:14 - 38:15All right, we're at the breadboard.
-
38:15 - 38:20Let's take a look at an inverting amplifier here because I wanted to show you
-
38:20 - 38:26that virtual ground point there just to show you that there really is no signal there.
-
38:26 - 38:31It actually vanishes in quote marks when you go from the input here to
-
38:31 - 38:33here and then it magically reappears at
-
38:33 - 38:36the output because that's how an op-amp works, as I've explained.
-
38:36 - 38:39Anyway, it got a jellybean LM358 here.
-
38:39 - 38:41It's actually a jewel op-amp.
-
38:41 - 38:45So, we've just tie it off the terminated the top op-amp here.
-
38:45 - 38:50We can probably do a separate video on that on how to properly terminate op-amps,
-
38:50 - 38:52that might make an interesting video.
-
38:52 - 38:54Thumbs up if you want to see that one.
-
38:54 - 38:56Anyway, here we go, I've got a configured,
-
38:56 - 39:00I've got a 10k input resistor here, 100k feedback.
-
39:00 - 39:01So, we got a gain of 10.
-
39:01 - 39:04The formula, of course, is the feedback resistor on that one,
-
39:04 - 39:06bingo, easy, times 10.
-
39:06 - 39:10So, I'm going to fade out two volts peak-to-peak input here.
-
39:10 - 39:14We should get 20 volts peak-to-peak on the output.
-
39:14 - 39:18So, we're using pretty much near the maximum supply rail of the LM358.
-
39:18 - 39:21In this case, I'm pairing it from plus/minus 15 volts.
-
39:21 - 39:24So, we have a split supply.
-
39:24 - 39:25So, our ground reference,
-
39:25 - 39:27our input signal is reference to a ground.
-
39:27 - 39:29I should actually draw that on there.
-
39:29 - 39:30There we go, that's clearer.
-
39:30 - 39:34So, our input is referenced to ground
-
39:34 - 39:38and our non-inverting input here is referenced to ground,
-
39:38 - 39:40and our output is referenced to ground also.
-
39:40 - 39:45But for signals to go negative or for output signals to go negative,
-
39:45 - 39:48we need a negative rail on here.
-
39:48 - 39:50So, we're using minus 15 volts.
-
39:50 - 39:51So, plus 15 to pair it,
-
39:51 - 39:52minus 15 as well.
-
39:52 - 39:55So, 30-volt total supply on there,
-
39:55 - 39:59allows us to go positive and negative signals, input and output.
-
39:59 - 40:01So, let's go over to our power supply.
-
40:01 - 40:03Here it is, plus/minus 15 volts.
-
40:03 - 40:06I got dual tracking on there and you notice that I've joined
-
40:06 - 40:10the supplies here generating the split supply.
-
40:10 - 40:12So, this one actually becomes the negative.
-
40:12 - 40:15So, this is our positive 15 from here to here.
-
40:15 - 40:19This is our negative 15 relative to here because we've strapped the positive one.
-
40:19 - 40:25However, and tada, there we go, we're feeding in.
-
40:25 - 40:28We've just got a one-kilohertz low-frequency signal,
-
40:28 - 40:31two volts peak-to-peak here on the input.
-
40:31 - 40:36You can see our input and output wave forms and these inputs are, of course,
-
40:36 - 40:40all AC coupled and their bandwidth limited as well to
-
40:40 - 40:4520 megahertz to reduce the noise and we're using our high resolution mode as well.
-
40:45 - 40:47So, we get some boxcar averaging in there.
-
40:47 - 40:52That's why we got a nice crisp waveform like that, beautiful.
-
40:52 - 40:55So, what happens if we turn our bandwidth spec to four?
-
40:55 - 41:01In this case, it's my one-gigahertz Tektonics 3000 series and we turn off "Hi Res" mode,
-
41:01 - 41:03going back to sample mode, there we go.
-
41:03 - 41:07We get our nice fuzzy wave forms because we've got that massively high bandwidth.
-
41:07 - 41:09That's the advantage. You can't go into averaging, of course,
-
41:09 - 41:13but "Hi Res" mode does boxcar averaging, just cleans it up.
-
41:13 - 41:16Of course, you can do envelope mode look at that, pretty horrible waveform.
-
41:16 - 41:18So, in looking at this sort of stuff,
-
41:18 - 41:21you definitely don't want to use your regular mode.
-
41:21 - 41:23You want "Hi Res" mode if you've got it.
-
41:23 - 41:26There you go, we're getting exactly what we expect.
-
41:26 - 41:29Look at that, the two volts peak-to-peak in roughly 20 volts out.
-
41:29 - 41:33There's probably going to be some error due to the resistors in here.
-
41:33 - 41:35Anyway, we get in our times 10.
-
41:35 - 41:38Of course, the blue waveform there is the input,
-
41:38 - 41:40that's 500 millivolts per division.
-
41:40 - 41:45So, we're getting our two volts peak-to-peak and our output is five volts per division.
-
41:45 - 41:48So, which is the yellow waveform there and look at that.
-
41:48 - 41:51Of course, because it's an inverting amplifier,
-
41:51 - 41:55the output is exactly 180 degrees out of phase.
-
41:55 - 41:57It's inverted. So, at the moment,
-
41:57 - 41:59I'm probing the input and the output.
-
41:59 - 42:01Now, you wanted to see the virtual ground, didn't you?
-
42:01 - 42:03What happens if I move my input probe,
-
42:03 - 42:08the blue waveform here from the input over to this?
-
42:08 - 42:10You'd expect to see the signal.
-
42:10 - 42:14But as I've told you and as you should trust me,
-
42:14 - 42:16let's move the probe over.
-
42:16 - 42:19>> That is our virtual ground point.
-
42:19 - 42:22Look, flat has attack.
-
42:22 - 42:24The signal has vanished.
-
42:24 - 42:27Magic. But of course you know it's not magic,
-
42:27 - 42:33it's just standard op-amp behavior with virtual ground on the input.
-
42:33 - 42:35That's how an op-amp works,
-
42:35 - 42:37and none of the current hasn't magically vanished.
-
42:37 - 42:39The current is going through the resistor.
-
42:39 - 42:41Ohm's Law still holds.
-
42:41 - 42:44Current is changing because we've got an AC resistor here.
-
42:44 - 42:49There's AC current flowing through this resistor and it's all flowing up here.
-
42:49 - 42:54But this point, by the nature of the op-amp action and the negative feedback,
-
42:54 - 42:56that is a virtual ground.
-
42:56 - 42:58An op-amp rule number two there.
-
42:58 - 42:59Inputs are the sign.
-
42:59 - 43:03The op-amp changes the output here in
-
43:03 - 43:08order to ensure that point is equal to that input there.
-
43:08 - 43:11Easy. That's why we don't see any signal on there.
-
43:11 - 43:16So trap for young players when you're probably being around circuits like this,
-
43:16 - 43:18don't think your signal is vanished.
-
43:18 - 43:22Virtual ground. Remember your op-amps rules, always.
-
43:22 - 43:27Now, I actually chose the LM358 for a reason because it
-
43:27 - 43:32is not like a regular op-amp and not quite like a rail to rail op-amp.
-
43:32 - 43:34It's halfway in-between.
-
43:34 - 43:36Check it out. Here we go.
-
43:36 - 43:38It eliminates the need for dual supplies.
-
43:38 - 43:42Okay. You can use it as a single supply op-amp.
-
43:42 - 43:46But as I said you can use any op-amp as a single supply op-amp.
-
43:46 - 43:49But this one is extra special in that it allows direct
-
43:49 - 43:54sensing near ground and V-out also goes to ground.
-
43:54 - 43:57So effectively, it's not rail to rail.
-
43:57 - 44:01It won't go up to the all the way to the positive rail on the input and output,
-
44:01 - 44:04but it will go down to ground or the
-
44:04 - 44:08negative because an op-amp doesn't have a ground pin.
-
44:08 - 44:09It's the negative rail.
-
44:09 - 44:12So, even if we pair it from splits supplies,
-
44:12 - 44:14plus minus 15 luck we are now,
-
44:14 - 44:19it will still go down to that minus 15-volt pin or that pin four.
-
44:19 - 44:21It'll go down the input.
-
44:21 - 44:26This input here will allow to sense all the way down to the negative rail and also
-
44:26 - 44:31the output will go all the way down to the negative rail and I'll demonstrate.
-
44:31 - 44:35What we've got to look at here is a couple of things on the data sheet.
-
44:35 - 44:38Now, input common-mode range and our voltage range here.
-
44:38 - 44:41As we said, it goes all the way down to
-
44:41 - 44:44that negative P and all zero volts as they call it here.
-
44:44 - 44:46But on the positive side,
-
44:46 - 44:52this op-amp will not go since all go to the airport less than
-
44:52 - 44:591.5 volts below or above 1.5 volts below the positive rail V plus there.
-
44:59 - 45:03So, if we've got an output signal of 10 volts for example,
-
45:03 - 45:09the voltage range says if we want to get an output voltage of 10 volts peak,
-
45:09 - 45:14what we need a V plus rail of at least one and a half volts above that.
-
45:14 - 45:16So, 11.5 volts.
-
45:16 - 45:20So, what we're going to do is lower the voltages here on these rails.
-
45:20 - 45:24We're going to lower V plus from 15 volts down to
-
45:24 - 45:3011.5 and around about that 11.5 volts because we're getting 10 volts peak.
-
45:30 - 45:33On the output, 20 volts peak-to-peak, 10 volts peak.
-
45:33 - 45:36We should start seeing distortion or clipping of
-
45:36 - 45:39that waveform at around about 11 and a half volts.
-
45:39 - 45:40Let's see if we do.
-
45:40 - 45:41Okay. So, here we go.
-
45:41 - 45:42We have 15 volts.
-
45:42 - 45:47I'm going to drop it down by 0.1 volts at a time and notice I have a split supply.
-
45:47 - 45:49It's dual tracking.
-
45:49 - 45:51So, a wave form is still looking good
-
45:51 - 45:55but we expect it to start clipping around about 11 and a half.
-
45:55 - 45:56It might not be precise.
-
45:56 - 45:59This is not an exact value on the data shape but then we go,
-
45:59 - 46:0111 and half it's still there.
-
46:01 - 46:05There we go. It's starting to clip.
-
46:05 - 46:10You can say it. It's actually about 11.2 volts there.
-
46:10 - 46:14You can start to say wave form flattened out.
-
46:14 - 46:21Now, I'll wind down even more because this is not a symmetrical supply op-amp.
-
46:21 - 46:22It actually goes down to zero.
-
46:22 - 46:26We don't start seeing clipping on the bottom here,
-
46:26 - 46:29on the bottom rail, until a significant time.
-
46:29 - 46:32After that now, we're getting both.
-
46:32 - 46:36But I want it back up there and that's about 11.1 volts.
-
46:36 - 46:39But we're seeing that clipping on the top and we won't
-
46:39 - 46:42see it on the bottom for time after.
-
46:42 - 46:46So there you go, just be aware of that and if we had
-
46:46 - 46:52even a worse op-amp in this respect like LM741 or something like that,
-
46:52 - 46:54that can't even go down to the negative rail,
-
46:54 - 46:59we would start to see these rails clip right roughly at the same time.
-
46:59 - 47:03You remember that open-loop gain I was telling you about? How large is it?
-
47:03 - 47:06Well, it tells you a couple of ways in the datasheet.
-
47:06 - 47:08Not all data sheets will have it, but this one does.
-
47:08 - 47:10Large DC voltage gain.
-
47:10 - 47:16So, it doesn't say it's open-loop gain but that is effectively the DC voltage gain,
-
47:16 - 47:21is the gain of the inherent differential amplifier in there and they put it in dB.
-
47:21 - 47:24So, you use your 20 log formula.
-
47:24 - 47:29You reverse that and you get about a 100,000.
-
47:29 - 47:33Likewise, here on the datasheet they've got another way to tell you it's called now,
-
47:33 - 47:34it's called something different.
-
47:34 - 47:37It's called the large signal voltage gain there,
-
47:37 - 47:40it specify for a certain rail. But there we go.
-
47:40 - 47:44Typically, a hundred and they specify in volts per millivolt.
-
47:44 - 47:49So, if you divide 100 volts by 1 millivolt what do you get?
-
47:49 - 47:51Same figure, 100,000.
-
47:51 - 47:52There is your open-loop gain.
-
47:52 - 47:56So, there's just a quick out practical demonstration showing the virtual ground effect
-
47:56 - 48:01there and also the voltage rail limitations for positive and negative.
-
48:01 - 48:05I should do another part of this video on op-amp limitations,
-
48:05 - 48:07practical limitations, things like that.
-
48:07 - 48:08That would be interesting.
-
48:08 - 48:11Thumbs up if you want to see that one.
-
48:11 - 48:15I'll leave you with one last thing. I want to explain it.
-
48:15 - 48:17I'll leave it to you to try and figure out.
-
48:17 - 48:21I chose these values higher than what I had on the white board there.
-
48:21 - 48:22I chose them for a reason.
-
48:22 - 48:27Let's lower them down to 10K and 1K here and
-
48:27 - 48:32see what happens with this specific op-amp LM358.
-
48:32 - 48:33Let's drop these down,
-
48:33 - 48:35still quite high values,
-
48:35 - 48:381K and 10K, 10 ohms or something like that.
-
48:38 - 48:40But let's give it a go.
-
48:40 - 48:45There it is, a 1K input resistor, 10K feedback resistor.
-
48:45 - 48:46Exactly the same gain,
-
48:46 - 48:50exactly the same inputs signal but what's
-
48:50 - 48:58that little funny business there and over there?
-
48:58 - 49:02If we measure our virtual ground point,
-
49:02 - 49:05look at these little sparks there and there
-
49:05 - 49:10corresponding to that little bumping that wave form.
-
49:10 - 49:11Interesting.
-
49:11 - 49:14So, as professor Julius Sumner Miller said,
-
49:14 - 49:16why is it so?
-
49:16 - 49:20I'll leave that to you to figure out. Catch you next time.
- Title:
- EEVblog #600 - OpAmps Explained - What is an Operational Amplifier?
- Description:
-
The most often requested video! In this tutorial Dave explains what Operational Amplifiers (OpAmps) are and how they work. The concepts of negative feedback, open loop gain, virtual grounds and opamp action. The comparator, the buffer, the inverting and non-inverting amplifiers, the differential amplifier, and the integrator circuit configurations are also explained.
Then a practical breadboard circuit to demonstrate a virtual ground and the effect of voltage rail limitations.
All EEVblog Opamp related videos are here:
https://www.youtube.com/playlist?list=PLvOlSehNtuHu2FviAaZaiyXwN41G4b1Lf
Forum: http://www.eevblog.com/forum/blog/eevblog-600-opamps-explained/EEVblog Main Web Site:
http://www.eevblog.com
EEVblog Amazon Store:
http://astore.amazon.com/eevblogstore-20
Donations:
http://www.eevblog.com/donations/
Projects:
http://www.eevblog.com/projects/
Electronics Info Wiki:
http://www.eevblog.com/wiki/ - Video Language:
- English, British
- Duration:
- 49:32
![]() |
CDStunes edited English subtitles for EEVblog #600 - OpAmps Explained - What is an Operational Amplifier? |