# Shifting the waveform using op amp

1. ## Shifting the waveform using op amp

I am trying to generate the SPWM using analog circuit, by comparing sine with triangular wave the output will be Sinusoidal PWM.

- Here i am generating Sine wave of 50 HZ using wein bridge oscillator. And it outputs good.
- Triangular wave is generated by square wave generator and integrator.
- Two waves are compared using comparator( LM393 )

The two waves should be like the below images But i get like this How to shift the wave up or down according to the required amplitude ??   Reply With Quote

•

2. ## Re: Shifting the waveform using op amp

attach your opamp circuit for sinewave , triangle and comparator with supply voltages shown.  Reply With Quote

•

3. ## Re: Shifting the waveform using op amp

Hi,

maybe you want something "self-aligning":

Use a DC-Blocking series capacitor on both signals and do DC biasing both signals to the same (average) level.
R to the bias voltage.

Klaus  Reply With Quote

•

4. ## Re: Shifting the waveform using op amp  Reply With Quote

5. ## Re: Shifting the waveform using op amp

The waveform get shifted good by using level shifter circuit. Thank you friends for your response..

- - - Updated - - - Originally Posted by vivekroy Sure i will try it

- - - Updated - - - Originally Posted by KlausST Hi,

maybe you want something "self-aligning":

Use a DC-Blocking series capacitor on both signals and do DC biasing both signals to the same (average) level.
R to the bias voltage.

Klaus
I tried with decoupling capacitor at the output of the waveform . Which work good for a single circuit , for example Wien bridge oscillator added with decoupling capacitor at the end , gives ac sine wave of middle value zero volt. But when I add this circuit to an comparator the sine wave get shifted.  Reply With Quote

•

6. ## Re: Shifting the waveform using op amp

The two 10k resistors in series that divide the 9V into +4.5V and -4.5V are overloaded by the input bias current of the opamps. Use opamps with Jfet inputs that have an extremely low input bias current.
Why do your opamps have no part numbers?

- - - Updated - - -

If you add a coupling capacitor (a decoupling capacitor at the end) to the output of the Wien bridge oscillator then the comparator input has no DC reference voltage that should be at hlf the supply voltage. Then the DC bias current of the LM393 comparator causes its DC input to go positive.  Reply With Quote

--[[ ]]--