Next Article in Journal
Modeling Pollutant Emissions: Influence of Two Heat and Power Plants on Urban Air Quality
Next Article in Special Issue
Photovoltaic Performance of Spherical TiO2 Nanoparticles Derived from Titanium Hydroxide Ti(OH)4: Role of Annealing Varying Temperature
Previous Article in Journal
Monitoring the Geometry Morphology of Complex Hydraulic Fracture Network by Using a Multiobjective Inversion Algorithm Based on Decomposition
Previous Article in Special Issue
Evaporated MAPbI3 Perovskite Planar Solar Cells with Different Annealing Temperature
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Implementation of an Intelligent ANFIS Controller on a Raspberry Pi Nano-Computer for Photovoltaic Pumping Intended for Drip Irrigation

UR-LAPER, UR17ES11, Faculty of Sciences of Tunis, University of Tunis El Manar, Tunis 1068, Tunisia
*
Author to whom correspondence should be addressed.
Energies 2021, 14(17), 5217; https://doi.org/10.3390/en14175217
Submission received: 5 July 2021 / Revised: 8 August 2021 / Accepted: 11 August 2021 / Published: 24 August 2021
(This article belongs to the Special Issue Nanotechnology for Solar Energy Conversion)

Abstract

:
For several decades, many countries have favored irrigation as a means of regulating, diversifying, and increasing agricultural production to meet the growing domestic demand for food, and even to generate exportable surpluses. As with most Mediterranean countries, Tunisia has inherited a long tradition in irrigation; thus, the management of the scarcity of water resources poses a very important challenge that is gradually increasing due to the effects of climate change undergone by the region and confronting the agricultural sector. Aiming at a new model of sustainable development, ensuring the optimization of water resources management, as well as the protection of natural resources and the environment, this work proposed the modern design of a photovoltaic pumping chain dedicated for drip irrigation, which is controlled using an intelligent neuron-fuzzy controller with an ANFIS architecture and implemented on a Raspberry Pi platform. Thanks to this design, the efficiency of the pumping chain increased exponentially to a value of approximately 95%, achieving water pumping optimization while exploiting renewable energy resources, thus guaranteeing the longevity of water resources, as well as the continuity of diversified agricultural production.

1. Introduction

