You are on page 1of 5

Modeling and Controlling Self -Tuning Fuzzy PID

Speed Control of a Fan for Vegetable Preservation


Dawit Ashagrie (February 2024)
Abstract— Providing a comfortable temperature and humidity keep healthy and reduce the risk of getting major diseases, as
condition in vegetable and fruit preservation room is an well as helping you stay younger for longer, one main issue
extremely important problem. People need to control the speed of related adequate storage for extending shelf life from farm to
fan to extend the shelf life of fruits and vegetable for a few hours end user, since it's so perishable.
or up to several months, depending on the type of produce and
When it comes to keeping fruits and vegetable, you can
the storage conditions. This is directly related to the design of the
fast reacted controller. First, the Mathematical modeling and
store them for a few hours or up to several months, depending
characterizing DC motor will be done. Due to the non-linear on the type of produce and the storage conditions. It's a great
dynamic model property of the DC motor, a self-tuning PID way to make the season last longer, wait to sell them until
controller based on fuzzy logic will develop. Next, a brief prices go up, provide a consistent quantity for buyers, or reduce
description on the fuzzy logic control theory will be presented. how often people buy them. Produce needs to stay fresh to get
Then, using a fuzzy logic method, the rule foundation and from harvest to the table.
membership function will be developed for fine-tuning PID
controller parameters. The MATLAB/Simulink software suite
will then be used to carry out the simulation using the suggested
controller. To speed up the simulation time, the solver settings
under the model configurations parameter will be set to fixed
step. To demonstrate the benefits of the suggested controller over
the traditional speed controller, simulation and experimental
tests will be conducted under various conditions.
Index Terms—DC motor, fuzzy logic, Mathematical modeling,
MATLAB/Simulink software, self-tuning PID controller,
Vegetable and fruit preservation
I. Introduction
t's essential to eat fruit and vegetables because they're packed
I with vitamins and minerals essential for your body to
function properly. They also contain fiber, phytochemicals and
antioxidant vitamins A, C, and E. The Centers for Disease
Control and Prevention (CDC) say that eating more fruit and Fig. 1. farmer forced to sell their vegetable at low price
vegetable is associated with lower cholesterol levels and it The shelf life during storage is based on the quality, the
could help with weight management and reduce your risk of stability, the external conditions, and the way it's handled. To
cancer[1]. extend shelf life, you need to keep it at the optimum
Ethiopia is one of the top five nations in Sub-Saharan temperature, humidity, and environment[3]. Proper cooling
Africa with the greatest percentage of children (69%) who preserves vegetable and fruit quality by: inhibiting the growth
consume no fruits or vegetables. Inadequate consumption of of decay-producing microorganisms, restricting enzymatic and
fruits and vegetables raises the risk of non-communicable respiratory activity, inhibiting water loss; and reducing
diseases like cancer, cardiovascular disease, obesity, and ethylene production. People need to control the speed of fan to
metabolic diseases like diabetes mellitus in addition to the extend the shelf life of fruits and vegetable. in primitive, this is
short-term effects of micronutrient shortages and diseases. done manually, with no way of changing the temperature or
Furthermore, research research indicates that eating fruits and speed of the fan. During the day and winter, the temperature
vegetables can improve mental and cognitive health and reduce rises and at night and summer it falls, so users don't really
the development of cataracts, coronary heart disease, stroke, understand the differences in temperature and it tedious to
diverticulosis, cancer, and chronic obstructive pulmonary control manually[4].
disease[2].
All these benefits make fruits and vegetable a great way to

