Hi,
Actually there are a few reasons why the triangle could have a rounded top.
First though is that the rounded top may be ok for use with PWM. It just means that the loop gain goes down for some pulse widths if you use feedback. If you dont use feedback it results in a small amount of distortion.
But another reason for the cause would be that the 'comparator' section of the circuit also acts as an integrator over a short time period when the polarity of the output is trying to change. In the ideal circuit the integrator section is designed with the idea that the comparator puts out a rectangular wave with very fast rise and fall times. But slow down those rise and fall times and what we end up with is the integrator section gets a ramp input for part of the time and rectangular for the remainder of the time. The ramp part happens because of the 'comparator' slew rate, so improving the slew rate would help get the triangle points sharper.
That's of course if you really needed them sharper, which you may not if you use feedback. If you dont use feedback, then the wider pulse widths will be a little wider than they should be relative to the other pulse widths, so there will be a little distortion near the peaks of a test signal like a sine wave which for a reconstructed wave would look like a sine wave with peaks that are a little too sharp. This somewhat smaller effect may still be acceptable though.
A second reason is the response of the op amp in the op amp section. The 'point' of the triangle is after all generated by the op amp too, and the point requires higher bandwidth than the ramping part. Higher bandwidth for the op amp should improve the pointedness of the triangle, provided the comparator section comparator slew rate is also improved.
Most of these problems can be helped also by reducing the signal amplitude within the circuit. For example, if the comparator as is has to slew from -8v to +8v, changing the circuit so that it only has to slew from -4v to +4v would be almost the same as having a comparator IC slew rate twice as fast as before. Reducing to a range of -2v to +2v would also improve another two times.
Same goes for the op amp section. If the output of the op amp IC (not the divider) can be reduced by 2 times, that could also improve the triangle points sharpness.
I dont know what the spec's are for your scope, but you could also check that to see if the scope bandwidth is affecting the triangle points too.
The scope is shown as a 60MHz one in post #15. It is digital and has a "bandwidth limit" switch and we do not know its setting.
So if I were to use something like a level shifter. I would have to pass my triangular wave into another op-amp. Lets say LM393. Then include a Vref at the input. Then the output of the LM393 will be a triangular wave with a DC offset?Hi,
I think you can do that but it will upset the symmetricalness of the triangle wave. So the triangle would shoot up faster than it falls. The reason is because the comparator output goes to ground regardless what offset you use, so it's only symmetrical with a certain offset like zero.
We could look for ways to improve this action if you really need it, or you could just add an output op amp that changes the offset with an adjustment.
No.So if I were to use something like a level shifter. I would have to pass my triangular wave into another op-amp. Lets say LM393. Then include a Vref at the input. Then the output of the LM393 will be a triangular wave with a DC offset?
Then if I use just a basic LM741?No.
An LM393 is a dual comparator, not a dual opamp. A comparator cannot produce a linear triangle wave because its output switches high or low, never in between like a linear opamp can do.
I tried out the schematic below. I insert a DC reference of 12V. This is the waveform I got.A level shifter is easy to make.
You forgot to post the schematic of your level shifter. It looks like its gain is more than 1. Is the shifting DC input +12V or -12V?
Your 'scope photos are useless because 0VDC is not marked.
It looks like your original triangle wave has a reference voltage of 0V, a peak voltage of 7.5V (15V peak-to-peak) and swings from -7.5V to +7.5V.
With a plus 12V and -12V supply, the maximum output from a TL072 is about +10V and -10V.
Then the level can be shifted only 10V - 7.5V= 2.5V, not 12V.
Since the opamp is inverting with a gain of 1 then a +12VDC input to the inverting input resistor is much too high. The output will be saturated as low as it can go (-10V) until the input voltage swings low for part of the triangle waveform. Then the output will be a positive part of the triangle waveform.
If the shifting input is +2V then the output triangle wave will have a reference of -2V and will be from -9.5V to +5.5V.
If the shifting input is -2V then the output triangle wave will have a reference of +2V and will be from -5.5V to +9.5V.
But what voltages do you want the output triangle wave to be?
AG has already told you the maximum would be 10V.I want it to shift from +/- 7.5 to [0v - 15V]
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?