The Tunisian strategic geographical location distinguishes the country with a mild climate and a mixture of geological features such as deserts, mountains, and flat lands.
The water that can be mobilized in Tunisia is estimated to be 4766 million m3/year, consisting of 55% of surface water collected mainly in the North and 45% of groundwater mainly located in the Center and the South [1].
Irrigated agriculture consumes 80% of available water resources, while 14% is allocated to drinking water and 6% to industry and tourism, as shown in Figure 1 [2].
According to the Office of Planning and Hydraulic Balances (2016), irrigated agriculture represents 37% of agricultural production (8% of the useful agricultural area, 27% of agricultural employment, and 20% of the export value) [2].
However, the country has 450 m3/inhabitant/year of water, which is below the water stress threshold (i.e., 500 m3/inhabitant/year), which means a serious problem of the need for water resources by 2025.
Thus, the right to water is now threatened, and it has become essential to preserve this resource and rationalize its exploitation.
Moreover, the results of the new projections published in 2018 for Tunisia by the National Institute of Meteorology (INM) indicate an increase in annual temperature forecasts for 2050 and 2100 compared to the period of 1971–2000 [2].
Consequently, average temperatures are expected to rise between 2.1 °C and 2.4 °C by 2050, and between 4.2 °C and 5.2 °C at the end of 2100; these results also predict a decrease in annual accumulations of precipitation varying between −1% and −14% in 2050 and between −18% to −27% in 2100 [2].
Thus, Tunisia would be subject to a more arid climate, gradually affecting the north of the country, as presented in Figure 2:
The decrease in rainfall would lead to a drop in water resources estimated at 28% in 2030, which would mainly affect groundwater. This risks the overexploitation of groundwater, increasing the price of access to water and degrading its quality.
Therefore, it is urgent to encourage changes in agricultural practices and innovations to meet the challenges of climate change.
Another emerging issue and at the heart of global debates in recent years is the development of renewable energies. It is no longer a choice in itself but a necessity given the three-dimensional impact of this sector, namely: economic, whose challenges are the reduction in the energy bill and the creation of jobs; environmental, as it will reduce CO2 emissions, one of the main factors of global warming; and social, by impacting education, health, access to drinking water, and agriculture [3,4].
Regarding the Tunisian energy situation, it is marked by limited energy resources, a drop in energy production, and a strong increase in demand, hence the gap between energy production and national demand and the appearance of a deficit in the primary energy balance, which reached 49% in 2018 against 15% in 2010 [5].
Research was carried out in order to rationalize fossil resources use and to optimize water pumping control. The first studies focused on monitoring the pumping stations by means of traditional controllers such as PD or PID (proportional and derivative controller or proportional, integral and derivative controller, respectively) or their combination with scalar and vector controllers [6,7]; subsequently, a new concept emerged called a sliding mode robust controller [8].
Indeed, those controllers have well regulated the hydraulic pumping stations, but they also showed a lack of performances in term of stability, rapidity, and precision.
As a solution, and regarding the revolutionary dominance of artificial intelligence in almost all fields, research works have been directed toward regulators based on fuzzy logic [9], artificial neuronal networks [10], as well as their association known by fuzzy neuronal controllers [11].
Different models have been designed and met the challenge of improving and optimizing hydraulic pumping stations, except that the complexity of those chains poses a huge problem of unsuitable investment cost for agriculturists, hence the inspiration to provide an intelligent and efficient drip irrigation system, owning a simple architecture, and the ability to meet the functional and economic needs of beneficiaries.
This work also proposed the implementation of the ANFIS intelligent controller on an embedded Raspberry Pi target, not only for its performances compared to previous cards [12,13], but especially for its subsequent use in the IoT (Internet of Things) concept, as this platform offers internet connectivity without need of connected expensive sensors employment, thus the important scientific, economic, and social contributions of this manuscript.

2. Photovoltaic Pumping System

The agricultural irrigation techniques shown in Figure 3 represent the methods of providing water to crops and are classified as surface irrigation (basin, furrow, and board irrigation), sprinkler irrigation, and micro-irrigation.
Despite the antiquity of the surface water irrigation method, farmers are still maintaining its usage as a lucid, effortless, and low-priced technique, as water conserving practices, such as drip irrigation, demand further costs for the sake of investment in installation, maintenance, and energy [14,15].
Due to the minimum number of countries in Africa that financially support farmers to invest in drip irrigation, the rate of the use of motorized techniques remains low (Figure 4) [16].
Accordingly, the investigation into how to harmonize farmers’ expenses and incomes substitutes a critical concern to settle.
On the other hand, Tunisia intends to increase its energy reserves by intensifying the exploitation of its natural deposit in renewable energy, as illustrated in Figure 5 [17,18,19,20].
Investigating an evaluator such as MCDA (the multi-criteria decision analysis) is mandatory to determine which renewable energy to use in our application in terms of quality and received score [21].
According to Figure 6, the energy produced by PV modules is considered more efficient compared to other renewable energy resources; thus, its investment presents a promising field in order to reduce the use of fossil fuels.
However, several criteria must be taken into consideration before implementing the photovoltaic installation, in particular, the climatic factors of the region.
In this work, three different regions of Tunisia were studied for the purpose of installing photovoltaic pumping systems: Tunis, as a northern region; Kairouan, as a central region; and Tozeur, as a southern region, as indicated in Figure 7.
Average daylight, sunshine, high and low temperatures, and rainfall are described in Figure 8, Figure 9 and Figure 10.
June represents the month with the longest days with an average daylight of 14.7 h in Tunis, 14.4 h in Kairaouan, and 11.7 h in Tozeur, while the month with the shortest days is December with an average daylight of 9.7 h in Tunis, 9.9 h in Kairaouan, and 6 h in Tozeur.
Warmest months, with the highest average high temperature, are July and August with 34.4 °C in Tunis, 36.8 °C in Kairaouan, and 39 °C in Tozeur, while the month with the lowest average high temperature is January with 16.2 °C in Tunis, 16.9 °C in Kairouan, and 16 °C in Tozeur.
The highest number of rainy days in Tunis is estimated as 9 days in January; nevertheless, Kairaouan and Tozeur only benefited from 5 rainy days spread over several months of the fall or winter period. Yet, July presents the month with the lowest number of rainy days for all the regions, varying from 1 to 0 days.
Thus, the Tunisian climatic characteristics present a very promising natural deposit for investment in the photovoltaic solar energy sector, especially in the central and southern regions for pumping.
The proposed photovoltaic system presented in Figure 11 consists of a photovoltaic generator followed by a three-phase inverter, supplying a three-phase motor pump connected to pipes and valves.
For this installation, the tanks are always connected to each other and on the same plane; thus,
H p 0
Therefore, the flow equation becomes [22]:
Q = b 1 b 1 2 4 b 0 b 2 ψ 2 ( b 2 ψ )     Ω m =       Q n o m Ω n o m   Ω m    
The control is ensured thanks to a Raspberry Pi platform connected to a network of sensors in order to control the inverter according to the data collected (temperature, irradiation, and water flow), which allows the characterization of this system by an optimal, economical, and flexible structure.

