1. Introduction
Projections show that the global human population will reach 9.7 and 11.7 billion in 2050 and 2100, respectively [
1]. Therefore, there is great concern about the capacity of the land to meet the rising food demand. According to recent studies, food demand is expected to increase by 98% by 2050 [
2]. At the same time, increased food production will require greater inputs of water, energy, or both. Global water demand has increased substantially in the last 20 years, and it is estimated to increase by 55% by 2050. Furthermore, more than 85% of human water consumption is used for agricultural purposes [
1,
3]. However, climate change and the continuous increase in greenhouse gas emissions will affect water management due to increased variability in natural processes [
3]. Hence, it is imperative to find sustainable solutions to ensure an adequate supply of freshwater resources and significantly reduce greenhouse gas emissions. A sustainable solution for freshwater production is a reverse osmosis (RO) desalination system powered by renewable energy sources (RES) [
4,
5].
RO desalination is an energy-intensive process due to the high pressure required to overcome the osmotic pressure for producing potable water [
6]. Conventional RO desalination units are combined with energy recovery devices, drastically reducing the specific energy consumption of the RO units. Furthermore, in order to reduce the use of fossil fuels and their impact on the environment, RO desalination units can be integrated with RES technologies to find an environmentally friendly solution for the production of freshwater [
7]. In the literature, several RO desalination plants powered by RES, such as photovoltaics (PV), wind turbines, or sea waves, have been studied and proposed [
4,
5,
8]. However, the combination of RO desalination units with PV, wind turbines, or sea waves, is problematic due to the inherent uncertainty and intermittent nature of RES and because it requires large and costly energy storage devices to maintain a continuous and constant power supply to RO units. Hence, electric storage should be minimized or eliminated, if possible, while operating the RO desalination units under variable operating conditions (transient flow rate and pressure) attributed to the instantaneous renewable power available [
9,
10,
11].
Experimental studies showed that a direct connection of RO units with RE technologies could result in lowering specific energy consumption due to the partial load operation of the desalination unit [
7,
8,
9]. Variable operation of the RO unit can be succeeded with a Variable Frequency Drive (VFD), which controls the speed of the High-Pressure Pump (HPP), and it is utilized according to the needs of the power system [
12]. Hence, an energy management system is necessary to continuously regulate the operation of the desalination unit by taking into account several variables and parameters, such as the instantaneous RE power available, the water demand (freshwater flow rate), as well as the operational limits (membrane inlet pressure and quality of product water) of the desalination unit [
13]. There are several reports in the literature where desalination systems are equipped with control systems, showing excellent results in the overall management of the RO unit [
9,
13]. However, the energy management and control systems that have been used in the desalination unit are expensive and inconvenient to use and require expert staff for their installation and configuration. Indeed, the majority of these systems utilize comparatively expensive industrial equipment and programmable logic controller units (PLCs) that lack the necessary programming flexibility. In addition, their fluent cooperation with additional motor driving modules (e.g., inverters) is elementary, or their cost exceeds the limited budget allocated for a small desalination unit.
To find suitable alternatives, the proposed work investigates the feasibility of utilizing innovative, open-source, and low-cost hardware and software tools for supporting the critical low-level control functions of a typical desalination unit powered by renewable energy sources. This alternative is a cost-effective and user-friendly low-level control mechanism that allows an RO desalination unit, powered by photovoltaic (PV) systems and/or wind turbines, to operate under partial load conditions, even when the power supply from RES is not optimal. For instance, variations in wind speed or partial solar obstructions, such as cloud cover, can impact energy availability. Despite these fluctuations, the system ensures the production of fresh water at an acceptable quality level. Additionally, the control system effectively stabilizes fluctuations in membrane inlet pressure, which may arise from changes in feed water temperatures, in addition to the inherent variability of renewable energy sources. This stabilization preserves optimal membrane performance and, consequently, overall system efficiency. The tools utilized for this purpose mainly include well-documented and software-supported open-architecture microcontrollers, small actuators, and standard sensors. This equipment, combined with the preexisting one, can offer the necessary freedom to collect the critical physical parameters and fine-tune the operation of the desalination unit on a continuous basis, thus following the product water requirements. This work also describes how the basic low-level control mechanism can be connected to more advanced complementary computation and communication modules, either locally or remotely.
However, it is worth noting that the applicability of similar arrangements is not apparent. Indeed, despite the diverse benefits of modernizing industrial processes [
14], many people in this sector face barriers to making progress in this area, which is partly due to the low level of education, unawareness of the potential for improvement through Industry 4.0 adoption, and fears of high implementation costs [
15]. As outlined in this article, the need for retrofitting, i.e., adding new technology or features to older systems, has been recognized by many leading automation companies, while, at the other end of the spectrum, small customized microcontroller-based boards, although in its infancy stage, are cost-effective and contribute to the demystification and adoption of cutting-edge solutions toward Industry 4.0. In this regard, one of the main priorities of our work is to highlight the feasibility of embedding widely available microcontrollers to retrofit important real-world process control operations, such as desalination, at low cost and with satisfactory efficiency and flexibility, which could not be provided by the typical black box PLC solutions until now.
The first set of experiments indicated that the applicability of the proposed methods is possible and delivers satisfactory results as the modified system can dynamically follow the setpoints implied by the desalination process, with satisfactory accuracy in time and magnitude. The approach presented in this work uses simple principles and techniques, is customizable, and can be enriched with further inputs and functionality to better support the system hosting it.
The automatic regulation mechanism being presented will allow the desalination system to continue to work on marginal photovoltaic or wind turbine power supply by regulating it to function at lower pressure setpoint levels. Without this functionality, the system would be powered down automatically by the protection circuits of its power supply/conversion equipment. Similarly, by making the desalination system work on partial load and not at its maximum on very sunny or windy days, it will be protected from damage. For intermediate power supply conditions, using the proposed mechanism, the system will be able to accurately follow the product water quality specifications as these are translated into feed water pressure setpoint tracking actions despite temperature fluctuations and component performance degradation over time.
The rest of this paper is comprised of the following sections:
Section 2 provides a more detailed aspect of the challenges and motives behind this work and highlights the corresponding design and material specifications.
Section 3 explains the main parts of the system being upgraded.
Section 4 highlights interesting implementation step details regarding the proposed system.
Section 5 describes the necessary evaluation setup and discusses the results. Finally,
Section 6 contains concluding remarks and directions for future investigation.
2. Motives and Challenges
The system proposed in this paper can contribute to finding solutions to some of the most pressing societal challenges, such as water scarcity as well as sustainable and cheap electricity. Only three percent of the world’s water is freshwater, and 66 percent of that is found in frozen glaciers or is unavailable for use [
16]. Inadequate sanitation is also a problem for 2.4 billion people; they are exposed to diseases, such as cholera and typhoid fever, and other water-borne illnesses. In addition, the COVID-19 pandemic has highlighted the difficulty of providing billions of people with clean drinking water and sanitation facilities to prevent the spread of the virus.
As a result, water is at the core of sustainable development and is closely linked to poverty reduction and climate change. Great emphasis must be placed on water management and irrigation efficiency and ensure that clean water can be provided to all communities, especially those that are poor, marginalized, and vulnerable. Sustainable Development Goal 6 (SDG 6) on water and sanitation, adopted by the United Nations (UN) Member States at the 2015 UN Summit as part of the 2030 Agenda for Sustainable Development, provides the blueprint for ensuring the availability and sustainable management of water and sanitation for all.
Simultaneously, coal, oil, and natural gas remain the primary global energy sources, even as renewable energy has been increasing rapidly [
17]. Over 75 percent of the energy supply worldwide is derived from coal, oil, and natural gas, according to statistics on global energy sources [
18]. Meanwhile, the prices of electricity are increasing sharply annually, and recently, there was a 10 percent increase after only one year (2020 to 2021) [
19]. In addition to this, the associated taxes and levies have also been increasing.
Hence, it is imperative to find efficient methods for clean and low-cost water production of acceptable quality and quantity, ensuring a sustainable future for everyone. Desalination units running on renewable energy sources seem to offer such a solution, but they also introduce new challenges that need to be addressed.
Typically, a desalination system, capable of operating on renewable energy, is comprised of a water tank, a feed water pump, a pretreatment system, and one membrane module. As water is forced to pass through the membrane, its salinity is reduced, thus making it suitable for the tasks being set. These tasks are translated to quality and quantity requirements that may vary drastically [
13] as, for instance, different salinity levels and water amounts are acceptable for plant irrigation and for drinking by animals or humans. The efficient deployment of a desalination mechanism presupposes continuous control (i.e., measurements and adjustments) of its operation because its performance may alter for a variety of reasons, thus resulting in water quality unsuitable for the purposes being set or causing power waste. For instance, if the RO desalination system is directly connected to solar photovoltaics and/or a wind generator, sudden changes in solar irradiation and wind speed result in sudden variations in the available power for the motor of the water pump. Thus, if the pump is underperforming (i.e., underpowered), the water being produced will have higher salinity than desired. Similarly, if the pump is overperforming (i.e., overpowered), the water will be of better quality than needed, and thus the excessive and potentially valuable energy will be wasted. The performance of the membrane may also vary according to the incoming water salinity and/or temperature, while its efficiency becomes lower over time. Finally, the water pump system itself is also subjected to progressive performance degradation due to mechanical and electrical fatigue.
Unfortunately, trying to counterbalance all the abovementioned distortion factors in an automatic manner can be a challenge of high complexity and cost, beyond the potential of a small desalination unit. To reduce the cost, a simple and efficient way to align the quality of the water being produced with the necessary standards is to keep the pressure it has at a specific level before feeding it to the membrane. However, even the implementation of a matching simplistic mechanism has its own difficulties and cost barriers, especially when trying to utilize fully commercial product solutions, which are typically costly and follow the “black box” approach that leaves little freedom for in-situ customizations and adjustments by the ordinary personnel after purchase.
Thankfully, due to the rapid progress in modern electronics, microcontroller modules of satisfactory efficiency are available at a low cost. These modules are accompanied by abundant software offering programming options with wide flexibility. Companies like Arduino or Espressif provide such products for a few dollars. The growing interest in these microcontrollers by engineers and researchers for solving a wide range of simple practical problems related to the control of physical processes favors the expansion of their applicability for tackling more complex ones. The potential that these modern tools have has not yet been fully explored in the area of desalination. More specifically, the engagement of these products exhibits IoT solutions that, in most cases, provide remote inspection of the underlying plant process and/or on-off control of its main inputs/outputs [
20,
21,
22,
23]. These microcontroller products can be further exploited to implement the main control mechanism for producing freshwater of specific quality via cooperation with pre-existing and more conventional power regulation equipment.
3. Materials and Methods
3.1. Reverse Osmosis Desalination System
The seawater desalination unit, being available for experimentation and improvements as highlighted by this work, is a small-scale unit with a capacity of 150 L/h and consists of a mixing tank, a feed water pump, a pretreatment system, and one 40–40-inch spiral wound seawater Filmtec membrane module. The unit is also equipped with a hydraulic energy recovery device of the Clark pump type, which is a hydraulic piston pump and replaces the high-pressure pump in a conventional desalination unit. The system works in a closed water loop circuit to avoid continuous solution preparation. A detailed overview of the sub-systems and the components of the Sea Water Reverse Osmosis (SWRO) desalination unit is given in
Figure 1.
A polyethylene tank with a capacity of 100 L was filled with feed water, an NaCl solution which was prepared by the de-chlorinated tap water. The electrical conductivity of the feed water was adjusted to 50 mS/cm, simulating the seawater. The average feed water temperature was 18 °C.
The desalination unit was equipped with a cellulose 5-micron filter for the feed water filtration in order to increase the efficiency and the lifetime of the RO unit. It is worth mentioning that a cellulose carbon filter was used for the dichlorination of the tap water before it reached the feed water tank the first time that the solution was prepared.
The feed water motor pump assembly transferred the feed water from the mixing tank to the system and provided the positive pressure required at the inlet of the Clark pump. The feed water motor pump assembly consisted of an AC motor and a positive displacement rotary pump. The technical specifications of the motor pump assembly are shown in
Table 1.
As mentioned before, the hydraulic energy recovery device of the Clark pump replaces the high-pressure pump in a conventional desalination unit. The energy recovery device is a pure mechanical component that has the function of amplifying the pressure supplied by the feed water pump and recouping the hydraulic energy back from the membrane. More specifically, the feed water is pressurized to one of the two cylinders of the Clark pump. The high-pressure brine enters the second cylinder of the Clark pump and exchanges its hydraulic pressure; the result of these actions is the intensification of the feed water pressure to the required membrane pressure (around 50–60 bar). The technical characteristics of the Clark pump are shown in
Table 2.
Furthermore, the SWRO desalination unit consists of a spiral wound seawater Filmtec membrane element. The membrane separates the feed water stream into two output streams: permeate and brine. Both streams are driven to the water tank for continuous solution preparation. The RO membrane technical specifications are shown in
Table 3.
The desalination unit is also equipped with different sensors and transducers in order to control and manage the operational parameters, ensuring the smooth operation of the system. Hence, the desalination unit is equipped with the following transducers:
Three analog pressure transmitters (WIKA, A-10) to measure the high-pressure water pressure before and after the membrane element (membrane inlet and outlet pressure) in the range of 0–100 bar, as well as the feed water pressure in the range of 0–60 bar.
A digital flowmeter (Greisinger, FHKK—PVDF) to measure the permeate flow rate in the range of 0.03–5 L/min.
An analog flowmeter (Sika, VTH 15) to measure the brine flow rate in the range of 2–40 L/min.
Two inline conductivity sensors (Greinsinger, GLMU 200, MP) to measure the electrical conductivity of the brine water (0–200 mS/cm) and the product water (0–2000 μS/cm).
Finally, the feed water pump motor of the desalination unit was connected to a power module (frequency converter). This module is an inverter of variable frequency drive (VFD) type unit capable of driving a 3-phase electric motor by modifying the frequency and voltage characteristics of its power supply. This module serves to apply operating point changes for the desalination system by altering the speed of the feed pump and thus affecting the performance of the Clark pump. The inverter is wired between the power source and the feed water motor pump assembly. Modifications in the frequency of the feed water motor pump cause changes in pressure and flow rates at the Clark pump, which in turn affect the inlet membrane pressure. This highlights the interdependence of RO units and energy source systems as variations in the electric power supply can impact the performance of the membrane [
7,
9,
24]. The technical specifications of the frequency converter are shown in
Table 4.
3.2. Upgraded Control System Description
The typical small-scale desalination system described in
Section 3.1 constitutes the basis for the development and testing of the proposed automatic control mechanism, which is able to follow the membrane inlet pressure setpoints as defined by the desired freshwater salinity levels to produce water of the desired quality.
Figure 2 depicts the corresponding hardware upgrade setup.
In the first stage, an Arduino Uno unit [
25] was utilized as the main microcontroller for performing cycles of typical input reading, processing, corresponding output adjustment, and feedback. This microcontroller is very well supported by exemplification and libraries that facilitate its use, thus being the basis for small project deployment. The accompanying programming environment, called Arduino IDE [
26], allows for easy monitoring of the microcontroller in action via the Serial Monitor and the Serial Plotter tools.
The exploitation of the Arduino Uno, by the discussed system, presupposes its involvement in the necessary sensing and acting actions. More specifically, the latter system has water pressure sensors pre-installed to monitor its operation. These sensors act as transducers that convert water pressure into current, which is converted to voltage drop by connecting an in-series resistor of known value.
The main system contains a motor driving circuit (i.e., the VFD inverter) able to provide manually adjustable power output. The inverter module does not incorporate any desalination-specific intelligence and human intervention but is necessary for keeping the overall process close to the desired levels. Elementary assistance can be provided by a typical PLC unit for turning the system on/off for safety if mechanical stress limits are exceeded. The specific inverter allows for the selection of up to 16 different pump motor speed values via 4 digital control pins and an additional adaptation circuit or for fine-grained frequency changes (i.e., by increments of 0.01 Hz), typically using a potentiometer. The latter method is simpler and more general, allowing for a wider set of performance testing options and was thus adopted by our research approach. As the power that is feeding the water pump can be adjusted via a rotation button (potentiometer), this potentiometer is the key element for applying the automatic control functionality supported by the low-cost microcontroller.
More specifically, the Arduino Uno unit, using the membrane inlet water pressure as input, adjusts the position (i.e., the rotation angle) of an angle servomotor, whose axis is connected with the abovementioned potentiometer. Using these arrangements, the power toward the pump and thus, the water pressure, follow the rotation angle of the button (potentiometer) of the driving circuit. In this way, automatic control functionality is added to a comparatively simple and less expensive desalination system using reverse osmosis membranes.
It must be noted that the fluent operation of the upgraded system requires proper calibration of the pressure sensors and the servomotor-potentiometer mechanism. Furthermore, classic out-of-the-box proportional, integral, and derivative (PID) control techniques [
27] are combined with empirical formulas to guarantee satisfactory system behavior. Further details are given in
Section 4.
5. Experimental Results and Discussion
5.1. Experiment Setup Details
During the experiments, for a given configuration of the control system variant under testing, the target pressure (setpoint) was altered from comparatively low to comparatively high values, not necessarily in a progressive manner, while the corresponding actual inlet pressure value sequence was recorded at a specific rate. The critical control system parameters and the setpoints were initially altered via direct code modifications and the assistive potentiometer was installed on the microcontroller, and later installed remotely via the mobile application, which was properly developed utilizing the MIT App Inventor platform. As previously mentioned, the remote-control functionality facilitated the adjustment options, while core Arduino IDE tools, like the Serial Monitor and the Serial Plotter components, provided fast, easy, and detailed inspection of the system dynamics. For these tools to work, the Arduino microcontroller had to be connected to the laptop computer, and later, to the Raspberry Pi unit via a USB connection. The Serial Monitor component can visualize both target and actual inlet water pressure quantities, provided that a pair of such values (separated by space) is written to the serial interface of the Arduino Uno toward the USB port of the computer. The selection of these tools is also justified by the educational origins of this research, which favors the use of simple, user-friendly, and well-documented systems, with reusability potential. The engagement of ESP8266 and Raspberry Pi boards, as explained in
Section 4.5, further facilitates this process.
5.2. System Dynamic Performance
As mentioned previously, in an RO desalination system that runs on solar or wind energy, drastic changes in weather conditions demand changes to the product water salinity requirements that are often translated to drastic alterations of the inlet pressure target values. The time that the desalination system spends away from its setpoints is translated to water quality that is lower than expected (typically, for pressure values lower than the target ones) or water of better quality than necessary (typically, for pressure values higher than the target ones), resulting in a simultaneous waste of electric energy. Consequently, the off-target time is directly related to water quality deterioration or energy waste. Furthermore, reducing the maximum overshoot and oscillations in system responses is crucial to the desalination unit as it ensures equipment is not unduly stressed and that its lifespan is not shortened. In automatic control terms, elongated periods of off-target operation result in windup problems for the PID controller, while reducing too much the gains signifies a very slow response.
Experimentation with PID values selection indicated that fine-tuning the controller is not achievable by relying solely on classical (e.g., Ziegler-Nichols) methods, for a variety of reasons. First, the common self-oscillation method involves aggressive gain and overshoot and thus, it could cause permanent damage to the parts of the desalination plant, with the RO membrane being the most sensitive. In addition, the step response method, when applied to the system, provided gain values that were rather unsuitable, especially for the proportional term Kp. Indeed, due to the interconnection of the feed pump with the Clark pump unit, the latter inserted strong nonlinearities into the system as it generated sudden fluctuations (e.g., drops during the pressure increase stage) that caused the PID algorithm regulating the power input of the former to overreact.
In this regard, seeking better solutions, a series of experiments were performed to find a good combination of PID parameters offering fast responses, low-amplitude fluctuations, and comparatively short settling times. During these experiments, for the given desalination system, the target pressure (setpoint) level varied between 20 bar and 39 bar while the response of the system (actual inlet pressure) was recorded, typically at intervals of one second. To test a new control logic variant, the Kp, Ki, and Kd gain parameters had to be altered by the user. This empirical approach complemented the difficulties of finding a straightforward regulation solution otherwise. In conclusion, the gain values utilized by the controller had to be considerably smaller than the ones suggested by the step response method (i.e., by at least two or three times). The unwanted windup phenomenon was also reduced that way. In line with the hybrid method of
Section 4.4.2, to counterbalance the side effects of the slower system response, empirically precalculated values were superposed on the output of the controller block logic (as expressed in by angle values), accelerating the pressure setpoint tracking process by reducing the corresponding rise and settling times and thus, the intervals of out-of-specification freshwater production.
The utilization of coefficients (weights) applied to both the PID and the predefined/precalculated part of the final output provided further optimization options. It must be noted that the modification of the output limits of the PID, via the method offered by the Arduino PID library [
38] was also explored. Indicative results reflecting progressive improvements are shown in
Figure 7 and
Figure 8. The red line corresponds to the desired target pressure value as implied by the user. The blue line corresponds to the actual inlet pressure generated by the pump, in response to the target directions, as measured by the sensors connected with the Arduino. In all cases, the horizontal axis refers to the time in seconds, while the vertical axis refers to the inlet pressure in bar.
As inferred through inspection and comparison between the graphs in
Figure 7 and
Figure 8, the response of the control system utilizing customized PID methods must find a good compromise between slow response with long-lasting fluctuations due to integral error accumulations and fast response with agile oscillations that potentially fail to follow the target pressure level.
Figure 7 depicts dynamic response traces for the desalination system utilizing coefficient parameters close to the pure PID implementation. Windup and overshoot effects were apparent. As mentioned previously, PID settings had to be quite conservative and thus, a parameter selection close to 3.0, 1.0, and 0.2, for the Kp, Ki, and Kd quantities, respectively, delivered satisfactory results.
The pressure setpoint tracking process was further facilitated by increasing the contribution of the predefined values to the final control algorithm output (i.e., preferably these values were superposed to the PID output after multiplication by a coefficient value close to 0.9). The corresponding performance improvements are depicted by the graphs in
Figure 8. The overshoot and the windup effects changed from being significant (i.e., of 20–25%) to almost negligible, and the rise and settling times were drastically shortened; the fall time was also shortened (at least by a factor of three). The presence of the RO membrane introduced strong nonlinearities, indicated by peaks in the graphs, while another interesting observation for all the algorithmic variants being tested was that target pressure values close to the lower limit of the scale (i.e., 20 bar) were more difficult to be reached without small oscillations.
These results demonstrate the feasibility of accurately regulating the behavior of a real system via the embodiment of general-purpose, widely available, well-documented, and low-cost modules based on modern microcontrollers. Indeed, the desalination plant operation point (as it is translated into target pressure setpoint values tracking) can be achieved by executing customized PID logic on the latter microcontroller. The physical quantities acting as feedback for the regulating mechanism can be easily intercepted by the inputs (either analog or digital) of the microcontroller, which, in turn, provides the necessary output to the power converter module driving the feed water pump motor.
The benefits against a blind on/off control operation, typically provided by low-end PLCs, are apparent. Indeed, the desalination system could not operate on partial load conditions matching the (also partial) power availability by RES (e.g., due to variations in wind speed or partial solar obstructions, such as cloud cover) or keep pace with specific product water quality requirements, e.g., due to equipment performance deterioration over time or feed water temperature alteration. Furthermore, on/off actions generate excessive stress on the electromechanical components of the system, reducing their efficiency. The utilization of precalculated values for complementing the output of the pure PID controller block further accelerates the pressure setpoint tracking process, and thus the intervals of out-of-specification water production are further reduced.
Further elaboration is necessary to collect historical data on power consumption and product water characteristics. Similarly, additional salinity, temperature, pressure, and angle measurements are required to fill all the precomputed value tables mentioned in
Section 4. The exact profit, in terms of component performance and longevity, product water quality and quantity, and energy economy, constitutes a composite optimization problem that cannot be solved by relying solely on the fidelity of the low-level control mechanism presented in this article. The pattern of the weather conditions alteration, the water demand profile, or the size of the tanks accumulating freshwater are amongst the factors that affect the overall benefits. There is ongoing research to cover some of these gaps [
24].
5.3. Financial Cost Issues
The selection of components involved in this research favored cost-effective, easy-to-find, well-documented, and innovative modules. In this regard, for the desalination system, the microcontroller that was utilized in the experiments cost around 10€. The angle servo was 8€, the mechanical arrangements for fixing it to the VFD unit were 3€, and the additional potentiometer and the adaptation resistor for the sensors were 2€. The power supply was 5€, and the remote Wi-Fi radio via the ESP8266 chip-equipped unit was 10€. Thus, the overall cost of upgrading and testing the equipment for the RO desalination unit did not exceed the 40€ limit. The addition of an assistive Raspberry Pi unit and a microSD card would cost an additional 45€ and 5€, respectively.
The market price for a main PLC unit, which is utilized in the industry for the control of a desalination unit, starts at 250€. In addition to this cost, an extra 200 € should be accounted for the extension module required for the communication of two analog transducers with the main unit. Apart from the fact that the cost of a such control system is high, the user should also consider the cost of the desalination system itself, which is also expensive, with a cost of 10,000€, including, pumps, membrane, filters, hydraulic components, and sensors. Therefore, the retrofitting control arrangements utilized in this study have been shown to be a cost-effective alternative solution compared to industrial PLC units, which follow the “black-box” philosophy and at the same time, require expert staff for their installation and configuration.
5.4. Further Discussion
The desalination process that utilizes renewable energy sources is a very promising technology but is also energy-intensive and subjected to several factors resulting in undesirable fluctuations on quality/quantity of product water, and/or energy waste. Consequently, the efficient control of the desalination process is of vital importance for its successful adoption. To this end, the system presented in this paper can contribute to achieving fine-tuned control solutions, utilizing widely available and low-cost electronic components and open-source software, providing encouraging guidelines for retrofitting a wide set of real process control cases.
The proposed control logic provides a good balance between performing on-the-fly calculations and utilizing precalculated values stored in the memory. Numerical model techniques could work quite efficiently if based on little but properly chosen data. The low-level control functions presented herein can cooperate with high-level functions (e.g., potentially exploiting weather platform data, product water demand forecast data, optimization, and machine learning techniques) in order to optimize the operation of a renewable-energy-powered desalination system. The Raspberry Pi unit mentioned in
Section 4.5 would be sufficient to support these high-level tasks.
The experiences gained with the desalination system modification indicate higher profits due to the minimization of human intervention with the control process at almost negligible additional cost compared to the overall cost of a small desalination plant in rural areas. There are also further cost savings as the electromechanical stress of the participating equipment is reduced and their life is elongated due to the smooth operation policy being followed, and well-maintained RO membranes can result in increased freshwater production efficiency.
On the other hand, several issues remain regarding a more mature implementation version. For instance, further elaboration is necessary with commercial power inverter products allowing for more efficient use of the digital control signals they provide, thus increasing reliability and scalability. Alternatively, the utilization of digital-to-analog conversion circuits should be considered, replacing the angle servo and potentiometer pair for better longevity. In addition, more algorithmic control variants should be tested, and more flexible powering/load equipment must likely be adopted to create and study a wider set of realistic renewable energy supply variation scenarios. The control system of a direct connection RO desalination unit, with PVs and/or wind turbines, installed in a remote coastal region, could automatically collect data for power production and feed water temperature, thereby optimally adapting its operational parameters, like pump motor speed, membrane inlet pressure, and system feed flow.
It is important to further assess the behavior of the system to various exogenous disturbances that might occur due to the variable nature of the renewable energy sources supplying the small desalination unit. For instance, variations in wind speed or partial solar obstructions, such as cloud cover, can impact energy availability. These disturbances can be studied in the real environment or via emulation scenarios involving special artificial load equipment, partially consuming the power available for the pump. If the changes in power supply due to weather conditions alterations are too big to be counterbalanced by the regulating mechanism, instead of shutting down the system, it is preferable to be able to change the current salinity requirements and to keep pace with the requirements in a rapid and accurate manner, thus continuing to produce water of known quality. To acquire additional benefits, the fast and accurate pressure setpoint tracking function for the RO membrane supporting this functionality can be combined with a logic that is able to redirect product water output to different tanks according to the diverse purposes it is destined for, i.e., potable water for humans and animals or plant irrigation. Thus, another challenging improvement is the engagement of a servo motor (or an electric valve system) redirecting the output of the main desalination system to different tanks according to the acceptable water quality level being produced.