Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
university:courses:electronics:electronics-lab-1 [12 May 2017 14:43] Antoniu Miclausuniversity:courses:electronics:electronics-lab-1 [03 Nov 2021 20:25] (current) – [Activity 1. Simple Op Amps] Doug Mercer
Line 1: Line 1:
-====== Activity 1. Simple Op Amps ======+====== ActivitySimple Op Amps, For ADALM2000======
  
 ===== Objective: ===== ===== Objective: =====
Line 38: Line 38:
  
 <WRAP centeralign> Figure 1.2 Unity Gain Follower </WRAP> <WRAP centeralign> Figure 1.2 Unity Gain Follower </WRAP>
- 
-=== Simulation: === 
- 
-Create the voltage follower circuit using ADISim tool as presented in Figure 1.3. 
- 
-<WRAP centeralign> {{:university:courses:electronics:v_follower-circuit.png|}} </WRAP> 
- 
-<WRAP centeralign> Figure 1.3. Unity Gain Follower ADISim Circuit </WRAP> 
- 
-Set the waveform generator in order to output a sine wave with amplitude of 1V (2 Vp-p) and frequency 1kHz. Apply a transient simulation and observe the input and the output waveforms. An example of simulation is presented in Figure 1.4. 
- 
-{{:university:courses:electronics:v_follower-graph.png|}} 
- 
-<WRAP centeralign> Figure 1.4. Unity Gain Follower Simulation </WRAP> 
  
 === Hardware Setup: === === Hardware Setup: ===
  
-Using your breadboard and the ADALM2000 power supplies, construct the circuit shown in figure 1.5. Note that the power connections have not been explicitly shown here; it is assumed that those connections must be made in any real circuit (as you did in the previous step), so it is unnecessary to show them in the schematic from this point on. Use jumper wires to connect input and output to the waveform generator and oscilloscope leads. Don’t forget to ground the scope negative input leads C1- and C2- (ground connections are not shown in the schematic).+Using your breadboard and the ADALM2000 power supplies, construct the circuit shown in figure 1.3. Note that the power connections have not been explicitly shown here; it is assumed that those connections must be made in any real circuit (as you did in the previous step), so it is unnecessary to show them in the schematic from this point on. Use jumper wires to connect input and output to the waveform generator and oscilloscope leads. Don’t forget to ground the scope negative input leads C1- and C2- (ground connections are not shown in the schematic).
  
 {{:university:courses:electronics:v_follower-bb.png|}} {{:university:courses:electronics:v_follower-bb.png|}}
  
-<WRAP centeralign> Figure 1.5. Unity Gain Follower Breadboard Circuit </WRAP>+<WRAP centeralign> Figure 1.3. Unity Gain Follower Breadboard Circuit </WRAP>
  
 === Procedure: === === Procedure: ===
  
-Use the first waveform generator as source Vin to provide a 1V amplitude (2 Vp-p), 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.Export a plot of the two resulting waveforms and include it your lab report, noting the parameters of the waveforms (peak values and the fundamental time-period or frequency). Your waveforms should confirm the description of this as a “unity-gain” or “voltage follower” circuit.+Use the first waveform generator as source Vin to provide a 2V amplitude peak-to-peak, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.Export a plot of the two resulting waveforms and include it your lab report, noting the parameters of the waveforms (peak values and the fundamental time-period or frequency). Your waveforms should confirm the description of this as a “unity-gain” or “voltage follower” circuit.
  
-A plot example is presented in Figure 1.6.+A plot example is presented in Figure 1.4.
  
 {{:university:courses:electronics:v_follower-waveform.png|}} {{:university:courses:electronics:v_follower-waveform.png|}}
  
-<WRAP centeralign> Figure 1.6. Unity Gain Follower Waveforms </WRAP>+<WRAP centeralign> Figure 1.4. Unity Gain Follower Waveforms </WRAP>
  
 ==== Slew Rate Limitations: ==== ==== Slew Rate Limitations: ====
Line 77: Line 63:
 {{ :university:courses:electronics:a1_f1-3.png?500 |}} {{ :university:courses:electronics:a1_f1-3.png?500 |}}
  
-<WRAP centeralign> Figure 1.Slew Rate </WRAP>+<WRAP centeralign> Figure 1.Slew Rate </WRAP>
  