3. Design and Implementation of the Intelligent Controller

The intelligent neuron-fuzzy controller aims to create an optimized fuzzy interference system using supervised learning methods; there are three fuzzy neural architectures: the Nomura architecture, the LSC architecture, and the ANFIS architecture adopted for this work.
The Adaptative-Network-based Fuzzy Inference System (ANFIS) is a multi-layered network whose connections are not weighted, or all its weights are equal to 1.
In this design, the ANFIS controller output is connected to the input of a classic scalar controller, as shown in Figure 12:
The irradiance Ec, temperature Ta of the photovoltaic panel, and the rate of water Q measured at the pump’s output were used as inputs of the ANFIS controller. The frequency fs represented the ANFIS controller’s output.
To train the ANFIS network, 54 datasets of irradiation Ec, temperature Ta, flow rate Q, and frequency fs were measured with the help of a FPGA board [23], on July 2020, as shown in Figure 13 and Figure 14:
In order to simulate the intelligent ANFIS controller, it is helpful to:
  • Train data (temperature, irradiation and flow rate);
  • Train error with 1000 epochs that tends toward zero (Figure 15);
  • Generate FIS;
  • Export data to workspace;
  • Build the Fuzzy Inference System (FIS) file.
Regulator structure, treated in the MATLAB-Simulink environment, is presented in Figure 16.
The input membership functions of temperature, irradiance, and measured water flow rate are represented in Figure 17:
Figure 18 and Figure 19 represent the surface between two inputs and the output (Ta and Ec), (Ta and Q), (Ec and Q), and the ANFIS controller rules:
Concerning Raspberry Pi, it serves as a very cheap nano-computer (Figure 20) that runs Linux, but it also provides a set of GPIO (general purpose input/output) pins enabling the control of electronic components for physical computing and the Internet of Things (IOT) exploration [24,25,26,27].
Raspberry Pi is also characterized by its small size, high clock speed, onboard network, multitasking capabilities, large flash memory (SD card), USB inputs, operating system, and diversity of development environments (Scratch, IDLE, etc.) [28,29].
The components used for this application are: Raspberry Pi Model B+, DHT22 digital temperature and humidity sensor, KY-018 analog irradiation sensor, YF-S201 water flow sensor, moisture sensor, 9 V battery (external power), PWM control shield, mini water pump, I2C 1602 LCD, T-cobbler, breadboards, 4.7 KΩ and 10 KΩ resistors, jumper wire kit, Ethernet cable, X25 soarer charging data cable, and a computer. The Fritzing electrical diagram is presented in Figure 21.
For the software/hardware installation and configuration, the following steps are necessary [30,31,32,33,34,35,36,37,38,39,40,41,42]:
  • Update Raspbian to the latest version;
  • Enable I2C and SPI Protocol;
  • Install smbus and I2C python library;
  • Raspberry Pi, I2C 1602 LCD, sensors and control shield Pin connection;
  • Testing hardware;
  • Download and Run the python code (respecting a precise algorithm introduced in Figure 22).

