Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
244 views
in Technique[技术] by (71.8m points)

pid controller - PID working with sine wave as reference in simulink

I have seen example of controlling output dc voltage of DC to DC buck converter using PID controller.

I want to implement DC to AC converter.

I tried using PID controller.

Since i am comparing output AC signal(continuously varying) with reference sinusoidal signal, PID controller is not providing expected output.

In case of DC to DC, both reference signal was constant.

In my case, it is continuously varying sine wave.

Can anyone suggest any way to get accurate DC to AC conversion?

P.S. Can PID controller work with continuously varying reference signal with high frequency(100Hz)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you want to have zero error for a sine wave reference you have two alternatives:

DQ0 Controller

You need to transform (using the dq0 transform also known as Park transform) your reference signal and controlled (measured) values to a rotating frame with the same frequency of your sine wave (in this case 100Hz).

When doing that, your reference signal and measured values will become constant values at 100 Hz and you can use a regular PID controller (actually you will need two - one for the d frame and other for the q frame).

Then you use the inverse transform of the PID controller output that will drive the duty cycle of your converter modulator.

Just notice that if your system is single-phase, there will be 2nd order harmonics in the result of the dq0 transform that have to be filtered out.

Resonant Controller

In the PID controller, the integral action is responsible for zero error constant reference tracking, because it is effectively a infinite gain at zero frequency (i.e. constant). In the transfer function using Laplace form the integral part corresponds to 1/s in the controller function.

To track sine waves, you need a controller in the form of (1/w2+s2), that will guarantee a infinite gain at the frequency of the reference sine wave, where w=2*pi*f.

In fact, we can proof mathematically that a DQ0 PID Controller is equivalent to the Resonant Controller.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...