You are on page 1of 5

A Novel Modified PID Controller Applied to Temperature Control with

Self-Tuning Ability
Enxiang Yu1θYundou Hu2
1. &ROOHJHRI(QJLQHHULQJ, Bohai university, Jinzhou, China
E-mail: bhu_yex@163.com
2. Binzhou Vocational College, Binzhou, China
E-mail: yundouhu@163.com

Abstract: Temperature control is the common problems in the process of industrial production. Because the temperature
system is a kind of time-varying nonlinear system, this gives the temperature real-time control has brought the certain
difficulty. In order to solve this problem, this paper designed a kind of self-tuning PID control system. It puts the model
parameter online identification and controller online design organic unifies in together, parameter identification using
fading memory recursive least squares algorithm, and the controller adopts the pole assignment algorithm. This makes
the control system not only can online real-time adjustment of parameters, but also ensure that the actual closed-loop
system converges to zero pole expectations of zero pole, achieve good control effect. At the same time, aiming at the
limitation of the cable temperature measurement technology, this paper designs the wireless acquisition function of
multipoint temperature. Simulation results prove the effectiveness of the proposed method.
Key Words: Temperature Control, Pole Assignment Self-tuning PID, Wireless Transmission

1 INTRODUCTION 2 SYSTEM OVERALL SCHEME DESIGN


Temperature is the most common and one of the most Temperature control system includes a multi-point data
important process parameters in the process of industrial acquisition, end and receiving end, its way through wireless
production. With the continuous development of industry, microprocessor and wireless transmission module and
temperature detection technology is becoming more and keyboard display module. Data at the receiving end
more demanding. Due to some characteristics of the receives the data, through a serial port sent to the PC.
temperature, such as big inertia, serious lag phenomenon, Computer System overall structure is shown in Fig.1
difficult to establish accurate mathematical model, etc,
make the poor performance of the control system. With the
development of microelectronics technology, computer
technology and modern control theory together, make the
temperature control system is developing rapidly. Using the
computer to apply advanced control algorithms to the
temperature control field, greatly improve the performance
of the controller and the control precision. In present, lots
of methods have been employed to discussed this issue,
such as time-varying delays[1-2], networked control[3-4], data Fig.1: system overall structure
driven[5-6] and so on. According to the control of this system target, function,
This paper adopts self-tuning control scheme, the model reliability, performance, precision and speed, choose on
parameters online identification and controller online STC microcontroller[7]; Using DS18B20 temperature
design organic unifies in together, parameter identification sensor, the intelligent temperature sensor series mode
using fading memory recursive least squares algorithm. interference suppression ability, high resolution, good
And the controller adopted the pole assignment algorithm linearity, low cost advantages [8]; Use of nRF905 wireless
makes the control system not only can online real-time transceiver module, the module has high communication
adjustment of parameters, but also ensure the actual rate, communicate with micro controller configuration is
closed-loop system to converge to the desired zero pole so convenient wait for a characteristic, and low power
as to achieve better control effect. consumption[9], is advantageous to the dormancy
mechanism of this system implementation; Using the
infinite power controller circuit control thyristor
conduction Angle to achieve power control of electric
This work is supported by National Nature Science Foundation under furnace [10].
Grant (Project No.61304149, 61573071), the National Natural Science
Foundation under Liaoning (Project No.2015020042) and the Excellent Talents
to Support Projects in Liaoning Province (Project No. LJQ2015003).

978-1-4673-9714-8/16/$31.00 2016
c IEEE 7025
3 ADAPTIVE PID CONTROL ALGORITHM P(k )φ (k + 1)
θˆ(k + 1) = θˆ(k ) +
Adaptive control system is a system of a certain ability to ρ + φ T (k + 1) P(k )φ (k + 1) (2)
adapt, it is able to meet the change of environment ª y (k + 1) − φ T (k + 1)θˆ(k ) º
¬ ¼
conditions, and be measured the information such as
dynamic behavior of the system, change of the controlled 1ª P(k )φ (k + 1)φ T (k + 1) P(k ) º
object and jamming signal etc in a timely manner, and P(k + 1) = « P(k ) − » (3)
ρ¬ ρ + φ T (k + 1) P(k )φ (k + 1) ¼
automatically make control decisions, modify the controller
structure and parameters, corrective control action, adapt where φ T (k ) = [ − y (k − 1), u (k − 1), u (k − 2) ]
the control signal to the dynamic change of object and
θ = [ a1 , b0 , b1 ] .
T
disturbance, make the system achieve the optimal or
sub-optimal control effect [11]. Least squares identification assumes recognition objects
Adaptive control system is also called the parameter under the working conditions in open loop, therefore is
estimation adaptive control, it has two forms: the indirect suitable for the open loop system. But self-tuning control
self-tuning control and self-tuning control directly. system must be under the condition of the closed-loop
The indirect self-tuning control system includes a process control to identify the parameters of the controlled object.
control and process model, calculator controller parameters The temperature control system meets the closed loop
and controller parameters estimator. cognizable conditions [13-14], so the open-loop system
Process model parameters are estimated by measuring the identification method can be applied in this system.
input/output information, estimate the process parameters, In the system control requirements of PID parameter setting
then sent to the controller. According to some kind of is not dependent on the object model, and can be adjusted
control strategy design controller, separate the parameter online and meet the requirements of real-time control.
calculation of the controller with the amount of calculation. Adaptive PID control is an effective way to solve this
The former calculator for controller parameters, it is a problem [15]. Adaptive PID controller parameters adaptive
function of process parameters; the latter is called the PID control of the main realization way has three: pole
adjustable controller, it gives a specific control quantity assignment adaptive PID controller, destructive principle of
size. When process parameters are unknown or changing, adaptive PID controller and the quadratic performance
model parameter identification device can process index based adaptive PID controller. Pole assignment
parameter, and by the controller parameter calculator and design of the main idea is to seek a feedback control law, is
adjustable controller to calculate the control parameters and located in the hope that the location of the closed-loop
control variables, and then applied to the process. Because transfer function of the pole. It has a design method is
the controller is designed according to some strategy of intuitive, good dynamic performance and stable system, etc.
design criterion, so the system can achieve and maintain the In the process of temperature control of electric furnace, a
desired performance index. This part of process modeling controlled object is a big lag. By choosing appropriate
and parameter change, through the model identification to expectations pole control effect, pole assignment method
estimate and detection, and through timely adjusting enables the system to achieve the optimal or sub-optimal
control quantity is overcome, the interference of the system state [16].
is also can pass the resistance control strategies. Pole assignment self-tuning of PID controller parameters
Design of self-tuning control system usually adopts calibration principle is, through the selection of PID
certainty equivalence principle, the object of which is to parameters, making system with the desired closed-loop
think of all the unknown parameters with their characteristic equation. Pole assignment self-tuning PID
corresponding estimate instead of after, the control law in controller is the most widely used type of adaptive control
the form of a just and object parameters known as method, it has the visual design method, the characteristics
stochastic optimal control law of the same form. Therefore, of good dynamic performance and steady system, its main
in the design of controller, given all the parameters of the idea is to seek a feedback control law, is located in the hope
controlled system is known, and according to the given that the location of the closed-loop transfer function of the
performance index integrated control law, and then pole.
estimates of the unknown parameters in the control law For discrete incremental PID controller form
with them instead. Δu (k ) = u (k ) − u (k − 1)
Self-tuning control system model parameter estimation K T
method of least squares identification method on the = K P [ e(k ) − e(k − 1) ] + P S e(k )
TI
application in the field of system identification has been (4)
K T
quite popular, method is also gradually perfect [12]. + P D [ e(k ) − 2e(k − 1) + e(k − 2) ]
If the system for differential equation TS
y (k ) + a1 y (k − 1) = b0 u (k − 1) + b1u (k − 2) (1) = g 0 e(k ) + g1e(k − 1) + g 2 e(k − 2)
Use with forgetting factor recursive least squares algorithm, Type: TS as the sampling frequency, and there are
namely formula

7026 2016 28th Chinese Control and Decision Conference (CCDC)


½
K PTD As long as b0 , g 0 selecting the appropriate, it can achieve
g0 = K P + °
TS the desired closed-loop poles. As mentioned above, the
° design principle of this controller is: with estimates of the
K PTD K PTS °°
g1 = − K P − 2 + ¾ (5) model parameters are directly involved in the correction of
TS TI ° PID parameters and selection of online and used to decide
K T ° system the expectations of the pole. Therefore, the
g2 = P D ° controller of the control structure is simple, and the control
TS °¿
performance and tracking performance are ideal.
Thus it can be seen that the PID parameters K P , TI and TD I. The simulation results
has been replaced by the new controller parameters g 0 , Experiment with electric furnace temperature control
g1 and g 2 . For TI , K P and TD adjust, essentially g 0 g1 , system as an example, input and output of in temperature
and real temperature respectively [17]. Therefore, the control
and g 2 adjustment.
system is based on the actual temperature and set
Set the object for linear time-varying parameter model temperature difference (i.e., temperature) to control the
A ( z −1 ) y (k ) = z − d B ( z −1 ) u (k ) (6) object implementation regulation. Due to the temperature
control process of electric furnace with hysteresis
For the incremental digital PID controller structure form, characteristics, can be set in a controlled object
namely characteristics of one-order inertial link with pure
g0 G ′ ( z −1 ) hysteresis, a transfer function of controlled objects are as
GT ( z −1 ) = (7) follows:
1 − z −1
Ke −τ s 2.5e −10 s
In order to guarantee the closed-loop stability, join a filter GP ( s ) = = (15)
for Tp s + 1 50 s + 1
F ′ ( z −1 ) = 1 + f1 z −1 (8) Among them the gain K = 2.5 ; time constant Tp = 50 ; time
Because the object is open-loop stable minimum phase delay τ = 10 .With zero order generalized pulse transfer
system, therefore, can make zero on the forward channel function for a retainer:
transfer function and pole cancellation in processing, even § 1 − e −τ s Ke −τ s ·
GP ( z −1 ) = z ¨ ×
F ′( z ) = B′ ( z )
−1 −1 ¸
(9) © s TP s + 1 ¹
T
Type, for many industrial processes, model order option § − · (16)
K ¨ 1 − e TP ¸ z − ( N +1)
for na = 2 , nb = 1 . In this way, you can easily use PID ¨ ¸ b0 z − d
control parameters, and to configure the poles, even = © ¹ =
T
− z −1 1 + a1 z −1
G ′ ( z −1 ) = A ( z −1 ) (10) 1 − e TP

Thus there are


−T
Type, b0 = K 1 − e S( TP
),a 1 = e −TS TP
, N = τ / TS ; d = N + 1 .
g1 g2 b1 According to the principle of selecting sampling TS period
= a1 = a2 f1 = (11)
g0 g0 b0 , the big lag objects, usually choose T = τ , N = 1 ,
[17]

d = 2 , will be in control parameters, the measured:


Then, the closed-loop transfer function can be simplified to
0.4532 z −2
b0 g 0 z − d / (1 − z −1 ) b0 g 0 z − d GP ( z −1 ) = (17)
G ( z −1 ) = = (12) 1 − 0.8187 z −1
1 + b0 g 0 z −d
/ (1 − z −1
) 1 − z −1 + b0 g 0 z − d
The available b0 = 0.4532, a1 = −0.8187 .
While PID controller becomes CARMA model of controlled object is:
g 0 (1 + a1 z −1 + a2 z −2 )
GT′ ( z −1 ) = (1 − 0.8187 z ) y(k ) = 0.4532 z
−1 −2
u ( k ) + C ( z −1 ) e ( k ) (18)
(13)
(1 − z ) §¨©1 + b1 b0 z −1 ·¸¹
−1
From the viewpoint of pole assignment, usually in a typical
second order system closed-loop transfer function of the
Here, b0 is constant (0 < b0 < 1) , not to participate in the
standard form as the target:
ωn 2
identification, it is â1 , â2 , b̂1 , be estimated parameters in the Gn ( s) = (19)
model using the recursive least square method (with
s + 2ξωn s + ωn 2
2

forgetting factor) estimates that get the control law of Characteristic polynomial corresponding discrete
self-tuning PID controller characteristic equation as follows:
u ( k ) = u ( k − 1) + g 0 [ e( k ) + aˆ1e( k − 1) + aˆ 2 e( k − 2) ]
( )
T ( z −1 ) = 1 + 2e −ξωnT cos ωnT 1 − ξ 2 z −1 + e −2ξωnT z −2 (20)
bˆ (14)
+ 1 [u ( k − 2) − u ( k − 1) ] Type, ωn as undamped natural oscillation angular
b0
frequency; ξ as the damping ratio. When the second order

2016 28th Chinese Control and Decision Conference (CCDC) 7027


system optimum damping ratio ξ = 0.707 , amount of g1 = −0.4599 g 2 = 0.1785
;
overshoot in under the action of unit step σ = 4.3% , phase There are:
Angle stability margin γ (ωc ) = 65.5° , for the second order
G ( z −1 )
optimal dynamic response model. u ( z −1 ) = e ( z −1 )
Sampling period and relationship[18]: F ( z −1 )
(29)
2π 0.3529 − 0.4599 g1 z −1 + 0.1785 z −2
TS = 1− ξ 2 ( NT = 5 − 10) (21) = e(z −1
)
ωn N T (1 − z )(1 + 0.5301z )
−1 −1

Once N T = 5 , then ξ = 0.707 , TS = 10 s , ωn = 0.015s −1 . Computer through the analysis of the controlled
The expectation characteristic polynomial for: quantity u (t ) and the output quantity y(t ) , the online
T ( z −1 ) = 1 − 1.789 z −1 + 0.8089 z −2 (22) identification for controlled object [12], it is concluded that
the parameter values, into these parameters, the
Should avoid mutate and cause oscillation in the system corresponding PID controller parameters can be obtained
output end, so the choice K P = 0.1744 ; TI = 24.41 ; TD = 10.24 (30)
C ( z −1 ) = 1 + C1 z −1 + C2 z −2 = 1 + 0.5 z −1 + 0.1z −2 (23) Through MATLAB Simulink simulation tool for the
In a digital system, usually adopts PID controller with control system simulation, set the temperature setting of the
digital filter algorithm, such as furnace for step input50 ° C, the system response curve is
shown in Fig.2 (a). When the control object is affected by
g 0 + g1 z −1 + g 2 z −2
u ( z −1 ) = e ( z −1 ) interference or the external environment, the system
(1 − z −1 )(1 + f1 z −1 ) (24)
response curve is shown in Fig.2 (b).
Type,
§ T ·
g0 = K P ¨1 + D ¸
© TS ¹;
§ T T ·
g1 = − K P ¨ 1 + 2 D − S ¸
© T S TI ¹
, ;
TD
g2 = K P
TS
Solutions of equations K P , TI , TD , and the only solution,
namely
½
°
K P = ( g0 − g2 ) °
g0 − g2 °°
TI = T¾ (25)
g 0 + g1 + g 2 °
g2 °
TD = T °
g0 − g2 °¿
Convert pole assignment PID self-tuning controller into
incremental PID controller, can choose the following form:
F ( z −1 ) = (1 − z −1 )(1 + f1 z −1 ) (26)

G ( z −1 ) = g 0 + g1 z −1 + g 2 z −2 (27) Figure 2: system simulation response curve


Can get the following equation was established Model in the system because of the influence of the outside
world changes, pole assignment self-tuning PID controller
(1 − 0.8187 z )(1 − z )(1 + f z )
−1 −1
1
−1
for the system to identify the object online, calculate the
+0.4532 z ( g + g z + g z )
−2
0 1
−1
2
−2
(28) suitable parameters:
g 0 = 0.9977 g1 = −1.1701 g 2 = 0.2875
= (1 − 1.7886 z + 0.8089 z )(1 + 0.5 z
−1 −2 −1
+ 0.1z −2 ) ; ;
Can get a new PID controller parameters for:
To the coefficient is equal on both sides of the equation,
K P = 0.7101 TI = 61.7 TD = 4.049
solving algebraic equation ; ;
f1 = 0.5301 g 0 = 0.3529 Using PID parameters on the system simulation, it is
; ;
concluded that the system response curve is shown in Fig.3.

7028 2016 28th Chinese Control and Decision Conference (CCDC)


[1] X. Li and H. Gao. A new model transformation of
discrete-time systems with time-varying delay and its
application to stability analysis. IEEE Trans. Autom. Control,
56(9):2172--2178, 2011
[2] X Xie, S Yin, H Gao, O Kaynak. Asymptotic stability and
stabilisation of uncertain delta operator systems with
time-varying delays. IET Control Theory & Applications,
7(8):1071-1078,2013
[3] H. Gao, T. Chen, J. Lam. A new delay system approach to
network based control. Automatica. 2008, 44: 39-52
[4] S. Ding, P. Zhang, S. Yin, E. Ding , An integrated design
framework of fault-tolerant wireless networked control
systems for industrial automatic control applications, IEEE
Transactions on Industrial Informatics, 9(1): 462-471, 2013
Fig.3: furnace system response curve [5] S. Yin, G. Wang, H. Karimi, Data-driven design of robust
fault detection system for wind
Prove the validity of the pole assignment method to design turbines, Mechatronics, DOI:10.1016/j.mechatronics.
PID controller. 2013.11.009, 2013.
System software mainly includes the realization of the [6] S. Yin, S. Ding, A. Haghani, H. Hao, Data-driven monitoring
for stochastic systems and its application on batch
system function and the realization of the control algorithm. process, International Journal of Systems Science,
The realization of the function of system is mainly 44(7):1366 -1376, 2013.
composed of three parts: input signal is read, display and [7] Y. Q. Yu , M. H. Wang, Overwhelmed with. Single chip
output control, information transmission. Read the input microcomputer application in the control system [M].
Electronic industry press. 2005: (5-8).
signal including switch input signal and the temperature
[8] J. Q. Liu, Electronic components identification and detection
sensor and the analog input signal is read; output control technology [M]. National defense industry press,
signals including switch output control; information 2007:133-137).
display and transfer including equipment operation [9] Z. W. Huang, Single chip wireless transceiver integrated
instructions and at room temperature, the temperature circuit principle and application [M]. People's posts and
measured values or value the digital display and equipment telecommunications publishing house, 2004 (1-3).
running status Settings, etc., and the transmission of the [10] G. X. Liu, Y. Q. Zhao, Promise power controller based on 89
s52 microcontroller design [J]. Microcomputer information,
information. The realization of the control algorithm is 2007, 23 (1).
mainly based on the system input and output quantity and [11] H. R. Zhang, High south, G. Z. Wang Controller parameters
the acquisition of certain system parameters, and the adaptive adjusting [J]. Journal of radio communication
corresponding control algorithm through the data analysis technology, 2003, 29 (1).
and calculation, by adjusting the control volume, to realize [12] J. Deng, S. Cong, Several self-tuning control in control
engineering application and performance of the comparative
the real-time control of the controlled object. study [J]. Journal of system simulation technology and its
applications, 2003, 8 (2-3)
4 CONCLUSION [13] X. F. Wang, L. G. Zhang, Modeling and identification
system [M]. Electronic industry press, 2004: (54-57).
This paper discusses the design method of temperature [14] C. Z. Yang, C. Z. Sun, H. Di, C. S. Zhang. System
control system this paper proposes a new adaptive PID identification and adaptive control [M]. Chongqing
control algorithm, pole assignment self-tuning PID control university press, 2003:120-123).
algorithm. Proved by theoretical calculation and simulation, [15] T. Y. Hua, Y. Y. Xin, G. L. Sheng, New PID control and its
the algorithm has good self to controlled object recognition. application [M]. Mechanical industry publishing house, 1998
(27-32).
When there is interference of the controlled object, the [16] X. Y. Xu, Adaptive control theory and application [M].
system model parameters change, the algorithm is based on Electronic industry press, 2007: (45-51).
the input and output analysis, it is concluded that the new [17] J. M. Wang, J. Mao, Resistance furnace temperature control
system model parameters, and modify the PID control system design [J]. Journal of forging technology, 2009, 30
parameters, enables the system to achieve the best running (1).
state [18] O. Yang, J. Xie, J. Zhi, Zero pole assignment self-tuning
temperature control of the modeling and simulation [J].
Journal of chongqing university, 2006, 29 (6)
REFERENCES

2016 28th Chinese Control and Decision Conference (CCDC) 7029

You might also like