for simulation of pid controller what should I use N filter coefficient value 1 or 100?
조회 수: 15 (최근 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!