Convert pulses into sine. Simulink
16 次查看(过去 30 天)
显示 更早的评论
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146546/image.png)
Scope:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146547/image.png)
I need to get something like that:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146548/image.png)
2 个评论
Hieu Dang
2017-5-7
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
2021-11-10
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.
回答(1 个)
Mathieu NOE
2021-11-10
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)
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!