How to check the linearity of a system by using a Transfer function which is consisted of PID Parameters and other two constants?
11 views (last 30 days)
Show older comments
I have derived a transfer function which consisted of a PID Controller, Motor driver+actuator. And I need to check the linearity of the system by using that transfer function. But I am confused with the values that I need to substitute for those PID Constants and Constants related to motor driver + actuator.
here, Kp, Ki, Kd are PID parameters and Ka = Constant for motor driver + actuator and Ks = constant for Position sensor.

2 Comments
Aquatris
on 18 Jan 2024
You drived the transfer function so I assume you already did some linearization. What do you mean when you say you are trying to check the linearity of the system?
Accepted Answer
Sam Chak
on 18 Jan 2024
If your models of the actuator and sensor are fairly accurate, then consider using these formulas to calculate the PI gains. Yes, a PI controller is sufficient for the task since the actuator is a 1st-order system. Additionally, if the sensor introduces a non-unity factor in the feedback path, the setpoint needs to be scaled by a factor of
. Here are the formulas:
%% Parameters
Ka = 5; % Gain parameter in Actuator
Ta = 3; % Time constant in Actuator
Ks = 2; % Gain parameter in Sensor
%% Actuator
Ga = tf(Ka, [Ta 1])
%% Sensor
Gs = tf(Ks)
%% PI Controller
Ts = 1; % desired settling time
Ki = -log(0.02)/(Ka*Ks*Ts);
Kp = Ki*Ta;
Gpi = pid(Kp, Ki)
%% Closed-loop transfer function
Gcl = feedback(Gpi*Ga, Gs)
%% Scale the Setpoint by a factor of Ks
G = Ks*Gcl
stepinfo(G),
step(G), grid on
5 Comments
Sam Chak
on 19 Jan 2024
The values for the non-control parameters {Ka, Ks, Ta} should come from you. I randomly selected some integers. The desired settling time Ts, on which the PI control gains depend, is determined by me (the Control Designer). If I aim for a fast response, allowing the solar tracker to follow the input signal within 1 second, then I choose Ts = 1. Regardless of the values of {Ka, Ks, Ta}, the solar tracking response always converges to 1 second, thanks to the formulas used to determine the PI gain.
More Answers (1)
See Also
Categories
Find more on Get Started with Control System Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
