Characterization of an Op-amp Function Generator Circuit

Click For Summary

Discussion Overview

The discussion revolves around characterizing an op-amp function generator circuit, focusing on determining theoretical relationships for frequency, amplitude, and gain of the voltage outputs. Participants share experimental data and seek to understand the underlying principles of the circuit's operation, including the roles of different op-amps and their configurations.

Discussion Character

  • Homework-related
  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant seeks to characterize the circuit and compare measured data to theoretical predictions, expressing uncertainty about the theoretical relationships involved.
  • Another suggests using Laplace transformations for frequency response analysis, but acknowledges that simpler electrical engineering fundamentals may be more appropriate.
  • Several participants discuss the characteristics of ideal op-amps, noting high input impedance and low output impedance, and identify the first op-amp as a comparator and the second as an integrator.
  • Measurements taken indicate varying frequency and voltage outputs based on resistor adjustments, with specific ranges provided for square and triangle wave outputs.
  • Questions arise regarding the rate of change of the integrator output voltage and the conditions under which the comparator switches its output.
  • Participants explore the relationships between the output voltages and the resistances in the circuit, with some proposing equations for calculating these values.
  • There is discussion about the expected behavior of the output voltages and how they relate to the theoretical understanding of the circuit.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and agreement on the theoretical aspects of the circuit. While some points about the characteristics of the op-amps and their functions are acknowledged, there is no consensus on the exact theoretical relationships or calculations needed for frequency and voltage outputs. The discussion remains unresolved on several technical points.

Contextual Notes

Participants note the importance of considering the ideal versus non-ideal behavior of op-amps at high frequencies, as well as the impact of specific resistor values on the output characteristics. There are also mentions of potential sign changes in voltage calculations that remain unclarified.

lpuppy79
Messages
8
Reaction score
1

Homework Statement


I need to characterize the circuit below in order to compare measured data to theory. Can you determine any the theoretical relationships for the frequency, amplitude, gain of the two voltage outputs? I measured the output voltage of each op-amp while varying both of the variable resistors individually. I can't seem to find any theoretical relationships for this circuit online, and I definitely don't have the knowledge to do it myself.

funcgen.gif

Source: http://www.unirioja.es/cu/lzorzano/OPAMPcollection.pdf

Homework Equations


Don't know.

The Attempt at a Solution


Don't know what to do.
 
Last edited:
Physics news on Phys.org
A classical way to put the relationship into mathematical terms is to represent the electronic components with Laplace transformations in the S-plane. Then the frequency response can be analysed. The Laplace transforms are very powerful and can be applied to very complicated circuits, but it is a subject in itself. If that is not what you are looking for, then there may be a simpler way to analyse it using more basic EE fundamentals.
 
Considering I don't understand anything of what you just said, using EE fundamentals would be very appreciated.
 
lpuppy79 said:
Considering I don't understand anything of what you just said, using EE fundamentals would be very appreciated.
Ok. Sounds like my answer was way off the mark. Sorry. I hope someone with EE background can help.
 
FactChecker said:
Ok. Sounds like my answer was way off the mark. Sorry. I hope someone with EE background can help.
Thanks for trying!
 
Yeah, Fourier Transforms will not be needed today... :smile:

@lpuppy79 -- What have you learned about opamps so far? What are the characteristics of an ideal opamp? How do those characteristics help you to write the equations for the transfer function of opamp circuits like this one?
 
Also note -- that first opamp is being used as a comparator and not an opamp...
 
Ideal Characteristics:
High Input Impedance
Low Output Impedance

Yes, the first is used as a comparator.

Is the second op amp essentially just an integrating circuit?
 
lpuppy79 said:
Ideal Characteristics:
High Input Impedance
Low Output Impedance

Yes, the first is used as a comparator.

Is the second op amp essentially just an integrating circuit?

Yes, good!

The first comparator is used to make a square wave output, and the 2nd stage opamp integrates that to make a triangle output. That triangle output is fed back to cause the 1st stage comparator to keep tripping to make the square wave.

How would you go about figuring out the amplitude and frequency of the output triangle wave? Do you know what opamps you will be using in your lab measurements for comparison?
 
  • #10
vtri=-1/(RC)*integral(vsqudt) from 0 to T

ftri=fsqu

I already have taken the measurements. I used a LM358.
 
  • #11
lpuppy79 said:
vtri=-1/(RC)*integral(vsqudt) from 0 to T

ftri=fsqu

I already have taken the measurements. I used a LM358.

