
Instruments 2.2
In this session we will:
By the end of this session, you should be able to:
Measurement Chain
Op amps live in step 3 as the main “glue” between the sensor and digital world.

Note
In instrumentation, “signal conditioning” usually means one or more op amp stages plus passive components and references.
Symbol (functional view)
+ noninverting− inverting

+) input, \(V_2\) to inverting (−).− ⇒ output goes negative ⇒ “inverting.”+ ⇒ output goes positive ⇒ “noninverting.”Important
The labels + and − refer to how a positive input change affects the output sign, not to power supply polarity.
In most feedback circuits, we use the ideal op amp model:
+ or − terminalsThese two “golden rules” are enough to analyze almost every op amp circuit you’ll meet in this course.

Using ideal rules:
Tip
You can control both gain and input impedance simply by picking \(R_1\) and \(R_2\).

Non‑ideal parameters:
If we include these, the inverting amplifier gain becomes:
\[ V_0 = -\frac{R_2}{R_1}\left(\frac{1}{1 - \mu}\right)V_{\text{in}} \]
with
\[ \mu = \frac{\left(1 + \frac{z_0}{R_2}\right)\left(1 + \frac{R_2}{R_1} + \frac{R_2}{z_{\text{in}}}\right)}{A + \frac{z_0}{R_2}} \]
For typical values (\(A=200{,}000\), \(z_0=75\Omega\), \(z_{\text{in}}=2\text{M}\Omega\), \(R_2/R_1=100\)), we get \(\mu \approx 0.0005\), so the error in gain is about \(0.05\%\).
Note
Conclusion: for low‑frequency instrumentation work and reasonable resistor values, ideal op amp analysis is usually accurate enough.
Beyond \(A\), \(z_{\text{in}}\), \(z_0\), several key specs matter in practice:
These can all show up as accuracy, drift, or speed limitations in instrumentation circuits.
Offset current compensation trick:
+ input equal to the Thevenin resistance seen by − input.
Example (text Example 17):
Practical choice:
Important
Default to kΩ range for resistors and mA (or less) for currents when designing op amp circuits.

Using rules: \(V_{+} = V_{-} = V_{\text{in}}\), and feedback enforces \(V_{\text{out}} = V_{-}\).
So: \[ V_{\text{out}} \approx V_{\text{in}} \]
Properties:
Used as an impedance transformer: - Same voltage, but from high‑Z sensor into low‑Z load or into the rest of the circuit.
For two inputs \(V_1\) and \(V_2\):
\[ V_{\text{out}} = -\left[\frac{R_2}{R_1}V_1 + \frac{R_2}{R_3}V_2\right] \]
Special choices:

Goal: Implement \[ V_{\text{out}} = 3.4V_{\text{in}} + 5 \]
Strategy:

Resistor choices are made in kΩ so currents are in mA or less.

+ terminal (\(V_{+} = V_{\text{in}}\)).− terminal.At node \(S\) (summing node): \(V_S = V_{-} = V_{+} = V_{\text{in}}\).
Currents:
\[ I_1 = \frac{V_{\text{in}}}{R_1}, \quad I_2 = \frac{V_{\text{in}} - V_{\text{out}}}{R_2} \]
Node equation \(I_1 + I_2 = 0\):
\[ \frac{V_{\text{in}}}{R_1} + \frac{V_{\text{in}} - V_{\text{out}}}{R_2} = 0 \]
Solve:
\[ V_{\text{out}} = \left(1 + \frac{R_2}{R_1}\right)V_{\text{in}} \]
Design a high‑impedance amplifier with gain 42.
We use the noninverting amplifier:
\[ 42 = 1 + \frac{R_2}{R_1} \]
So
\[ \frac{R_2}{R_1} = 41 \Rightarrow R_2 = 41R_1 \]
Pick \(R_1 = 1\text{k}\Omega\) ⇒ \(R_2 = 41\text{k}\Omega\).
Result:
We often care about difference of two voltages, not their absolute values:
\[ V_{\text{out}} = A(V_a - V_b) \]
Define common‑mode voltage:
\[ V_{cm} = \frac{V_a + V_b}{2} \]
Real differential amplifiers have:
Define:
\[ \text{CMRR} = \frac{A}{A_{cm}}, \quad \text{CMR} = 20\log_{10}(\text{CMRR})\ \text{dB} \]
Instrumentation use case: bridge outputs a few mV difference sitting on several volts of common‑mode bias. A good differential/instrumentation amplifier extracts the tiny difference accurately.