-Set the waveform generator to a square wave signal with a 1V amplitude (2 Vp-p) and increase the frequency until you see a significant departure from ideal behavior, that is, when the output starts looking more like a trapezoid than a square wave. You will likely need to adjust the time scale (Sec/Div) on the scope display to see this. Export a plot of the output waveforms at this point and measure its 10-90% rise time (and 90-10% fall time) as defined in figure 1.7. Also note the peak-to-peak voltage of the output signal. Compute and record the slew rate for both rising and falling outputs according to your measurements. Comment on why the response to rising and falling edges might be different.+Set the waveform generator to a square wave signal with a 2V amplitude peak-to-peak and increase the frequency until you see a significant departure from ideal behavior, that is, when the output starts looking more like a trapezoid than a square wave. You will likely need to adjust the time scale (Sec/Div) on the scope display to see this. Export a plot of the output waveforms at this point and measure its 10-90% rise time (and 90-10% fall time) as defined in figure 1.5. Also note the peak-to-peak voltage of the output signal. Compute and record the slew rate for both rising and falling outputs according to your measurements. Comment on why the response to rising and falling edges might be different.
  
-A waveform that exemplifies the slew rate is presented in figure 1.8.+A waveform that exemplifies the slew rate is presented in figure 1.6.
  
 {{ :university:courses:electronics:v_follower-slewr_waveform.png|}} {{ :university:courses:electronics:v_follower-slewr_waveform.png|}}
  
-<WRAP centeralign> Figure 1.Slew Rate Waveform</WRAP>+<WRAP centeralign> Figure 1.Slew Rate Waveform</WRAP>
  
 ==== Buffering Example: ==== ==== Buffering Example: ====
  
-The high input resistance of the op amp (zero input current) means there is very little loading on the generator; i.e., no current is drawn from the source circuit and therefore no voltage drops on any internal (Thevenin) resistance. Thus in this configuration the op amp acts like a “buffer” to shield the source from the loading effects from other parts of the system. From the perspective of the load circuit the buffer transforms a non-ideal voltage source into a nearly ideal source. figure 1.describes a simple circuit that we can use to demonstrate this feature of a unity-gain buffer. Here the buffer is inserted between a voltage-divider circuit and some “load” resistance:+The high input resistance of the op amp (zero input current) means there is very little loading on the generator; i.e., no current is drawn from the source circuit and therefore no voltage drops on any internal (Thevenin) resistance. Thus in this configuration the op amp acts like a “buffer” to shield the source from the loading effects from other parts of the system. From the perspective of the load circuit the buffer transforms a non-ideal voltage source into a nearly ideal source. figure 1.describes a simple circuit that we can use to demonstrate this feature of a unity-gain buffer. Here the buffer is inserted between a voltage-divider circuit and some “load” resistance:
  
 {{ :university:courses:electronics:a1_f4.png?500 |}} {{ :university:courses:electronics:a1_f4.png?500 |}}
  
-<WRAP centeralign> Figure 1.Buffer Example </WRAP>+<WRAP centeralign> Figure 1.Buffer Example </WRAP>
  
-Turn off the power supplies and add the resistors to your circuit as shown in figure 1.(note we have not changed the op-amp connections here, we’ve just flipped the op-amp symbol relative to figure 1.2).+Turn off the power supplies and add the resistors to your circuit as shown in figure 1.(note we have not changed the op-amp connections here, we’ve just flipped the op-amp symbol relative to figure 1.2).
  
-Turn on the power supplies and set the waveform generator to a 1 kHz sine signal with a 2 V amplitude (4 V p-p). Use the scope to simultaneously observe Vin and Vout and record the amplitudes in your lab report.+Turn on the power supplies and set the waveform generator to a 1 kHz sine signal with a 4V amplitude peak-to-peak. Use the scope to simultaneously observe Vin and Vout and record the amplitudes in your lab report.
  
 Remove the 10 kΩ load and substitute a 1 kΩ resistor instead. Record the amplitude. Remove the 10 kΩ load and substitute a 1 kΩ resistor instead. Record the amplitude.
Line 109: Line 95:
 === Background: === === Background: ===
  
-Figure 1.10 shows the conventional inverting amplifier configuration with a 10 kΩ “load” resistor at the output. +Figure 1.shows the conventional inverting amplifier configuration with a 10 kΩ “load” resistor at the output. 
  
 {{ :university:courses:electronics:a1_f5.png?500 |}} {{ :university:courses:electronics:a1_f5.png?500 |}}
  