What did you use for your power supply rails? +/-12V? What was the square wave amplitude? When an opamp output pegs against the rails, the voltage depends on the opamp output stage. Some have "rail-to-rail outputs", and others like the LM358 are not... :smile:
 
  • #12
+/- 12 V as the power supply rails. The amplitude of both the square and the triangle wave varied based on the resistance of R2 so there was no constant square wave amplitude.
 
  • Like
Likes   Reactions: berkeman
  • #13
lpuppy79 said:
there was no constant square wave amplitude.
Are you sure about this?
 
  • #14
While varying R3 from 100-1000 kiloohms with constant R2 (1 megohm) , the frequency's range was .311 kHz to 2.05 kHz, vsquare ranged 22.9-23.1 V , vtriangle ranged 200-272 mV.
While varying R2 from from 0-1 megaohm with constant R3 (140 kilohms), the frequency's ranged from .02275-1.61 kHz, vsquare range 22.3-23.1 V, vtriangle ranged .253-18.3 V.
 
  • #15
At power-up, assume U1 (left-hand op amp) output V1 latches up to + 11Vdc, causing the integrator U2 output voltage V2 to crank downwards (at what rate? I mean, what is dV2/dt at the output of U2?)
Next: at what negative V2 will U1 switch its output from +11 to -11V? Note that this depends on the relative resistances of (R1+R2) vs. R5.
Then the process repeats in the other direction.
With this info you should be able to compute the pk-pk voltages V1 and V2, and the frequency as determined by dV2/dt.
Your data makes sense. The square wave pk-pk V1 should always be ~22V. The pk-pk of V2 depends on the setting of R2. Once R2 is set the pk-pk voltage V2 should not change as you vary R3. But at a high enough frequency the op amps no longer behave ideally so expect deviations from this statement at high frequencies.
Example: set R2 = 500K, V2 pk-pk should be about 0.36V pk-pk.
 
  • #16
1. In all scenarios, dV2/dt would be -1/[RC]=-1/[(R3+R4)C], correct?
2. V2=R5/(R1+R2+R5)*V1max?
3. If those are correct, I don't understand how to get the frequency or V1pp?
 
Last edited:
  • #17
lpuppy79 said:
While varying R3 from 100-1000 kiloohms with constant R2 (1 megohm) , the frequency's range was .311 kHz to 2.05 kHz, vsquare ranged 22.9-23.1 V , vtriangle ranged 200-272 mV.
You could say that Vsquare was constant at about 23V when you tie this in with theory. Also, Vtriangle ideally would be constant.

While varying R2 from from 0-1 megaohm with constant R3 (140 kilohms), the frequency's ranged from .02275-1.61 kHz, vsquare range 22.3-23.1 V, vtriangle ranged .253-18.3 V.
Again, ideal op-amps would see Vsquare here not changing, while Vtriangle changes over a wide range.

Did you sketch V1 underneath V2 showing how they are related in time?
 
  • #18
lpuppy79 said:
1. In all scenarios, dV2/dt would be -1/[RC]=-1/[(R3+R4)C], correct?
You need to multiply this by a voltage, that voltage being V1's maximum

2. V2=R5/(R1+R2+R5)*V1max?
Not quite. How did you calculate this?

3. If those are correct, I don't understand how to get the frequency or V1pp?
 
  • #19
lpuppy79 said:
1. In all scenarios, dV2/dt would be -1/[RC]=-1/[(R3+R4)C], correct?
That's correct for {dV2/dt}/V1. You need to include V1 in dV2/dt.
2. V2=R5/(R1+R2+R5)*V1max?
Right. Except what about the sign of V2? remember, V2 is + before the switch.
3. If those are correct, I don't understand how to get the frequency or V1pp?
You need to think more about how the circuit works: V2 ramps down until the + input to U1 crosses zero V. Then U1 output switches from +11 to -11 and V2 changes direction, now going up in voltage.
I have to leave it at that. I practically told you what the pk-pk voltage V1 is already. Figure out how much time passes before V2 hits the voltage necessary to reverse the polarity of U1's + input every half-cycle. That times 2 gives you the period, and you do know how to calculate frequency given the period.
 
  • #20
rude man said:
2. V2=R5/(R1+R2+R5)*V1max?
Right. Except what about the sign of V2? remember, V2 is + before the switch.
Still wrong. (the sign change notwithstanding)
 
  • #21
NascentOxygen said:
Still wrong. (the sign change notwithstanding)
Right.
 
Last edited:

Similar threads

Replies
15
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
34
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K