< Return to Video

Summing op-amp circuit

  • 0:01 - 0:03
    - [Voiceover] Another form
    of an op-amp circuit is
  • 0:03 - 0:05
    called the summing op-amp.
  • 0:05 - 0:07
    We're gonna work through
    how this one works.
  • 0:07 - 0:09
    Let's draw in here now is an inverting
  • 0:09 - 0:12
    op-amp circuit with a single input.
  • 0:12 - 0:14
    We're gonna call this
  • 0:14 - 0:15
    this will be V.
  • 0:15 - 0:17
    We'll call the VA for now.
  • 0:17 - 0:19
    And we have V out.
  • 0:19 - 0:21
    And we worked out what
    how this worked before
  • 0:21 - 0:24
    where V out was a function of
  • 0:25 - 0:28
    VA times the ratio of these two resistors.
  • 0:29 - 0:31
    And now I'm gonna add
    a little twist to this
  • 0:31 - 0:33
    and we're gonna analyze a
    different kind of circuit.
  • 0:33 - 0:36
    So I'm gonna add another
    resistor right here.
  • 0:36 - 0:37
    Like this.
  • 0:40 - 0:42
    And a second input.
  • 0:42 - 0:44
    We'll call this VB.
  • 0:44 - 0:47
    And so I have RB, or sorry, RA here.
  • 0:48 - 0:49
    This will be RB.
  • 0:50 - 0:53
    And we'll call this R feedback.
  • 0:55 - 0:56
    And the question again is now,
  • 0:56 - 0:59
    what is V out in terms of
  • 0:59 - 1:01
    the inputs, VA and VB?
  • 1:03 - 1:07
    We're gonna use the idea
    of a virtual ground.
  • 1:11 - 1:12
    Virtual ground.
  • 1:12 - 1:14
    The idea of a virtual
    ground applies to most
  • 1:14 - 1:16
    op-amp circuits, and
    it's a really useful way
  • 1:16 - 1:18
    to simplify the analysis.
  • 1:18 - 1:20
    And when we use a virtual ground
  • 1:20 - 1:22
    one of the things I like to do is just
  • 1:22 - 1:24
    draw a little symbol here
  • 1:24 - 1:26
    like that, for my virtual ground.
  • 1:26 - 1:29
    The virtual ground, as a review,
  • 1:29 - 1:31
    if the voltage coming out of this op-amp
  • 1:31 - 1:34
    is in a reasonable range,
    sort of a plus or minus
  • 1:34 - 1:36
    10 volts, or something like that.
  • 1:36 - 1:39
    And because the gain of
    this op-amp is so enormous
  • 1:39 - 1:42
    on the order of 100,000, or a million
  • 1:43 - 1:46
    that means that, when
    this is working properly
  • 1:46 - 1:49
    that these two voltages will
    be really close together.
  • 1:49 - 1:52
    They'll be only microvolts apart, at most.
  • 1:52 - 1:54
    And, because they're so close
  • 1:54 - 1:57
    we can just say, let's
    just say they're the same
  • 1:57 - 1:59
    for the purposes of
    analyzing this circuit.
  • 1:59 - 2:03
    And, since this input is at zero volts
  • 2:03 - 2:04
    this is at zero volts.
  • 2:04 - 2:08
    That means that this input
    is very close to zero volts.
  • 2:08 - 2:09
    So this node here
  • 2:09 - 2:11
    this node here, we say
  • 2:11 - 2:13
    is at a virtual ground.
  • 2:14 - 2:16
    So let's move ahead,
    let's analyze this circuit
  • 2:16 - 2:18
    and what we want to
    find is we want to find
  • 2:18 - 2:20
    V out as a function of
  • 2:22 - 2:23
    VA and VB.
  • 2:25 - 2:28
    Let's see if we can do that.
  • 2:28 - 2:30
    So looking at my circuit the other thing
  • 2:30 - 2:32
    I know about op-amps
    that's really important
  • 2:32 - 2:34
    always is, that the current
  • 2:35 - 2:37
    going into an op-amp input
  • 2:37 - 2:39
    is zero, or practically zero.
  • 2:39 - 2:42
    And for the purposes of
    what we're doing here
  • 2:42 - 2:45
    we can treat it as zero.
  • 2:45 - 2:46
    All right.
  • 2:46 - 2:48
    So, we have zero volts on this node.
  • 2:48 - 2:50
    We have zero current going this way.
  • 2:50 - 2:52
    So let's go after
  • 2:52 - 2:54
    let's go after this current right here.
  • 2:54 - 2:55
    Let's figure out what that is.
  • 2:55 - 2:57
    So we'll call that I.
  • 2:58 - 3:01
    And we can express I in terms of VA
  • 3:01 - 3:04
    and VB in these two resistor values.
  • 3:04 - 3:05
    So we can write I
  • 3:06 - 3:08
    equals, now what is it?
  • 3:08 - 3:10
    Well, we have IA here.
  • 3:11 - 3:13
    And we have IB flowing here.
  • 3:15 - 3:18
    That means that I equals
  • 3:18 - 3:19
    IA plus IB.
  • 3:23 - 3:24
    All right.
  • 3:30 - 3:32
    And let me write IA and IB in terms of
  • 3:32 - 3:34
    Ohms Law here.
  • 3:34 - 3:36
    So we get I equals, what is IA?
  • 3:37 - 3:39
    IA is this voltage
  • 3:42 - 3:43
    divided by RA.
  • 3:43 - 3:45
    And this voltage is VA
  • 3:45 - 3:47
    minus zero volts.
  • 3:48 - 3:49
    So it's VA
  • 3:50 - 3:51
    over RA.
  • 3:53 - 3:55
    And now let's write down what's IB?
  • 3:55 - 3:56
    IB
  • 3:57 - 3:59
    we look at this voltage here.
  • 4:00 - 4:02
    This voltage is VB minus
  • 4:04 - 4:04
    zero.
  • 4:04 - 4:06
    Or just plain
  • 4:07 - 4:08
    VB over RB.
  • 4:12 - 4:14
    All right, so that's one step.
  • 4:14 - 4:16
    We've written this current in terms of
  • 4:16 - 4:19
    what's going on on the
    input side over here.
  • 4:19 - 4:22
    Now one thing we know,
    because this current is zero,
  • 4:22 - 4:22
    we know, what?
  • 4:22 - 4:24
    We know
  • 4:24 - 4:25
    this current is I.
  • 4:27 - 4:30
    And, if I's going into RF
  • 4:30 - 4:34
    we'll label the voltage on RF like that.
  • 4:34 - 4:36
    So now let's write an expression for I
  • 4:36 - 4:39
    in terms of RF and this voltage here.
  • 4:40 - 4:41
    What is this voltage here?
  • 4:41 - 4:43
    Well, let's look at the two ends.
  • 4:43 - 4:45
    This is zero volts on this node here.
  • 4:45 - 4:48
    And on this side it's
  • 4:48 - 4:50
    V out.
  • 4:50 - 4:51
    So, the current there, the current
  • 4:51 - 4:52
    on that side
  • 4:53 - 4:54
    equals
  • 4:56 - 4:58
    it's zero minus V out.
  • 4:58 - 5:00
    So minus V out
  • 5:01 - 5:02
    divided by RF.
  • 5:04 - 5:08
    That's Ohms Law for this
    resistor right here.
  • 5:10 - 5:13
    Now we know that this
    current equals this current.
  • 5:13 - 5:15
    So let's just set these
    two expressions together.
  • 5:15 - 5:17
    So I'll do that over here.
  • 5:21 - 5:24
    I can write minus V out
  • 5:24 - 5:25
    over RF
  • 5:26 - 5:28
    equals this one
  • 5:31 - 5:31
    VA over RA
  • 5:34 - 5:35
    plus VB over RB.
  • 5:39 - 5:41
    Now we can get the final function
  • 5:41 - 5:44
    I'm just gonna multiply
    through by RF on both sides.
  • 5:44 - 5:45
    And we get
  • 5:45 - 5:46
    V out equals
  • 5:47 - 5:49
    take the minus sign with us
  • 5:49 - 5:49
    minus
  • 5:52 - 5:52
    RF
  • 5:53 - 5:54
    over RA
  • 5:56 - 5:57
    times VA
  • 5:58 - 6:00
    plus
  • 6:00 - 6:01
    RF
  • 6:02 - 6:03
    over
  • 6:03 - 6:05
    RB
  • 6:05 - 6:06
    times
  • 6:06 - 6:07
    VB.
  • 6:09 - 6:10
    So that's our answer.
  • 6:10 - 6:11
    That's V out
  • 6:11 - 6:13
    as a function of
  • 6:13 - 6:15
    VA and VB, the two inputs.
  • 6:15 - 6:17
    And you can see that the
  • 6:17 - 6:20
    resistor ratio, there's
    two resistor ratios here,
  • 6:20 - 6:23
    that are participating in the answer.
  • 6:23 - 6:25
    So it helps to do a little
    special case of this.
  • 6:25 - 6:27
    Let's let all the resistors be the same.
  • 6:27 - 6:28
    So we'll say that
  • 6:28 - 6:29
    RA equals RB
  • 6:32 - 6:32
    equals RF.
  • 6:33 - 6:36
    And just to pick a real
    number we'll just say
  • 6:36 - 6:38
    they're all equal to 10 K ohms.
  • 6:39 - 6:41
    And let's see what this becomes now.
  • 6:41 - 6:42
    Now we have V out
  • 6:44 - 6:46
    equals, we still have the negative sign.
  • 6:46 - 6:49
    So this is some sort of
    inversion going on here.
  • 6:49 - 6:51
    RF over RA is one.
  • 6:51 - 6:53
    So it's just VA.
  • 6:53 - 6:55
    And RF over RB is one.
  • 6:56 - 6:57
    So this says
  • 6:59 - 7:00
    VB.
  • 7:02 - 7:04
    So this is what gives us the nickname
  • 7:04 - 7:05
    for this expression
  • 7:05 - 7:07
    which is called a
  • 7:08 - 7:09
    a summing
  • 7:12 - 7:13
    op-amp.
  • 7:20 - 7:22
    Let's say I want to use my summing op-amp
  • 7:22 - 7:26
    in an application where what I want is
  • 7:26 - 7:28
    I want V out to equal say
  • 7:29 - 7:31
    minus two times VA
  • 7:33 - 7:35
    plus three times VB.
  • 7:38 - 7:39
    Okay, this is what I want.
  • 7:39 - 7:41
    How do I do that?
  • 7:41 - 7:43
    So, these two coefficients here are
  • 7:43 - 7:46
    functions of the resistor values.
  • 7:46 - 7:49
    That was our original expression up here.
  • 7:49 - 7:51
    So what I want is
  • 7:51 - 7:52
    RF over RA
  • 7:54 - 7:56
    to equal two.
  • 7:56 - 7:57
    And I want RF
  • 7:59 - 8:00
    over RB
  • 8:01 - 8:02
    to equal three.
  • 8:04 - 8:05
    So I can pick values
  • 8:05 - 8:07
    it's the same RF
  • 8:07 - 8:10
    and so I get to adjust RA and RB in here.
  • 8:10 - 8:12
    So I can pick component values.
  • 8:12 - 8:13
    So if I pick
  • 8:14 - 8:16
    RF equals 12 K ohms.
  • 8:20 - 8:22
    Then I can pick
  • 8:22 - 8:23
    RA equals six K.
  • 8:26 - 8:27
    And RB
  • 8:29 - 8:30
    equals four K.
  • 8:33 - 8:35
    And that would give me the ratios I want
  • 8:35 - 8:36
    and that would implement
  • 8:36 - 8:38
    this function here.
  • 8:38 - 8:39
    So I'm gonna go fill those out
  • 8:39 - 8:40
    on the top schematic.
  • 8:40 - 8:43
    We'll just write those in.
  • 8:43 - 8:45
    And we'll go fill these in here.
  • 8:45 - 8:47
    So what we said was RF was 12 K.
  • 8:50 - 8:52
    RA was six K ohms.
  • 8:54 - 8:56
    RB would be four K ohms.
  • 8:59 - 9:00
    And we've designed a circuit
  • 9:00 - 9:03
    that implements our summing function.
  • 9:03 - 9:07
    So, so this is a pretty
    useful op-amp circuit.
Title:
Summing op-amp circuit
Description:

more » « less
Video Language:
English
Duration:
09:08

English subtitles

Revisions