Yup, But I stopped at R1=1k and C1=470pF, Most likely I am going to stop at generating a 100 kHz instead.
Just another question, when the triangular wave output goes to the inverting input and sine wave to the non-inverting input, I should get a PWM signal right?
However, the PWM waveform is kinda weird. Is that the right waveform or I missed out something?
The waveform only shows the waveform of Hin(A). Could it be that for U2, the power supply is too low?
Hello,
It looks like the scope may not be responding correctly to the signal. You should lower the frequency of the triangle wave and of course the sine wave just for the initial testing. 1KHz might be better for testing.
If you use a capacitor for coupling then you should also use a resistor to ground after the capacitor, say 100k or something like that.
Here's a quick screen shot of what it should look like once it is working right...
Get rid of C2 because the inputs of the comparator must have a DC reference voltage that is 0V. The sine-wave must also be DC-coupled.
I think the amplitude of your sinewave is too high and causes the TL082 comparator to have "opamp phase inversion" when the sinewave voltage gets within 4V from the negative supply. I do not know why the amplitude from the comparator is so low, it is about half the 17V p-p level it should be.
Since the total supply for the integrator is only 10V then the triangle wave is only about 8.5V peak-to-peak. Then the sinewave must be attenuated so it is also 8V peak-to-peak or whatever the triangle is.
Hello,
You should try lowering the input sine and input triangle amplitudes.
You really have to keep BOTH inputs at about 1v peak (2v peak to peak) or else the 'comparator' section may not work. That's because the TL072 input common mode range is about 4v above the negative rail and about 4v below the positive rail, which comes out to plus and minus 1 volt. It could be better than that, but it's not guaranteed to work.
If you use plus and minus 10v power supply it would work up to about plus and minus 6v input.
The slew rate is 13v/us which isnt too bad, but you many see ramping on the scope for fast rising wave fronts. The scope may not be able to follow either, i dont know what the rise time spec of the scope is though...you could check that too.
Hi,The low sampling frequency of your digital scope is messing up the 100kHz waveforms.
Try the circuit with a triangle waveform that is 10kHz or less instead of 100kHz.
I see. Thanks MrAI & audioguru,Hi,
I agree with audioguru that you should change the frequency so that you can view it on the scope better. PWM is sometimes a little strange to view on the scope because it contains many variable width pulses. With single width pulses you can zoom in on one pulse and see it and that really represents all the pulses. But with PWM the pulse width is always changing, so if you zoom in you see a mess of pulse widths. So it is better to use less pulses per cycle just so you can get a better view of how well it is working. When you wish to view individual pulses in a PWM waveform, you can use delayed sweep if your scope has that feature. Delayed sweep delays the sweep until it gets to the start of the time frame you want to view, then it shows it. That means you can zoom in on the pattern near 10 degrees, 20 degrees, 40 degrees, 90 degrees, anywhere in the cycle, and see the pulse width there. Without delayed sweep it is harder to see clearly. Some scopes have a button you can press that stretches out the horizontal axis by 2 to 10 times (or more). That can help if your scope has that feature but does not have delayed sweep.
These are some of the pictures that I collated.Hi,
You are welcome, and if you feel like sharing some photos of your project so we can all see it that would be great too. You'd have to take a few pic's i guess. That's up to you, but it would be nice to see.
Notice that there are no sharp points on the triangle waves.
Your 10k and 10k divider is affected by stray capacitance at that high frequency. Try using 1k and 1k instead.
No. You used 1k and 10k so the divider does very little. Use 1k and 1k to divide the signal in half.
Why divide the output signal when changing the value of R2 or R3 will reduce the level and make the triangle waveform better?
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?