Overview¶
Introduction¶
Operational amplifiers, or op-amps, are versatile analog circuit building blocks used in a wide variety of applications. They are essentially high-gain voltage amplifiers with differential inputs and a single-ended output. The “operational” part of their name comes from their ability to perform various mathematical operations like amplification, addition, subtraction, integration, and differentiation when combined with external components.
Key characteristics of an ideal op-amp include:
- Infinite open-loop gain: This allows for a large amplification of the difference between the two input voltages.
- Infinite input impedance: No current flows into the inputs.
- Zero output impedance: The op-amp can drive any load without voltage drop.
- Infinite bandwidth: The op-amp can amplify signals of any frequency.
In reality, op-amps deviate from these ideals:
- Finite gain and bandwidth: Practical op-amps have a limited gain and bandwidth.
- Non-zero input and output impedance: Real op-amps have some input current and output impedance.
- Offset voltage: A small voltage difference may exist between the inputs even when the output is zero.
- Slew rate limitation: The output voltage cannot change instantaneously.
Op-Amp Pinouts¶
A typical op-amp has the following pin configuration.
Table 1:Numbering and function of pins on a DIP8 op-amp.
Pin Number | Function |
---|---|
1 | Offset Null (Optional) |
2 | Inverting Input (-) |
3 | Non-inverting Input (+) |
4 | Negative Power Supply (V-) |
5 | Offset Null (Optional) |
6 | Output |
7 | Positive Power Supply (V+) |
8 | Not connected |
A diagram of an op-amp is shown in Figure 1. In Figure 1 (a), the DIP8 packaging is shown including the pin numbers of the visible pins. In Figure 1 (b) the circuit symbol of an op-amp is shown with the pin numbers identified. These three pins are the only pins relevant to the amplifier itself. The other pins are described in Explanation of pins. In Figure 1 (c), the internal structure of the op-amp is shown with all of the pin numbers and functions labeled.
Figure 1:Diagram of an operational amplifier. (a) The DIP8 packaging with some pin numbers identified. (b) The circuit symbol with pin numbers identified.[1] (c) Schematic of the internal circuitry with pin numbers and functions identified.[2]
Explanation of pins¶
- Inverting Input (-): An input signal applied to this pin will be amplified and inverted at the output.
- Non-inverting Input (+): An input signal applied to this pin will be amplified without inversion at the output.
- Output: The amplified signal is available at this pin.
- Positive and Negative Power Supply (V+ and V-): These pins supply power to the op-amp.
- Offset Null (Optional): These pins can be used to adjust the output voltage to zero when no input signal is present, compensating for any inherent offset voltage.
Note: The pin configuration and numbering can vary slightly depending on the specific op-amp package (e.g., DIP, SOIC) and manufacturer. Always refer to the datasheet for the specific op-amp you are using.
Theory¶
Op Amp Current and Voltage Rules¶
Operational amplifiers (op-amps) are versatile analog circuit building blocks, and understanding their behavior requires adherence to fundamental current and voltage rules, particularly when configured with negative feedback.
1. The Golden Rules of Op-Amps:¶
These rules simplify the analysis of op-amp circuits with negative feedback:
Rule 1 (Current Rule): No current flows into either of the op-amp’s input terminals (inverting and non-inverting). This stems from the ideal op-amp’s infinite input impedance.
Rule 2 (Voltage Rule): The op-amp’s output adjusts itself to ensure that the voltage difference between its two inputs is zero (V+ = V-). This is due to the op-amp’s extremely high open-loop gain.
2. The Concept of Virtual Short (or Virtual Ground):¶
- When negative feedback is applied, and the non-inverting input is connected to a fixed voltage (like ground), the inverting input is forced to be at the same potential as the non-inverting input.
- This condition is termed a “virtual short” because the inputs are not physically connected, yet their voltages are effectively equal. If the non-inverting input is grounded, the inverting input is said to be at “virtual ground”.
3. Consequences of the Golden Rules:¶
- Current Flow: The current in an op-amp circuit with negative feedback is determined by the external components (resistors, capacitors, etc.) connected in the feedback network, not by the op-amp itself.
- Gain and Feedback: The gain of the op-amp circuit is primarily determined by the feedback network. Negative feedback stabilizes the gain and makes it less dependent on the op-amp’s open-loop gain.
- Input and Output Impedance: Negative feedback also influences the circuit’s input and output impedance. For instance, in a non-inverting amplifier, negative feedback increases the input impedance and decreases the output impedance.
Summary¶
- Op-amp circuits with negative feedback are analyzed using the “golden rules” that simplify calculations and predictions of circuit behavior.
- The virtual short concept is a powerful tool for analyzing circuits, enabling engineers to treat the input terminals as having the same voltage even though they are not physically connected.
- Negative feedback is crucial for controlling gain, improving stability, and achieving desired impedance characteristics in op-amp circuits.
In this experiment, we will be building different circuits that will demonstrate the usefulness and simplicity of using operational amplifiers. An excellent resource for more information about each circuit is the Electronics Tutorials website.
Experiment¶
Inverting Amplifier¶
The circuit shown in Figure 2 is an inverting amplifier. The resistor provides negative feedback, which is the process of “feeding back” a fraction of the output signal back to the input. The feedback is negative because we must feed it back to the “inverting input” terminal of the op-amp. This feedback connection between the output and the inverting input terminal forces the differential input voltage towards zero due to the voltage rule of op-amps.
Figure 2:An inverting amplifier op-amp circuit.
This is a closed loop amplifier circuit that produces gain referred to as closed-loop gain. A closed-loop inverting amplifier uses negative feedback to accurately control the overall gain of the amplifier, but at a cost in the reduction of the amplifiers gain.
This negative feedback results in the inverting input terminal having a different signal on it than the actual input voltage as it will be the sum of the input voltage plus the negative feedback voltage giving it the label or term of a Summing Point. We must therefore separate the real input signal from the inverting input by using an input resistor, .
The positive, non-inverting input is connected to a common ground or zero voltage. The effect of this closed loop feedback circuit results in the voltage at the inverting input being equal to that at the non-inverting input producing a virtual ground summing point because it will be at the same potential as the grounded non-inverting input. The op-amp becomes a “differential amplifier”.
Because of the op-amp rules, we can use an equivalent circuit shown in Figure 3 to analyze the expected measurements.
Figure 3:An equivalent circuit diagram of the inverting amplifier where we ignore the presence of the op-amp and only consider the results of the op-amp rules.
The current through the resistors must be constant and therefore is
We can also consider the current flowing through the individual resistors since we know .
Plugging in
which simplifies to a gain equation
where the negative sign is indicating the inversion of the output relative to the input.
Let’s verify this gain. Build the circuit in Figure 2 with a DC and resistors and . Next, replace with a variable resistor. Verify that the gain increases as you adjust the variable resistor.
Application - Light Detection¶
Op amps can be used to amplify small signals such as those that are produced by photodiodes. In the case of the photodiode, the signal is a small current. The transimpedance amplifier is a useful circuit for converting and amplifying this small current signal. The transimpedance circuit is shown in Figure 4. Build the circuit and verify that the output gives a measure of light intensity.
The values for the capacitor and resistor are and .
Figure 4:Circuit diagram of a transimpedance amplifier for a photodiode.
Mathematical Function Amplifiers¶
Adder¶
Build a dual input voltage adder in Figure 5 with the behavior
Figure 5:Circuit diagram of a summing amplifier.
Subtractor¶
Build the difference (subtracting) amplifier in Figure 6 with the behavior
Figure 6:Circuit diagram of a difference amplifier.
Differentiator¶
Build the differentiator circuit in Figure 7.
Figure 7:Circuit diagram of a differentiating amplifier.
Integrator¶
Build the integrator circuit in Figure 8.
Figure 8:Circuit diagram of a integrating amplifier.
Other Useful Op-Amp Circuits¶
Filters¶
Low-Pass Filter Build the low-pass filter in Figure 9 and measure the gain as a function of frequency.
Figure 9:Diagram of a low-pass filter op-amp circuit.
Band-Pass Filter Build the band-pass filter in Figure 10 and measure the gain as a function of frequency.
Figure 10:Diagram of a band-pass filter op-amp circuit.
Peak Detector¶
Build the peak detector circuit shown in Figure 11. The output of this circuit is held at the maximum value of the input. The output is reset by closing the switch to short the first feedback loop to ground through the 1 kΩ resistor. In this circuit, you may want to use the LM353 or LM358 amplifier because they contains two independent op-amps on a single chip. NOTE: These amplifiers have different pin-outs. Look up a datasheet for the op-amp you use.
Figure 11:Diagram of a peak detector op-amp circuit.
By Inductiveload - Own work, Public Domain, https://
commons .wikimedia .org /w /index .php ?curid = 8433629 By Inductiveload - Self-made, Inkscape, Public Domain, https://
commons .wikimedia .org /w /index .php ?curid = 3439390