# Op Amps

Operational Amplifiers (Op-Amps) are high-gain electronic voltage amplifiers. They have two inputs, an output, and two power supply inputs. Op amps require external power, but this is implicit so is often emitted in circuit diagrams.

Op amps are differential amplifiers, meaning they output an amplified signal that is proportional to the difference of the two inputs. They have a very high gain, in the range of to , but this is assumed to be infinite in ideal amplifiers. The output voltage is calculated by: ## Ideal Model

An ideal model of an op amp is shown below • Open loop gain is infinite
• The gain of the op amp when there is no positive or negative feedback
• Input impedance () is infinite
• Ideally, no current flows into the amplifier
• Output impedance () is zero
• The output is assumed to act like a perfect voltage source to supply as much current as possible
• Bandwith is infinite
• An ideal op amp can amplify any input frequency signal
• Offset Voltage is zero
• The output will be zero when the input and output voltage are the same

## Ideal Circuits

### Inverting

• Negative feedback is used to create an amplifier that is stable, ie doesn't produce a massive voltage output.
• This creates closed loop gain, which controls the output of the amplifier
• The non-inverting input is grounded
• The negative feedback reverses the polarity of the output voltage
• As the output of the op amp is only a few volts, and the gain of the op amp is very high, it can be assumed that the voltage at both inputs is equal to zero volts
• This creates a "virtual earth" at the node shown on the diagram Using KCL at this node, it can be shown that:

The gain of the amplifier is set by the ratio of the two resistors.

### Non-Inverting

Non-inverting amplifiers don't invert the voltage output, and use input at the non-inverting terminal of the op amp instead. The output of the amplifier is calculated by:

## Op Amps as Filters

Filters take AC signals as input, and amplify/attenuate them based upon their frequency.

### Low Pass Filter

Take a simple inverting amplifier circuit, and add a capacitor in parallel. The gain is now a function of the input frequency, which makes the circuit a filter. The reactance of the capacitor . The impedance of the capacitor and resistor in parallel:

The gain as a function of is therefore:

• Gain is measured in decibels
• As the input frequency increases, gain decreases
• At very low frequencies, the gain is constant (0dB)
• The capacitor has high reactance at low frequencies, and is open circuit at very low frequencies
• At very high frequencies, the gain tends towards dB
• The capacitor has a very low reactance at high frequencies (short circuit) ### Cutoff Frequency

The cutoff frequency of a filter is the point at which the gain is equal to -3 dB, which corresponds to a fall in output by a factor of . For the filter shown above, this is:

### High Pass Filter

A high pass filter is designed in a similar way This time, the impedance of the capacitor-resistor combination is:

Which makes the gain:

The cutoff frequency for this filter is:

Which is similar to the other one, just with the other resistor. ## Voltage Transfer Characteristics

• The voltage transfer characteristic of an amplifier shows the output voltage as a function of the input voltage
• The output range is equal to the range of the power supplies
• Where the slope = 0, the amplifier is saturated
• Where the slope > 0, the gain is positive
• Where the slope < 0, the gain is negative
• When the amplifier is saturated the signal becomes distorted 