for simulation of pid controller what should I use N filter coefficient value 1 or 100?
12 次查看(过去 30 天)
显示 更早的评论
for simulation of pid controller what should I use N filter coefficient value 1 or 100?
Im tuning PID Controller for buck converter voltage regulation, can I use N value 1 or 100? or 1000? 5000?
0 个评论
回答(1 个)
Sam Chak
2022-9-5
I don't know your Buck Converter model. However, in this example, the filter divisor N is 751. Generally, the value for N is high. Since you asked about the value for N, then I guess you designed yours using the ideal form:
If your theoretical ideal gives a good performance on paper, then you should make this term in the denominator of the derivative filter relatively small, because
% Buck Converter Transfer Function
V = 100;
C = 1e-6;
L = 2.2e-3;
R = 500;
Gp = tf(V/(C*L), [1 1/(R*C) 1/(C*L)])
margin(Gp) % Stable but Phase margin is very small, oscillatory response is expected
step(Gp) % as confirmed by the step response
% standard-form PID with 1st-order derivative filter
Kp = 0.03; % proportional gain
Ti = 3.6e-6; % integral time
Td = 0.0006; % derivative time
N = 751; % filter divisor
Gc = pidstd(Kp, Ti, Td, N)
margin(Gc*Gp) % Phase margin is improved to approximately 60 deg
% closed-loop system and check if no RHP poles
Gcl = zpk(feedback(Gc*Gp, 1))
tau = 4e-5;
[u, t] = gensig('square', tau, 2*tau, tau/2^10);
lsim(Gcl, u, t), ylim([-1 2]), grid on
S = stepinfo(Gcl)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!