This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:courses:electronics:electronics-lab-opamp-comparator [31 Oct 2019 13:49] – Pop Andreea | university:courses:electronics:electronics-lab-opamp-comparator [16 May 2022 15:22] (current) – [The op-amp as a "comparator":] Doug Mercer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Activity: Op Amp as Comparator ====== | + | ======Activity: |
===== Objective: ===== | ===== Objective: ===== | ||
- | In this lab we introduce the operational amplifier (op amp) in switching mode configuration, | + | In this lab we introduce the operational amplifier (op amp) in switching mode configuration, |
+ | |||
+ | =====Background: | ||
+ | |||
+ | ====The op-amp as a " | ||
+ | |||
+ | Consider an op-amp used to amplify a signal without feedback as shown in figure 1a. Because no feedback is used, the input signal is amplified by the full open-loop gain of the op-amp. Even a very small input voltage (less than a millivolt either side of Vth) will be enough to drive the output to either the minimum or maximum output voltage, as shown in the plots of Vin and Vout. Thus, in this case because the op-amp -Input is connected to Vth, the output represents the sign of Vin ( " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | Op Amps and comparators may seem interchangeable at first glance based on their symbols and pinouts. The Analog Parts Kits is supplied with a variety of op-amps and the AD8561 high speed voltage comparator that was used in other activities. Some designers might be tempted to use or substitute readily available op amps as voltage comparators in their projects. There are very important differences however. Comparators are designed to work without negative feedback or open-loop, they are generally designed to drive digital logic circuits from their outputs, and they are designed to work at high speed with minimal instability. Op amps are not generally designed for use as comparators, | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | Yet many designers still try to use op amps as comparators. While this may work in some cases at low speeds and low resolutions, | ||
+ | |||
+ | The most common issues are speed (as we have already mentioned), the effects of input structures (protection diodes, phase inversion in FET amplifiers such as the ADTL082, and many others), output structures which are not intended to drive logic, hysteresis and stability, and common-mode effects. | ||
For an op-amp comparator we can consider a single input v< | For an op-amp comparator we can consider a single input v< | ||
Line 19: | Line 37: | ||
ADALM2000 Active Learning Module\\ | ADALM2000 Active Learning Module\\ | ||
Solder-less breadboard, and jumper wire kit\\ | Solder-less breadboard, and jumper wire kit\\ | ||
- | 2 1 kΩ resistor\\ | + | 3 10 kΩ resistor\\ |
- | 2 10 kΩ resistor\\ | + | |
1 20 kΩ resistor\\ | 1 20 kΩ resistor\\ | ||
1 OP97 ( Low slew rate amplifier supplied with the recent versions of ADALP2000 Analog Parts Kit )\\ | 1 OP97 ( Low slew rate amplifier supplied with the recent versions of ADALP2000 Analog Parts Kit )\\ | ||
Line 119: | Line 136: | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | In Figure 7. you can observe the voltage transfer charactersitic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). Compare the computed threshold voltage values | + | In Figure 7. you can observe the voltage transfer charactersitic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). |
===== Inverting Hysteresis Comparator ===== | ===== Inverting Hysteresis Comparator ===== | ||
Line 167: | Line 184: | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | In Figure 11. you can observe the voltage transfer characteristic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). Compare the computed threshold voltage values with the measured ones. | + | In Figure 11. you can observe the voltage transfer characteristic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). |
===== Inverting Hysteresis Comparator with asymmetric thresholds===== | ===== Inverting Hysteresis Comparator with asymmetric thresholds===== | ||
Line 213: | Line 230: | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | In Figure 15. you can observe the voltage transfer characteristic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). | + | In Figure 15. you can observe the voltage transfer characteristic of the non-inverting hysteresis comparator (the arrows drawn indicate the flow of the signal with respect to the thresholds). |
+ | |||
+ | ===== Questions ===== | ||
+ | |||
+ | - Compute | ||
===== Extra Activities ===== | ===== Extra Activities ===== | ||
Line 253: | Line 274: | ||
<WRAP round download> | <WRAP round download> | ||
** Lab Resources: | ** Lab Resources: | ||
- | * LTSpice files: [[ https:// | + | * LTSpice files: [[downgit>education_tools/ |
- | * Fritzing files: [[ https:// | + | * Fritzing files: [[downgit>education_tools/ |
</ | </ | ||
Line 260: | Line 281: | ||
Some additional resources on Op Amps as Comparators: | Some additional resources on Op Amps as Comparators: | ||
- | * [[http:// | + | * [[adi>media/ |
- | * [[http:// | + | * [[adi>en/ |
- | * [[http:// | + | * [[adi>en/ |
- | * [[http:// | + | * [[adi>en/ |
**Return to Lab Activity [[university: | **Return to Lab Activity [[university: | ||