4. Results and Discussion

The simulation results were obtained by simulating the Simulink models over a period of 10 s, which is represented in Figure 23:
Figure 24 shows a comparison between flow rate evolutions delivered by the ANFIS regulator (Qanfis) and a fuzzy regulator (Qf).
After having simulated the controlled photovoltaic irrigation system using the intelligent ANFIS controller, and after having visualized the desired behavior (flow rate reached its optimum value close to 34 L/min), the next step dealt with the controller implementation on the Raspberry Pi platform by means of the Python code (Figure 25).
Based on the same database, a program was created that allows one to browse the data using the sensors and subsequently display the values captured, as well as the frequency fs, which presents the output of the intelligent controller block (Figure 26) and runs the motor-pump with an adequate speed.
The photos below were taken while displaying the temperature, sunshine value, frequency occurred, and pump speed mode with a delay of 3 s for each display.
In the Table 1 below, an example of a comparative study is presented; it consists of taking the results of a vector and fuzzy regulators combination and then applying them as an input database for the studied ANFIS regulator by means of two different membership functions (triangular and Gaussian) in the MATLAB environment, in addition to the experimental results of the ANFIS controller implementation.
As a consequence of the pumping chain dedicated to irrigation simulations, the water flow delivered by the pump was optimized to 34 L/min, in front of 29.06 L/min, for the same system and under the same conditions but by using a PI regulator linked to a scalar control (time and energy gain), and 33 L/min for a pumping chain of more complex architecture and admitting a vector control combined with a fuzzy regulator [43] (investment cost gain). Thus, under optimal conditions (T = 25 °C and Ec = 1000 W/m2), this system showed a gain in efficiency ranging from 2.9% (33 L/min) to 13.9% (29.06 L/min).
Moreover, the comparison between the simulations and experimental results, under the same conditions, affirmed that the values found were very close, resulting in a low error estimated at 0.1%. Thus, the Raspberry Pi device ensured a stable behavior, as well as a robust and very promising control compared to the targets previously used such as ASICs, FPGAs, DSPs, microcontrollers, or SOCs. As a result, the concordance between the simulated and measured results was verified.
Thanks to this application, it is possible to feed the maximum of crops with the minimum of water delivered to the outlet of each dripper; it helps to irrigate, for example, 121 olive trees and 3400 carrots distributed, respectively, over an area of 5000 m2 and 1122 m2. Then, Tunisian regions, especially the central and southern regions, including Kairaouan and Tozeur, will be able to guarantee the conservation of large hydraulic resources and the minimization of polluting fossil resources use through the adoption of sustainable renewable energies, particularly solar photovoltaic energy, allowing its energy and water self-sufficiency with the least expenditure.
It is also important to mention that this design is not only promising for Tunisia, but also for any other country in the Mediterranean region, as well as the entire African continent. It therefore provides the possibility to innovate old projects and research works, including the study dedicated to the oases of Mauritania presented in [44].

5. Conclusions

This article focuses on the intelligent fuzzy neuron control and its implementation on an embedded target. The objective was to offer an intelligent and efficient ANFIS regulator allowing the control of a photovoltaic pumping system dedicated to drip irrigation, as well as its implementation on the Raspberry Pi 3 Model B+ platform.
The system response was stable, fast, and optimized with an efficiency of 95%, despite the robustness of antecedent regulation methods such as fuzzy logic, sliding mode, or adaptive control. This work proved a valuable contribution thanks to the dynamics of the system in front of fluctuating and improvised climatic correlations such as shading or the sudden drop in temperature.
In addition, the material design is ready to be invested in the IOT concept; the perspectives of this research work will therefore be focused on the phenomenon of smart irrigation.

Author Contributions

