Feedback Techniques Using PID and PI Int
Feedback Techniques Using PID and PI Int
ABSTRACT: With the advent of sophisticated greenhouse technologies, computerized greenhouse has naturally
become imperative. It has created new opportunities to manipulate the indoor environment according to the specific
needs of plants. The temperature under greenhouse is the most influential factor on the plants. Usually, it has been
closely correlated with the other climatic parameters. This paper examines new ways to control internal greenhouse
temperature using two types of controllers: PID and PI-intelligent. The two controllers give good results, except that
the PID requires a method of parameters identification, which should be valid for a large time as possible. It is therefore
necessary to repeat the chosen identification technique face to change unexpected of external parameters. However, the
PI-intelligent controller permits to keep the adjusted gain for a long time thanks to actualised identification and resulted
by algebraic method. In order to visualize the evolution of climatic parameters in real time, a graphic interface has been
developed.
I. INTRODUCTION
For several years, studies on greenhouse climate controlling have made a challenge of several research tasks. Many
control methods are proposed in literature: (Rodríguez et al. (2001); Bennis et al. (2008)) designed a feedforward
controller for greenhouse climate control based on physical models; optimal control approaches have been proposed
(Ioslovich et al., (2009)). Adaptive control strategies for greenhouse temperature control have been addressed by
(Berenguel et al., (2003)) and (Speetjens et al. (2009)). The recently introduced model free control is proposed to
control the temperature under greenhouse. It is a simple but efficient technique for the nonlinear, unknown or partially
known dynamics. While retaining the PID reduced computational cost, it is able to cope with general types of
nonlinearities. Model free control has been proven to be a simple but very efficient nonlinear feedback technique for
the unknown or partially known dynamics (Fliess et al. (2009); Fliess et al. (2013); Join et al. (2013); Lafont et al.
(2013); Lafont et al. (2014), Choi et al. (2009)). We shall here use so-called intelligent PID (or i-PID). While retaining
the PID reduced computational cost, it is able to cope with general types of nonlinearities. A precise relationship
between i-PID and PIDs is given in (d’Andréa-Novel et al. (2010)). It particularly emphasizes the ease of tuning of i-
PID gains and gives a clearcut explanation of the performance of usual PIDs.
Greenhouses were been designed for plant cultivation in controlled environmental conditions. Greenhouse cultivation
has several advantages: it helps to maintain an optimal plant growth environment and protects the crops from pests and
Copyright to IJAREEIE www.ijareeie.com 9779
ISSN (Print) : 2320 – 3765
ISSN (Online): 2278 – 8875
varying outdoor conditions. Therefore, the production in greenhouses becomes considerably sophisticated and
excessively expensive. For that, the greenhouse growers who want to remain competitive need to maximize their
investment through the better management of production conditions. In order to exploit the adequate opportunities for
crops, it is necessary to control the system in automatic way. The introduction of automatic techniques using computer
has been a major advance for agricultural production (Yang et al. (2013); Eredics (2009)). In fact, there are three basic
components in a greenhouse climate control: sensors, computer, and actuators. Sensors were be used to collect
information that are important for plant growth and actuators were be used to modify the collected information. The
management of the greenhouse environment is strongly reliant on temperature variation. This later is the result of
complex, interactive heat, mass exchanges between the inside air and the several elements of the greenhouse and the
outside climatic parameters. The process depends on the structure of the greenhouse type, the state of the crop and the
actuating control signals typically ventilation and heating which are able to modify the inside temperature conditions.
The various orders (heating and ventilating) of a greenhouse aim at the spontaneous improvement of the internal
climate, but this control is never complete. It is difficult in fact to act on an element of the environment without
modifying another element.
In our laboratory, the studies showed that the inside temperature is the most influential parameters on the greenhouse
(Ezzine et al. (2010)). However, the automatic climate control requires the development of appropriate control laws that
are based on models representing linear and nonlinear system. We are therefore forced to make a study of the system to
control the temperature under greenhouse. To fully exploit the enhanced possibilities for crop and resource
management in greenhouse, it is indispensable to adjust and control variables with a remote automatic controlling (El
Afou1 et al. (2013); El Afou2 et al. (2013); Guerbaoui et al. (2013)).
The result presented in this work is the implementation of a new control strategy of climatic parameters under
greenhouse. The proposed strategy is the PI-intelligent controller which compared with a classical PID controller. The
reader may consult the recent book (Van Straten et al. (2011)) for a comprehensive approach for modelling and for
optimal control (Iya et al. (2009)) that falls within a framework of modelling/ identification/ control. The controller
strategies are programmed using Matlab/Simulink software.
This paper is organized as follows: the following section describes the experimental framework of the argument. A
brief presentation of model-free controller approach was presented. We describe the implementation of the controllers
and present the main experimental results.
In practice, the equation (2) is evaluated at each sample time, t = kTs, with k = 1, 2… and T = nsTs, with ns is the
number of samples, Ts is used in the time window T, as a discrete sum using basic discrete method to calculate
integrals:
ns
3!
y k Te 3 n s 2k Ts y k i (3)
nsTs i 0
This estimation technique can apply to a fast phenomenological model of process behaviour and valid in a short period:
y F u (4)
Where α is a non-physical constant design parameter and F represents all what is unknown on the system and can be
compensated from the knowledge of the input-output behaviour of the system. In practice, the estimation of F reads
from u k 1 and
y k as follows:
e
F e y k u k 1 (5)
e
This estimation therefore allows the implementation of the PI-intelligent. When the closed loop controller is of PID
type, the model free control can be named, intelligent PID as is expressed as follows:
F e y r (6)
u K P e ( k ) K I e ( k )
Where ẏr is the derivative of reference trajectory, e is the tracking error. KP and KI are the tuning gains. The reference
trajectory is adopted according to the norms of flatness based. In our application, α, KP and KI were fixed at 10, 2, and
0.1 respectively.
Kp
0.4Tr t 2.14 (8)
120 K Tr
1
KI 0.005 (9)
1.33 K Tr
0.35*
KD 18.1 (10)
K
We exploit these parameters to control the model representing our system using the MATLAB software in simulation
mode. To have an idea about the behaviour of the system in closed loop where the PID controller is involved, we made
the model simulation in SIMULINK. Fig. 2 shows the obtained performances with the developed algorithm. We also
notice that the output presents a short delay of 20 s and it perfectly follows the set point of 24 °C at 225 s.
In this application, we choice ns=11 and the simple time T s 5 s . Then the interval T= 55 s is sliding in order to get
this estimate at each instant. We translate equation (11) to algorithm of numerical derivative implemented in Simulink
as depicted in fig. 3.
In this paper, the study is limited just on the control of the internal temperature. Fig 7 shows the simulation results of
step response of internal temperature obtained using PI-intelligent in closed loop. We note that the static error is equal
to zero, the system is fast (rise time tm≈ 19 s) and without overshoot. We also notice that the observed output presents at
the beginning a pure delay of 20.6 s and after a duration of 350 s, it is perfectly tracking accuracy the set-point. We can
improve the performances by tuning easily the parameters of this intelligent controller. Furthermore, these tuned
parameters can give good results whereas the setpoint implemented with noise.
simulation, by Analog Input and Output to apply the developed algorithm on the real system. Before running a
simulation, the SIMULINK must be built; some codes will be executed in the command window. If there is no error on
the command window, we finally connect to a target and we run simulation by start real time.
B. PID controller
In order to test the performance of the previous controllers, we excite the actuators (heater and fan) by several set-
points and we measure, in real time, the temperatures response under greenhouse. Firstly, we present the closed-loop
step response of the PID controller as presented in fig. 9. We can observe that tracking is very good when the actuators
are controlled by a classical law whereas it is unsatisfactory in steady state. In addition to the strong effect of the
external climate, we can notice that the reference trajectory oscillates around a setpoint. Then, this controller isn’t
enable to reject the useless perturbations. In the fig. 9, the noises appear strongly between 7 h and 18 h.
C. PI-intelligent controller
Fig. 11 shows the performances of the PI-intelligent control with steps as reference trajectories that varied between
20 °C and 23.5 °C. We can observe that the perturbations are rejected faster by the PI-intelligent controller than the PID
one. Furthermore, the evolution of internal temperature demonstrates that the performances of the intelligent controller
behave better. The external temperature has presented to give the conditions where we are regulating the internal
temperature. Although a poor conditions of the closed loop with intelligent controller, it permits to obtain the good
performances. As a conclusion, the results show that the PI-intelligent controller is able to control the temperature
precisely within a reasonable range of error. Its effectiveness is appearing by minimum oscillations around a setpoint
and no overshoot.
the results to determine the advantages and inconvenient of each used controller. Figures 15 and 16 show, respectively
the evolution of commands computed by PID controller and PI- intelligent.
VII. CONCLUSION
This work presents the implementation of two controllers PID and PI-intelligent which were been implemented in order
to control the temperature under greenhouse. However, the tuning of several controllers in the complex greenhouse
environment is a challenge to process. Usually, the tuning of most controllers was based on the techniques of
identification, which are depending on the external weather conditions. For this reason, we are the recourse to the
adaptive controller that can identify the process online. The fundamental difficulty with PID controller is a feedback
system with constant parameters, and no direct knowledge of the process, and thus overall performance is reactive and
a compromise. PID controllers, when used alone, can give poor performance when the PID loop gains must be reduced
so that the output trajectory oscillates around the set-point value with no overshoot. They also have difficulties in the
presence of non-linearity, do not react to changing process behavior and have lag in responding to large disturbances.
To overcome these difficulties, we used the PI-intelligent controller. It was easy to implement and was very effective in
tracking the setpoint. The derivative of perturbed error was estimated online for each sampling time. The PI- intelligent
controller ensure good performances without having to tune again and again the PID parameters and guarantees a
suitable adaptation when the plant is changing with time.
ACKNOWLEDGMENTS
This work has been supported by a PHC Hubert Curien Volubilis grant (Ref. MA/09/211).
REFERENCES
[1] F. Rodríguez, M. Berenguel and M.R. Arahal “Feedforward controllers for greenhouse climate control based on physical models,” European
Control Conference.Porto, 2001.
[2] N. Bennis, J. Duplaix, G. Enéa, M. Haloua and H. Youlal, “Greenhouse climate modelling and robust control,” Computers and Electronics in
Agriculture, vol. 61, pp. 96-107, 2008.
[3] I. Ioslovich, P. Gutman and R. Linker “Hamilton-Jacobi Bellman formalism for optimal climate control of greenhouse crop,” Automatica, vol.
45(5), pp. 1227-1231, May 2009.
[4] M. Berenguel, L. Yebra and F. Rodriguez “Adaptive control strategies for greenhouse temperature control,” European Conference Control.
Cambridge, 2014.
[5] S.L. Speetjens, J.D. Stigter and G. van Straten “Towards an adaptive model for greenhouse control,” Computers and Electronics in
Agriculture, vol. 67, pp. 1-8, June–July 2009.
[6] M. Fliess and C. Join “Model-free control,” International Journal of Control, vol. 86 (12), pp. 2228-2252, 2013.
[7] C. Join, F. Chaxel and M. Fliess “Intelligent controllers on cheap and small programmable devices,” 2nd Int. Conf. Control Fault-Tolerant
Syst., Nice, 2013.
[8] F. Lafont, N. Pessel, J.F. Balmat and M. Fliess “On the Model-free Control of an Experimental Greenhouse,” World Congress on Engineering
and Computer Science, International Association of Engineers, San Francisco, USA, vol. 2, pp. 960-965, October 2013
[9] F. Lafont, J. F. Balmat, N. Pessel and M. Fliess “Model-free control and fault accommodation for an experimental greenhouse,” International
Conference on Green Energy and Environmental Engineering, 2014.
[10] S. Choi, B. d’Andréa-Novel, M. Fliess and H. Mounier “Modelfree control of automotive engine and brake for stopand-go scenario,” Proc. of
10th European Control Conference (ECC’09), Budapest, 2009.
[11] B. d’Andréa-Novel, M. Fliess, C. Join, H. Mounier and B.Steux “A mathematical explanation via intelligent PID controllers of the strange
ubiquity of PIDs,” Proc. of 18th Mediterranean Conference on Control and Automation, Marrakech, Morocco, 2010.
[12] L. Ezzine, M. guerbaoui, Y. El afou, A. Eddahhak, A. Lachhab, L. belkoura and B. Bouchikhi “Implementation of identification algorithm
using recurrent RBF neural networks for the inside temperature in a greenhouse,” 4th International Conference on Integrated Modeling and
Analysis in Applied Control and Automation, pp. 135-142, Fes, Morocco 13-15 October 2010.
[13] Y. El Afou, M. Guerbaoui, A. Ed-dahhak, A. Lachhab, L. Belkoura, and B. Bouchikhi. Modelling and control of inside temperature in
greenhouse by pid. Association for the Advancement of Modelling and Simulation Techniques in Enterprises : AMSE, N 12026 (2B),
accepted in press 29 Novembre 2013. 118
[14] Y. El Afou, M. Guerbaoui, M. Outanoute, A. Ed-dahhak, A. Lachhab, L. Belkoura, and B. Bouchikhi. Design and implementation of LQG
strategies for temperature control under greenhouse. International Journal of Electrical and Electronics Engineering Studies 1, issue 2,
accepted in press 2013. 123
[15] M. Guerbaoui, A. Ed-dahhak, Y. El Afou, A. Lachhab, L. Belkoura and B. Bouchikhi “Implementation of direct fuzzy controller in
greenhouse based on labview,” International Journal of Electrical and Electronics Engineering Studies, vol. 1(1), pp. 1–13, 2013.
[16] S. F. Yang and D. S. Simbeye “Computerized greenhouse environmental monitoring and control system based on LabWindows/CVI,” Journal
of Computers, vol. 8, no. 2, pp. 399-408, 2013.
[17] P. Eredics, “Measurement for intelligent control in greenhouses,” 7th International Conference on Measurement, pp. 178-181, 2009.
[18] G. Van Straten, G. Van Willigenburg, Van E. Henten and R. Van Ooteghem, “Optimal control of greenhouse cultivation,” Taylor and Francis
Group, CRC Press, 2011.
[19] I. Iya, P. O. Gutman and R. Linker, “Hamilton Jacobi Bellman formalism for optimal climate control of greenhouse crop,” Automatica, vol.
45, pp. 1227-1231, 2009.
[20] B. Bouchikhi, A. Ed-Dahhak, M. El Harzli and N. El Bari, “Les capteurs et leur rôle dans la mesure des paramètres climatiques pour une
gestion rationnelle de l’eau en agriculture,” Journées Internationales des Sciences et Technologies JICT‘07, Cadiz-Tanger, December 2004.
[21] A. Ed-Dahhak, A. Lachhab, L. Ezzine and B. Bouchikhi, “Performance evaluation of developing greenhouse climate control with a computer
system,” AMSE Journal Modeling C, vol. 68, no. 1, pp. 53-64, 2007.
[22] A. Lachhab, A. Ed-Dahhak, S. Didi, L. Ezzine, J.R. Salinas, F. García-Lagos, M. Atencia, G. Joya and B. Bouchikhi “Mise au point d’un
système de contrôle et de supervision du climat et de la fertirrigation goutte-à-goutte sous serre,” Journées Internationales des Sciences et
Technologies JICT’07, 2007.
[23] A. Rahali, M. Guerbaoui, A. Ed-Dahhak, Y. El Afou, A. Tannouche, A. Lachhab and B. Bouchikhi, “Development of a data acquisition and
greenhouse control system based on GSM,” International Journal of Engineering, Science and Technology, vol. 3, no. 8, pp. 297-306, 2011.
[24] M. Guerbaoui, Y. El Afou, A. Ed-Dahhak, L. Ezzine, A. Lachhab, L. Belkoura, and B. Bouchikhi “Etude et dimensionnement d’une
installation d’électrification hybride utilisant des photopiles solaires et groupe électrogène pour l’alimentation d’un prototype de contrôle et de
supervision des paramètres climatiques sous serre,” Congrès International sur les Energies Renouvelables et l’Efficacité Énergétique CIEREE,
FST Fès, Maroc, 20-21 Avril 2011.
[25] B. Hensel, V. Vasyutynsky, J. Ploennigs and K. Kabitzsch “An adaptive PI controller for room temperature control with level-crossing
sampling,” International Conference on Control Cardiff (ICCC), Cardiff, UK, pp. 197-204, 3-5 September 2012.
[26] M. Beschi, A. Visioli, S. Dormido and J. Sànchez “On the presence of equilibrium points in PI control systems with send-on-delta sampling,”
Proceedings of the 50th IEEE Conference on Decision and Control and European Control Conference, Orlando, FL, USA, pp. 7843-7848, 12-
15 December 2011.
[27] M. Beschi, S. Dormido, J. Sànchez and A. Visioli “On the stability of an event-based PI controller for FOPDT processes,” Proceedings of the
IFAC Conference on Advances in PID Control, Brescia, Italy, pp. 436-441, 28-30 March 2012.
[28] P. Gédouin, E. Delaleau, J. Bourgeot, C. Join, S. Arbab-Chirani, and S. Calloch, “Experimental comparison of classical PID and model-free
control: position control of a shape memory alloy active spring,” Control Engineering Practice, vol. 19, pp. 433–441, 2011.
[29] M. Fliess and C. Join, “Commande sans modèle et commande à modèle restreint,” e-STA, vol. 5, pp. 1-23, 2008.
[30] M. Fliess, and C. Join, “Model free control and intelligent PID controllers: towards a possible trivialization of nonlinear control,” 15th IFAC
Symp. System Identif., Saint-Malo, 2009.
[31] M. Fliess, C. Join, and S. Riachy, “Nothing is as practical as a good theory: Model-free control- rien de plus utile qu’une bonne théorie: la
commande sans modèle,” 4èmes Journées Doctorales/ Journées Nationales MACS, JD-JN-MACS, Marseille, France, 2011.
[32] H. Abouaissa, M. Fliess, V. Iordanova and C. Join, “First steps towards a model-free control of a free way traffic flow- prolégomènes - une
régulation sans modèle du trafic autoroutier,” Conférence Méditerranéenne sur l’Ingénierie Sure des Systèmes Complexes, MISC, Agadir,
Maroc, 2011.
[33] M. Mboup, C. Join, and M. Fliess, “Numerical differentiation with annihilators in noisy environment,” Numerical Algorithms, pp. 439-467,
2009.
[34] D. Y. Liu, O. Gibaru, and W. Perruquetti, “Error analysis of Jacobi derivative estimators for noisy signals,” Numerical Algorithms, 2011.
[35] Y. El Afou, M. Guerbaoui, A. Ed-dahak, A. Lachhab, L. Belkoura, B. Bouchikhi “Modelling and control of inside temperature in greenhouse
by PID,” Journal de l’Association for the Advancement of Modelling and Simulation Techniques in Enterprises (AMSE), Accepted in press:
28 November 2013.
[36] D. Dindeleux “Technique de la régulation industrielle,” Eyrolles, 1981.
[37] L. Ezzine, A. Lachhab, A. Ed-Dahhak and B. Bouchikhi, “Identification of a model of regression of the climatic parameters under
greenhouse,” Physical & Chemical News, Phys. Chem. News, vol. 39, pp. 43-51, 2008.
BIOGRAPHY
Y. EL Afou is currently a Ph.D student at the Electronics Automatic and Biotechnology Laboratory, University Moulay
Ismaïl, Faculty of Sciences of Meknes, Morocco and Automatic informatics engineering and Signal laboratory,
University of Sciences and Technology of Lille1. His research interests include regulating parameters under
greenhouse by free model control.
L. Belkoura currently Professor at University Lille 1, Science and Technology, French. He received the M.S. Degree in
1989, the Ph.D. Degree in Automatic Control and the "Habilitaion à diriger des recherches" from the same University
in 1993 and 2006. In 1999, he joined the Laboratory of Automatic control LAGIS, Computer Sciences and Signal of
Lille, and in 2004 (resp.2011) the Alien (resp. Non-A) Project of the Inria Institute. His main research interests include
Time delay and Hybrid systems, as well as Identification problems with applications to Transportation and
Communication.
A.Outanoute is currently a PhD student at the Electronics Automatic and Biotechnology Laboratory, Moulay Ismaïl
University, Faculty of Sciences in Meknes, Morocco. His research interests include “Modeling climate parameters by
Neural Networks and regulating parameters under greenhouse by Fuzzy logic
M. Guerbaoui is a teacher at High School in Engineering Science since 1996, and currently a PhD student at the
Electronics Automatic and Biotechnology Laboratory, Moulay Ismaïl University, Faculty of Sciences in Meknes,
Morocco. His research interests include regulating parameters under greenhouse by Fuzzy logic and use of solar energy
equipment in the greenhouse.
A. Rahali is a Professor in the Department of Physics, Faculty of Sciences, Moulay Ismaïl University, Meknes,
Morocco. Member of Laboratory of Electronics, Automatics and Biotechnology. His research interests include
industrial process control.
A. Ed-dahhak received Ph.D from Faculty of Sciences Meknes in 2009. He is a Professor in the Department of
Electrical Engineering, High School of Technology Meknes, Moulay Ismaïl University, Morocco. Abdelali Ed-dahhak
Copyright to IJAREEIE www.ijareeie.com 9791
ISSN (Print) : 2320 – 3765
ISSN (Online): 2278 – 8875
is a member of Laboratory of Electronics, Automatics and Biotechnology of the Faculty of Sciences, Meknes. His
current area of research includes electronics, development of a system for monitoring the climate and managing the
drip fertilizing irrigation in greenhouse.
Lachhab received Ph.D from Faculty of Sciences in Rabat in 2000. He is a Professor in the Department of Electrical
Engineering, High School of Technology Meknes, Moulay Ismaïl University, Morocco. Member of Laboratory of
Electronics, Automatics and Biotechnology in Faculty of Sciences in Meknes. His current area of research includes
automatic control
C. Join received his Ph.D. degree from the University of Nancy, French, in 2002. He is now an Associate Professor at
the University of Nancy and is a member of the INRIA project ALIEN. He is interested in the development of
estimation technics for linear and non-linear systems with a peculiar emphasis in fault diagnosis and accommodation.
His research involves also signal and image processing.
B. Bouchikhi received the Ph.D degree from the Université de droit, d’Economie et des Sciences d’Aix Marseille III, in
1982. Benachir Bouchikhi was awarded a Doctor of Sciences degree in 1988 from the University of Nancy I. Dr.
Bouchikhi got a position of titular professor at the University of Moulay Ismaïl, Faculty of Sciences in Meknes,
Morocco since 1993. He is the director of the Laboratory of Electronics, Automatic and Biotechnology. His current
research interests involve metal oxide sensors for electronic noses and their application to food analysis and the control
of the climate and drip fertirrigation under greenhouse. He is author and co-author of over 42 papers, published on
international journals. During the last 10 years he has coordinated a dozen national and international projects, in the
area of food safety, the control of the climate and drip fertirrigation under greenhouse. He is a member of the Editorial
Board of Journal of Sensors.