Professional Documents
Culture Documents
Fuzzy adaptive control for the actuators position control and modeling
of an expert system
Servet Soyguder *, Hasan Alli
Firat University, Department of Mechanical Engineering, 23279 Elazig, Turkey
a r t i c l e
i n f o
Keywords:
Fuzzy adaptive control (FAC)
Modeling
Actuator position control
Air ow control
PID control
Humidity control
Software architecture
An expert system
a b s t r a c t
In this paper, a heating, ventilating and air-conditioning (HVAC) system was designed and two different
damper gap rates (actuators position) of the HVAC system were controlled by a conventional PID (proportionalintegralderivative) controller. One of the dampers was controlled by using the required temperature for the interested indoor volume while the other damper was controlled by using the required
humidity for the same indoor volume. The realized system has a zone with variable ow-rate by considering the ambient temperature and humidity. The required air ow was supplied by controlled of the
dampers placed on the entrance ducts of indoor. Programmable Logic Controller (PLC) used PID control
algorithm was utilized to control the system. This system has been controlled by a PLC based closed-loop
controller. In this work, the realized system has been controlled by PLC used PID control algorithm. The
optimal values of PID parameters were obtained by using Fuzzy sets. Fuzzy adaptive control has been performed to maximize the performance of the system. Efciency of fuzzy adaptive control (FAC) developed
method was successfully obtained.
2009 Published by Elsevier Ltd.
1. Introduction
HVAC are widely used in living and industrial buildings. Most
currently used HVAC systems control room temperature solely,
leaving relative humidity to nd its own level. Accurate temperature and relative humidity control, however, is required in some
industrial and scientic processes (ASHRAE, 1999; Xi, Poo, &
Chou, 2007). The comfort of the people in their living indoor
environment is partially dependent on the quality, humidity
and temperature of air inside the building. Three interrelated
systems are used to provide the desired air temperature, humidity and quality. These systems are ventilating, heating sand air
conditioning systems. The purpose of the HVAC system of a
building is to provide complete thermal comfort for its occupants. Hence, it is necessary to understand the thermal and
humidity aspects of the human body in order to design an effective HVAC system.
In recent years the developments in intelligent methods make
them possible to use in complex systems modeling. One of these
intelligent methods is articial fuzzy method. There are many
advantages of fuzziness, one of which is the ability to handle blur
data. Fuzzy methods provide linguistic labels for complex system
modeling (Soyguder & Alli, 2009).
* Corresponding author. Tel.: +90 424 2370000x5330; fax: +90 424 2415526.
E-mail address: ssoyguder@yahoo.com (S. Soyguder).
0957-4174/$ - see front matter 2009 Published by Elsevier Ltd.
doi:10.1016/j.eswa.2009.06.071
In this study based on considering the above literatures, the required damper gap rates for obtaining the desired humidity and
temperatures of indoor for each time step were found by using
PID control algorithm. One of the dampers was controlled by using
the required value for indoor temperature while the other damper
was controlled by using the required value for indoor humidity.
The damper gap rate is also proportional with the air ow rate. This
system made with advanced control is designed to completely replace the existing SCADA with many new functions. Besides, this
system has been controlled by a PLC based closed-loop controller.
The realized system has been controlled by PLC used PID control
algorithm. PID parameters kp ki kd were obtained by using
fuzzy set theory. Fuzzy based optimization has been performed
to maximize the performance of the system. Efciency of fuzzy
adaptive control (FAC) developed method was successfully
obtained.
The outline of the paper is as follows: in Section 2, the state of
the art of the work is presented. In Section 3, the heating, ventilating and air-conditioning system is presented. The design of the
considered real-time HVAC system is given Section 4. Section 5
describes the software architecture of an expert HVAC system.
Then, Section 6 includes to design the optimization with fuzzy
adaptive control of PID Parameters has been performed to maximize the performance of the considered system. Experimental results are presented in Section 7. In the experiment, the damper
gap rates being proportional with air ow rate have been controlled using PID controllers. Finally, conclusion remarks are given
in Section 8.
2073
Nomenclature
area m2
the mass ow-rate in fan channell (kg/h)
the mass ow-rate entered to indoor (kg/h)
the mass ow-rate exist from safety valve (kg/h)
the mass ow-rate exist from exhaust (kg/h)
sensible Cooling
convection and transmission heat (J)
work (J)
_ inda the mass ow-rate entered to indoor (kg/h)
m
specic enthalpy (J/kg)
specic enthalpy (J/kg)
the internal energy (J)
constant Heat (kJ/kg K)
constant pressure (kJ/kg K)
inner temperature (C)
instant temperature (C)
vicious circle temperature (C)
cool air temperature (C)
A
_ ca
m
_ ind;in
m
_ sva;out
m
_ exha;out
m
x
Q
W
_ ind;in
m
hin
hout
U
Cv
Cp
T
Tn
T n1
T ca;in
T out
hout
hin
k
L
Mn
Kp
Ki
Kd
e
e_
cf
Dq
Min
en
en1
ex
2074
X
X
_ ca
m
_ inda;in
m
_ ca;in :xin m
_ w;in
m
_ sva;out ;
m
X
_ ca; out :xout m
_ w;out :
m
1
2
_ sva;out in Eq. (1) belongs to the safety valve disThe mass ow-rate m
charging the excessive air coming from the indoor.
There is no change in the ow-rates of the indoor since the input ow-rate equals to the output ow-rate. Thats why we can
write the continuity equation as:
_ exha;out m
_ inda :
_ inda;in m
m
Q W
_ inda;in :hin
m
_ exha;out :hout
m
du
;
dt
du minda C v T n1 T n
;
dt
dt
Cp Tca;in T n :
hin hout
minda C v T n1 T n
;
dt
dT
_ inda Cp T ca;in T n minda C v
;
Q m
dt
_ inda Cp T ca;in T n
Q m
T out T n
R
or
T out T n
:
L
kA
hin1A
hout :A
10
_ inda C p T ca;in T n
dT Q m
:
dt
minda C v
11
Actuator Damper-2
Humid-Air flow sensor
Air-duct
Humidifier
Cold-air
Actuator Damper-1
Cold-Air flow sensor
Evaporator
Humidity Sensor
Thermocouple
sensor
Ambient
Fan
Cooling Unit
pump
Cold-air
Cold-humid air
Strafor
ndoor(zone)
Resistance
Exhaust
Fig. 1. The schematic view of the HVAC system having only one zone (indoor).
Manual damper
2075
Mn kp en ki
n
X
ex Min kd en en1 :
13
The owchart of the program summary is given by Fig. 3. The initialization program is used to prepare PID controller, USS protocol,
START
Initialization
SCADA
PLC
PID_Controller
USS-Protocol
Damper
Actuators
Fig. 2. (a) and (b) A prototype of the real-time HVAC system experimental setup.
position and the system has the maximum air mass ow-rate.
Maximum air mass ow rate is 50 kg/h for the 0 position of the
damper (opening angle h). Air mass ow rate is to change as direct proportional with opening angles h between the 0 position
of the damper and the 90 position of the damper. The 90 position
of the damper is the closed position of the damper and the cooled
air can not pass through the indoor. Air mass ow rate is controlled
by a stepper-driven throttle damper-valve. The relationship between the damper-valve opening h and the air mass ow rate
_ inda is expressed as
through the damper-valve m
_ inda cf
m
p
qDp Ah;
Set
Zone Humidity
Zone Temperature.
PID Parameters.
err
12
Indoor Zone
PID
Control of
actuators position
with analog signal
Control of
actuators position
with analog signal
Temperature of
Indoor Zone
Humidity of
Indoor Zone
Trend view of
Zone
Temperature
& Position
Trend view of
Zone
Humidity
& Position
5. Software architecture
A standard PLC CPU (S7-200) and extended analog input/output
(I/O) modules have used to control damper-actuators. The I/O variables are controlled and monitored by a SCADA screen which is
STOP
Fig. 3. The owchart of the PLC program.
2076
Start
Tref
and
RHref
Calculate e and de
Tref
e1=Tref-T
de1=de1/dt
e2=RHref-RH
de2=de2/dt
Fuzzification
e and de
Fuzzy
rule
base
Inference
Mechanism
Defuzzification with
center of gravity
Calculate U
PID=e(Kp+Kd.s+Ki/s)
Damper
Actuators Position
Fuzzy
Adaptive
Control
Algorithm
e
d/dt
Kp
Kd
Ki
U1
PID Controller
Damper1
Actoator Position
Humid-air Flow
T oC
Indoor
Zone
U2
PID Controller
Kp
d/dt
RHref
-
Kd
All models of the variable ow-rate HVAC system were generated by using MATLAB/SIMULINK and PID parameters were obtained by using fuzzy sets. Fig. 4 shows the block diagram of
the considered expert HVAC system controlled by the fuzzy
adaptive controller. Fig. 5 shows the ow-chart of the calculated
kp kd ki with fuzzy adaptive controller algorithm. Previous
our study shows the optimal kp ki kd values of the actuator
(damper) used for controlling humidity and temperature (Soyguder et al., 2009). The obtained parameters have been used in real
time HVAC system. Fuzzy adaptive controller has been performed to maximize the performance of the system. The selftuning PID-type fuzzy controller is an auto-adaptive controller
that is designed by using an incremental fuzzy logic controller
to tune the parameters of PID controller on line by fuzzy control
rules.
Fuzzy adaptive controller algorithm is to nd out the fuzzy rela_ It examines incestion between three parameters of PID and e; e.
santly e and e_ in work then tunes three parameters by fuzzy
control rules on line so that controlled objects achieve better dynamic steady performance. We combined the classical PID and
FLC theories in previous study (Soyguder et al., 2009). The optimal
kp ; ki ; kd values of PID parameters have adaptively been determined
by using the dynamic FLC for each time-step. In this case, FLC has
_ and three outputs kp ; ki ; kd .
two inputs (e, e
The Gauss membership functions are used for all variables
_
shown in Figs. 6 and 7. The physical domain of the inputs (e, e)
is {1, 0.8, 0.6, 0.4, 0.2, 0, 0.2, 0.4, 0.6, 0.8, 1} and that of the
outputs kp ; ki ; kd is {0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1}, selected again based on trial and error. The fuzzy variables are dened for the rule base as,
Damper2
Actuator Position
Cold-air Flow
Ki
Fuzzy
Adaptive
Control
Algorithm
Fig. 4. The block diagram of the considered system and the fuzzy adaptive control.
RH(%)
2077
_
Fig. 6. The membership functions for the inputs e and e.
Table 1
The rule base for kp ; kd and ki .
Indoor (zone)
33
32
30
Temperature ( C)
31
29
28
27
26
25
24
23
1
10
Time (min.)
Fig. 8. The set temperature values (C).
11
12
13
14
2078
100
90
80
70
60
50
40
30
20
10
0
-10
0
10
11
12
13
14
15
Time (min.)
Fig. 9. Actual (actuator) damper gap-rate for the controlled temperature.
Indoor (zone)
45
40
35
30
25
20
0
10
11
12
13
14
Time (min.)
Fig. 10. The set humidity values (%).
100
90
80
70
60
50
40
30
20
10
0
-10
0
10
12
Time (min.)
Fig. 11. Actual (actuator) damper-gap rate for the controlled humidity.
14
8 Nm
1:5 m2
30 s
24 VDC
2.5 W
0.5 W
90 (93 mech.)
Devices
Quantity
1
1
1
2
1
1
1
References
Ahmed, S. S., Majid, M. S., Novia, H., & Rahman, H. A. (2007). Fuzzy logic based
energy saving technique for a central air conditioning system. Energy, 32,
12221234.
Alcala, R., Alcala-Fdez, J., Gacto, M. J., & Herrera, F. (2008). Improving fuzzy logic
controllers obtained by experts: A case study in HVAC systems. Applied
Intelligence. doi:10.1007/s10489-007-0107-6.
Alcala, R., Casillas, J., Cordon, O., Gonzalez, A., & Herrera, F. (2005). A genetic rule
weighting andselection process for fuzzy control of heating, ventilating andair
conditioning systems. Engineering Applications of Articial Intelligence, 18,
279296.
ASHRAE (1999). ASHRAE handbook: Heating, ventilating, and airconditioning
applications. Atlanta: American Society of Heating, Refrigerating and Air
Conditioning Engineers.
ASHRAE (2004). Thermal environmental conditions for human occupancy. Atlanta,
USA: American Society of Heating, Refrigerating and Air-Conditioning Engineers
ANSI/ASHRAE Standard 55.
2079
Bi, Q., Cai, W. J., Wang, Q. G., Hang, C. C., Lee, E. L., Sun, Y., et al. (2000). Advanced
controller auto-tuning and its application in HVAC systems. Control Engineering
Practice, 8, 633644.
Calvino, F., Gennusa, M. L., Rizzo, G., & Scaccianoce, G. (2004). The control of indoor
thermal comfort conditions: Introducing a fuzzy adaptive controller. Energy and
Buildings, 36, 97102.
Chiou, K. C., & Huang, S. J. (2005). An adaptive fuzzy controller for robot
manipulators. Mechatronics, 15, 151177.
Chua, K. J., Ho, J. C., & Chou, S. K. (2007). A comparative study of different control
strategies for indoor air humidity. Energy and Buildings, 39, 537545.
Farzaneh, Y., & Tootoonchi, A. A. (2008). Controlling automobile thermal comfort
using optimized fuzzy controller. Applied Thermal Engineering, 1. doi:10.1016/
j.applthermaleng.2007.12.025.
Gundogdu, A., & Erenturk, K. (2005). Fuzzy control of a DC motor driven four-bar
mechanism. Mechatronics, 15, 423438.
_ & Yesil, E. (2003). Self-tuning of PID-type fuzzy logic
Gzelkaya, M., Eksin, I.,
controller coefcients via relative rate observer. Engineering Applications of
Articial Intelligence, 16, 227236.
He, M., Cai, W., & Li, S. Y. (2005). Multiple fuzzy model-based temperature
predictive control for HVAC systems. Information Sciences, 169, 155174.
Huang, S., & Nelson, R. M. (1994). Rule development and adjustment strategies of a
fuzzy logic controller for an HVAC system: Part one Analysis. ASHRAE
Transaction, 100(1), 841850.
Hung, L. C., Lin, H. P., & Chung, H. Y. (2007). Design of self-tuning fuzzy sliding
mode control for TORA system. Expert Systems with Applications, 32, 201
212.
Kaynakli, O., Pulat, E., & Kilic, M. (2005). Thermal comfort during heating and
cooling periods in an automobile. Heat and Mass Transfer, 41(5).
Krakow, K. I., Lin, S., & Zeng, Z. S. (1995). Temperature and humidity control during
cooling and dehumidifying by compressor and evaporator fan speed variation.
ASHRAE Transactions, 101(1), 292304.
Kwan-Ahn, K., & Bao-Kha, N. (2008). Modeling and control of shape memory alloy
actuators using Preisach model, genetic algorithm and fuzzy logic. Mechatronics,
18, 141152.
Lahrech, R., Gruber, P., Riederer, P., Tessier, P., & Visier, J. C. (2002). Development of a
testing method for control HVAC systems by emulation. Energy and Buildings,
34, 909916.
Li, Z., & Deng, S. (2007). A DDC-based capacity controller of a direct expansion (DX)
air conditioning (A/C) unit for simultaneous indoor air temperature and
humidity control Part I: Control algorithms and preliminary controllability
tests. International Journal of Refrigeration, 30, 113123.
Lin, F. C., & Yang, S. M. (2003). Adaptive fuzzy logic-based velocity observer for servo
motor drives. Mechatronics, 13, 229241.
Lo, C. H., Chan, P. T., Wong, Y. K., Rad, A. B., & Cheung, K. L. (2007). Fuzzy-genetic
algorithm for automatic fault detection in HVAC systems. Applied Soft
Computing, 7, 554560.
Lu, L., Cai, W., Xie, L., Li, S., & Soh, Y. C. (2005). HVAC system optimization in building
section. Energy and Buildings, 37, 1122.
Macvicar-Whelan, P. J. (1976). Fuzzysets for manmachine interaction. International
Journal of ManMachine Studies, 8, 687697.
Mamdani, E. H. (1974). Application of fuzzy logic algorithms for control of simple
dynamic plant. Proceedings of the Institute of Electrical Engineering, 121,
15851588.
Marano, G. C., & Quaranta, G. (2008). Fuzzy-based robust structural optimization.
International Journal of Solids and Structures, 45, 35443557.
McQuiston, F., & Parker, J. (1997). Heating, ventilating, and air conditioning analysis
and design. New York: Wiley.
Orosa, J. A., & Baalina, A. (in press). Passive climate control in Spanish ofce
buildings for long periods of time. Building and Environment.
Pinnella, M. J., Wechselberger, E., Hittle, D. C., & Pederson, C. O. (1986). Self-tuning
digital integral control. ASHRAE Transactions, 202210.
Qiao, W. Z., & Mizumoto, M. (1996). PID type fuzzy parameters adaptive method.
Fuzzy Sets and Systems, 78, 2335.
Riverol, C., & Pilipovik, M. V. (2005). Tuning a spacetime scalable PI controller
using thermal parameters. Heat and Mass Transfer, 41(5), 12.
Seem, J. E. (1998). A new pattern recognition adaptive controller with application to
HVAC systems. Automatica, 34(8), 969982.
Shin, Y., Chang, Y. S., & Kim, Y. (2002). Controller design for a real-time air handling
unit. Control Engineering Practice, 10, 511518.
Siemens SIMATIC S7-200 programmable controller system manual (2005).
Siemens SIMATIC WinCC exible manual (2004).
Sierra, E., Hossian, A., Rodriguez, D., Garcia-Martinez, M., Britos, P., & GarciaMartinez, R. (2008). Optimizing buildings environments performance using
intelligent systems. New frontiers in applied articial intelligence. Lecture Notes
in Articial Intelligence, 5027(2008), 486491. doi:10.1007/978-3-540-69052-8.
Soyguder, S., & Alli, H. (2009). Predicting of fan speed for energy saving in HVAC
system based on adaptive network based fuzzy inference system. Expert System
with Applications, 36(4), 86318638.
Soyguder, S., Karakose, M., & Alli, H. (2009). Design and simulation of self-tuning
PID-type fuzzy adaptive control for an expert HVAC system. Expert System with
Applications, 36(3P1), 45664573.
Su, Y. X., Yang, S. X., Sun, D., & Duan, B. Y. (2004). A simple hybrid fuzzy PD
controller. Mechatronics, 14, 877890.
Tang, K. L., & Mulholland, R. J. (1987). Comparing fuzzylogic with classical
controller designs. IEEE Transactions on Systems Man and Cybernetics,
17(6), 10851087.
2080
Xi, X. C., Poo, A. N., & Chou, S. K. (2007). Support vector regression model
predictive control on a HVAC plant. Control Engineering Practical, 15,
897908.
Xu, X., Deng, S., & Chan, M. (2008). A new control algorithm for direct expansion air
conditioning systems for improved indoor humidity control and energy
efciency. Energy Conversion and Management, 49, 578586.