Conceptualization, S.B. and D.M.; methodology, S.B.; software, S.B.; validation, S.B., D.M. and A.M.; formal analysis, S.B.; investigation, S.B.; resources, S.B. and D.M.; writing—original draft preparation, S.B.; writing—review and editing, D.M.; visualization, D.M. and A.M.; supervision, D.M. and A.M.; project administration, D.M. and A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Hassainya, J. Irrigation et Développement Agricole L’expérience Tunisienne; CIHEAM: Montpellier, France, 1991; pp. 1–217. [Google Scholar]
  2. Chebbi, H.E.; Pellissier, J.-P.; Khechimi, W.; Rolland, J.-P. Rapport de Synthèse sur lAagriculture en Tunisie; Research Report; CIHEAM-IAMM: Montpellier, France, 2019; p. 99. [Google Scholar]
  3. Rassa, B.; Harbaoui Zrelli, M. Perspectives des Énergies Renouvelables à L’échelle Locale en Tunisie; Solidar: Tunis, Tunisia, 2019. [Google Scholar]
  4. Tractepel, E. Projets D’énergie Renouvelable en Tunisie; GIZ: Tunis, Tunisia, 2019. [Google Scholar]
  5. Ministère de L’économe, des Finances et de la Relance. Available online: https://www.tresor.economie.gouv.fr/Articles/11e2817f-27c4-430e-9126-1fa256e729e0/files/aa18f0c7-4bde-4de4-8aef-4e54fb2c83a6 (accessed on 20 January 2021).
  6. Bellahirich, S. Modélisation et Analyse Structurelle par Bond Graph d’un Système d’Irrigation Photovoltaïque. Master’s thesis, FST, Tunis, Tunisia, 2018. [Google Scholar]
  7. Mezghani, D. Modélisation par Bond Graph, Conception des lois de Commande Robustes pour des Systèmes de Pompage Hybrides Photovoltaïque-Éolien et Implémentation sur des Cibles Embarquées. In Proceedings of the International Meeting on Advanced Technologies in Energy and Electrical Engineering; University Habilitation; FST: Tunis, Tunisia, 2017. [Google Scholar]
  8. Jain, R.K.; Barry, V.R.; Varma, G.H.K. Model based design and sliding mode control approach for two stage water pumping system with reduced sensors. IEEE J. Emerg. Sel. Top. Power Electron. 2021. [Google Scholar] [CrossRef]
  9. Benyezza, H.; Bouhedda, M.; Rebouh, S. Zoning irrigation smart system based on fuzzy control technology and IoT for water and energy saving. J. Clean. Prod. 2021, 302, 127001. [Google Scholar] [CrossRef]
  10. Kashyap, P.K.; Kumar, S.; Jaiswal, A.; Prasad, M.; Gandomi, A.H. Towards precision agriculture: Iot-enabled intelligent irrigation systems using deep learning neural network. IEEE Sens. J. 2021, 21, 17479–17491. [Google Scholar] [CrossRef]
  11. Koochaksaraei, A.A.; Izadfar, H. High-Efficiency MPPT Controller Using ANFISreference Model For Solar Systems. In Proceedings of the IEEE 5th Conference on Knowledge-Based Engineering and Innovation, Iran University of Science and Technology; IEEE: Tehran, Iran, 2019. [Google Scholar]
  12. Arti, C.H. Iot based smart irrigation system using arduino. Int. J. Adv. Sci. Res. Eng. Trends 2021, 6, 24566-0774. [Google Scholar]
  13. Mezghani, D.; Mami, A.; Dauphin-Tanguy, G. Bond Graph Modelling and Control Enhancement of an Off-Grid Hybrid Pumping system by Frequency Optimization; John Wiley & Sons, Ltd: Hoboken, NJ, USA, 2020; pp. 1–20. [Google Scholar]
  14. Martin, S.; Giovanni, M.; Javier, S.A. Techniques D’irrigation Pour les Agriculteurs à Petite Échelle; FAO: Rome, Italy, 2014. [Google Scholar]
  15. Darouich, H.M.; Celestina, M.G.; Goncalves, J.M.; Pereira, L.S. Drip vs. surface irrigation: A comparison focussing on water saving and economic returns using multicriteria analysis applied to cotton. Research article. Byosyst. Eng. 2014, 122, 74–90. [Google Scholar] [CrossRef]
  16. Lebdi, F. Irrigation for Agricultural Transformation; Joint Research Between: African Center for Economic Transformation (ACET) and Japan International Cooperation Agency Research Institute; JICA-RI: Tokyo, Japan, 2016. [Google Scholar]
  17. Laure, D. Renewable Energy Solutions for the Mediterranean; RES4MED: Rome, Italy, 2016. [Google Scholar]
  18. Nejib, O.; Ridha, B.; Afef, C.; Habib, M.; Habi, N. Quel Mix Energitique pour la Tunisie? Republic of Tunisia, Ministry of Industry: Tunis, Tunisia, 2013; Volume 85. [Google Scholar]
  19. Hamzi, H. L’énergie solaire et les enjeux énergétiques Tunisie-europe: Vers une intégration régionale. BSGLg 2018, 70, 35–57. [Google Scholar]
  20. STEG. Available online: https://www.steg.com.tn/fr/evt/etudes_environnementales_et_sociales.html (accessed on 20 January 2021).
  21. Döring, M.; Far, S.; MarroukI, S.; Elgolli, R. Energy for the Future; Mena Select: Bonn, Germany, 2018. [Google Scholar]
  22. Mezghani, D.; Othmani, H.; Mami, A. Bond graph modeling and robust control of a photovoltaic generator that powered an induction motor pump via SEPIC converter. Int. Trans. Electr. Energ. Syst. 2018, e2746. [Google Scholar] [CrossRef]
  23. Allani, M.Y.; Tadeo, F.; Mezghani, D.; Mami, A. FPGA Implementation of a robust MPPT of a photovoltaic system using a fuzzy logic controller based on incremental and conductance algorithm. Eng. Technol. Appl. Sci. Res. 2019, 9, 4322–4328. [Google Scholar] [CrossRef]
  24. Cartailler, J.; Rocca-Poliméni, R. Le Raspberry Pi: Un Nano-Ordinateur au Service de la Science et de L’enseignement. 1. INRA, UMR1145, Ingénierie Procédés Aliments, AgroParisTech; Université Paris-Saclay: Massy, France, 2016. [Google Scholar]
  25. Richardson, M.; Wallace, S. Getting Started with Raspberry Pi; Maker Media: Sebastopol, Russia, 2013. [Google Scholar]
  26. Raspberry Pi: Measure, Record, Explore. Available online: https://leanpub.com/RPiMRE/read (accessed on 3 January 2021).
  27. BMOW. Available online: https://www.bigmessowires.com/2018/05/26/raspberry-pi-gpio-programming-in-c/ (accessed on 3 January 2021).
  28. ELSYS DESIGN. Available online: https://www.elsys-design.com/fr/prototyper-carte-electronique/ (accessed on 3 January 2021).
  29. University of Cambridge. Available online: https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/ (accessed on 4 January 2021).
  30. KUBII. Available online: https://www.framboise314.fr/scratch-raspberry-pi-composants/module-detecteur-de-lumiere-a-ldr/ (accessed on 4 January 2021).
  31. Freva.com. Available online: https://www.freva.com/fr/2019/06/12/capteur-de-lumiere-photoresistance-avec-raspberry-pi/ (accessed on 4 January 2021).
  32. SensorKit X40 Wiki. Available online: https://sensorkit.fr.joy-it.net/index.php?title=KY-018_Module_%C3%A0_photor%C3%A9sistance_LDR (accessed on 4 January 2021).
  33. Adafruit. Available online: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/ds18b20 (accessed on 4 January 2021).
  34. Adafruit. Available online: https://learn.adafruit.com/photocells/using-a-photocell (accessed on 4 January 2021).
  35. Circuit Basics. Available online: https://www.circuitbasics.com/logging-sensor-data-to-the-cloud-using-the-raspberry-pi/ (accessed on 5 January 2021).
  36. Circuit Basics. Available online: http://www.manuel-esteban.com/lire-une-sonde-dht22-avec-un-raspberry-pi/ (accessed on 5 January 2021).
  37. Adafruit. Available online: https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging (accessed on 5 January 2021).
  38. Adafruit. Available online: https://learn.adafruit.com/character-lcd-with-raspberry-pi-or-beaglebone-black/usage (accessed on 7 January 2021).
  39. Circuit Basics. Available online: https://www.circuitbasics.com/raspberry-pi-i2c-lcd-set-up-and-programming/ (accessed on 7 January 2021).
  40. OSOYOO. Available online: https://osoyoo.com/2016/12/01/use-raspberry-pi-display-temperaturehumidity-to-i2c-lcd-screen/ (accessed on 7 January 2021).
  41. Robot-maker.com. Available online: https://www.robot-maker.com/shop/blog/10_Arduino-Raspberry-Pi.html (accessed on 29 January 2021).
  42. Respberry Pi Spy—Unofficial Pi Tutorials, Guides and News. Available online: https://www.raspberrypi-spy.co.uk/2015/05/using-an-i2c-enabled-lcd-screen-with-the-raspberry-pi/ (accessed on 7 January 2021).
  43. Chaouali, H.; Othmani, H.; Mezghani, D.; Mami, A. Enhancing classic IFOC with fuzzy logic technique for speed control of a 3~Ebara Pra-50 Moto-Pump. In Proceedings of the 17th IEEE International Conference on Sciences and Techniques of Automatic Control & Computer Engineering, Sousse, Tunisia, 19–21 December 2016. [Google Scholar]
  44. Khatib, T.; Saleh, A.; Eid, S.; Salah, M. Rehabilitation of Mauritanian oasis using an optimal photovoltaic based irrigation system. Energy Convers. Manag. 2019, 199, 111984. [Google Scholar] [CrossRef]
