Design and Development of Fuzzy Logic Algorithm With Varying Setpoints For Fan Speed Control System Using Arduino Microcontroller (IEEE) - CDO
Design and Development of Fuzzy Logic Algorithm With Varying Setpoints For Fan Speed Control System Using Arduino Microcontroller (IEEE) - CDO
Design and Development of Fuzzy Logic Algorithm With Varying Setpoints For Fan Speed Control System Using Arduino Microcontroller (IEEE) - CDO
Ralph Laurence G. Visaya1, Mira Zara R. Fernandez1, Mike Jason M. Pizon1, Jayvee M. Serrano1, Rionel Belen Caldo2
1
Undergraduate Student, Electronics Engineering Department
2
Faculty Member, Electronics and Computer Engineering Department
Lyceum of the Philippines University-Laguna (LPU-L), Laguna, Philippines
ABSTRACT
Because of its simplicity and efficiency for linear systems,
the PID controllers were even used for industrial processes.
In this research work, the proponents presented the
The change in measured process variable and the desired
design and development of speed control system in
set point were calculated by PID and the computed values
arduino microcontroller using fuzzy logic algorithm. The
were used for adjusting the process of the controller in
proponents controlled the speed of the fan in meeting the
minimizing error [2]. However, there are drawbacks in PID
predefined set points. The temperature control system
controllers. It has been proven that fuzzy logic gives more
makes use of Matlab Fuzzy Logic Toolbox. The Sugeno
efficient results and precise outcomes. Certainly, fuzzy
style of fuzzy inference system and triangular membership
logic is becoming a dynamic area of study particularly in
functions were used in the control system. Moreover, the
control applications. It is indeed a very intuitive process,
fuzzy logic algorithm was derived in C language and
which can be used when measured models are not
realized in Arduino IDE. The proponents make use of the
accessible and input data are inaccurate. Compared to
trial and error method to obtain the desirable output in
conventional controlled mechanisms such as PID, fuzzy
meeting the Set Point. The input parameters are voltage
logic is definitely more useful and accurate. Fuzzy logic
error and change in error. These parameters are classified
system tends to mimic human thinking and it classifies our
as Zero (Z), Positive (P) and Negative (N). The
natural language into linguistic terms. It is a computational
output parameter is the voltage output, which was
tool, which requires expert knowledge to be used for
classified as Very Cold, Cold, Warm, Hot and
automatic control strategies. Fuzzification, defuzzification
Very Hot. The system makes use of a look up table for
strategies and fuzzy control rules were strategies used in
ease of complexity of the fuzzy control. It was verified
this mechanism [3]. The temperature control system can be
experimentally that the results obtained by the proponents
implemented using microcontrollers like Arduino IDE.
were acceptable.
Arduino microcontroller is a simple microcontroller board
and an open-source physical computing platform. The
Keywords:
Speed
control
system;
Arduino
variety of lights, motors and other physical outputs can be
microcontroller; Arduino IDE; Matlab fuzzy logic
controlled and it can be used to develop interactive objects,
toolbox; Fuzzy logic; C Language
taking inputs from a variety of switches or sensors [4]. In
this study, the proponents will integrate the concepts and
1. INTRODUCTION
principles of fuzzy logic for speed control system and
realize it in Arduino microcontroller.
This section of research aims to explain and deliberate
the workings of the study. It includes the statement of the
1.2 Statement of the Problem
problem and the objectives set by the proponents. Also, it
comprises the importance and the limitations of the study.
Although PID controllers were the simplest and often
This section sought to measure the viability of the research.
the most effective controllers, its mathematical model is
1.1 Background of the Study
Nowadays, automatic control system has been used in
industrial applications because of its significance in the
used of different controllers. This control system compares
the measured value of a specific process with the desired
set of values in assessing as to whether the process would
maintain its set point despite unavoidable disturbances.
However, process controlled systems are often nonlinear
and tough to control precisely. One of which is the speed
control, which drives the speed intentionally, so as the
value required would be attained in ideal performance of
specific work process [1]. In some studies, the well-known
Proportional Integral Derivative (PID) controllers were
used in controlling systems like temperature control.
and faster response rate [7]. In this work, the proponents
will incorporate the fuzzy logic algorithm in Arduino
microcontroller for speed control system. There are various
Programmable Logic Devices (PLDs) such as FPGA, PIC
Microcontroller, DSP and many more, but the proponents
choose Arduino because of its advantages over other PLDs.
METHODOLOGY
DESIGN CONSIDERATIONS
different room sections, one with 2 heat lamp and fan, and
the other with 1 lamp and fan which is smaller than the first
one. Also the proponents decided to make a separate circuit
box in creating the circuitry and in ensuring that all wirings
were properly installed. Building the final prototype is
composed of low cost resources and salvaged parts; it was
very mind-numbing because almost everything is
handmade. The components and hardware are composed of
1 ACEduino@2560 board, 1 Liquid Crystal Display, 2
fans,
2 halogen lamp, 1 LM35 sensors, 4 PCBs, 2 transistors
BD139, 2 diodes 1N4001, 7 resistors, 2 Capacitors, and 5
LED lights. It took the proponents three (3) weeks to
finalize the prototype and make sure that all components
are secured and working properly.
Figure 3.2.2, shows the fuzzy rule editor for the speed
control system wherein it is constructed using look up
table. On the other hand, Figure 3.2.3, the crisp output or
duty cycle is shown in the membership function editor and
it is the output (Vout) or the crisp output for the fuzzy logic
system. The graphical illustration of the rules for speed
control system simulation purposes is elicited in Figure
3.2.4. The graphical illustration of the rules for the speed
control is elicit in Figure 3.2.5, it includes the surface view
of the speed control system with voltage error in the x-axis,
change in error in the y-axis and duty cycle or the crisp
output (Vout) in the z-axis.
4.
to
24 C
for Cold, 25 C to 28 C
Warm (set point), 29 C
to
37 C
for Hot and 37 C
to 49 C
for Very Hot. These
ranges were used for the construction of input membership
functions. The LEDs used have corresponding colors such
as blue for very cold, green for cold, white for warm,
orange for hot and lastly red for very hot. The LEDs will
turn on whenever it reaches the required temperature. If the
temperature is higher than 49 C,
the two fans will be driven
to speed of 100%. The fans serve as the output of the
system while the heat lamp serves as the heating
mechanism of the system. Based on the simulation and
data analysis, it has been experimentally verified that fuzzy
logic algorithm can be implemented smoothly in Arduino
microcontroller. The temperature, output voltage and the
speed of fan is directly proportional to each other. The
results satisfied the classification of membership function
of the fuzzy rules with perfect correlation value. The
system works properly and stably.
6.
ACKNOWLEDGEMENTS
CONCLUSION
7.
[1]
[2]
[3]
[4]
[5]
[6]
and
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
REFERENCES
[Online] http://electrical4u.com/speed-control-of-dc-motor/
Accessed: April 3, 2015
[Online] http://en.wikipedia.org/wiki/PID_controller
Accessed: April 3, 2015
Lee, Chuen Chien, Fuzzy logic in control systems i.e.
fuzzy logic controller, IEEE Transactions on Systems,
Man and Cybernetics, Vol 20, No.2, March/April 1990.
[Online] http://arduino.cc/en/Guide/Introduction
Accessed: April 3, 2015
[Online] http://www.tech-faq.com/pid-controller.html
Accessed: April 3, 2015
Caldo,R.B. and Yap, R.Y., Design, development
implementation of a fuzzy logic controller for DC-DC
Buck and Boost converter in an FPGA, Proceedings of
the Internation Conference on Control, Automation and
Information Sciences (ICCAIS), 25-28 November, 2013
http://www.ijitee.org/attachments/File/v1i1/A113051112.pdf
[Online]. Accessed: April 3, 2015
Samantaray, D. Microcontroller based implementation of
a fuzzy knowledge based controller, 17 December 2013
Singh, S.K, Computer Aided Process Control, pp. 241
[Online] http://en.wikipedia.org/wiki/PID_controller
Accessed: April 3, 2015
Lewis A.P., Optimal Fuzzy Logic Control Technique,
Whitecap Publishing Co., Lagos, Nigeria, 2009
http://www.ijitee.org/attachments/File/v1i1/A113051112.pdf
Online]. Accessed: April 3, 2015
http://connection.ebscohost.com/c/articles/31450743/advanta
ges-pid-fuzzy-controllers-over-conventional-types [Online].
Accessed: April 3, 2015
[Online].http://www.seattlerobotics.org/encoder/dec97/fuzzy.
html Accessed: April 3,
2015www.seattlerobotics.org/encoder/mar98/fuz/flindex.htm
l/ [Accessed: June 27, 2012]