The paper will submit for review on 19 February 2014. This investigation Dawit Ashagrie is a MSc student at the Faculty of Mechanical and Industrial
is held for accomplishing dissertation at Bahir Dar university. Engineering, Bahir Dar Institute of technology department of Electro
mechanical engineering, Ethiopia (e-mail: dawitashagrie12@gmail.com)
TABLE 1 tuning fuzzy PID control are covered in Chapter 2. In Chapter
SHELF LIFE AND COMPATIBILITY INFORMATION OF FRESH
3, a method for modeling and controlling a self-tunning fuzzy
VEGETABLES
PID controller for a vegetable preservation room is covered.
Vegetable Temperature(°C) Relative Shelf
The expected outcome of real-time experimentation and
humidity life
system performance evaluation is covered in Chapter 4.
(%) (weeks)
II. Theoretical Background and Problem
Carrot 0-2 95 2-3
Formulation
Potatoes(white) 5-10 90 8-20
Conventional PID control method cannot make
Potatoes(sweet) 12-16 85-90 16-24 temperature and humidity control process have satisfied
dynamic process and steady state[13]. In order to solve the
Tomato(ripe) 7-10 85-90 4-7 days problem, adaptive fuzzy PID control method is will develop
based on the modeling, simulation and experimental setup of
Tomato(green) 12-20 85-90 1-3 the preservation, the method can modify the PID parameters
on line and meet the requirement of controller parameters such
Apples 13–18 85-90 12-32 as Proportional gain (Kp), Integral gain (Ki), and Derivative
gain (Kd) according to speed error (e) and the derivative of
Avocado 4.4-12.5 85-90 1-3 speed error (de/dt)[14], [9], [15], [16], [17].
The designing a new self-tuning Fuzzy PID speed
Mango 12 85-90 8-12 controller, which combines the advantages of fuzzy control and
Information compiled from[5]. PID control to adjust the temperature and humidity of room to
achieve the desired temperature and humidity for vegetable
postharvest fruit and vegetable loss is a significant problem
preservation[18], [19], [20], [21].
in Ethiopia because of a combination of environmental and
human reasons, both the nation's economy and the people's
ability to support themselves are severely hampered by this. In
terms of high return per unit of time and area, fruits and
vegetables are typically fairly profitable; however, a large
amount of post-harvest waste offsets this benefit.
Ensuring food security is one of Ethiopia's biggest problems
right now because of the country's growing population and
increased food consumption. There are significant postharvest
food losses despite the nation's far lower production than
demand, primarily as a result of inadequate food processing,
preservation, and storage facilities[6]. Fig. 2. Block diagram of self-tuning fuzzy PID controller
The study states in Ethiopia the postharvest loss of perishable The proposed system basically consists of pads, an
horticulture commodities like fruit and vegetable wastes Arduino Uno, a temperature and humidity sensor, a water
between 30 and 40 percent of supply[3]. pump, and a centrifugal fan.
Ethiopia uses antiquated storage methods and equipment
that perform appallingly in terms of upholding the necessary
standard of storage quality. Most farmers store fruit and
vegetable at their homestead without refrigeration before
bringing them to the markets. Fruits are kept at trading without
being refrigerated[7]. For instance, the Gondar town survey
revealed that just 31.1percent of the stores kept rotten and
physically damaged fruits apart from healthy ones[8]. In
general, the lack of suitable storage conditions in the nation has
presented farmers with major difficulties when it comes to
storing fruits and vegetables.
The temperature and humidity control system can be used
with a variety of strategies, including fuzzy logic (FL), genetic Fig. 3. schematic view of evaporative cooling system
algorithms (GA), artificial intelligence (AI), Proportional- The figure compiled from[22]
Integral-Derivative (PID), Proportional-Derivative (PD), Pads offer the necessary surface area for the evaporation
Proportional-Integral (PI), and fuzzy self-tuning PID. of water. The water pump delivers water from the reservoir to
Although there is no denying the usefulness of modern tactics the cooling pads, while the fan pulls hot air from the outside
like GA and AI, putting them into practice is extremely and forces it through those pads. Through the cooler's
difficult and expensive. The Self-tuning Fuzzy PID controller sidewalls, air is drawn into the cooling chamber. The sides are
algorithm is the most user-friendly and highly effective of covered with porous pads. For the central controlling system,
these strategies[9], [10], [9], [11], [12]. Arduino is utilized. The Arduino microcontroller receives
The following is an additional framework for the paper. information from the temperature and humidity sensor, which
The theoretical background and problem formation for self- measures the preservation room's temperature and humidity as
well as the cooling pad's outlet. The microcontroller then cause, cancer and CVD mortality: Analysis of health
automatically decides what to do after comparing the sensor survey for England data,” J. Epidemiol. Community
read value with the setpoint[23]. Health, vol. 68, no. 9, pp. 856–862, 2014, doi:
Newly developed techniques make it easier to design and 10.1136/jech-2013-203500.
implement fuzzy controllers by balancing real-time restrictions
relating to fault resistance, quick response, low computational [2] B. E. Semagn and A. Abubakari, “Zero
burden, and robustness with system stability[11], [24], [9], fruits/vegetables consumption and associated factors
[25], [21]. among Children aged 6–23 months in Ethiopia: Mixed
III. Method for Modeling and Controlling a self-tunning effect logistic regression analysis,” PLoS One, vol. 18,
Fuzzy PID Controller for a Vegetable Preservation Room no. 7 July, pp. 1–16, 2023, doi:
DC motors are widely utilized in a variety of applications, 10.1371/journal.pone.0288732.
due to its great dependability, affordability, ease of speed and [3] O. F. Etefa, S. F. Forsido, and M. T. Kebede,
position control, low energy consumption, and compatibility “Postharvest Loss, Causes, and Handling Practices of
with digital systems[26]. Modeling and characterizing DC Fruits and Vegetables in Ethiopia: Scoping Review,”
motor will be executed[19], [27], [11], [24], [28]. Due to the J. Hortic. Res., vol. 30, no. 1, pp. 1–10, 2022, doi:
non-linear dynamic model property of the DC motor, a self- 10.2478/johr-2022-0002.
tuning PID controller based on fuzzy logic will develop. Next,
[4] N. A. Junizan, A. A. Razak, B. Balakrishnan, and W.
a brief description on the fuzzy logic control theory will be
Othman, “Design and Implementation of Automatic
presented. Then, using a fuzzy logic method, the rule
Room Temperature Controlled Fan using Arduino Uno
foundation and membership function will be developed for and LM35 Heat Sensor,” Int. J. Eng. Creat. Innov., vol.
fine-tuning PID control parameters [29], [30], [31]. 1, no. 2, pp. 8–14, 2019.
The MATLAB/Simulink software suite will then be used
to carry out the simulation using the suggested controller. To [5] J. T. Liberty, W. I. Okonkwo, and E. a Echiegu,
speed up the simulation time, the solver settings under the “Evaporative Cooling: A Postharvest Technology for
model configurations parameter will be set to fixed step[32], Fruits and Vegetables Preservation,” Int. J. Sci. Eng.
[25], [33]. To demonstrate the benefits of the suggested Res., vol. 4, no. 8, pp. 2257–2266, 2013.
controller over the traditional speed controller, simulation and [6] C. G. Kuyu and T. Y. Bereka, “Review on contribution
experimental tests will be conducted under various conditions. of indigenous food preparation and preservation
IV. A Real Time Experimentation and Assessment of System techniques to attainment of food security in
Performance Ethiopian,” Food Sci. Nutr., vol. 8, no. 1, pp. 3–15,
The plan of the experiments to be carried out on the 2020, doi: 10.1002/fsn3.1274.
vegetable preservation system is as follows. The temperature
and humidity control designed and investigated are: [7] S. Humble and A. Reneby, “Post-harvest Losses in
➢ a simulated system with conventional fuzzy logic Fruit Supply Chains – A Case Study of Mango and
control Avocado in Ethiopia,” Unpubl. Masters Agric. Econ.
➢ a simulated system with self-tunning fuzzy PID Manag. Swedish Univ. Agric. Sci., no. 899, p. 74,
➢ the real time system with supervisory fuzzy logic 2014, [Online]. Available: http://stud.epsilon.slu.se
control with corrected gains from self-tuning PID [8] T. D. Banjaw, “Review of Post-Harvest Loss of
V. Conclusion Horticultural Crops in Ethiopia, its Causes and
Mitigation Strategies,” J. Plant Sci. Agric. Res., vol. 2,
As a result, this work can offer self-tuning fuzzy PID no. 1, pp. 1–4, 2017, [Online]. Available:
(Proportional-Integral-Derivative) controller for vegetable http://www.imedpub.com/plant-sciences-and-
preservation lies in its ability to adapt and optimize control agricultural-research/
parameters in real-time based on the changing conditions of the
vegetable preservation process, it Play a major role in [9] M. Tauhidul Islam, A. Islam, R. Kumar, G. E. Mustafa
conveniently storing fruits and vegetables to reduce post- Abro, S. Majumdar, and V. K. Oad, “Design of a Self-
harvest loss, spoilage and loss of nutrients to validate food Tuning PID Controller for a Temperature Control
security and sustain economic growth. System Using Fuzzy Logic,” Lect. Notes Electr. Eng.,
vol. 758, no. June 2023, pp. 643–649, 2022, doi:
The simulated system with self-tunning fuzzy PID will
10.1007/978-981-16-2183-3_62.
achieves good dynamic behavior of the DC motor, perfect
speed tracking with short rise and settling times, zero [10] W. Jiang and X. Jiang, “Design of an intelligent
overshoot, and null steady-state error, thus providing better temperature control system based on the fuzzy self-
performance compared a simulated system with conventional tuning PID,” Procedia Eng., vol. 43, pp. 307–311,
fuzzy logic control. 2012, doi: 10.1016/j.proeng.2012.08.053.
References
[1] O. Oyebode, V. Gordon-Dseagu, A. Walker, and J. S. [11] B. S. Omarov et al., “Fuzzy-PID based self-adjusted
Mindell, “Fruit and vegetable consumption and all- indoor temperature control for ensuring thermal
comfort in sport complexes,” J. Theor. Appl. Inf.
Technol., vol. 98, no. 11, pp. 1877–1888, 2020. comprehensive review on evaporative cooling
systems,” Results Eng., p. 101059, 2023.
[12] L. Song, H. Chen, H. Wu, and Z. Yang, “Adaptive
fuzzy controller for air conditioning system,” Lect. [23] S. H. Elahi and S. D. Farhani, “Increasing evaporative
Notes Electr. Eng., vol. 176 LNEE, no. VOL. 1, pp. cooler efficiency by controlling water pump run and
255–260, 2012, doi: 10.1007/978-3-642-31507-7_42. off times,” Int. Commun. Heat Mass Transf., vol. 127,
no. August, p. 105525, 2021, doi:
[13] H. Moradi, H. Setayesh, and A. Alasty, “PID-Fuzzy 10.1016/j.icheatmasstransfer.2021.105525.
control of air handling units in the presence of
uncertainty,” Int. J. Therm. Sci., vol. 109, pp. 123–135, [24] N. L. Manuel, N. İnanç, and M. Lüy, “Control and
2016, doi: 10.1016/j.ijthermalsci.2016.05.024. performance analyses of a DC motor using optimized
PIDs and fuzzy logic controller,” Results Control
[14] X. Wu, J. Wu, and D. Li, “Designation and Simulation Optim., vol. 13, no. May, 2023, doi:
of Environment Laboratory Temperature Control 10.1016/j.rico.2023.100306.
System Based on Adaptive Fuzzy PID,” Proc. 2018
IEEE 3rd Adv. Inf. Technol. Electron. Autom. Control [25] H. Prasanna Kumar, “Fuzzy PID Controller Based
Conf. IAEAC 2018, no. Iaeac, pp. 583–587, 2018, doi: Speed Control of BLDC Motor,” Artic. Int. J. Mod.
10.1109/IAEAC.2018.8577618. Trends Sci. Technol., vol. 7, no. 09, pp. 254–257,
2021, doi: 10.46501/IJMTST0709041.
[15] D. Jie, “Modeling and Simulation of Temperature
Control System of Coating Plant Air Conditioner,” [26] R. Akbari-Hasanjani, S. Javadi, and R. Sabbaghi-
Procedia Comput. Sci., vol. 107, no. Icict, pp. 196– Nadooshan, “DC motor speed control by self-tuning
201, 2017, doi: 10.1016/j.procs.2017.03.078. fuzzy PID algorithm,” Trans. Inst. Meas. Control, vol.
37, no. 2, pp. 164–176, 2015, doi:
[16] G. M. Debele and X. Qian, “2014 11th International 10.1177/0142331214535619.
Computer Conference on Wavelet Active Media
Technology and Information Processing, [27] J. Deng, L. Yang, X. Cheng, and W. Liu, “Self-tuning
ICCWAMTIP 2014,” 2014 11th Int. Comput. Conf. PID-type fuzzy adaptive control for CRAC in
Wavelet Act. Media Technol. Inf. Process. datacenters,” IFIP Adv. Inf. Commun. Technol., vol.
ICCWAMTIP 2014, p. 512, 2014. 419, pp. 215–225, 2014, doi: 10.1007/978-3-642-
54344-9_27.
[17] A. L. K. Saad and I. Ismael, “On Line Tuning of PID
Parameters using Fuzzy Logic for DC Motor Speed [28] H. Zhang, X. Zuo, B. Sun, B. Wei, J. Fu, and X. Xiao,
Control,” Int. J. Sci. Eng. …, vol. 7, no. 9, pp. 1518– “Fuzzy-PID-Based Atmosphere Packaging Gas
1525, 2016, [Online]. Available: Distribution System for Fresh Food,” Appl. Sci., vol.
https://www.academia.edu/download/61583669/On- 13, no. 4, 2023, doi: 10.3390/app13042674.
Line-Tuning-of-PID-Parameters-using-Fuzzy-Logic-
for-DC-Motor-Speed-Control20191222-94147- [29] E. A. H. Fernando et al., “Design of a fuzzy logic
1l1for2.pdf controller for a vent fan and growlight in a tomato
growth chamber,” HNICEM 2017 - 9th Int. Conf.
[18] R. Kristiyono and Wiyono, “Autotuning fuzzy PID Humanoid, Nanotechnology, Inf. Technol. Commun.
controller for speed control of BLDC motor,” J. Robot. Control. Environ. Manag., vol. 2018-Janua, pp. 1–5,
Control, vol. 2, no. 5, pp. 400–407, 2021, doi: 2017, doi: 10.1109/HNICEM.2017.8269526.
10.18196/jrc.25114.
[30] R. Arun Kumar and J. L. Febin Daya, “A novel self -
[19] R. Li and P. Gong, “Fuzzy PID Speed Controller of Tuning fuzzy based PID controller for speed control of
DC Motor Based on MATLAB,” J. Phys. Conf. Ser., induction motor drive,” 2013 Int. Conf. Control
vol. 2417, no. 1, 2022, doi: 10.1088/1742- Commun. Comput. ICCC 2013, no. December, pp. 62–
6596/2417/1/012037. 67, 2013, doi: 10.1109/ICCC.2013.6731625.
[20] V. Kumar, S. Kumar, and H. Kansal, “Fuzzy logic [31] L. Xing, S. Yang, and Q. Lu, “Self-Tuning fuzzy PID
controller based operating room air condition control controller for temperature control in variable air
system,” Int. J. Innov. Res. Electr., vol. 2, no. 1, pp. volume air conditioning systems,” 2010 IEEE Int.
2321–5526, 2014, [Online]. Available: Conf. Inf. Autom. ICIA 2010, pp. 2117–2120, 2010,
www.ijireeice.com doi: 10.1109/ICINFA.2010.5512202.
[21] M. Khairudin, S. Yatmono, I. M. Nashir, F. Arifin, W. [32] E. Visek, L. Mazzrella, and M. Motta, “Performance
Aulia, and Widyantoro, “Exhaust Fan Speed analysis of a solar cooling system using self tuning
Controller Using Fuzzy Logic Controller,” J. Phys. fuzzy-PID control with TRNSYS,” Energy Procedia,
Conf. Ser., vol. 1737, no. 1, 2021, doi: 10.1088/1742- vol. 57, pp. 2609–2618, 2014, doi:
6596/1737/1/012046. 10.1016/j.egypro.2014.10.272.
[22] N. Kapilan, A. M. Isloor, and S. Karinka, “A [33] N. B. Jazi and N. Branch, “Design Self-Tuning Fuzzy
PID Control System for BLDC Motor Speed Design
Self-Tuning Fuzzy PID Control System for BLDC
Motor Speed,” vol. 2, no. September, pp. 23–32, 2022.

You might also like