Electrical Circuits and Sensors · Module 7 of 10
Operational Amplifiers
A sensor's output is often a few millivolts: too small to read. The operational amplifier scales, adds, and subtracts voltages with a handful of resistors, and two simple rules let you analyse almost any of them.
Readiness check
This module applies your circuit laws to an active element. Tick only what you can do closed-notes.
- Write KCL at a node.
- Use Ohm's law on a resistor between two known voltages.
- Recognise negative feedback in a circuit.
- Form a ratio of two resistances.
- Recall that a sensor signal may be only millivolts.
The core idea
An ideal op-amp with negative feedback draws no input current and forces its two inputs to the same voltage. Those two rules, applied with KCL, give the gain of any standard amplifier from its resistors alone.
no input current: i+ = i− = 0virtual short: V+ = V−inverting gain = −Rf/RinThe operational amplifier is a high-gain difference amplifier. On its own its gain is enormous, but wrapped in negative feedback it becomes precise and predictable. Two idealisations carry almost all the analysis. First, the input terminals draw no current, because the input resistance is effectively infinite. Second, the feedback drives the difference between the inputs to zero, so the two input voltages are equal, a virtual short. When the non-inverting input is grounded, the inverting input sits at zero too, a virtual ground. Applying KCL at that node, with no current entering the op-amp, the output voltage is fixed entirely by the external resistors. The same two rules give the inverting, non-inverting, summing, and difference amplifiers.
The skills, taught in order
Five skills build from the ideal model to the four amplifiers a sensor circuit needs most.
7.1 The ideal op-amp
The ideal op-amp has infinite open-loop gain, infinite input resistance, and zero output resistance. The first means a tiny input difference drives a large output; the second means no current enters the inputs. With negative feedback these give the two working rules.
7.2 The virtual short and virtual ground
Negative feedback forces V+ = V−, the virtual short. If the non-inverting input is grounded, the inverting input is held at 0 V, a virtual ground, even though no wire connects it to ground. This node is where KCL is written.
7.3 The inverting amplifier
With the input through Rin to the virtual ground and feedback through Rf, KCL gives Vout = −(Rf/Rin)Vin. The gain is negative (the output is inverted) and set purely by the resistor ratio.
| Configuration | Gain | Sign | Use |
|---|---|---|---|
| Inverting | −Rf/Rin | inverted | scaling, summing |
| Non-inverting | 1 + Rf/R1 | same | buffering, gain ≥ 1 |
| Summing | −Σ Rf/Rk | inverted | mixing signals |
| Difference | Rf/R1 (matched) | differential | bridge, sensor |
The four standard amplifiers, each derived from the same two rules applied with KCL.
7.4 The non-inverting amplifier
Feeding the signal to the non-inverting input gives Vout = (1 + Rf/R1)Vin: a positive gain, always at least one, with a very high input resistance that barely loads the source, ideal for reading a sensor.
7.5 Summing and difference amplifiers
The summing amplifier adds several inputs, each scaled by its own resistor, at one virtual ground. The difference amplifier, with matched resistor pairs, outputs a gain times the difference of two inputs, the heart of reading a Wheatstone bridge.
Engineering connection: the instrumentation amplifier that reads a strain-gauge bridge, in Module 9, is a difference amplifier built from these rules.
Worked example 1: an inverting amplifier
An inverting amplifier has Rin = 10 kΩ and Rf = 50 kΩ. The input is 2 V. Find the gain and the output voltage.
- ProblemFind the gain and output of the inverting amplifier in Figure 1.
- Given / findRin = 10 kΩ, Rf = 50 kΩ, Vin = 2 V. Find the gain and Vout.
- AssumptionsIdeal op-amp; negative feedback; non-inverting input grounded.
- ModelThe inverting node is a virtual ground; KCL gives Vout = −(Rf/Rin)Vin.
- Equationsgain = −Rf/RinVout = gain × Vin
- Solvegain = −50/10 = −5. Vout = −5 × 2 = −10 V.
- CheckThe input current is 2/10 kΩ = 0.2 mA; it flows through Rf, dropping 0.2 mA × 50 kΩ = 10 V below the virtual ground, so Vout = −10 V.
- ConclusionThe output is five times the input and inverted, set entirely by the resistor ratio, not by the op-amp's own gain.
Worked example 2: a non-inverting amplifier
A non-inverting amplifier has R1 = 4 kΩ from the inverting input to ground and Rf = 20 kΩ as feedback. The input is 1.2 V. Find the gain and the output voltage.
- ProblemFind the gain and output of the non-inverting amplifier in Figure 2.
- Given / findR1 = 4 kΩ, Rf = 20 kΩ, Vin = 1.2 V. Find the gain and Vout.
- AssumptionsIdeal op-amp; negative feedback; input drives the non-inverting terminal.
- ModelThe virtual short puts Vin at the R1-Rf divider node; gain = 1 + Rf/R1.
- Equationsgain = 1 + Rf/R1Vout = gain × Vin
- Solvegain = 1 + 20/4 = 1 + 5 = 6. Vout = 6 × 1.2 = 7.2 V.
- CheckThe divider from Vout across R1 must equal Vin: 7.2 × 4/(4 + 20) = 7.2 × 4/24 = 1.2 V, matching the input at the virtual short.
- ConclusionThe non-inverting amplifier gives a positive gain of 6 and presents a very high input resistance, so it reads a source without loading it.
Misconceptions and diagnostics
| Mistake | Symptom | Diagnostic question | Correction |
|---|---|---|---|
| Current into the op-amp | KCL includes an input current | "What is the input resistance?" | Ideal inputs draw no current. |
| Virtual short without feedback | Inputs set equal in a comparator | "Is there negative feedback?" | The virtual short needs negative feedback. |
| Sign dropped on inverting gain | Output reported positive | "Is this inverting or non-inverting?" | Inverting gain is −Rf/Rin. |
| Non-inverting gain below 1 | Gain given as Rf/R1 | "Did I add the 1?" | Non-inverting gain is 1 + Rf/R1. |
Practice ladder
An inverting amplifier has Rin = 2 kΩ and Rf = 8 kΩ. Find the gain.
Show answer
gain = −Rf/Rin = −8/2 = −4.
A non-inverting amplifier needs a gain of exactly 10. With R1 = 1 kΩ, find Rf.
Show answer
gain = 1 + Rf/R1 = 10, so Rf/R1 = 9, Rf = 9 kΩ.
A summing amplifier with Rf = 12 kΩ has two inputs: 1 V through 6 kΩ and 2 V through 4 kΩ. Find the output.
Show answer
Vout = −(Rf/R1 · V1 + Rf/R2 · V2) = −(12/6 · 1 + 12/4 · 2) = −(2 + 6) = −8 V.
A thermocouple gives 6 mV at full scale, and your data logger needs about 3 V. Choose an amplifier and resistor ratio to bridge the gap.
What good work looks like
A gain of about 3/0.006 = 500 is needed. A non-inverting amplifier with, say, R1 = 1 kΩ and Rf = 499 kΩ gives 1 + 499 = 500, scaling 6 mV to 3 V while barely loading the thermocouple.
Working with AI, and proving it yourself
Use AI as an examiner, not a solver
Portfolio task
Design an amplifier to scale a real sensor's output to a target range, then verify the gain by computing Vout at two input values.
Retrieval and spaced review
Closed notes. Answer out loud, then reveal.
1. State the two ideal op-amp rules.
No current enters the inputs, and negative feedback makes V+ = V−.
2. What is a virtual ground?
The inverting input held at 0 V by feedback when the non-inverting input is grounded.
3. Give the inverting gain.
−Rf/Rin.
4. Give the non-inverting gain.
1 + Rf/R1, always at least one.
5. What does a difference amplifier output?
A gain times the difference of its two inputs, used to read a bridge.
Textbook mapping
This module follows Alexander and Sadiku, Fundamentals of Electric Circuits, 4th edition. Use these references to read further.
| Topic in this module | Where to read more |
|---|---|
| The ideal op-amp and feedback | Alexander & Sadiku, Chapter 5 |
| Inverting and non-inverting amplifiers | Alexander & Sadiku, Chapter 5 |
| Summing and difference amplifiers | Alexander & Sadiku, Chapter 5 |
Chapter numbers refer to the 4th edition. The op-amp configurations are standard, so any recent edition will align closely.