-<WRAP centeralign> Figure 1.10 Inverting amplifier configuration </WRAP> +<WRAP centeralign> Figure 1.Inverting amplifier configuration </WRAP>
- +
-=== Simulation: === +
- +
-Create the inverting amplifier circuit using ADISim tool as presented in Figure 1.11. +
- +
-<WRAP centeralign> {{:university:courses:electronics:inverting_amp-circuit.png|}} </WRAP> +
- +
-<WRAP centeralign> Figure 1.11. Inverting Amplifier ADISim Circuit </WRAP> +
- +
-Set the waveform generator in order to output a sine wave with amplitude of 1V and frequency 1kHz. Apply a transient simulation and observe the input and the output waveforms. An example of simulation is presented in Figure 1.12. +
- +
-{{:university:courses:electronics:inverting_amp-graph.png|}} +
- +
-<WRAP centeralign> Figure 1.12. Inverting Amplifier Simulation </WRAP>+
  
 === Hardware Setup: === === Hardware Setup: ===
  
-Now assemble the inverting amplifier circuit shown in figure 1.13 using R<sub>2</sub> = 4.7kΩ . Remember to shut off the power supply before assembling a new circuit. Cut and bend the resistor leads as needed to keep them flat against the board surface, and use the shortest jumper wires for each connection (as in figure 1.1). Remember, the breadboard gives you a lot of flexibility. For example, the leads of resistor R<sub>2</sub> do not necessarily have to bridge over the op amp from pin 2 to pin 6; you could use an intermediate node and a jumper wire to go around the device instead.+Now assemble the inverting amplifier circuit shown in figure 1.using R<sub>2</sub> = 4.7kΩ . Remember to shut off the power supply before assembling a new circuit. Cut and bend the resistor leads as needed to keep them flat against the board surface, and use the shortest jumper wires for each connection (as in figure 1.1). Remember, the breadboard gives you a lot of flexibility. For example, the leads of resistor R<sub>2</sub> do not necessarily have to bridge over the op amp from pin 2 to pin 6; you could use an intermediate node and a jumper wire to go around the device instead.
  
-Turn on the power supplies and observe the current draw to be sure there are no accidental shorts. Now adjust the waveform generator to produce a volt amplitude, 1 kHz sine wave at the input (Vin), and again display both the input and output on the oscilloscope. Measure and record the voltage gain of this circuit, and compare to the theory that was discussed in class. Export a plot of the input/output waveforms to be included your lab report.+Turn on the power supplies and observe the current draw to be sure there are no accidental shorts. Now adjust the waveform generator to produce a volt amplitude peak-to-peak, 1 kHz sine wave at the input (Vin), and again display both the input and output on the oscilloscope. Measure and record the voltage gain of this circuit, and compare to the theory that was discussed in class. Export a plot of the input/output waveforms to be included your lab report.
  
 {{:university:courses:electronics:inverting_amp-bb.png|}} {{:university:courses:electronics:inverting_amp-bb.png|}}
  
-<WRAP centeralign> Figure 1.13Unity Gain Follower Breadboard Circuit </WRAP>+<WRAP centeralign> Figure 1.9Inverting amplifier Breadboard Circuit </WRAP>
  
 This is a good point to comment on circuit debugging. At some point in this class you are likely to have trouble getting your circuit to work. That is not unexpected, nobody is perfect. However, you should not simply assume that a non-working circuit must imply a malfunctioning part or lab instrument. That is almost never true; 99% of all circuit problems are simple wiring or power supply errors. Even experienced engineers will make mistakes from time to time, and consequently, learning how to “debug” circuit problems is a very important part of the learning process. It is NOT the TA’s responsibility to diagnose errors for you, and if you find yourself relying on others in this way then you are missing a key point of the lab and you will be unlikely to succeed in later coursework. Unless smoke is issuing from your op amp or there are brown burn marks on your resistors or your capacitor has exploded, your components are probably fine, in fact most of them can tolerate a little abuse before significant damage is done. The best thing to do when things aren’t working is to just turn off the power supplies and look for a simple explanation before blaming parts or equipment. The DMM can be valuable debugging tool in this regard. This is a good point to comment on circuit debugging. At some point in this class you are likely to have trouble getting your circuit to work. That is not unexpected, nobody is perfect. However, you should not simply assume that a non-working circuit must imply a malfunctioning part or lab instrument. That is almost never true; 99% of all circuit problems are simple wiring or power supply errors. Even experienced engineers will make mistakes from time to time, and consequently, learning how to “debug” circuit problems is a very important part of the learning process. It is NOT the TA’s responsibility to diagnose errors for you, and if you find yourself relying on others in this way then you are missing a key point of the lab and you will be unlikely to succeed in later coursework. Unless smoke is issuing from your op amp or there are brown burn marks on your resistors or your capacitor has exploded, your components are probably fine, in fact most of them can tolerate a little abuse before significant damage is done. The best thing to do when things aren’t working is to just turn off the power supplies and look for a simple explanation before blaming parts or equipment. The DMM can be valuable debugging tool in this regard.