Using carefully matched resistors (\(R_1\) pair, \(R_2\) pair):
\[ V_{\text{out}} = \frac{R_2}{R_1}(V_2 - V_1) \]
Limitations:

Many ICs integrate all three op amps plus trimmed resistors into a single instrumentation‑amplifier package.

Transfer function:
\[ V_{\text{out}} = \left(1 + \frac{2R_1}{R_G}\right)\left(\frac{R_3}{R_2}\right)(V_2 - V_1) \]
Design workflow:

Given:
\[ \Delta V = V_a - V_b = 5\left[\frac{100}{100+100} - \frac{102}{100+102}\right] \]
\[ \Delta V \approx -24.75\ \text{mV} \]
Magnitude \(|\Delta V|=24.75\ \text{mV}\).
Using \[ 101 = \left(1 + \frac{2R_1}{R_G}\right)\left(\frac{R_3}{R_2}\right) \]
with \(R_3=R_2\) ⇒ \[ 101 = 1 + \frac{2(100{,}000)}{R_G} \]
Solve: \(R_G = 2000\ \Omega\).
Connect \(V_a\) to \(V_1\) and \(V_b\) to \(V_2\) to get positive output when \(R_4\) increases.

We want current \(I\) through a load to be a function of an input voltage \(V_{\text{in}}\), roughly independent of the load.
Under certain resistor constraints:
Condition: \[ R_1(R_3 + R_5) = R_2 R_4 \]
Resulting transfer: \[ I = -\frac{R_2}{R_1 R_3}V_{\text{in}} \]
Current direction can be positive or negative depending on wiring.
Max load resistance before saturation:
\[ R_{ml} = \frac{(R_4 + R_5)\left[\frac{V_{\text{sat}}}{I_m} - R_3\right]}{R_3 + R_4 + R_5} \]
Note \(R_{ml} < V_{\text{sat}}/I_m\).
Goal: 0–1 V input → 0–10 mA output, op amp saturates at ±10 V.
V–I converter inverts (\(I\propto -V_{\text{in}}\)), so use a first‑stage inverting amplifier to produce \(0\) to \(-1\ \text{V}\) from the original \(0\) to \(1\ \text{V}\).
In V–I stage of Figure 39, choose \(R_1=R_2\) ⇒ \[ I = \frac{V_{\text{in}}}{R_3} \]
For \(I_{\max}=10\ \text{mA}\) at \(|V_{\text{in}}|=1\ \text{V}\): \[ R_3 = \frac{1\ \text{V}}{10\ \text{mA}} = 100\ \Omega \]
Let \(R_5=0\) ⇒ from \(R_1(R_3 + R_5) = R_2 R_4\) and \(R_1=R_2\): \[ R_4 = R_3 = 100\ \Omega \]
Maximum load \(R_{ml}\) from Equation (44):
\[ R_{ml} = 100\left[\frac{10\ \text{V}}{10\ \text{mA}} - 100\right]/200 = 450\ \Omega \]
So the system can drive 0–10 mA through up to ~450 Ω before saturating.
Simple configuration:
Using ideal rules:

Used heavily for receiving 4–20 mA process‑control signals: choose \(R\) so that 4–20 mA maps to the desired voltage (e.g., 1–5 V).

Node equation:
\[ \frac{V_{\text{in}}}{R} + C\frac{dV_{\text{out}}}{dt} = 0 \]
Integrate both sides:
\[ V_{\text{out}}(t) = -\frac{1}{RC}\int V_{\text{in}}(t)\,dt \]
Special case: constant input \(V_{\text{in}} = K\):
\[ V_{\text{out}}(t) = -\frac{K}{RC}t \]
⇒ linear ramp with slope \(-\frac{K}{RC}\).
Practical note:
Target: ramp rising at \(10\ \text{V/ms}\).
For the ideal integrator:
\[ V_{\text{out}}(t) = -\frac{V_{\text{in}}}{RC}t \]
We want slope magnitude \(\left|\frac{dV_{\text{out}}}{dt}\right| = 10\ \text{V/ms}\).
Pick \(RC = 1\ \text{ms}\) and \(V_{\text{in}} = -10\ \text{V}\) ⇒
\[ V_{\text{out}}(t) = +\frac{10}{1\ \text{ms}}t = 10\ \text{V/ms} \cdot t \]
One convenient choice: \(R = 1\text{k}\Omega\) and \(C = 1\ \mu\text{F}\)
since \(RC = 1\ \text{ms}\).

