Convert pulses into sine. Simulink

23 views (last 30 days)
Justas
Justas on 20 Dec 2014
Answered: Mathieu NOE on 10 Nov 2021
Any idea how to convert pulses to sine wave in Simulink model? I'm having pulses which I get via PWM technique and now I want to convert it to sine, because I need to know is phase shifted by 120 degrees.
Here is my model:
Scope:
I need to get something like that:
  2 Comments
Hieu Dang
Hieu Dang on 7 May 2017
Hi, my name's Vu , I need your help, can you send me your model ? Here's my email huyvu1703@gmail.com. Thank you very much for your help. I really appreciate that.
migue pico
migue pico on 10 Nov 2021
Hi, I'm trying to do something similar. I need to convert the pulses generated by an optical sensor to a sinewave so that I can compare it to other sinewaves and find out the phase difference. Did you end up figuring out ? If so could you please let me know how ? This is my email, mpico602@unab.edu.co and Thanks in advance.

Sign in to comment.

Answers (1)

Mathieu NOE
Mathieu NOE on 10 Nov 2021
hello
to convert PWM back to the input sinus , you simply have to put a low pass filter after the PWM signal
you can use a second or fourth order butterworth filter with a cut off frequency about 1/10th of the PWM carrier frequency
this is how it's "hardware" implemented in class D amplifiers (to remove the carrier and harmonics)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!