Line 143: Line 115:
 === Procedure: === === Procedure: ===
  
-Use the first waveform generator as source Vin to provide a 1V amplitude, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.+Use the first waveform generator as source Vin to provide a 2V amplitude peak-to-peak, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.
  
-A plot example is presented in Figure 1.14.+A plot example is presented in Figure 1.10.
  
 {{:university:courses:electronics:inverting_amp-waveform.png|}} {{:university:courses:electronics:inverting_amp-waveform.png|}}
  
-<WRAP centeralign> Figure 1.14Unity Gain Follower Waveforms </WRAP>+<WRAP centeralign> Figure 1.10Inverting amplifier Waveforms </WRAP>
 ==== Output Saturation: ==== ==== Output Saturation: ====
  
-Now change the feedback resistor R<sub>2</sub> in figure 1.from 4.7 kΩ to 10 kΩ . What is the gain now? Slowly increase the amplitude of the input signal to 2 volts, and export the waveforms into your lab notebook. The output voltage of any op amp is ultimately limited by the supply voltages, and in many cases the actual limits are much smaller than the supply voltages due to internal voltage drops in the circuitry. Quantify the internal voltage drops in the OP97 based on your measurements above.+Now change the feedback resistor R<sub>2</sub> in figure 1.from 4.7 kΩ to 10 kΩ . What is the gain now? Slowly increase the amplitude of the input signal to 2 volts, and export the waveforms into your lab notebook. The output voltage of any op amp is ultimately limited by the supply voltages, and in many cases the actual limits are much smaller than the supply voltages due to internal voltage drops in the circuitry. Quantify the internal voltage drops in the OP97 based on your measurements above.
  
 ==== Summing Amplifier Circuit: ==== ==== Summing Amplifier Circuit: ====
Line 158: Line 130:
 === Background: === === Background: ===
  
-The circuit of figure 1.15 is a basic inverting amplifier with an additional input, called a “summing” amplifier. Using superposition we can show that Vout is a linear sum of Vin1 and Vin2, each with their own unique gain or scale factor.+The circuit of figure 1.11 is a basic inverting amplifier with an additional input, called a “summing” amplifier. Using superposition we can show that Vout is a linear sum of Vin1 and Vin2, each with their own unique gain or scale factor.
  
 {{ :university:courses:electronics:a1_f6.png?500 |}} {{ :university:courses:electronics:a1_f6.png?500 |}}
  
-<WRAP centeralign> Figure 1.15 Summing Amplifier configuration </WRAP> +<WRAP centeralign> Figure 1.11 Summing Amplifier configuration </WRAP>
- +
-=== Simulation: === +
- +
-Create the summing amplifier circuit using ADISim tool as presented in Figure 1.16. +
- +
-<WRAP centeralign> {{:university:courses:electronics:summing_amp-circuit.png|}} </WRAP> +
- +
-<WRAP centeralign> Figure 1.16. Summing Amplifier ADISim Circuit </WRAP> +
- +
-Set the waveform generator in order to output a sine wave with amplitude of 1V and frequency 1kHz for channel 1 and constant 1V for channel 2. Apply a transient simulation and observe the input and the output waveforms. An example of simulation is presented in Figure 1.17. +
- +
-{{:university:courses:electronics:summing_amp-graph.png|}} +
- +
-<WRAP centeralign> Figure 1.17. Summing Amplifier Simulation </WRAP>+
  
 === Hardware Setup: === === Hardware Setup: ===
  