Node equation:
\[ C\frac{dV_{\text{in}}}{dt} + \frac{V_{\text{out}}}{R} = 0 \]
Solve for \(V_{\text{out}}\):
\[ V_{\text{out}} = -RC\frac{dV_{\text{in}}}{dt} \]
Given known \(I(V_{\text{out}})\), we can solve (in principle):
\[ V_{\text{out}} = G\left(\frac{V_{\text{in}}}{R}\right) \]
where \(G(\cdot)\) is a nonlinear function (often the inverse of \(I(\cdot)\)).

Example: Diode feedback for log amplifier
Diode current: \[ I(V_{\text{out}}) = I_0 e^{\alpha V_{\text{out}}} \]
Solve for \(V_{\text{out}}\): \[ V_{\text{out}} = \frac{1}{\alpha}\ln\left(\frac{V_{\text{in}}}{RI_0}\right) \]
Thus the circuit approximates a logarithmic amplifier.

We now take a systems view: given a sensor and required output, how do we design the op amp stages?
Given:
Assume linear mapping: \[ V_{\text{out}} = m V_{\text{in}} + V_0 \]
Use end points:
From the first: \(V_0 = 2.4m\). Substitute into second:
\[ 2.5 = -1.1m + 2.4m = 1.3m \]
So \(m = 2.5/1.3 \approx 1.923\), \(V_0 = 2.4m \approx 4.615\).
Final equation:
\[ V_{\text{out}} = 1.923 V_{\text{in}} + 4.615 \]
Implementation idea:

Trimmer pot in the bias divider allows fine adjustment to exactly 4.615 V.
Problem summary:
Limit sensor current using \(P = I^2R\):
At \(R=1060\ \Omega\):
\[ I_{\max} = \sqrt{\frac{0.005}{1060}} \approx 2.17\ \text{mA} \]
So keep \(I_s < 2\ \text{mA}\) for all Rs.
Linear relationship from \(R_s\) to \(V_{\text{out}}\):
Assume: \[ V_{\text{out}} = mR_s + V_0 \]
Using endpoints:
Subtract:
\[ 10 = 780m \Rightarrow m = 0.0128 \]
Then, from first equation:
\[ -5 = 280(0.0128) + V_0 \Rightarrow V_0 = -8.58 \]
So:
\[ V_{\text{out}} = 0.0128R_s - 8.58 \]
Implementation idea:

