PID control action for AC reference of variable amplitude and frequency.

5 views (last 30 days)
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? i changed kp and ki parameters to get needed response. it is working well. but, when i change frequency of input reference signal, output signal amplitude drops and again i have to change PID parameters. P.S. when i change frequency of input reference signal, again i have to change PID gain parameters. Can PID controller work with continuously varying reference signal(in terms of amplitude and frequency both) ?

Answers (1)

Sebastian Castro
Sebastian Castro on 25 Jun 2015
Edited: Sebastian Castro on 25 Jun 2015
You need to do the PID control on a frame that rotates with the AC waveform. In other words, you need to find a way to measure your output signal and transform it to components either in phase or out of phase with the target sinusoid. This is commonly known as a d-q (direct-quadrature) transform.
Once you have these values, which should not oscillate at the AC frequency, you can use PID control. Then, you have to convert back to the oscillating frame to generate your inverter pulses.
The following paper might have way too much detail, but it's the best I found:
- Sebastian
  4 Comments
Sebastian Castro
Sebastian Castro on 30 Jun 2015
Edited: Sebastian Castro on 30 Jun 2015
Sorry, didn't see the first comment.
I would start by looking at the power_bridges example ( link here). The voltage regulator performs the transformations I mentioned above and has a PID controller as well. It's three-phase, but you can just replace the PWM generator to deal with a single phase if needed.
Note: Make sure you look under the mask of the Voltage Regulator block. That's where all the good stuff is. To do this, click the little arrow icon on the block or right-click it and select "Mask > Look Under Mask".
- Sebastian

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!