Design of Fuzzy Logic Controller For Temperature C
Design of Fuzzy Logic Controller For Temperature C
E-mail: [email protected]
Abstract. A Fuzzy Logic Controller (FLC) is developed to control the temperature of small-
scale food storage. The FLC has two components such as the algorithm part and the hardware
part. For the algorithm part, The FLC takes two input parameter such as the temperature and
the humidity of the storage and takes one output parameter such as the speed of the fan. The
membership function is designed as following hot, fair, cold, and too cold as for the
membership functions of the temperature parameter. For the humidity membership functions
are dry, dry enough, normal, less moist, and moist. As for the fan speed, the membership
functions are fast, less fast, fair, slow, and too slow. On the other hand, for the hardware, the
DHT11 senses the temperature and the humidity. For the cooling process, thermoelectric is
used to decrease the temperature. The results show that the FLC can be used to control the
temperature of the storage to achieve as the minimum temperature as 12.5oC.
1. Introduction
Fuzzy Logic Controller (FLC) is one of the method to control the engineering process or system that
has been studied by researcher [1-3] and is applied in many engineering field such as fan rotation
speed controller [4], controller of HVAC of electric vehicle [5], and robust controller in wireless
sensor network [6]. Also, the FLC can be used to control temperature [7, 8]. Moreover, temperature
regulation or control is very important to gain some advantages such as maintaining room conditions
for comfort [5] and maintaining the temperature of cold thermal storage [9, 10]. To get good
conditions and high performances of temperature control need some cost and some complex
constructions, especially, for large-scale cold thermal energy applications [8, 9, and 11].
However, for a small-scale cold thermal storage, the cost and the complex constructions need to be
reduced. For example, the cold thermal energy source of the large-scale storage that uses compressor
and coolant liquid should be replaced by low-cost technology such as thermoelectric cooling [12].
Thermoelectric cooling has some advantages such as no CFC and a small-shape material size. This
technology can replace from the vapor compression refrigerator to the thermoelectric cooling
refrigerator.
Therefore, by combining the abilities of FLC and the thermoelectric cooling, this paper aims to
design the FLC for temperature control of small-scale cold thermal storage with the thermoelectric
cooling as the actuator of the cooling source.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
2. Research Method
This section describes the algorithm of FLC, the hardware of FLC and as well as the design of the
small-scale cold thermal food storage.
2.1.1. Fuzzification. It is a process to change the input from the form of crisp becomes a fuzzy form
is usually presented in the form of a set of fuzzy-set with a function of their membership function.
Fuzzification input has two variables which are the temperature and humidity of the storage and
fuzzification output has one variable which is the speed of the fan. For temperature, it is set about four
kinds of membership function, i.e., hot, fair, cold, and very cold. For humidity, the membership
functions are dry, dry enough, normal, less moist, and moist. Then, for the speed of the fan, the
membership function is fast, less fast, fair, slow, and too slow. The membership function of
temperature, humidity, and fan speed can be seen in Figure 2, Figure 3, and Figure 4 respectively.
2
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
2.1.2. Inference system. It is a reference to describe the relationship between input and output
variables which are processed and generated fuzzy shape. To explain the relationship between the
input and output are usually using "IF-THEN." To generate this IF-THEN rules is by combining the
variables of input and output. This can be summarized in Table 1. It results in about 20 rules. One of
the rules, for example, is if the temperature is hot and the humidity is dry then the speed of the fan is
fast. In an implementation, the FLC uses the Mamdani method with the mean of the maximum for
deciding the output of the rules.
2.1.3. Defuzzification. It is the process of modifying the variable shape of fuzzy to be crisp data
which can be sent to another process such as computing in the microcontroller.
3
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
fuzzy logic in the form of a PWM signal to be sent to the fan through a motor driver. So that the fan
speed is regulated based on PWM value that is obtained by FLC. The speed of fan causes air flow hit
thermoelectric cooling device such that the air to be cold. Therefore, the room will be cold.
4
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
In general result, from Table 2, the time that takes the storage to achieve the storage temperature to
the minimum temperature of 12.4o C is about 3 hours from the initial condition of 28.4o C. Even
though the temperature of the lowest one is not equal but close to the target minimum temperature of
thermoelectric cooling device that is 10o C. This shows thermoelectric cooling device has
disadvantage of the amount of heat flux that can be dissipated is limited [12]. However, the
5
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
thermoelectric cooling device has some advantages such as non-CFC, no need compression system
and small-scale storage.
4. Conclusion
The FLC for temperature control of small-scale cold thermal storage has been proposed. The FLC was
first is implemented in Matlab simulation, and then it was implemented in a microcontroller. The
result shows that both implementations are close to the resulted PWM. The FLC also can conduct the
output of the research in term of the minimum temperature of storage about 12.4o C.
Acknowledgments
Authors gratefully acknowledge for funding the research to Faculty of Engineering, the University of
Andalas by research contract No. 075/UN.16.09. D/PL/2018.
References
[1] Lee C C 1990 IEEE Transaction on Systems, Man, and Cybernetics 20(2) 404-418.
[2] Lee C C 1990 IEEE Transaction on Systems, Man, and Cybernetic 20(2) 419-435.
[3] Jang J S R, Sun C T, Mizutani E 1997 Neuro-Fuzzy and Soft Computing: A Computational
Approach to Learning and Machine Intelligence. International Edition. New Jersey: Prentice-Hall
International, Inc. 1997.
[4] Bonato J, Mrak Z, and Badurina M 2015 Scientific Journal of Maritime Research 29 56-64.
[5] Ibrahim B S K K et.al. 2012 Procedia Engineering 41 904-910.
[6] Kapitanova K, Son S H, and Kang K D 2012 Ad Hoc Network 10 709-722.
[7] Jana A K 2010 IEEE Transaction on Industrial Informatics 6(1) 25-35.
6
Conference on Innovation in Technology and Engineering Science IOP Publishing
IOP Conf. Series: Materials Science and Engineering 602 (2019) 012024 doi:10.1088/1757-899X/602/1/012024
[8] Zhiqiang G, Trautzsch T A, and Dawson J G 2002 IEEE Transaction on Industry Application
38(2) 414-424.
[9] Abdulazeez M, Salami M J E, and Tijani I B 2011 Intelligent Control for Automation of Yam
Storage System Using Fuzzy Logic Controller. 2011 Third International Conference on
Computational Intelligence, Modelling and Simulation. 2011.
[10] Oro E et al. 2012 Applied Energy 99 513-533.
[11] Lin P-W and Chan C L 2017 Thermal Energy Storage Analyses and Design. Elsevier Inc.
[12] Taylor R A and Solbrekken G L 2018 IEEE Transaction on Components and Packaging
Technologies 31(1) 23-31.