Maker Pro
Maker Pro

PWM frequency and LC filter

Ricperes

Jul 20, 2015
29
Joined
Jul 20, 2015
Messages
29
I'm new here, I have some fairly basic doubt. I am creating a PWM signal in MatLab by comparing a sine wave (50Hz) and a triangular wave (2kHz) .... So what is the PWM frequency will output?

After getting the PWM signal filters I want to get a sinusoid, using an LC filter, but do not know what the frequency of cut should I use?

Thanks for help
 

Alec_t

Jul 7, 2015
3,587
Joined
Jul 7, 2015
Messages
3,587
Does this help? The yellow plot shows the PWM output as 2kHz. I'm surprised MatLab can't tell you?
SineTriangle.PNG
 

Ricperes

Jul 20, 2015
29
Joined
Jul 20, 2015
Messages
29
Does this help? The yellow plot shows the PWM output as 2kHz. I'm surprised MatLab can't tell you?
View attachment 24793

I had been create a PWM signal in MatLab by comparing a sine wave (50Hz) and a triangular wave (2kHz) , my doubt is what de frequency of PWM in output? Is 2khz as the triangular wave ?
 

Alec_t

Jul 7, 2015
3,587
Joined
Jul 7, 2015
Messages
3,587
For your purpose the output PWM frequency = the triangular wave frequency = 2kHz.
 

Ricperes

Jul 20, 2015
29
Joined
Jul 20, 2015
Messages
29
For your purpose the output PWM frequency = the triangular wave frequency = 2kHz.

So now i want to filter that pwm signal to get a sinusoidal wave. I use a LC filter, so you can explain me how i can dimension this filter?
 
Top