Reporta
Reporta
The Proportional controller, also known as the P controller, generates an output that is directly
proportional to the current error. This error represents the difference between the process variable
and the setpoint. The output is determined by multiplying the error by the proportional gain. The
block diagram of P controller is illustrated in figure 2.
Consider an example where the error magnitude is 40 and the proportional gain is set at 5. In this
case, the output would be calculated as 200. Conversely, when the error is zero, the controller
response would also be zero. Increasing the proportional gain tends to enhance the transient
response speed. However, if the proportional gain surpasses its typical value, the process variable
may begin oscillating at a higher frequency, potentially compromising the stability of the system.
System response is illustrated in figure 3.
Utilizing the integral factor aids in reducing the steady-state error within the system. It
continuously accumulates the error until it diminishes to zero, ensuring even minor errors trigger
a substantial integral response. However, if the error turns negative, the integral output diminishes
accordingly. While using the integral factor alone may slow down response speed, it enhances the
system's steady-state response. Decreasing the integral gain can boost response speed while
potentially sacrificing steady-state performance.
1.3.Derivative
This controller effectively monitors the velocity at which the process variable changes and
generates an output proportional to this rate of change. The derivative controller computes its
output by multiplying the rate of change of the error with the derivative constant. The derivative
controller action is beneficial for improving response speed by promptly initiating output
adjustments, thus providing insight into the anticipated behavior of the error. A larger derivative
term, achievable through an increased derivative constant, enables the derivative controller to
swiftly respond to changes in the process variable. The block diagram of the derivative controller
shown in figure 5.
• Industrial Furnaces: In industrial settings with large furnaces for heating and
melting multiple components, PID controllers are vital. They continuously monitor
temperature values to maintain furnace temperatures at the required constant level.
• Power Point Tracking: PID controllers serve as high-level controllers for power
point tracking, ensuring efficient energy conversion and optimization in systems
like solar power setups.
• Power Conversion Devices: PID controllers are integral to power conversion
devices, regulating voltage, current, and other parameters to optimize performance
and ensure stability.
• Environmental Control: In diverse fields such as pharmaceuticals, research,
chemical processing, and engineering, PID controllers play a crucial role in
maintaining precise levels of humidity and temperature in controlled environments.
This ensures optimal conditions for processes and experiments [1].
2. On-Off Controller
On-off control represents the most basic form of feedback control, where the manipulated variable
is toggled between fully closed and fully open based on the position of the controlled variable in
relation to the setpoint. For instance, in a household heating system, when the temperature falls
below the thermostat setpoint, the heating activates, and it turns off once the temperature exceeds
the setpoint.
However, practical on-off systems incorporate a level of nuance to prevent rapid cycling, which
could damage equipment. If the system were to switch on and off immediately as the measured
temperature crossed the setpoint, it would lead to rapid cycling known as "chattering," detrimental
to the equipment's longevity.
To mitigate this, practical on-off controllers typically feature a dead band around the setpoint.
Within this dead band, the controller remains inactive; action is only taken when the value moves
outside of this range. Consequently, this introduces a continuous oscillation in the controlled
variable's value, with the dead band’s size influencing the oscillation's amplitude and frequency
[2].
3. Design Process
Consider a RLC series circuit illustrated in figure 6. This circuit is time domain.
Circuit is Converted into frequency domain is illustrated in figure 7 for the evaluation of transfer
function.
Let suppose that the circuit current is I(S) Apply the KVL on the circuit
1
𝑉o (𝑆) = 𝐼(𝑆) ( )------(3.1)
𝑆𝐶
1
𝑉𝑖 (𝑆) = 𝐼(𝑆)𝑅 + 𝐼(𝑆)𝑆𝐿 + 𝐼(𝑆) ( )
𝑆𝐶
1
𝑉𝑖 (𝑆) = 𝐼(𝑆) (𝑅 + 𝑆𝐿 + )
𝑆𝐶
Put above eq. in eq (3.1)
𝑉𝑖 (𝑆) 1
𝑉𝐶 (𝑆) = 1 (𝑆𝐶)
(𝑅+𝑆𝐿+ )
𝑆𝐶
𝑉𝐶 (𝑆) 1
=
𝑉𝑖 (𝑆) (𝑆𝑅𝐶 + 𝑆 2 𝐿𝐶 + 1)
1
G(S) =
(𝑆 2 𝐿𝐶 + 𝑆𝑅𝐶 + 1)
4. Simulation
MATLAB Code
L = 0.3;
C = 15e-6;
R = 50;
num_plant = 1;
den_plant = [L*C R*C 1];
plant_tf = tf(num_plant, den_plant);
Kp = 0.1;
Ki = 1;
Kd = 1.5;
P = pid(Kp, 0, 0);
PD = pid(Kp, 0, Kd);
PI = pid(Kp, Ki,0);
PID = pid(Kp, Ki, Kd);
sys_P = feedback(P * plant_tf, 1);
sys_PD = feedback(PD * plant_tf, 1);
sys_PI = feedback(PI * plant_tf, 1);
sys_PID = feedback(PID * plant_tf, 1);
Ts=0.01;
t = 0:Ts:10;
T1=feedback(plant_tf*sys_PID,1);
figure;
step(plant_tf)
title("system response")
u = ones(size(t));
[y1, t] = lsim(sys_P,u, t);
[y2, t] = lsim(sys_PD,u, t);
[y3, t] = lsim(sys_PI,u, t);
[y, t] = lsim(sys_PID,u, t);
figure;
subplot(2,2,1);
plot(t, y1);
title('Proportional Response');
xlabel("Amplitude")
ylabel("Time")
grid on;
subplot(2,2,2);
plot(t, y2);
title('PD Response');
xlabel("Amplitude")
ylabel("Time")
grid on;
subplot(2,2,3);
plot(t, y3);
title('PI Response');
xlabel("Amplitude")
ylabel("Time")
grid on;
subplot(2,2,4);
plot(t, y);
title('PID Response');
xlabel("Amplitude")
ylabel("Time")
grid on;
5. Simulation Results
Reference
[1] https://www.watelectronics.com/pid-controller/
[2] https://instrumentationtools.com/onoff-control-principle/#google_vignette
[3] https://www.electrical4u.com/on-off-control-theory-controller/