F24 ECE210 - Lab 6 - RC Circuits and OpAmps
F24 ECE210 - Lab 6 - RC Circuits and OpAmps
Robert Niffenegger ©
Introduction:
Op-Amps can be combined with capacitors to create dynamic circuits based on the
charging and discharging time of the capacitors. As an example, we will create a square
wave generator in which a capacitor on the input charges and causes the output to invert
very quickly to its maximum due to the very large gain, creating a square wave. Then we will
add another op-amp to act as an integrator of the first stage’s square wave using a
capacitor on the feedback.
Finally, we will filter the triangle wave with a low pass filter to create a sinewave.
[email protected] 1
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
However, now we will use the charging and discharging of a capacitor on the input of the
op-amp to set the period of the oscillations (not the signal generator).
The circuit is designed to reverse the charging and discharging of the input capacitor.
If the capacitor on the inverting input is not charged, then 𝑉𝑐𝑎𝑝 = 𝑄/𝐶 will be small.
𝑉𝑜𝑢𝑡
The output will be 𝑉𝑜𝑢𝑡 = 𝐴 ( − 𝑉𝑐𝑎𝑝 ) = 𝑉𝑝𝑜𝑤𝑒𝑟 . Saturating at the positive power supply
2
𝑉𝑜𝑢𝑡
voltage when 𝑉𝑐𝑎𝑝 < , and charging the capacitor, slowly increasing its voltage.
2
𝑉
Then when 𝑉𝑐𝑎𝑝 > 𝑂𝑢𝑡 , the output quickly flips to the negative power supply voltage and
2
starts slowly discharging the capacitor until it is negatively charged enough that 𝑉𝑐𝑎𝑝 <
𝑉𝑜𝑢𝑡
− and then the whole process repeats, creating a sawtooth wave on the inverting input.
2
[email protected] 2
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
2. Draw the breadboard layout of the circuit including the pins of the op-amp.
3. Assemble the circuit on the breadboard (like the op-amp circuit for Lab 5)
(For 5kΩ, you can use 4.7kΩ or 5.2kΩ)
4. Measure and RECORD - Input waveform at 𝑉𝐶𝑎𝑝𝑎𝑐𝑖𝑡𝑜𝑟 (V_ , the sawtooth on pin 2)
a. Voltage peak to peak?
b. Frequency?
c. Shape?
6. Measure and RECORD the very small amount of time it takes for the output voltage
to switch from positive to negative (i.e. How sharp is the square wave???)
Zoom in on the trace and use the cursor or estimate with the TIME/DIV
Recall that the feedback can cross directly over the op-amp on the breadboard.
Don’t forget to connect the power supply to provide power to the op-amp.
[email protected] 3
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
The next stage is an ‘integrator’, with a capacitor placed on the inverting feedback that
charges and discharges linearly as a constant current passes through it, equal to the
current passing through the input resistor. When the input changes sign the process
reverses and the capacitor discharges linearly as the constant current changes sign.
Note that the charging is linear, not exponential, creating a triangle wave.
[email protected] 4
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
Lastly, we will build a low pass filter to convert the triangle wave to a sinewave.
1 1
𝑓= , = 100Hz
2𝜋𝑅𝐶 2𝜋 ⋅ 150𝑘Ω ⋅ 10𝑛𝐹
6. Next, calculate the resistance needed to create a low pass filter at HALF the
frequency of the input triangle wave.
7. Swap the resistors to create the lower low pass filter.
8. Measure and RECORD the output sinewave of the lower low pass filter.
(Note how this sinewave is purer than before but also more attenuated)
[email protected] 5
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
Prelab exercises:
(TAs will check before lab begins)
[email protected] 6
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©
If your report appears sloppy, no one will trust your conclusions… even if they are correct
1 report/group
2-page max
Points
Introduce and define all concepts 5
Experimental Diagrams 5
Analysis 5
Analysis 5
Analysis 5
Conclusion 5
Prelab 5
65
[email protected] 7
Laboratories rewritten for 2024 by Prof. Robert Niffenegger ©