-With the power turned off, modify your inverting amplifier circuit as shown in figure 1.18. Use the second waveform generator output for Vin2. Turn the amplitude all the way down to zero so that you can adjust up from zero during the experiment.+With the power turned off, modify your inverting amplifier circuit as shown in figure 1.12. Use the second waveform generator output for Vin2. Turn the amplitude all the way down to zero so that you can adjust up from zero during the experiment.
  
-Now apply a volt amplitude sine wave for Vin1 and 1 volts DC for Vin2. Observe and record the input/output waveforms on the oscilloscope screen. Pay close attention to the ground signal level of the output channel on the oscilloscope screen. When used in this way, such a circuit could be called a level shifter.+Now apply a volt amplitude peak-to-peak sine wave for Vin1 and 1 volts DC for Vin2. Observe and record the input/output waveforms on the oscilloscope screen. Pay close attention to the ground signal level of the output channel on the oscilloscope screen. When used in this way, such a circuit could be called a level shifter.
  
 Adjust the DC offset of waveform generator W1 (Vin1) until Vout has zero DC component. Estimate the required DC offset by observing the input waveform on the scope (note: it is not Vin2 , be sure to understand why). Adjust the DC offset of waveform generator W1 (Vin1) until Vout has zero DC component. Estimate the required DC offset by observing the input waveform on the scope (note: it is not Vin2 , be sure to understand why).
Line 192: Line 150:
 {{:university:courses:electronics:summing_amp-bb.png|}} {{:university:courses:electronics:summing_amp-bb.png|}}
  
-<WRAP centeralign> Figure 1.18. Summing Amplifier Breadboard Circuit </WRAP>+<WRAP centeralign> Figure 1.12. Summing Amplifier Breadboard Circuit </WRAP>
  
 === Procedure: === === Procedure: ===
  
-Use the first waveform generator as source Vin to provide a 1V amplitude, 1 kHz sine wave excitation to the circuit. The second waveform generator is used to generate 1V constant voltage. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.+Use the first waveform generator as source Vin to provide a 2V amplitude peak-to-peak, 1 kHz sine wave excitation to the circuit. The second waveform generator is used to generate 1V constant voltage. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.
  
-A plot example is presented in Figure 1.19.+A plot example is presented in Figure 1.13.
  
 {{:university:courses:electronics:summing_amp-waveform.png|}} {{:university:courses:electronics:summing_amp-waveform.png|}}
  
-<WRAP centeralign> Figure 1.19. Summing Amplifier Waveforms </WRAP>+<WRAP centeralign> Figure 1.13. Summing Amplifier Waveforms </WRAP>
  
 ==== Non-Inverting Amplifier: ==== ==== Non-Inverting Amplifier: ====
Line 208: Line 166:
 === Background: === === Background: ===
  
-The non-inverting amplifier configuration is shown in figure 1.20. Like the unity-gain buffer, this circuit has the (usually) desirable property of high input resistance, so it is useful for buffering non-ideal sources:+The non-inverting amplifier configuration is shown in figure 1.14. Like the unity-gain buffer, this circuit has the (usually) desirable property of high input resistance, so it is useful for buffering non-ideal sources:
  
 {{ :university:courses:electronics:a1_f7.png?500 |}} {{ :university:courses:electronics:a1_f7.png?500 |}}
  
-<WRAP centeralign> Figure 1.20 Non-inverting Amplifier with gain </WRAP> +<WRAP centeralign> Figure 1.14 Non-inverting Amplifier with gain </WRAP>
- +
-=== Simulation: === +
- +
-Create the non-inverting amplifier circuit using ADISim tool as presented in Figure 1.21. +
- +
-<WRAP centeralign> {{:university:courses:electronics:noninverting_amp-circuit.png|}} </WRAP> +
- +
-<WRAP centeralign> Figure 1.21. Non-Inverting Amplifier ADISim Circuit </WRAP> +
- +
-Set the waveform generator in order to output a sine wave with amplitude of 1V and frequency 1kHz for channel 1. Apply a transient simulation and observe the input and the output waveforms. An example of simulation is presented in Figure 1.22. +
- +
-{{:university:courses:electronics:noninverting_amp-graph.png|}} +
- +
-<WRAP centeralign> Figure 1.22. Non-Inverting Amplifier Simulation </WRAP>+
  
 === Hardware Setup: === === Hardware Setup: ===
  
-Assemble the non-inverting amplifier circuit shown in figure 1.23. Remember to shut off the power supplies before assembling the new circuit. Start with R<sub>2</sub> = 1kΩ.+Assemble the non-inverting amplifier circuit shown in figure 1.15. Remember to shut off the power supplies before assembling the new circuit. Start with R<sub>2</sub> = 1kΩ.
  
-Apply a volt amplitude, 1 kHz sine wave at the input, and display both input and output on the scope. Measure the voltage gain of this circuit, and compare to the theory discussed in class. Export a plot of the waveforms and include it in your lab report.+Apply a volt amplitude peak-to-peak, 1 kHz sine wave at the input, and display both input and output on the scope. Measure the voltage gain of this circuit, and compare to the theory discussed in class. Export a plot of the waveforms and include it in your lab report.
  
 Increase the feedback resistor (R<sub>2</sub>) from 1 kΩ to about 5 kΩ. What is the gain now? Increase the feedback resistor (R<sub>2</sub>) from 1 kΩ to about 5 kΩ. What is the gain now?
Line 242: Line 186:
 {{:university:courses:electronics:noninverting_amp-bb.png|}} {{:university:courses:electronics:noninverting_amp-bb.png|}}
  
-<WRAP centeralign> Figure 1.23. Non-Inverting Amplifier Breadboard Circuit </WRAP>+<WRAP centeralign> Figure 1.15. Non-Inverting Amplifier Breadboard Circuit </WRAP>
  
 === Procedure: === === Procedure: ===
-Use the first waveform generator as source Vin to provide a 1V amplitude, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.+Use the first waveform generator as source Vin to provide a 2V amplitude peak-to-peak, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1.
  
-A plot example is presented in Figure 1.24.+A plot example is presented in Figure 1.16.
  
 {{:university:courses:electronics:noninverting_amp-waveform.png|}} {{:university:courses:electronics:noninverting_amp-waveform.png|}}
  
-<WRAP centeralign> Figure 1.24. Non-Inverting Amplifier Waveforms </WRAP> +<WRAP centeralign> Figure 1.16. Non-Inverting Amplifier Waveforms </WRAP>
- +
-===== 1.3 Using an Op-Amp as a Comparator ===== +
- +
-=== Background: === +
- +
-The high intrinsic gain of the op-amp and the output saturation effects can be exploited by configuring the op-amp as a comparator as in figure 1.25. This is essentially a binary-state decision-making circuit: if the voltage at the “+” terminal is greater than the voltage at the “-” terminal, Vin > Vref , the output goes “high” (saturates at its maximum value). Conversely if Vin < Vref the output goes “low”. The circuit compares the voltages at the two inputs and generates an output based on the relative values. Unlike all the previous circuits there is no feedback between the input and output; we say that the circuit is operating “open-loop”. +
- +
-{{ :university:courses:electronics:a1_f1-8.png?500 |}} +
- +
-<WRAP centeralign> Figure 1.25 Op-Amp as Comparator </WRAP> +
- +
-=== Simulation: === +
- +
-Create the op-amp comparator circuit using ADISim tool as presented in Figure 1.26. +
- +
-<WRAP centeralign> {{:university:courses:electronics:comp_amp-circuit.png|}} </WRAP> +
- +
-<WRAP centeralign> Figure 1.26. Comparator ADISim Circuit </WRAP> +
- +
-Set the waveform generator in order to output a sine wave with amplitude of 1V and frequency 1kHz for channel 1 and 0V constant voltage for channel 2. Apply a transient simulation and observe the input and the output waveforms. An example of simulation is presented in Figure 1.27. +
- +
-{{:university:courses:electronics:comp_amp-graph.png|}} +
- +
-<WRAP centeralign> Figure 1.27. Comparator Amplifier Simulation </WRAP> +
- +
-=== Hardware Setup: === +
- +
-Comparators are used in different ways, and in future sections we will see them in action in several labs. Here we will use the comparator in a common configuration that generates a square wave with a variable pulse width: +
- +
-Start by shutting off the power supplies and assemble the circuit. As with the summing amplifier circuit earlier, use the second waveform generator output for the DC source Vref , and turn the amplitude to zero and the output offset all the way down so that you can adjust up from zero during the experiment. +
- +
-Again configure the waveform generator Vin for a 2V amplitude sine wave at 1 kHz. With the power supply on and Vref at zero volts, export the output waveform. +
- +
-Now slowly increase Vref and observe what happens. Record the output waveform for Vref = 1V. Keep increasing Vref until it exceeds 2V and observe what happens. Can you explain this? +
- +
-Repeat the above for a triangular input waveform and record your observations for your lab report. +
- +
-{{:university:courses:electronics:comp_amp-bb.png|}} +
- +
-<WRAP centeralign> Figure 1.23. Comparator Breadboard Circuit </WRAP> +
- +
-=== Procedure: === +
- +
-Use the first waveform generator as source Vin to provide a 1V amplitude, 1 kHz sine wave excitation to the circuit. Configure the scope so that the input signal is displayed on channel 2 and the output signal is displayed on channel 1. +
- +
-A plot example is presented in Figure 1.24. +
- +
-{{:university:courses:electronics:comp_amp-waveform.png|}} +
- +
-<WRAP centeralign> Figure 1.24. Comparator Waveforms </WRAP> +
- +
-==== Extra Credit ==== +
- +
-For experimenters who finish early or want an additional challenge, see if you can modify the comparator circuit using your red and green LEDs (from the last lab) at the output so that the red LED lights for negative voltages and the green LED lights for positive voltages. Turn down the frequency to 1Hz (or less) so you can see them turn on-and-off in real time. Don’t forget that the LEDs will need a current-limiting resistor so that the current through it is no more than 20mA.+
  
 === Congratulations! You have now completed Lab Activity 1 === === Congratulations! You have now completed Lab Activity 1 ===
Line 317: Line 207:
 ■ Slew rate: discuss how you measured and computed the slew rate in the unity-gain buffer configuration, and compare this with the value listed in the OP97 data sheet. ■ Slew rate: discuss how you measured and computed the slew rate in the unity-gain buffer configuration, and compare this with the value listed in the OP97 data sheet.
  
-■ Buffering: explain why the buffer amplifier in figure 1.allowed the voltage divider circuit to function perfectly with differently load resistances.+■ Buffering: explain why the buffer amplifier in figure 1.allowed the voltage divider circuit to function perfectly with differently load resistances.
  
 ■ Output saturation: explain your observations of output voltage saturation in the inverting amplifier configuration and your estimate of the internal voltages drops. How close does the output come to the supply rails in this experiment and also later when used as a comparator with different power-supply voltages? Can you guess what the output voltage swing would be for an op-amp that is advertised as a “rail-to-rail” device? ■ Output saturation: explain your observations of output voltage saturation in the inverting amplifier configuration and your estimate of the internal voltages drops. How close does the output come to the supply rails in this experiment and also later when used as a comparator with different power-supply voltages? Can you guess what the output voltage swing would be for an op-amp that is advertised as a “rail-to-rail” device?
  
-■ Summing circuit: using superposition, derive the expected transfer characteristic for the circuit of figure 1.6; that is, find the output voltage in terms of Vin1 and Vin2 . Compare the predictions of the ideal relationship with your data.+■ Summing circuit: using superposition, derive the expected transfer characteristic for the circuit of figure 1.11; that is, find the output voltage in terms of Vin1 and Vin2 . Compare the predictions of the ideal relationship with your data.
  
 ■ Comparator: discuss your measurements and what would happen if the polarity of Vref is reversed ■ Comparator: discuss your measurements and what would happen if the polarity of Vref is reversed
 +\\
 +\\
 +<WRAP round download>
 +**Resources:**
 +  * Fritzing files: [[downgit>education_tools/tree/master/m2k/fritzing/simple_op_amps_bb | opamp_bb]]
 +  * LTSpice files: [[downgit>education_tools/tree/master/m2k/ltspice/opamp_ltspice | opamp_ltspice]]
 +</WRAP>
 +
 +**Continue to next Op Amp Lab Activity: [[university:courses:electronics:electronics-lab-opamp-comparator|Op Amp as Comparator]]**
  
-**Return to Lab Activity [[university:courses:electronics:labs|Table of Contents]]**+**More on Op Amps in amplifier configuration: [[university:courses:electronics:electronics-lab-variable-gain-amplifier|Variable Gain Amplifiers]]** 
 +\\ 
 +\\ 
 +**Return to Lab Activity[[university:courses:electronics:labs|Table of Contents]]**
  
university/courses/electronics/electronics-lab-1.1494593031.txt.gz · Last modified: 12 May 2017 14:43 by Antoniu Miclaus