Ideal Op Amp Golden Rules (with negative feedback):
Inverting Amplifier:
\[ V_{\text{out}} = -\frac{R_2}{R_1}V_{\text{in}}, \quad Z_{\text{in}} \approx R_1 \]
Noninverting Amplifier:
\[ V_{\text{out}} = \left(1 + \frac{R_2}{R_1}\right)V_{\text{in}} \]
Summing Amplifier (2‑input):
\[ V_{\text{out}} = -\left(\frac{R_2}{R_1}V_1 + \frac{R_2}{R_3}V_2\right) \]
Differential Amplifier:
\[ V_{\text{out}} = \frac{R_2}{R_1}(V_2 - V_1) \]
CMRR & CMR:
\[ \text{CMRR} = \frac{A}{A_{cm}}, \quad \text{CMR} = 20\log_{10}(\text{CMRR}) \]
Instrumentation Amplifier (Figure 37):
\[ V_{\text{out}} = \left(1 + \frac{2R_1}{R_G}\right)\left(\frac{R_3}{R_2}\right)(V_2 - V_1) \]
V–I Converter (Figure 39):
Constraint: \(R_1(R_3 + R_5) = R_2R_4\)
Then:
\[ I = -\frac{R_2}{R_1R_3}V_{\text{in}} \]
Max load:
\[ R_{ml} = \frac{(R_4 + R_5)\left(\frac{V_{\text{sat}}}{I_m} - R_3\right)}{R_3 + R_4 + R_5} \]
I–V Converter (Figure 40):
\[ V_{\text{out}} = -IR \]
Integrator:
\[ V_{\text{out}} = -\frac{1}{RC}\int V_{\text{in}}dt \]
Differentiator:
\[ V_{\text{out}} = -RC\frac{dV_{\text{in}}}{dt} \]
Logarithmic Amplifier (diode feedback):
If \(I = I_0 e^{\alpha V_{\text{out}}}\) and \(I = V_{\text{in}}/R\):
\[ V_{\text{out}} = \frac{1}{\alpha}\ln\left(\frac{V_{\text{in}}}{RI_0}\right) \]
Consider trying these on your own:
The ideal inverting op amp has transfer function
\[ V_{\text{out}} = -\frac{R_2}{R_1}V_{\text{in}} \]
Use this sandbox to see how changing \(R_1\), \(R_2\), or \(V_{\text{in}}\) alters the output.
Try:
We rarely want currents above tens of mA in op amp circuits. This cell computes the feedback current in an inverting amplifier and warns if it is too high.
Try:
Use sliders to choose \(R_1\) and \(R_2\). The plot shows:
Questions:
For the 3‑op‑amp instrumentation amplifier (Figure 37), the gain is
\[ V_{\text{out}} = \left(1 + \frac{2R_1}{R_G}\right)\left(\frac{R_3}{R_2}\right)(V_2 - V_1) \]
Assume \(R_2 = R_3\) so their ratio is 1. Then
\[ A_d = 1 + \frac{2R_1}{R_G} \]
Explore how changing \(R_G\) affects the gain.
Try to reproduce the Example 21 result:
Drag the slider to change \(R_G\) and see how the differential gain \(A_d\) responds.
Question:
Consider the bridge of Example 21, with \(R_4\) varying from 100 to 102 Ω, and supply 5 V. An instrumentation amplifier with gain \(A_d \approx 101\) converts the small \(\Delta V\) into a 0–2.5 V signal.
This interactive cell lets you vary \(R_4\) and \(R_G\) and see the resulting \(V_{\text{out}}\).
Try:
The integrator output is
\[ V_{\text{out}}(t) = -\frac{1}{RC}\int V_{\text{in}}(t)\,dt \]
For constant \(V_{\text{in}} = K\),
\[ V_{\text{out}}(t) = -\frac{K}{RC}t \]
Interactively explore how \(R\), \(C\), and \(K\) affect the slope of the ramp.
Questions:
For the converter in Figure 39, under design constraints
\[ I = -\frac{R_2}{R_1 R_3}V_{\text{in}} \]
and the maximum load resistance before hitting saturation is
\[ R_{ml} = \frac{(R_4 + R_5)\left(\frac{V_{\text{sat}}}{I_m} - R_3\right)}{R_3 + R_4 + R_5} \]
Use this interactive block to experiment with component values and see \(I_m\) and \(R_{ml}\).
viewof R1_v2i = Inputs.range([1e3, 100e3], {step: 1e3, label: "R1 (Ω)"})
viewof R2_v2i = Inputs.range([1e3, 100e3], {step: 1e3, label: "R2 (Ω)"})
viewof R3_v2i = Inputs.range([10, 1e3], {step: 10, label: "R3 (Ω)"})
viewof R4_v2i = Inputs.range([10, 1e3], {step: 10, label: "R4 (Ω)"})
viewof R5_v2i = Inputs.range([0, 1e3], {step: 10, label: "R5 (Ω)"})
viewof Vin_max = Inputs.range([0.1, 5.0], {step: 0.1, label: "Max |Vin| (V)"})
viewof Vsat_v2i = Inputs.range([5.0, 15.0], {step: 0.5, label: "Op amp Vsat (V)"})Try to reproduce Example 22:
Many of the textbook examples start by writing
\[ V_{\text{out}} = mV_{\text{in}} + V_0 \]
then realizing this using a combination of op amp blocks.
This cell lets you experiment with choices of \(m\) and \(V_0\) and see how \(V_{\text{out}}\) maps a given input range.
Design exercise: