Salta al contenuto
Note per Studenti Operational Amplifier Circuits - Summing, Difference, Integrator, Differentiator Report

Operational Amplifier Circuits - Summing, Difference, Integrator, Differentiator

In questa pagina 8

All the circuits below have negative feedback, an ideal op-amp and therefore a virtual short (vNI=vINVv_{NI}=v_{INV}) and zero input currents (Ideal Operational Amplifier and Basic ConfigurationsThe operational amplifier (op-amp) is a differential amplifier with very high gain, vO = A (vNI - vINV); in the ideal model A is infinite, input resistance infinite, output resistance zero, bandwidth infinite, and with negative feedback to the inverting input the output settles where the differential voltage is zero (virtual short, no input current), which gives the non-inverting amplifier (gain 1 + R2/R1) and the inverting amplifier (gain -R2/R1, input resistance R1).Ideal Operational Amplifier and Basic Configurations →). Superposition is used when there is more than one input (Principio di sovrapposizione degli effettiIn una rete lineare (resistori, GIT, GIC) ogni tensione e ogni corrente è combinazione lineare delle impresse dei generatori. Quindi si può calcolarla facendo agire un generatore alla volta, con gli altri spenti (GIT spento = cortocircuito, GIC spento = circuito aperto), e sommando i contributi. Vale per tensioni e correnti, non per le potenze.Principio di sovrapposizione degli effetti →). Real-component limits (offset, bias currents, slew rate) are in Non-Idealities of Operational AmplifiersA real op-amp has finite frequency-dependent gain A(jw) = A0/(1 + jw/wA), output resistance, input currents (bias IB, offset IOS), offset voltage VOS and a limited output slew rate; with negative feedback the closed-loop gain is G A/(A+G) with G = 1 + R2/R1, so the bandwidth is wT/G (constant gain-bandwidth product), and the DC errors of VOS, IB, IOS are found by superposition with the signal switched off.Non-Idealities of Operational Amplifiers →.

Generalization with impedances

Formula (gain with arbitrary impedances). In the inverting and non-inverting amplifiers, in place of R1,R2R_1,R_2 one may put two arbitrary impedances Z1(s),Z2(s)Z_1(s),Z_2(s) (networks of resistors and capacitors), because the same equations hold in the Laplace domain with s→jωs\to j\omega in sinusoidal regime: Av(s)=−Z2(s)Z1(s) (inverting),Av(s)=1+Z2(s)Z1(s) (non-inverting).A_v(s)=-\frac{Z_2(s)}{Z_1(s)}\ \text{(inverting)},\qquad A_v(s)=1+\frac{Z_2(s)}{Z_1(s)}\ \text{(non-inverting)}. This is how the integrator, the differentiator and filters arise (Frequency Response of Op-Amp Circuits and Bode PlotsIn circuits with an ideal op-amp the transfer function A(s) comes from the inverting (-Z2/Z1) and non-inverting (1 + Z2/Z1) formulas with capacitors replaced by 1/(sC) and RC networks on the + terminal treated as dividers (no current in the input); A(s) is put in Bode form, the asymptotic diagram is drawn with the break points, and modulus and phase at the signal frequency give vout(t); the DC component of the input comes out multiplied by A(0).Frequency Response of Op-Amp Circuits and Bode Plots →). The variable ss is used rather than jωj\omega because it allows reasoning on poles and zeros.

Example. With Z1=10 kΩZ_1=10\ \mathrm{k\Omega} and Z2=100 kΩZ_2=100\ \mathrm{k\Omega}: Av=−10A_v=-10 (inverting) or Av=1+10=11A_v=1+10=11 (non-inverting).

Inverting summer

Formula (inverting summer). Several inputs VkV_k connected through resistances RkR_k to the −- node (virtual ground), feedback resistance RR. With vINV=0v_{INV}=0 the current in each RkR_k is Vk/RkV_k/R_k and Kirchhoff's current law at the −- node with no input current gives ∑kVk/Rk+vO/R=0\sum_kV_k/R_k+v_O/R=0:

vO=−∑kRRk Vk.v_O=-\sum_k\frac{R}{R_k}\,V_k.

With all resistances equal vO=−∑Vkv_O=-\sum V_k (sum); with different resistances one gets a weighted summer. The inputs do not interfere with each other because the −- node stays at zero potential: each RkR_k always sees ground.

Example. R=10 kΩR=10\ \mathrm{k\Omega}, R1=10 kΩR_1=10\ \mathrm{k\Omega}, R2=5 kΩR_2=5\ \mathrm{k\Omega}, R3=20 kΩR_3=20\ \mathrm{k\Omega}: vO=−(V1+2V2+0.5V3)v_O=-(V_1+2V_2+0.5V_3). With V1=1 VV_1=1\ \mathrm V, V2=0.5 VV_2=0.5\ \mathrm V, V3=2 VV_3=2\ \mathrm V: vO=−(1+1+1)=−3 Vv_O=-(1+1+1)=-3\ \mathrm V.

Difference amplifier

Input V1V_1 at the ++ terminal through R3R_3, with R4R_4 to ground; V2V_2 at the −- terminal through R1R_1, with R2R_2 in feedback. The ++ terminal receives the (unloaded) divider: vNI=V1R4R3+R4v_{NI}=V_1\dfrac{R_4}{R_3+R_4}. At the −- terminal (superposition): vINV=V2R2R1+R2+vOR1R1+R2v_{INV}=V_2\dfrac{R_2}{R_1+R_2}+v_O\dfrac{R_1}{R_1+R_2}. With vNI=vINVv_{NI}=v_{INV}:

vO=R4R3+R4⋅R1+R2R1⏟A1V1−R2R1⏟A2V2=R2R1[1+R1/R21+R3/R4V1−V2].v_O=\underbrace{\frac{R_4}{R_3+R_4}\cdot\frac{R_1+R_2}{R_1}}_{A_1}V_1-\underbrace{\frac{R_2}{R_1}}_{A_2}V_2=\frac{R_2}{R_1}\left[\frac{1+R_1/R_2}{1+R_3/R_4}V_1-V_2\right].

Formula (difference amplifier). To have a true difference amplifier (vO∝V1−V2v_O\propto V_1-V_2) the two gains must be equal: A1=A2A_1=A_2, i.e.

R1R2=R3R4 ⟹ vO=R2R1(V1−V2).\boxed{\frac{R_1}{R_2}=\frac{R_3}{R_4}}\ \Longrightarrow\ v_O=\frac{R_2}{R_1}(V_1-V_2).

Example. R1=R3=10 kΩR_1=R_3=10\ \mathrm{k\Omega} and R2=R4=50 kΩR_2=R_4=50\ \mathrm{k\Omega}: vO=5 (V1−V2)v_O=5\,(V_1-V_2); with V1=1.2 VV_1=1.2\ \mathrm V and V2=1.0 VV_2=1.0\ \mathrm V, vO=1 Vv_O=1\ \mathrm V. The symmetric choice is R3=R1R_3=R_1, R4=R2R_4=R_2.

If the resistances are not perfectly matched a common-mode gain appears (Differential and Common-Mode Signals - CMRRTwo signals v1, v2 split into common mode vCM = (v1 + v2)/2 and differential mode vD = v1 - v2; a differential amplifier with gains A1 and A2 has vO = AD vD + ACM vCM with AD = (A1 + A2)/2 and ACM = A1 - A2, and its quality is CMRR = |AD/ACM| (in dB: 20 log), infinite if A1 = A2; to compute the output one finds vD, vCM and adds the two contributions, remembering that the sign of ACM, if not given, leaves two results.Differential and Common-Mode Signals - CMRR →): AD=A1+A22A_D=\dfrac{A_1+A_2}2 and ACM=A1−A2A_{CM}=A_1-A_2. Example: R1=R3=10 kΩR_1=R_3=10\ \mathrm{k\Omega}, R2=50 kΩR_2=50\ \mathrm{k\Omega}, R4=49.5 kΩR_4=49.5\ \mathrm{k\Omega} (1% matching): A1=49.559.5⋅6=4.9916A_1=\dfrac{49.5}{59.5}\cdot6=4.9916 and A2=5A_2=5, so AD=4.9958A_D=4.9958, ACM=−0.0084A_{CM}=-0.0084 and CMRR=∣AD/ACM∣=594.5\mathrm{CMRR}=|A_D/A_{CM}|=594.5, i.e. 55.5 dB55.5\ \mathrm{dB}. This is why in real circuits the resistors of the difference amplifier must be very precise.

Integrator

Formula (integrator). Inverting amplifier with Z1=RZ_1=R and Z2=1sCZ_2=\dfrac1{sC}: Av(s)=−1sRCA_v(s)=-\dfrac{1}{sRC}. In time: iR=vS/Ri_R=v_S/R, iC=C v˙Ci_C=C\,\dot v_C with vC=vO−vINV=vOv_C=v_O-v_{INV}=v_O and iR+iC=0i_R+i_C=0:

vO(t)=−1RC∫0tvS(τ) dτ+vO(0).v_O(t)=-\frac{1}{RC}\int_0^tv_S(\tau)\,d\tau+v_O(0).

The coefficient 1RC\dfrac1{RC} is not dimensionless (it is the reciprocal of a time): when signals are functions of time, "gain" means this coefficient. In sinusoidal regime Av(jω)=−1jωRCA_v(j\omega)=-\dfrac{1}{j\omega RC}: modulus 1ωRC\dfrac1{\omega RC} (falls with frequency), phase +90∘+90^\circ.

Example. R=10 kΩR=10\ \mathrm{k\Omega}, C=100 nFC=100\ \mathrm{nF} (RC=1 msRC=1\ \mathrm{ms}), vS=0.5sin⁡(2π⋅1000 t) Vv_S=0.5\sin(2\pi\cdot1000\,t)\ \mathrm V: vO=−1RC∫0.5sin⁡ωt dt=0.5ωRCcos⁡ωt=0.0796cos⁡(2π⋅1000 t) Vv_O=-\dfrac{1}{RC}\int0.5\sin\omega t\,dt=\dfrac{0.5}{\omega RC}\cos\omega t=0.0796\cos(2\pi\cdot1000\,t)\ \mathrm V. With a step of 1 V1\ \mathrm V for 2 ms2\ \mathrm{ms} the output falls linearly down to −2 V-2\ \mathrm V.

Attention to DC. At DC the capacitor is open: the circuit no longer has negative feedback. Even a small offset, or an input with non-zero mean value, drives the output up to saturation. The input signal must have zero mean, and in practice a resistor is placed in parallel with the capacitor (or a periodic reset is used).

Differentiator

Formula (differentiator). Inverting amplifier with Z1=1sCZ_1=\dfrac1{sC} and Z2=RZ_2=R: Av(s)=−sRCA_v(s)=-sRC. In time: iC=C v˙Si_C=C\,\dot v_S (the voltage on the capacitor is vSv_S because the −- node is at virtual ground), iR=vO/Ri_R=v_O/R and iC+iR=0i_C+i_R=0:

vO(t)=−RC dvSdt.v_O(t)=-RC\,\frac{dv_S}{dt}.

Example. R=1 kΩR=1\ \mathrm{k\Omega}, C=1 μFC=1\ \mu\mathrm F and vS=0.2sin⁡(2π⋅100 t) Vv_S=0.2\sin(2\pi\cdot100\,t)\ \mathrm V: vO=−RC ω⋅0.2cos⁡ωt=−0.1257cos⁡(2π⋅100 t) Vv_O=-RC\,\omega\cdot0.2\cos\omega t=-0.1257\cos(2\pi\cdot100\,t)\ \mathrm V. The differentiator amplifies high frequencies (modulus ωRC\omega RC, growing with ω\omega), hence it also amplifies noise: in practice a resistor in series with the capacitor limits its gain. The input must not have too fast variations.

For both circuits the modulus on a Bode plot with RC=1 msRC=1\ \mathrm{ms} is a straight line: the integrator falls 20 dB/decade20\ \mathrm{dB/decade} and is 0 dB0\ \mathrm{dB} at ω=1/RC=1000 rad/s\omega=1/RC=1000\ \mathrm{rad/s}; the differentiator rises 20 dB/decade20\ \mathrm{dB/decade} through the same point. The two examples above lie on these lines: integrator at 1 kHz1\ \mathrm{kHz} (−16 dB-16\ \mathrm{dB}, gain 0.160.16) and differentiator at 100 Hz100\ \mathrm{Hz} (−4 dB-4\ \mathrm{dB}, gain 0.630.63).

Grafico interattivo: Integrator and differentiator with RC = 1 ms (x: omega in rad/s, log scale; y: |A_v| in dB): the integrator falls 20 dB/decade and is 0 dB at omega = 1/RC = 1000 rad/s, the differentiator rises 20 dB/decade through the same point

Instrumentation amplifier

Formula (instrumentation amplifier). Two non-inverting amplifiers with a single resistor RgR_g between the two inverting terminals, followed by a difference amplifier. The two outputs vo1,vo2v_{o1},v_{o2} satisfy

vo1−vo2=(1+2RRg)(V1−V2),v_{o1}-v_{o2}=\Big(1+\frac{2R}{R_g}\Big)(V_1-V_2),

because by the virtual short the inverting terminals have voltages V1V_1 and V2V_2 and the current (V1−V2)/Rg(V_1-V_2)/R_g flows through the whole series R,Rg,RR,R_g,R. The common mode is amplified by 1 (no current in RgR_g if V1=V2V_1=V_2). Example: R=10 kΩR=10\ \mathrm{k\Omega} and Rg=1 kΩR_g=1\ \mathrm{k\Omega} give a first-stage gain 1+2R/Rg=211+2R/R_g=21; with V1−V2=0.1 VV_1-V_2=0.1\ \mathrm V, vo1−vo2=2.1 Vv_{o1}-v_{o2}=2.1\ \mathrm V.

The second stage (difference amplifier, gain R4/R3R_4/R_3) completes vO=(1+2RRg)R4R3(V1−V2).v_O=\Big(1+\frac{2R}{R_g}\Big)\frac{R_4}{R_3}(V_1-V_2). Example: R=10 kΩR=10\ \mathrm{k\Omega}, Rg=1 kΩR_g=1\ \mathrm{k\Omega}, R3=10 kΩR_3=10\ \mathrm{k\Omega}, R4=20 kΩR_4=20\ \mathrm{k\Omega} give gain 21⋅2=4221\cdot2=42; for V1−V2=0.1 VV_1-V_2=0.1\ \mathrm V one gets 4.2 V4.2\ \mathrm V, and a common-mode input alone (V1=V2=1 VV_1=V_2=1\ \mathrm V) gives zero output. It is used to measure small differential voltages (sensors) on a large common mode: very high RinR_{in} and gain adjustable with RgR_g alone.

Transresistance amplifier (current input)

If the source is a current generator iSi_S connected to the −- terminal of an inverting amplifier with feedback R2R_2, the −- node is at virtual ground and all of iSi_S flows in R2R_2: vO=−R2 iSv_O=-R_2\,i_S (current-to-voltage converter).

Common mistakes

  • Forgetting to verify R1/R2=R3/R4R_1/R_2=R_3/R_4: without this condition the output contains V1+V2V_1+V_2.
  • Writing vO=∫vSv_O=\int v_S without the factor −1/(RC)-1/(RC) (the units of 1/RC1/RC are s−1^{-1}).
  • Using the integrator and differentiator with inputs that have a DC component or very fast variations.
  • Forgetting the minus sign in inverting integrators and differentiators.

Versione ripasso

Key statements and formulas

  • With impedances: inverting Av(s)=−Z2(s)Z1(s)A_v(s)=-\frac{Z_2(s)}{Z_1(s)}, non-inverting Av(s)=1+Z2(s)Z1(s)A_v(s)=1+\frac{Z_2(s)}{Z_1(s)}.
  • Inverting summer: vO=−∑kRRkVkv_O=-\sum_k\frac{R}{R_k}V_k; the inputs do not interfere (virtual ground).
  • Difference amplifier: A1=R4R3+R4R1+R2R1A_1=\frac{R_4}{R_3+R_4}\frac{R_1+R_2}{R_1}, A2=R2R1A_2=\frac{R_2}{R_1}; with R1R2=R3R4\frac{R_1}{R_2}=\frac{R_3}{R_4}: vO=R2R1(V1−V2)v_O=\frac{R_2}{R_1}(V_1-V_2). Mismatch gives AD=A1+A22A_D=\frac{A_1+A_2}{2}, ACM=A1−A2A_{CM}=A_1-A_2.
  • Integrator: Av(s)=−1sRCA_v(s)=-\frac{1}{sRC}, vO(t)=−1RC∫0tvS dτ+vO(0)v_O(t)=-\frac1{RC}\int_0^tv_S\,d\tau+v_O(0); in sinusoidal regime modulus 1ωRC\frac1{\omega RC}, phase +90∘+90^\circ. At DC no feedback: zero-mean input, resistor in parallel with CC.
  • Differentiator: Av(s)=−sRCA_v(s)=-sRC, vO=−RCdvSdtv_O=-RC\frac{dv_S}{dt}; amplifies high frequencies and noise, series resistor with CC.
  • Instrumentation amplifier: vo1−vo2=(1+2RRg)(V1−V2)v_{o1}-v_{o2}=\big(1+\frac{2R}{R_g}\big)(V_1-V_2), common mode gain 1; with the difference stage vO=(1+2RRg)R4R3(V1−V2)v_O=\big(1+\frac{2R}{R_g}\big)\frac{R_4}{R_3}(V_1-V_2).
  • Transresistance: vO=−R2 iSv_O=-R_2\,i_S.

Main steps of the examples

  • Summer with R=R1=10 kΩR=R_1=10\ \mathrm{k\Omega}, R2=5 kΩR_2=5\ \mathrm{k\Omega}, R3=20 kΩR_3=20\ \mathrm{k\Omega}: vO=−(V1+2V2+0.5V3)=−3 Vv_O=-(V_1+2V_2+0.5V_3)=-3\ \mathrm V for 11, 0.50.5, 2 V2\ \mathrm V.
  • Difference with R1=R3=10 kΩR_1=R_3=10\ \mathrm{k\Omega}, R2=R4=50 kΩR_2=R_4=50\ \mathrm{k\Omega}: vO=5(V1−V2)=1 Vv_O=5(V_1-V_2)=1\ \mathrm V for 1.21.2 and 1.0 V1.0\ \mathrm V.
  • 1% mismatch (R4=49.5 kΩR_4=49.5\ \mathrm{k\Omega}): A1=4.9916A_1=4.9916, A2=5A_2=5, AD=4.9958A_D=4.9958, ACM=−0.0084A_{CM}=-0.0084, CMRR=594.5\mathrm{CMRR}=594.5 (55.5 dB55.5\ \mathrm{dB}).
  • Integrator RC=1 msRC=1\ \mathrm{ms}, 0.5sin⁡(2π⋅1000 t)0.5\sin(2\pi\cdot1000\,t): vO=0.0796cos⁡(2π⋅1000 t) Vv_O=0.0796\cos(2\pi\cdot1000\,t)\ \mathrm V; step of 1 V1\ \mathrm V for 2 ms2\ \mathrm{ms}: output falls to −2 V-2\ \mathrm V.
  • Differentiator R=1 kΩR=1\ \mathrm{k\Omega}, C=1 μFC=1\ \mu\mathrm F, 0.2sin⁡(2π⋅100 t)0.2\sin(2\pi\cdot100\,t): vO=−0.1257cos⁡(2π⋅100 t) Vv_O=-0.1257\cos(2\pi\cdot100\,t)\ \mathrm V.
  • Instrumentation: R=10 kΩR=10\ \mathrm{k\Omega}, Rg=1 kΩR_g=1\ \mathrm{k\Omega}: first-stage gain 2121 (2.1 V2.1\ \mathrm V for 0.1 V0.1\ \mathrm V); with R3=10 kΩR_3=10\ \mathrm{k\Omega}, R4=20 kΩR_4=20\ \mathrm{k\Omega} gain 4242 (4.2 V4.2\ \mathrm V); pure common mode gives 00.

Typical mistakes

  • Not checking R1/R2=R3/R4R_1/R_2=R_3/R_4.
  • vO=∫vSv_O=\int v_S without −1/(RC)-1/(RC).
  • Integrator or differentiator with DC components or very fast variations.
  • Dropping the minus sign.

Teoria collegata