Maker Pro
Maker Pro

will this really give me a triangular wave?

AFex54

Apr 10, 2015
144
Joined
Apr 10, 2015
Messages
144
its essentially just a low pass filter, so I feel like im always going to end up a with more of a curvy ramped wave on the output.
Is this the case?
perhaps I need to find the triangular sweet spot by adjusting the value of C2 and R5?

opamp-integrator.png

Also the device that produces the square wave also has a ramp wave, maybe this is better route for conversion to triangle?
 
Last edited:

Miguel Lopez

Jan 25, 2012
255
Joined
Jan 25, 2012
Messages
255
It is a real triangular wave and of course it has some distortion. Nothing is 100% pure in the real world.
 

Alec_t

Jul 7, 2015
3,587
Joined
Jul 7, 2015
Messages
3,587
The 741 is a poor choice because of its limited output swing, bandwidth and slew rate. For a fixed input frequency square-wave, R4 and C2 determine the slope of the triangle wave and hence the peak-to-peak amplitude (up to the point where clipping occurs because of the poor performance of the 741).
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
Turning a ramp or sawtooth wave into a symmetrical triangle wave is much more difficult.

ak
 

AFex54

Apr 10, 2015
144
Joined
Apr 10, 2015
Messages
144
It is a real triangular wave and of course it has some distortion. Nothing is 100% pure in the real world.
I realise there will be distortion but Im talking about an isoceles triangle , my synth already has a ramped wave (which is techincally also triangular) so if this converter is too ramped I dont see the point in using it.
for example this amount of distortion would be more than perfect:
52ocB.png

The 741 is a poor choice because of its limited output swing, bandwidth and slew rate. For a fixed input frequency square-wave, R4 and C2 determine the slope of the triangle wave and hence the peak-to-peak amplitude (up to the point where clipping occurs because of the poor performance of the 741).

I hadnt even noticed the Op Amp they used, I will be using a TL074.
My square wave is not fixed though, will these kind of converters only be suitable for fixed frequency waves ?
 
Last edited:

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
For a constant amplitude input squarewave, as its frequency increases the output triangle wave amplitude will decrease. This is because the integrator is a constant slew rate circuit.

you don't say what the value of R5 is, but the larger it is, the straighter the triangle sides will be.

ak
 

AFex54

Apr 10, 2015
144
Joined
Apr 10, 2015
Messages
144
For a constant amplitude input squarewave, as its frequency increases the output triangle wave amplitude will decrease. This is because the integrator is a constant slew rate circuit.

you don't say what the value of R5 is, but the larger it is, the straighter the triangle sides will be.

ak
any idea how significant the decrease would be?
my synth is LoFi to begin with so if its only slight then I doubt it would pose too much of an issue.
 

Alec_t

Jul 7, 2015
3,587
Joined
Jul 7, 2015
Messages
3,587
Do you have to use a converter to get from a square wave to a triangle wave? If not, a simple CMOS inverter Schmitt trigger oscillator will produce an output similar to that in post # 5, as well as a square wave of the same frequency (but not the same amplitude). The 'triangle' output amplitude would be fixed and independent of the oscillator frequency (unlike the post #1 circuit).
 

AnalogKid

Jun 10, 2015
2,884
Joined
Jun 10, 2015
Messages
2,884
any idea how significant the decrease would be?
my synth is LoFi to begin with so if its only slight then I doubt it would pose too much of an issue.

Inversely proportional - twice the frequency, half the amplitude.

ak
 

AFex54

Apr 10, 2015
144
Joined
Apr 10, 2015
Messages
144
Do you have to use a converter to get from a square wave to a triangle wave? If not, a simple CMOS inverter Schmitt trigger oscillator will produce an output similar to that in post # 5, as well as a square wave of the same frequency (but not the same amplitude). The 'triangle' output amplitude would be fixed and independent of the oscillator frequency (unlike the post #1 circuit).
unfortunately yes
Inversely proportional - twice the frequency, half the amplitude.

ak
thanks that was really helpful
 
Top