Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| electrical_engineering_and_electronics_1:block22 [2025/12/13 16:22] – [Embedded resources] mexleadmin | electrical_engineering_and_electronics_1:block22 [2025/12/14 23:36] (aktuell) – mexleadmin | ||
|---|---|---|---|
| Zeile 4: | Zeile 4: | ||
| < | < | ||
| After this 90-minute block, you can | After this 90-minute block, you can | ||
| - | * ... | + | * explain why negative feedback “tames” an op-amp with very large open-loop gain $A_{\rm D}$, and use the ideal assumptions ($A_{\rm D}\rightarrow\infty$, |
| + | * apply a systematic equation-based workflow (goal $\rightarrow$ variables $\rightarrow$ equations $\rightarrow$ solving) to derive transfer functions such as $A_{\rm V}=\frac{U_{\rm O}}{U_{\rm I}}$ for basic feedback circuits. | ||
| + | * recognize and use the concept of **virtual ground** (more generally: $U_{\rm D}\rightarrow 0$) at the inverting input in negative-feedback circuits. | ||
| + | * apply the **superposition method** to linear op-amp circuits with multiple independent sources (e.g. the inverting summing amplifier) and compute $U_{\rm O}(U_{\rm I1},U_{\rm I2}, | ||
| + | * identify the circuit topologies and transfer functions of | ||
| + | - the voltage follower ($A_{\rm V}=1$), | ||
| + | - the non-inverting amplifier ($A_{\rm V}=1+\frac{R_1}{R_2}$), | ||
| + | - the inverting amplifier ($A_{\rm V}=-\frac{R_2}{R_1}$), | ||
| + | - the inverting summing amplifier ($U_{\rm O}=-\sum_i \frac{R_0}{R_i}U_{{\rm I}i}$), | ||
| + | - the current-to-voltage converter (transimpedance), | ||
| + | - the voltage-to-current converter (transconductance), | ||
| + | * name typical applications of these circuits (buffer/ | ||
| </ | </ | ||
| Zeile 17: | Zeile 28: | ||
| ===== 90-minute plan ===== | ===== 90-minute plan ===== | ||
| - | - Warm-up (x min): | + | - Warm-up (10 min): |
| - | - .... | + | - Quick recall: ideal op-amp model and “golden rules” in negative feedback: \\ $I_{\rm p}\approx 0$, $I_{\rm m}\approx 0$, and (with feedback) $U_{\rm D}=U_{\rm p}-U_{\rm m}\rightarrow 0$. |
| - | - Core concepts & derivations (x min): | + | - One-minute concept check: why a voltage follower is useful although $A_{\rm V}=1$ (buffering / impedance conversion). |
| - | - ... | + | - Core concepts & derivations (55 min): |
| - | - Practice (x min): ... | + | - Introductory motivation: current sensing (10 min) |
| - | - Wrap-up (x min): Summary box; common | + | - Why a shunt resistor alone may be insufficient; |
| + | - Link to the idea of “transimpedance” as gain: $R_{\rm T}=\frac{U_{\rm O}}{I_{\rm in}}$. | ||
| + | - Voltage follower (10 min) | ||
| + | - Circuit idea: $U_{\rm O}$ fed back directly to the inverting input. | ||
| + | - Derive $A_{\rm V}=\frac{U_{\rm O}}{U_{\rm I}}=1$ using $U_{\rm D}\rightarrow 0$. | ||
| + | - Interpretation: | ||
| + | |||
| + | - Non-inverting amplifier (10 min) | ||
| + | - Feedback factor from divider: $k=\frac{R_2}{R_1+R_2}$. | ||
| + | - Transfer function: $A_{\rm V}=\frac{1}{k}=1+\frac{R_1}{R_2}$. | ||
| + | - Design notes: practical resistor range, loading, bias currents (qualitative). | ||
| + | |||
| + | - Inverting amplifier + virtual ground (15 min) | ||
| + | - Virtual ground at node $\rm K1$ (inverting input): in ideal feedback $U_{\rm D}\rightarrow 0$, so node is held near ground without a physical short. | ||
| + | - Derive $A_{\rm V}=-\frac{R_2}{R_1}$ (via divider approach or equal currents through $R_1$ and $R_2$). | ||
| + | - Input resistance insight: $R_{\rm I}^0\approx R_1$ (ideal), and output resistance reduced by feedback. | ||
| + | |||
| + | - Superposition with the inverting summing amplifier (10 min) | ||
| + | - Linearity check: resistors + (ideal) op-amp behavior under negative feedback. | ||
| + | - Apply superposition: | ||
| + | - Application link: mixers, weighted sums, DAC concept. | ||
| + | |||
| + | - Practice (20 min): | ||
| + | - Mini-problems (individually → pair check): | ||
| + | - Choose $R_1,R_2$ for a non-inverting amplifier with target gain $A_{\rm V}$. | ||
| + | - Inverting amplifier: given $R_1,R_2$, compute $U_{\rm O}(t)$ for a supplied $U_{\rm I}(t)$; mark phase inversion. | ||
| + | - Summing amplifier: compute $U_{\rm O}$ for two sources; verify via superposition. | ||
| + | - Transimpedance amplifier: compute $U_{\rm O}$ for a given $I_{\rm in}$ and $R_1$; interpret sign. | ||
| + | - Transconductance circuit: given $U_{\rm in}$, estimate $I_{\rm out}$ (qualitative if full derivation is later). | ||
| + | |||
| + | - Wrap-up (5 min): | ||
| + | - Summary box: “Feedback enforces $U_{\rm D}\rightarrow 0$; resistors set the gain.” | ||
| + | - Common | ||
| + | - Outlook: differential amplifier as subtraction / common-mode rejection; application circuits (PGA, instrumentation concepts). | ||
| ===== Conceptual overview ===== | ===== Conceptual overview ===== | ||
| <callout icon=" | <callout icon=" | ||
| - | - ... | + | |
| + | * In the ideal feedback limit ($A_{\rm D}\rightarrow\infty$) we can treat | ||
| + | - $I_{\rm p}=I_{\rm m}=0$ (no input currents), | ||
| + | - $U_{\rm p}\approx U_{\rm m}$ (virtual short between inputs), | ||
| + | - and the output as an ideal voltage source ($R_{\rm O}\approx 0$). | ||
| + | * The voltage follower is the simplest example: $A_{\rm V}=1$ but with a huge practical effect—high input impedance and low output impedance (buffering). | ||
| + | * Resistors in the feedback path set **ratios**, and these ratios define gains: | ||
| + | - non-inverting: | ||
| + | - inverting: $A_{\rm V}=-\frac{R_2}{R_1}$ (with virtual ground at the summing node). | ||
| + | * Multi-source op-amp circuits remain linear, so superposition works: a summing amplifier is just a controlled way of forming weighted sums. | ||
| + | * Negative-feedback op-amp circuits are not only “voltage amplifiers”: | ||
| + | - current $\rightarrow$ voltage (transimpedance, | ||
| + | - voltage $\rightarrow$ current (transconductance, | ||
| + | which underpins current sensing, photodiode readout, and controlled current sources. | ||
| </ | </ | ||
| ===== Core content ===== | ===== Core content ===== | ||
| - | ... | + | < |
| + | <callout type=" | ||
| + | ==== Introductory Example ==== | ||
| + | In various applications, | ||
| + | |||
| + | One such current sense amplifier is the [[http:// | ||
| + | |||
| + | The following explains ways in which such circuits can be understood. | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== Voltage follower ==== | ||
| + | |||
| + | |||
| + | In the [[Block21]] it was described that an amplifier with high open-loop gain can be " | ||
| + | |||
| + | < | ||
| + | |||
| + | Using this circuit, the procedure for solving amplifier circuits is now to be illustrated. | ||
| + | |||
| + | - The aim is always to create a relation between output voltage $U_\rm O$ and input voltage $U_ \rm I$. \\ <fc # | ||
| + | - Before calculating, | ||
| + | - Now **equations are set up** that can be used. These are: | ||
| + | - **Basic equation**: (1) $U_{\rm O} = U_{\rm D} \cdot A_\rm D$ | ||
| + | - **Golden rules**: $R_\rm D \rightarrow \infty$ so that (2+3) $I_{\rm p} = I_{\rm m} = 0$, $A_{\rm D} \rightarrow \infty$, $R_\rm O = 0$ | ||
| + | - Consideration of the existing **loops**: <fc # | ||
| + | - Consideration of the existing **nodes**: <fc # | ||
| + | - <fc # | ||
| + | - Now, to **solve the equations**, | ||
| + | |||
| + | The calculation is done here once in detail (clicking on the arrow to the right " | ||
| + | |||
| + | {{url> | ||
| + | |||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | |||
| + | So the voltage gain is $A_\rm V = 1$. This would also have been seen in chapter [[Block21]]. There it was derived that for $A_\rm D \rightarrow \infty$ the voltage gain just results from $k$: $A_{\rm V}=\frac{1}{k}$. \\ Since the entire output voltage is fed back here, $k=1$ and thus also $A_\rm V=1$. | ||
| + | |||
| + | The output voltage $U_\rm O$ is therefore equal to the input voltage $U_\rm I$. This is where the name " | ||
| + | |||
| + | \\ | ||
| + | |||
| + | < | ||
| + | |||
| + | This behavior can also be explained in another way: The input signal usually comes from a voltage source, which can only produce low currents. \\ That means the input signals are high impedance ($\text{high impedance}=\frac{\text{voltage}}{\text{low current}}$). \\ However, a load of arbitrary impedance can be applied to the output. That is, to keep the output signal constant, a large current must be provided depending on the load. \\ As the output resistance of the amplifier approaches 0, the signal is low impedance ($\text{low impedance}=\frac{\text{voltage}}{\text{(likely) large current}}$). This is where the second name of the circuit " | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ <wrap # | ||
| + | |||
| + | <WRAP column 100%> | ||
| + | <panel type=" | ||
| + | |||
| + | To solve tasks, the following procedure helps: | ||
| + | |||
| + | - Where to? \\ Clarification of the goal (here: always the relation between output and input signal) \\ \\ | ||
| + | - What to? \\ Clarification of what is needed (here: always equations. The number of needed equations can be determined by the number of variables) \\ \\ | ||
| + | - With what? \\ Clarification of what is already available (here: known equations: voltage gain equation, basic equation, golden rules, loop/node theorem, relationships of voltages and currents of components). \\ \\ | ||
| + | - Go.\\ Work out the solution (here: inserting the equations) It helps to rearrange the equation so that $1/A_\rm D$ appears without a prefactor. It is valid: $1/A_{\rm D} \xrightarrow{A_{\rm D} \rightarrow \infty} 0$ | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Non-inverting amplifier ==== | ||
| + | |||
| + | So far, the entire output voltage has been negative-feedback. Now only a part of the voltage is to be fed back. \\ To do this, the output voltage can be reduced using a voltage divider $R_1+R_2$. The circuit for this can be seen in <imgref pic5>. | ||
| + | |||
| + | By considering the feedback, the result can be quickly derived here as well: only $\frac{R_2}{R_1+R_2}\cdot U_{\rm O}$ is fed back from the output voltage $U_{\rm O}$. \\ So the feedback factor is $k=\frac{R_2}{R_1+R_2}$ and thus the voltage gain becomes $A_{\rm V}=\frac{R_1+R_2}{R_2}$. | ||
| + | |||
| + | This " | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | <WRAP right> | ||
| + | <panel type=" | ||
| + | </ | ||
| + | |||
| + | ^Step^Description^Implementation| | ||
| + | |1|What is wanted? | ||
| + | |2|Counting the variables \\ $\rightarrow$ Number of equations needed|< | ||
| + | |3|Setting up the equations|< | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | The calculation is done here again in detail (clicking the right arrow " | ||
| + | |||
| + | {{url> | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | < | ||
| + | |||
| + | So the voltage gain of the non-inverting amplifier is $A_{\rm V}=\frac{R_1+R_2}{R_2}$ or $A_{\rm V}=1+\frac{R_1}{R_2}$. Thus, the numerical value $A_{\rm V}$ can only become larger than 1. \\ This is shown again in the simulation. In real circuits, the resistors $R_1$ and $R_2$ will be in the range between a few $100 ~\Omega$ and a few $\rm M\Omega$. \\ If the sum of the resistors is too small, the operational amplifier will be heavily loaded. However, the output current must not exceed the maximum current. \\ If the sum of the resistors is too large, the current $I_1 = I_2$ can come into the range of the current $I_\rm m$, which is present in the real operational amplifier. | ||
| + | |||
| + | \\ | ||
| + | |||
| + | The __**input and output resistance of the entire circuit**__ | ||
| + | |||
| + | In the **real case** | ||
| + | |||
| + | {{url> | ||
| + | |||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | So it can be assumed simplistically, | ||
| + | |||
| + | <WRAP column 100%> <panel type=" | ||
| + | |||
| + | For the __non-inverting amplifier__, | ||
| + | |||
| + | * The input voltage $U_\rm I$ is at the __non-inverting input__ | ||
| + | * The feedback is done by a voltage divider $R_1 + R_2$ | ||
| + | * The voltage gain is $A_{\rm V}=\frac{R_1+R_2}{R_2}$ or $A_{\rm V}=1+\frac{R_1}{R_2}$ and is always greater than 1. | ||
| + | * Both input and output resistances of the overall circuit are smaller than those for the (real) operational amplifier used. | ||
| + | |||
| + | </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | ==== Inverting Amplifier ==== | ||
| + | |||
| + | The circuit of the inverting amplifier can be derived from that of the non-inverting amplifier (see <imgref pic8>). \\ | ||
| + | To do this, first consider the noninverting amplifier as a system with 3 connections (or as a voltage divider): $U_\rm I$, $\rm GND$, and $U_\rm O$. \\ | ||
| + | These terminals can be rearranged - while keeping the output terminal $U_\rm O$. | ||
| + | |||
| + | < | ||
| + | |||
| + | Thus, the voltage divider $R_1 + R_2$ is no longer between $U_\rm O$ and $\rm GND$, but between $U_\rm O$ and $U_\rm O$, see <imgref pic6>. \\ | ||
| + | In this circuit, the resistor $R_2$ is also called the negative feedback resistor. | ||
| + | |||
| + | < | ||
| + | $U_\rm E$ is the input voltage (Eingangsspannung), | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | Before the voltage gain is determined, the node $\rm K1$ in <imgref pic6> is to be considered first. This is just larger than the ground potential by the voltage $U_\rm D$; thus, it lies on the potential difference $U_\rm D$. For a feedback amplifier with finite voltage supply, $U_\rm O$ can only be finite, and thus $U_{\rm D}= U_{\rm O} / A_{\rm D} \rightarrow 0$, since $A_D \rightarrow \infty$ holds. Thus, it can be seen that the node $\rm K1$ is __always__ | ||
| + | |||
| + | |||
| + | The following diagram shows again the interactive simulation. \\ | ||
| + | $R_{\rm 1}$ and $R_{\rm 2}$ can be manipulated by the sliders. Hit '' | ||
| + | |||
| + | < | ||
| + | |||
| + | <WRAP column 100%> <panel type=" | ||
| + | |||
| + | <WRAP right>< | ||
| + | |||
| + | For the determination of the voltage gain, the consideration of the feedback $A_{\rm V}=\frac{1}{k}$ seems to be of little use at first. Instead, however, the determination via network analysis is possible. <imgref pic6> shows a possible variant to choose the loops for this purpose. However, network analysis is not to be done here, but is given in Exercise 3.5.1 below. | ||
| + | |||
| + | Instead, two other ways of derivation will be shown here to bring further approaches closer. For the first derivation, the **voltage divider** | ||
| + | |||
| + | \begin{align*} U_2 = U_{12} \cdot \frac{R_2}{R_1 + R_2} \end{align*} | ||
| + | |||
| + | This equation is now to be adapted for concrete use. First <imgref pic6>, the voltages of the voltage divider can be read as given in <imgref pic9>. From this, using the general voltage divider formula: | ||
| + | |||
| + | \begin{align*} U_2 = ( U_I - U_O ) \cdot \frac{R_2}{R_1 + R_2} \end{align*} | ||
| + | |||
| + | With the virtual mass at node $\rm K1$ in <imgref pic9>, it holds that $U_2$ points away from the (virtual) mass and thus $U_2 = U_\rm O$. Similarly, $U_{\rm I} = U_1$ holds. Thus it follows: | ||
| + | |||
| + | \begin{align*} | ||
| + | - U_{\rm O} = ( U_{\rm I} - U_{\rm O} ) \cdot \frac{R_2}{R_1 + R_2} | ||
| + | \end{align*} | ||
| + | |||
| + | And from that: | ||
| + | |||
| + | <WRAP left 70%> \begin{align*} | ||
| + | - U_O & | ||
| + | - U_O + U_O \cdot \frac{R_2}{R_1 + R_2} &= U_I \cdot \frac{R_2}{R_1 + R_2} \\ | ||
| + | U_O \cdot (\frac{R_2}{R_1 + R_2}-1) &= U_I \cdot \frac{R_2}{R_1 + R_2} \\ | ||
| + | | ||
| + | | ||
| + | \boxed{ | ||
| + | \end{align*} </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | For the second derivation, the current flow through the resistors $R_1$ and $R_2$ of the unloaded voltage divider is to be considered. These two currents $I_1$ and $I_2$ are just equal. Thus: | ||
| + | |||
| + | \begin{align*} I_\boxed{}=\frac{U_\boxed{}}{R_\boxed{}}=const. \quad \text{with} \: \boxed{}=\{1, | ||
| + | |||
| + | respectively | ||
| + | |||
| + | \begin{align*} \frac{U_1}{R_1}=\frac{U_2}{R_2} \end{align*} | ||
| + | |||
| + | This can also be converted into a " | ||
| + | |||
| + | < | ||
| + | {{url> | ||
| + | |||
| + | Now, if a certain height (voltage $U_\rm I$) is set, a certain height on the right side (voltage $U_\rm O$) is obtained via the force arm (resistor $R_1$) and load arm (resistor $R_2$). This is shown in <imgref pic7> above. \\ In the figure, all points marked in red (<fc # | ||
| + | |||
| + | The **input resistance of the entire circuit** | ||
| + | The complete current flowing into the input passes through resistor $R_1$. So, it is then true that the input resistance is $R_{\rm I} = R_1$. \\ | ||
| + | At the **output resistance of the whole circuit** $R_{\rm O}^0$, there is again a parallel connection between the output resistance of the operational amplifier $R_\rm O$ and the resistor $R_2$. \\ | ||
| + | So, the output resistance will be slightly smaller than the output resistance of the operational amplifier $R_\rm O$. | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | <WRAP column 100%> <panel type=" | ||
| + | |||
| + | In the case of the __inverting amplifier__: | ||
| + | |||
| + | * The input voltage $U_\rm I$ is at the __inverting input__ | ||
| + | * The feedback is done by a voltage divider of $R_1$ and $R_2$. | ||
| + | * The voltage gain is $A_{\rm V}= - \frac{R_2}{R_2}$ and is always less than or greater than 0. However, the magnitude of the voltage gain can be greater than or less than 1. | ||
| + | * The input resistance of the whole circuit is defined by $R_1$ and is usually smaller than the input resistance of the used (real) operational amplifier. \\ The output resistance is smaller than that of the used (real) operational amplifier. | ||
| + | |||
| + | </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | ==== Inverting Summing Amplifier ==== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | \\ {{drawio> | ||
| + | </ | ||
| + | |||
| + | From the [[3_opamp_basic_circuits_i# | ||
| + | |||
| + | How can $U_\rm O$ be calculated in this circuit? To do this, it is first important to understand what is being sought. The goal is to find the relationship between output and input signals: $U_{\rm O}(U_{\rm I1}, U_{\rm I2})$. Different ways to get there, were explained in [[Block07]] and [[Block08]]. Here we will outline a different way. | ||
| + | |||
| + | In the case of a circuit with several sources, superposition is a suitable method, in particular the superposition of the effect of all sources in the circuit. For superposition, | ||
| + | In **case 1** the voltage source $U_{\rm I1}$ must be considered - the voltage source $U_{\rm I2}$ must be short-circuited for this purpose. The equivalent circuit formed corresponds to an inverting amplifier across $R_2$ and $R_0$. However, there is an additional resistor $R_1$ between the inputs of the operational amplifier. What is the influence of this resistor? The differential voltage $U_\rm D$ between the inputs of the operational amplifier approaches 0. Thus, the following also applies to the current through $R_1$: $I_{1(1)} \rightarrow 0$. Thus the circuit in case 1 is exactly an inverting amplifier. For case 1, $A_{V(1)} = \frac{U_{O(1)}}{U_{\rm I1}} = - \frac{R_0}{R_1}$ and thus: $U_{O(1)}= - \frac{R_0}{R_1} \cdot U_{\rm I1}$. \\ | ||
| + | Using the same procedure, **case 2** for considering the voltage source $U_2$ gives: $U_{\rm O(2)}= - \frac{R_0}{R_2} \cdot U_{\rm I2}$. \\ | ||
| + | In superposition, | ||
| + | |||
| + | $\boxed{U_{\rm O} = \sum_i U_{\rm O(i)} = - (\frac{R_0}{R_2} \cdot U_{I2} + \frac{R_0}{R_1} \cdot U_{I1})}$. | ||
| + | |||
| + | Also, considering the node set for $\rm K1$ in <imgref pic1> gives the same result. | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | The **Inverting Summing Amplifier** (also called: Summing Amplifier or Voltage Adder) can be extended to any number of inputs. \\ The simulation above shows the superposition of several inputs. Depending on the resistances at the different inputs, a different current flows into the circuit. | ||
| + | |||
| + | This circuit was used in analog [[https:// | ||
| + | |||
| + | A very similar concept allows the construction of a [[elektronische_schaltungstechnik/ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | {{page> | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | ==== Differential Amplifier / Subtractor ==== | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | In addition to the (reverse) adder, there is also a circuit for subtracting two input values. This circuit became the core of the introductory example. But also in the simulation below this circuit is shown in another example: In this case, a [[https:// | ||
| + | |||
| + | How can the relationship $U_{\rm O}(U_{\rm I1}, U_{\rm I2})$ between output and input signals be determined for this circuit? | ||
| + | |||
| + | < | ||
| + | <panel type=" | ||
| + | < | ||
| + | </ | ||
| + | \\ {{drawio> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Again, various network analysis concepts could be used to look at the circuit (e.g. superposition or mesh and node sets). Again, another possibility is to split the circuit as color-coded in the <imgref pic2>. \\ | ||
| + | The __green part__ shows a voltage divider $R2 + R4$. Since the input resistance of the operational amplifier is very large, this voltage divider is unloaded. The voltage at node $\rm K2$ or at the noninverting input $U_\rm p$ is just given by the voltage divider: $U_{\rm p} = U_{\rm I2}\cdot \frac{R_4}{R_2 + R_4}$. \\ | ||
| + | The __violet part__ corresponds to an inverting amplifier, but the voltage at the node $\rm K1$ or at the inverting input $U_\rm m$ is just equal to $U_\rm p$ due to the feedback, since $U_\rm D \rightarrow \infty$. Thus, the current flowing into node $\rm K1$ via $R_1$ results from $I_1=\frac{U_{\rm I1} - U_\rm p}{R_1}$. The output voltage is given by $U_{\rm O} = U_{\rm p} - U_3$, where the voltage $U_3$ is given by the resistance $R_3$ and the current through $R_3$. The current through $R_3$ is just the same as the current through $R_1$, i.e. $I_1$. | ||
| + | |||
| + | The result is: \\ | ||
| + | $ | ||
| + | $ | ||
| + | $\boxed{U_{\rm O}= U_{\rm I2}\cdot \frac{R_4}{R_2 + R_4} \frac{R_1 + R_3}{R_1} - U_{\rm I1} \cdot \frac{R_3}{R_1}}$ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | {{url> | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | <button type=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Two simplifications should be considered here: | ||
| + | - If $R_1 = R_2$ and $R_3 = R_4$ are chosen, the equation further simplifies to: \\ (nbsp) $\boxed{U_{\rm O} = \frac{R_3}{R_1}\cdot(U_{\rm I2}-U_{\rm I1})}$. \\ This variant can be found in various measurement circuits. \\ \\ | ||
| + | - Alternatively, | ||
| + | |||
| + | The animation shows how the 2nd case would result in similar triangles. The connection of the two " | ||
| + | |||
| + | A big advantage of this circuit is that even very large voltages can be used as input voltage, if $R_1 \gg R_3$ and $R_2 \gg R_4$ are chosen. This would divide the input voltages down and display a fraction of the difference as the result. The main drawback of the circuit is that the gain/ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | ==== Current-Voltage-Converter ==== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | \\ {{drawio> | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | In <imgref pic4> one can see the circuit of a current-voltage converter. The current-to-voltage converter changes its __output voltage__ based on an __input current__. This circuit is also called a [[https:// | ||
| + | $$A={ {\rm output} \over {\rm input} }$$. | ||
| + | |||
| + | In the case of the current-to-voltage converter, the gain is defined as: | ||
| + | |||
| + | $$R = {{U_{\rm out}} \over I_{\rm in}} ={{U_{\rm o}} \over I_{\rm I}} = - R_1$$ | ||
| + | |||
| + | $R_1$ is the resistor used in the circuit. | ||
| + | |||
| + | In the simulation, the slider on the right (" | ||
| + | |||
| + | This circuit can be used, for example, to read a [[https:// | ||
| + | |||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | ==== Voltage-to-Current Converter ==== | ||
| + | |||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | \\ {{drawio> | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | Next, consider the voltage-to-current converter. With this, an __output current__ is set proportional to an __input voltage__. | ||
| + | |||
| + | Here, the general gain $$A={ {\rm output} \over {\rm input} }$$ to | ||
| + | |||
| + | $$S = {{I_{\rm out}} \over U_{\rm in}} = {{I_{\rm o}} \over U_{\rm I}}$$ | ||
| + | |||
| + | The quantity $S$ is called the transfer conductance. | ||
| + | |||
| + | This circuit can be used, for example, to generate a voltage-regulated current source. \\ | ||
| + | In practical applications, | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| + | |||
| + | ==== Applications ==== | ||
| + | === Programmable Gain Amplifier === | ||
| + | |||
| + | Often in applications an analog signal is too small to process (e.g. to digitalize it afterward). \\ | ||
| + | To amplify it an OpAmp can be used. However, for a wide input range, it might be beneficial to have an adjustable scale. | ||
| + | |||
| + | This can be done with a simple non-inverting amplifier combined with a resistor network as seen in the next simulation. \\ | ||
| + | In this case, a so-called **single-ended** input is used. This means the input voltage is always referred to the ground. | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | \\ \\ | ||
| + | When the signal is not referred to the ground, the following circuit based on an instrumentation amplifier can be used. \\ | ||
| + | In this case, the input signal is **differential**. Referred to the ground the input signal (here the difference of $5 ~\rm mV$) can have an offset voltage with regard to the ground. \\ | ||
| + | An example of this setup is the [[https:// | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| + | ~~PAGEBREAK~~ ~~CLEARFIX~~ | ||
| ===== Common pitfalls ===== | ===== Common pitfalls ===== | ||
| - | * ... | + | * Mixing up open-loop and closed-loop gain: |
| + | - open-loop: $U_{\rm O}=A_{\rm D}\,U_{\rm D}$, | ||
| + | - closed-loop: | ||
| + | * Forgetting the conditions for the “golden rules”: $U_{\rm p}\approx U_{\rm m}$ only holds when the op-amp is in negative feedback and not saturated. | ||
| + | * Sign errors: | ||
| + | - inverting amplifier has a minus sign $A_{\rm V}=-\frac{R_2}{R_1}$, | ||
| + | - transimpedance example gives $U_{\rm O}=-R_1 I_{\rm in}$ (direction conventions matter). | ||
| + | * Misusing “virtual ground”: | ||
| + | - the inverting input node can be near $0~\rm V$, but it is **not** physically connected to ground and cannot source/sink arbitrary current. | ||
| + | * Superposition mistakes: | ||
| + | - when “turning off” a voltage source, replace it by a short; when “turning off” a current source, replace it by an open. | ||
| + | - ensure linear operation (no clipping, no saturation). | ||
| + | * Ignoring practical limits: | ||
| + | - too small $R_1+R_2$ loads the op-amp output (current limit), | ||
| + | - too large resistors make bias currents and offsets more visible, | ||
| + | - finite supply rails limit $U_{\rm O}$ and can break the ideal assumptions. | ||
| ===== Exercises ===== | ===== Exercises ===== | ||
| ==== Worked examples ==== | ==== Worked examples ==== | ||
| - | ... | + | {{page> |
| + | {{page> | ||
| + | {{page> | ||
| + | {{page> | ||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | A voltage follower is built with an ideal op-amp. \\ | ||
| + | The input is a voltage source $U_{\rm I}=2.0~\rm V$ with internal resistance $R_{\rm S}=10~\rm k\Omega$. | ||
| + | The output drives a load resistor $R_{\rm L}$ which is varied between $100~\Omega$ and $100~\rm k\Omega$. | ||
| + | |||
| + | - Determine the input current drawn from the source for $R_{\rm L}=100~\Omega$ and for $R_{\rm L}=100~\rm k\Omega$. | ||
| + | - Explain briefly why the load does not “pull down” the source voltage in this circuit. | ||
| + | |||
| + | <button size=" | ||
| + | * The input voltage source sees (ideally) infinite input resistance. | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * Input current from the source: $I_{\rm S}\approx 0$ for both load values (ideal model). | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | A non-inverting amplifier should have a voltage gain of $A_{\rm V}=11$. | ||
| + | |||
| + | - Choose resistor values $R_1$ and $R_2$ in the kOhm-range. | ||
| + | - If $U_{\rm I}=0.25~\rm V$, compute $U_{\rm O}$ (ideal op-amp, no saturation). | ||
| + | - What happens to $U_{\rm O}$ if the op-amp supply rails are $\pm 2.5~\rm V$? | ||
| + | |||
| + | <button size=" | ||
| + | * Rearrange $1+\frac{R_1}{R_2}=11$ to a resistor ratio. | ||
| + | * Check the computed $U_{\rm O}$ against the supply rails (clipping). | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * One possible choice: $R_2=10~\rm k\Omega$, $R_1=100~\rm k\Omega$. | ||
| + | * Ideal: $U_{\rm O}=11\cdot 0.25~\rm V=2.75~\rm V$. | ||
| + | * With $\pm 2.5~\rm V$ rails: $U_{\rm O}$ clips near $+2.5~\rm V$ (model-dependent headroom). | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | An inverting amplifier is built with $R_1=2.2~\rm k\Omega$ and $R_2=22~\rm k\Omega$. | ||
| + | The non-inverting input is connected to ground. | ||
| + | |||
| + | - Compute the closed-loop gain $A_{\rm V}$. | ||
| + | - For an input $U_{\rm I}(t)=0.30~\rm V~\sin(2\pi\cdot 1\,{\rm kHz}\cdot t)$, determine $U_{\rm O}(t)$. | ||
| + | - State the potential at the inverting input node (the summing node) in the ideal negative-feedback case. | ||
| + | |||
| + | <button size=" | ||
| + | * Use $A_{\rm V}=-\frac{R_2}{R_1}$ for the inverting amplifier. | ||
| + | * Virtual ground means $U_{\rm m}\approx U_{\rm p}=0~\rm V$ (not a physical short). | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * $A_{\rm V}=-\frac{22~\rm k\Omega}{2.2~\rm k\Omega}=-10$. | ||
| + | * $U_{\rm O}(t)=-3.0~\rm V~\sin(2\pi\cdot 1\,{\rm kHz}\cdot t)$. | ||
| + | * Summing node potential: approximately $0~\rm V$ (virtual ground). | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | An inverting summing amplifier has $R_0=10~\rm k\Omega$, $R_1=10~\rm k\Omega$, and $R_2=20~\rm k\Omega$. | ||
| + | Two inputs are applied: $U_{\rm I1}=+1.0~\rm V$ and $U_{\rm I2}=-0.5~\rm V$. | ||
| + | |||
| + | - Use superposition to compute $U_{\rm O}$. | ||
| + | - Compute the same result by writing the sum directly as a weighted sum. | ||
| + | - Explain briefly why the resistor between the op-amp inputs carries (ideally) no current. | ||
| + | |||
| + | <button size=" | ||
| + | * For each input alone: treat the circuit as an inverting amplifier with gain $-\frac{R_0}{R_i}$. | ||
| + | * Superposition: | ||
| + | * With feedback: $U_{\rm D}\rightarrow 0$ implies negligible current through a resistor between inputs. | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * $U_{\rm O(1)}=-\frac{R_0}{R_1}U_{\rm I1}=-\frac{10}{10}\cdot 1.0~\rm V=-1.0~\rm V$. | ||
| + | * $U_{\rm O(2)}=-\frac{R_0}{R_2}U_{\rm I2}=-\frac{10}{20}\cdot(-0.5~\rm V)=+0.25~\rm V$. | ||
| + | * $U_{\rm O}=U_{\rm O(1)}+U_{\rm O(2)}=-0.75~\rm V$. | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | A photodiode is modeled as an ideal current source delivering $I_{\rm I}$ into a transimpedance amplifier. | ||
| + | The feedback resistor is $R_1=220~\rm k\Omega$ and the non-inverting input is grounded. | ||
| + | |||
| + | - Determine the transfer resistance $R_{\rm T}=\frac{U_{\rm O}}{I_{\rm I}}$. | ||
| + | - Compute $U_{\rm O}$ for $I_{\rm I}=+2.0~\rm \mu A$. | ||
| + | - What sign does $U_{\rm O}$ have for a positive $I_{\rm I}$ (according to the circuit convention)? | ||
| + | |||
| + | <button size=" | ||
| + | * For the current-to-voltage converter in the given convention: $U_{\rm O}=-R_1 I_{\rm I}$. | ||
| + | * Keep units consistent: $\rm \mu A$ and $\rm k\Omega$. | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * $R_{\rm T}=\frac{U_{\rm O}}{I_{\rm I}}=-R_1=-220~\rm k\Omega$. | ||
| + | * $U_{\rm O}=-(220~\rm k\Omega)\cdot (2.0~\rm \mu A)=-0.44~\rm V$. | ||
| + | * For $I_{\rm I}>0$: $U_{\rm O}<0$ (with this sign convention). | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | <panel type=" | ||
| + | |||
| + | A voltage-to-current converter should generate an output current proportional to an input voltage, with transfer conductance | ||
| + | \[ | ||
| + | S=2.0~\rm mA/V. | ||
| + | \] | ||
| + | Assume the circuit uses a single resistor $R$ to set the current (ideal op-amp behavior), such that approximately $I_{\rm O}\approx \frac{U_{\rm I}}{R}$. | ||
| + | |||
| + | - Determine $R$ for the desired $S$. | ||
| + | - Compute $I_{\rm O}$ for $U_{\rm I}=0.6~\rm V$. | ||
| + | - Briefly name one application of such a circuit. | ||
| + | |||
| + | <button size=" | ||
| + | * If $I_{\rm O}\approx \frac{U_{\rm I}}{R}$, then $S\approx \frac{1}{R}$. | ||
| + | * Convert $2.0~\rm mA/V$ into $\rm A/V$ before inverting. | ||
| + | </ | ||
| + | |||
| + | <button size=" | ||
| + | * $S=2.0~\rm mA/ | ||
| + | * $I_{\rm O}=S\, | ||
| + | * Example application: | ||
| + | </ | ||
| + | |||
| + | </ | ||
| ===== Embedded resources ===== | ===== Embedded resources ===== | ||