Figure 1. Tunisian water demand repartition.
Figure 1. Tunisian water demand repartition.
Energies 14 05217 g001
Figure 2. Climate projections in Tunisia for 2050 and 2100: (a) climate projections of precipitation; (b) climate projections of air temperature.
Figure 2. Climate projections in Tunisia for 2050 and 2100: (a) climate projections of precipitation; (b) climate projections of air temperature.
Energies 14 05217 g002
Figure 3. Irrigation structures.
Figure 3. Irrigation structures.
Energies 14 05217 g003
Figure 4. Trends in irrigation development by technology.
Figure 4. Trends in irrigation development by technology.
Energies 14 05217 g004
Figure 5. Install capacity evolution according to the Tunisian solar plan.
Figure 5. Install capacity evolution according to the Tunisian solar plan.
Energies 14 05217 g005
Figure 6. Final MDCA-scoring of the selected technologies.
Figure 6. Final MDCA-scoring of the selected technologies.
Energies 14 05217 g006
Figure 7. Tunisian studied regions.
Figure 7. Tunisian studied regions.
Energies 14 05217 g007
Figure 8. Average daylight and sunshine.
Figure 8. Average daylight and sunshine.
Energies 14 05217 g008
Figure 9. High and low temperatures.
Figure 9. High and low temperatures.
Energies 14 05217 g009
Figure 10. Rainfall days.
Figure 10. Rainfall days.
Energies 14 05217 g010
Figure 11. Irrigation system proposed.
Figure 11. Irrigation system proposed.
Energies 14 05217 g011
Figure 12. Block diagram control with ANFIS.
Figure 12. Block diagram control with ANFIS.
Energies 14 05217 g012
Figure 13. Rate of daily irradiation variation in (W/m2).
Figure 13. Rate of daily irradiation variation in (W/m2).
Energies 14 05217 g013
Figure 14. Rate of daily temperature variation in (°C), flow rate variation (L/min), and frequency (Hz).
Figure 14. Rate of daily temperature variation in (°C), flow rate variation (L/min), and frequency (Hz).
Energies 14 05217 g014
Figure 15. Training (a) datasets; and (b) error with 1000 epochs.
Figure 15. Training (a) datasets; and (b) error with 1000 epochs.
Energies 14 05217 g015
Figure 16. ANFIS model structure.
Figure 16. ANFIS model structure.
Energies 14 05217 g016
Figure 17. Membership function: (a) input 1: Ta; (b) input 2: Ec; (c) input 3: Q.
Figure 17. Membership function: (a) input 1: Ta; (b) input 2: Ec; (c) input 3: Q.
Energies 14 05217 g017
Figure 18. Surface viewer window between (a) (Ta, Ec) and fs; (b) i(Q, Ta) and fs; and (c) (Ec, Q) and fs.
Figure 18. Surface viewer window between (a) (Ta, Ec) and fs; (b) i(Q, Ta) and fs; and (c) (Ec, Q) and fs.
Energies 14 05217 g018
Figure 19. Rules viewer.
Figure 19. Rules viewer.
Energies 14 05217 g019
Figure 20. Raspberry Pi board presentation.
Figure 20. Raspberry Pi board presentation.
Energies 14 05217 g020
Figure 21. Hardware prototype Fritzing.
Figure 21. Hardware prototype Fritzing.
Energies 14 05217 g021
Figure 22. Software algorithm.
Figure 22. Software algorithm.
Energies 14 05217 g022
Figure 23. Simulink model of the intelligent ANFIS controller design for the photovoltaic pumping system.
Figure 23. Simulink model of the intelligent ANFIS controller design for the photovoltaic pumping system.
Energies 14 05217 g023
Figure 24. Flow rate characteristics (L/min).
Figure 24. Flow rate characteristics (L/min).
Energies 14 05217 g024
Figure 25. (a) Irrigation smart controller prototype realization; (b) Sensors and pumping network zoomed photo.
Figure 25. (a) Irrigation smart controller prototype realization; (b) Sensors and pumping network zoomed photo.
Energies 14 05217 g025
Figure 26. (a) Temperature and irradiation visualization; (b) frequency visualization.
Figure 26. (a) Temperature and irradiation visualization; (b) frequency visualization.
Energies 14 05217 g026
Table 1. Comparative study.
Table 1. Comparative study.
Data Base InputsData Base OutputsSimulation ResultsExperimental Results
T
(°C)
Ec
(W/m2)
Q
(L/min)
fs (Hz)
Vector + Fuzzy Control
fs (Hz)
Triangular Membership Function
fs (Hz)
Gaussian Membership Function
fs (Hz)
Gaussian Membership Function
27452.103535.599935.600036.2000
27.8515.91935.636.799936.800036.2000
28.3578.12836.837.699937.966737.5000
29672.225.437.737.998037.998238.5000
29.3745.323.837.337.999838.000038.5000
29.4921.8525.63838.699538.699538.5000
29.6877.3128.438.739.300439.300638.5000
30893.227.239.340.499740.499641.0000
30.7922.726.440.541.700041.700041.0000
31.61076.472941.743.999844.000144.5000
321015.931.64445.999945.999946.0000
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bellahirich, S.; Mezghani, D.; Mami, A. Design and Implementation of an Intelligent ANFIS Controller on a Raspberry Pi Nano-Computer for Photovoltaic Pumping Intended for Drip Irrigation. Energies 2021, 14, 5217. https://doi.org/10.3390/en14175217

AMA Style

Bellahirich S, Mezghani D, Mami A. Design and Implementation of an Intelligent ANFIS Controller on a Raspberry Pi Nano-Computer for Photovoltaic Pumping Intended for Drip Irrigation. Energies. 2021; 14(17):5217. https://doi.org/10.3390/en14175217

Chicago/Turabian Style

Bellahirich, Siwar, Dhafer Mezghani, and Abdelkader Mami. 2021. "Design and Implementation of an Intelligent ANFIS Controller on a Raspberry Pi Nano-Computer for Photovoltaic Pumping Intended for Drip Irrigation" Energies 14, no. 17: 5217. https://doi.org/10.3390/en14175217

APA Style

Bellahirich, S., Mezghani, D., & Mami, A. (2021). Design and Implementation of an Intelligent ANFIS Controller on a Raspberry Pi Nano-Computer for Photovoltaic Pumping Intended for Drip Irrigation. Energies, 14(17), 5217. https://doi.org/10.3390/en14175217

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop