원시데이터 수집 시스템
선정목록으로

Design and Implementation of an Electrical Characterization System for Membrane Capacitive Deionization Units for the Water Treatment

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기) (6) PEM(고분자전해질막)(7) MEA(막전극접합체)

기본 정보

저자
  1. FEDERICO LEON ZERPA — Departamento de Ingeniería de Procesos (Process Engineering Department), Campus de Tafira, Universidad de las Palmas de Gran Canaria (University of Las Palmas de Gran Canaria), 35017 Las Palmas de Gran Canaria, Spain
  2. Alejandro Ramos Martín — Departamento de Ingeniería de Procesos (Process Engineering Department), Campus de Tafira, Universidad de las Palmas de Gran Canaria (University of Las Palmas de Gran Canaria), 35017 Las Palmas de Gran Canaria, Spain
  3. David González-Santana — Departamento de Ingeniería de Procesos (Process Engineering Department), Campus de Tafira, Universidad de las Palmas de Gran Canaria (University of Las Palmas de Gran Canaria), 35017 Las Palmas de Gran Canaria, Spain
DOI
10.3390/membranes11100773
저널
Membranes
발행년도
2021
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/membranes11100773
토픽
Fuel Cells and Related Materials
OpenAlex ID
W3206143864

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체)
R&D 측면
물성·성능 평가
확신도
0.80
근거 용어
Membrane Capacitive Deionization, MCDI, electrochemical impedance spectroscopy, ion exchange membrane, water treatment
판단 근거
이 논문은 수처리용 막 정전용량 탈염(MCDI) 장치의 전기적 특성 분석 시스템을 설계하고 평가하는 내용을 다루고 있습니다. 이는 코오롱인더스트리의 수소연료전지 분야 핵심 기술인 분리막(Membrane) 및 MEA의 이온 전도, 전기화학적 특성 분석 방법론과 기술적 계열이 매우 유사합니다.
R&D 활용 포인트
MCDI의 이온 교환 및 전기화학적 거동 분석 방법론(EIS, CV 등)을 연료전지용 고분자 전해질막(PEM) 및 MEA의 내구성 및 성능 평가 프로세스에 응용하여 분석 정밀도를 높이는 데 참고할 수 있습니다.
평가 입력
섹션 본문 49,771자 중 30,032자 발췌

초록

The desalination of seawater is one of the most established techniques in the world. In the middle of the 20th century this was achieved using water evaporation systems, later with reverse osmosis membranes and nowadays with the possibility of capacitive deionization membranes. Capacitive deionization and membrane capacitive deionization are an emerging technology that make it possible to obtain drinking water with an efficiency of 95%. This technology is in the development stage and consists of porous activated carbon electrodes, which have great potential for saving energy in the water desalination process and can be used for desalination using an innovative technology called capacitive deionization (CDI), or membrane capacitive deionization (MCDI) if an anion and cation membrane exchange is used. In this paper is proposed and designed a characterization system prototype for CDI and MCDI that can operate with constant current charging and discharging (galvanostatic method). Adequate precision has been achieved, as can be seen in the results obtained. These results were obtained from the performance of typical characterization tests with electrochemical double layer capacitors (EDLC), since they are electrochemical devices that behave similarly to MCDI, from the point of view of the electrical variables of the processes that take place in MCDI. A philosophy of using free software with open-source code has been followed, with software such as the Arduino and Processing programming editors (IDE), as well as the Arduino Nano board (ATmega328), the analogical-digital converter (ADC1115) and the digital-analogical converter (MCP4725). Moreover, a low-cost system has been developed. A robust and versatile system has been designed for water treatment, and a flexible system has been obtained for the specifications established, as it is shown in the results section.

본문 51,291자

본문 펼치기
Introduction The desalination of seawater is one of the most established techniques in the world. In the middle of the 20th century, this was achieved using water evaporation systems and later with reverse osmosis membranes. However, the resulting high energy consumption, generally through fossil fuels, has been an important issue to solve [1][2][3][4]. Introduction Modern times have introduced the possibility to transition from the use of reverse osmosis to capacitive deionization (CDI), or membrane capacitive deionization when an anion and cation membrane exchange is used, which is a novel system still under development that, in addition to removing salt from the water, allows for the storage of energy, similar to other electrochemical devices (batteries, supercapacitors, etc.) [5][6][7][8]. Introduction Currently, some media outlets are claiming that the current hydrological year is the driest hydrological year of the decade. In the last 12 months, the Spanish water reserve has decreased by a volume of water equivalent to that of the Ebro Basin (7511 hm 3 of capacity). These phenomena are aggravated by the evident signs of climate change and, in countries such as Spain, by the advance of desertification processes in large areas, causing water to become so much of an essential resource that it has become as precious a commodity as oil [4]. Introduction Knowing that 97% of the planet's water is salty, the desalination of brackish or marine water (or seawater desalination) is one of the possible alternatives to mitigate the problem. However, current desalination technologies, such as reverse osmosis and distillation present a serious problem, which is the high energy consumption required to produce drinkable water, as well as the problem of boron removal. Introduction Capacitive deionization (CDI) is an emerging technology that makes it possible to obtain drinking water with an efficiency of 95% [5][6][7][8][9][10]. This technology is in the development stage and consists of porous activated carbon electrodes, which have great potential for saving energy in the water desalination process and can be used for desalination using an innovative technology called capacitive deionization (CDI) and membrane capacitive deionization (MCDI). In CDI and MCDI, salt ions are removed from brackish water by applying a voltage difference between two porous electrodes in which the ions are temporarily immobilized, and dissolved salts are removed from different types of water [6][7][8][9]. Introduction The design and implementation of a characterization system for capacitive deionization units for water treatment was performed using types of water ranging from supply water to water from industrial processes. Capacitive deionization has emerged over the years as a robust, energy-efficient solution for water treatment [10][11][12][13][14][15][16][17][18]. It is an effective technology for the desalination of water with low to moderate salt content [5]. Introduction The optimal operating regime is obtained for water with a salt concentration of slightly less than 10 g/L [18]. Since the salt ions are minority compounds in the water, they can be removed from the mixture with this technology. In contrast, other methods extract the water phase from the salt solution. This technology also allows for the possibility of integrating renewable energy sources and energy storage [6][7][8][9][10]. Introduction The main objective of this study was the design and implementation of an electrical characterization system for capacitive deionization units in water treatment. The intention was also to make use of this system to obtain results that will make it possible to analyze the impact of this technique on different CDI and MCDI elements. The electrical characterization system of CDI and MCDI has been implemented before [11][12][13]. In more detail, the objectives to be achieved are the following: Introduction To study a control system with a microcontroller (ATmega328 MICROCHIP) that will allow interaction, control, conditioning of different tests and data collection with the medium. Introduction For future implementations, to study the variation of the concentration as a result of the influence of injecting energy into the system, being influenced by the pH of the solution, temperature, conductivity, etc. Introduction Analyze by numerical methods the variables involved in the system, Develop a system capable of testing different situations that verify the tests described in similar works of the field. Introduction Establish a laboratory-scale electrochemical evaluation methodology for the electrical characterization of CDI and MCDI. Introduction In addition to the tests, the results obtained will be used to determine improvements in active materials (activated carbon, carbon fibers, carbon aerogels, etc.) and the current collectors that make up the electrodes. Introduction The set of results generated will serve as didactic material to illustrate the influence of the effects studied. This material will be useful for future students and teachers of degrees and masters programs of different universities thanks to the research and improvements on the CDI and MCDI units. Materials and Methods Compared to the classical working modes of the 20th century, there have been several innovations and new technologies, such as ion exchange in the membrane (see Figure 1) [14][15][16][17][18], and operational optimization in modes such as "stop-flow" during ion exchange [19], salt ratio upon voltage reversal [16], current constant during operation [19], energy recovered for desalination in relation to cycling [20,21], flow through electrostatic where water is directly faced through the electrostatic [22,23] and flow electrodes based on suspended carbon [24]. Materials and Methods Membranes 2021, 11, x FOR PEER REVIEW 3 of 52 Materials and Methods Compared to the classical working modes of the 20th century, there have been several innovations and new technologies, such as ion exchange in the membrane (see Figure 1) [14][15][16][17][18], and operational optimization in modes such as "stop-flow" during ion exchange [19], salt ratio upon voltage reversal [16], current constant during operation [19], energy recovered for desalination in relation to cycling [20,21], flow through electrostatic where water is directly faced through the electrostatic [22,23] and flow electrodes based on suspended carbon [24]. Regarding the historical evolution of CDI and MCDI, a stage was defined before 1995, when aerogel carbon was developed for CCD. The peons who worked with the desalination concept called it "electrochemical water demineralization" and its originators were Blair, Murphy and their colleagues, in the 1960s [25][26][27][28]. The basic standardized methods for supercapacitors have been used to study the behavior of CDI and MCDI [29][30][31][32][33]. These methods are constant current charging and discharging, constant power cycling, cyclic voltammetry and electrochemical impedance spectrometry. These procedures, and the self-charging and self-discharging phenomena, will be classified into three typologies: frequency, dynamic and energy characterization. Frequency Characterization The electrochemical impedance spectroscopy (EIS) method is used to characterize the electrochemical behavior of energy storage devices. Frequency Characterization This method has gained popularity in the last decade, especially in the determination of the capacity in fuel cells and batteries, due to the development of the electric car [34,35]. Frequency Characterization The purpose of the EIS is to study the system response to the application of a small amplitude periodic alternating current (AC) signal. These measurements are carried out at different frequencies, which is why it is in the frequency characterization group. However, this technique is very sensitive, and it is essential to perform it as accurately as possible. Therefore, it is necessary to use several characterization techniques, because there is no single technique that gives all the expected results. Complementary techniques are therefore used. Regarding the historical evolution of CDI and MCDI, a stage was defined before 1995, when aerogel carbon was developed for CCD. The peons who worked with the desalination concept called it "electrochemical water demineralization" and its originators were Blair, Murphy and their colleagues, in the 1960s [25][26][27][28]. The basic standardized methods for supercapacitors have been used to study the behavior of CDI and MCDI [29][30][31][32][33]. These methods are constant current charging and discharging, constant power cycling, cyclic voltammetry and electrochemical impedance spectrometry. These procedures, and the self-charging and self-discharging phenomena, will be classified into three typologies: frequency, dynamic and energy characterization. Frequency Characterization The electrochemical impedance spectroscopy (EIS) method is used to characterize the electrochemical behavior of energy storage devices. Frequency Characterization This method has gained popularity in the last decade, especially in the determination of the capacity in fuel cells and batteries, due to the development of the electric car [34,35]. Frequency Characterization The purpose of the EIS is to study the system response to the application of a small amplitude periodic alternating current (AC) signal. These measurements are carried out at different frequencies, which is why it is in the frequency characterization group. However, this technique is very sensitive, and it is essential to perform it as accurately as possible. Therefore, it is necessary to use several characterization techniques, because there is no single technique that gives all the expected results. Complementary techniques are therefore used. Frequency Characterization On the other hand, there are limitations at high frequencies with CDI, due to the low impedance that the CDI cell can present. One of the factors conditioning the impedance of CDI is dissolution, while others are caused by coupling effects between the power supply Membranes 2021, 11, 773 4 of 50 and the media system cables [36]. These adversities are limited to low frequencies. In practice, twisted cables are used for the measurement cells to reduce these types of errors. Dynamic Characterization The constant current charge/discharge method is the simplest method to apply with direct current (DC). It analyzes the response of CDI when a constant charge/discharge current is applied to it. Despite being a basic method, it is widely used in the characterization of capacitors. Its application is documented with standardizations and will be the main object of the characterization of CDI in this work, being the main endorsement of the designed device [37][38][39][40]. The self-charging or self-discharging of CDI has its origin in two main causes. First, when CDI is charged or discharged, there is a diffusion of ions from the solution to the activated carbon electrode, or vice versa. The diffusion immediately after charging or discharging causes a self-discharge or self-charge, respectively. Secondly, these phenomena exist due to leakage current. Self-discharge by diffusion occurs predominantly in the initial stage. However, self-discharge by leakage is significant after self-discharge begins [41]. Self-discharge originates during dynamic operation, e.g., the dynamic operating cycle of electric vehicles [42], whose genome is through the equivalent impedance method, whose phase element is constant. Dynamic Characterization On the other hand, we highlight cyclic voltammetry (C.V.), which has achieved the distinction of a procedure used to evaluate the performance of energy storage systems, as well as to determine the life cycle, the effects of internal resistance and the dissipation losses [43]. The method consists of applying a linear voltage ramp and storing the current response in the capacitors. This current is directly associated with the capacity of the component achieving a versatile procedure [44][45][46][47][48][49]. Dynamic Characterization Constant power cycling is known as "cycle life testing" (C.L.T.); it is a methodology for calculating the electrochemical device parameter based on periodic charging and discharging, separated by rest time intervals [50][51][52][53]. Dynamic Characterization The procedure consists of charging the device at a given power until a voltage is achieved [54][55][56][57]. Once this point is reached, the polarity of the current is reversed by applying a given value, and the current is resumed by reversing the current, so that the charging cycle is continued up to a higher voltage [45,46]. This is a research study in the industrial field and several milestones have been previously established, which are as follows: 1. A device capable of characterizing capacitive deionization (CDI) and membrane capacitive deionization (MCDI) for different tests, shown in Figure 2, in such a way that the main characteristics of capacitive deionization can be obtained, such as equivalent series resistance, capacitance, etc. 2. A system capable of collecting the test parameters and configuring it through a graphical user interface (GUI). 3. A procedure capable of characterizing the CDI and MCDI for stationary flows. 4. The results obtained will be studied in future research lines for CDI and MCDI technology. Figure 2 shows the scheme of the characterization system prototype for capacitive deionization (CSP-CDI), and the interrelation of components. These components that make up this diagram define the fundamental structure of the system. It is briefly explained below: 1. Control and data acquisition system (microcontroller ATmega328): this part of the system can store data and control the different parameters of the CSP-CDI. This part of the system can analyze the data in real time to actuate the power system. The microcontroller ATmega328 model (Atmel, Beijing, China) is implemented in the platform Arduino Nano (Arduino, Beijing, China). This microcontroller is responsible for directly controlling the galvanostatic charging process, so as to capture the data and send them to a PC for saving them (Appendix A shows the Arduino source code). 2. 1. Power system (OPA549): A power operational amplifier OPA549 (Texas Instruments). This operational amplifier can provide a nominal current of 8A and also has a special input (ilim) for limiting the output current of the amplifier. This is an important feature for implementing galvanostatic charge or discharge (by controlling the current). This operational amplifier is responsible for sourcing the system, in order to charge and discharge the CDI cell or other similar electrochemical devices (batteries, electrochemical double layer capacitors, etc.). 3. ADS1015: An analogical-digital conversion stage based on the precision converter ADS1015 (Texas Instruments, Shanghai, China). This stage has two differential analog inputs for measuring: the charging or discharging current and the voltage of CDI cell. Current i(t) is measured from the voltage of a resistor Rm = 0.1 Ω, which is arranged between the output of the operational amplifier and CDI cell and the CDI cell voltage v(t) directly. The circuit ADS1015 has a 12-Bit resolution, which sets a resolution of 3 mV for the voltage measuring and 30 mA for the current measuring. 4. 3. MCP4725: Two digital-analogical conversion stages based on MCP4725 (MICROCHIP, Beijing, China) with a resolution of 12 Bit. These stages are used to control the charging/discharging processes of EDLC, for setting the voltage and current intensity references. 5. A PC: that is responsible for controlling and configuring the microcontroller for conducting the tests and storage of data obtained from the measurements. This is achieved through a script made in JavaScript language under Processing IDE (Processing Foundation). For the different tests, data were sent to the PC from the microcontroller (ATmega328), where they were saved by means of the use of Processing tool. At the Appendix B is showed the Processing source code, and Figure 3 displays the control interface achieved with Processing, for being used at the PC. 6. 5. CDI cell: this is the object of study of this paper. Its correct operation is essential to characterize it. Its operating range has been designed to satisfy the needs required in the programmed tests, which have carried on with different EDLCs (electrochemical double layer capacitors) for commissioning and evaluation. 5. Membranes 2021, 11, x FOR PEER REVIEW 5 of 52 Figure 2. Scheme of the characterization system prototype for capacitive deionization (CSP-CDI). Figure 2 shows the scheme of the characterization system prototype for capacitive deionization (CSP-CDI), and the interrelation of components. These components that make up this diagram define the fundamental structure of the system. It is briefly explained below: (Processing Foundation). For the different tests, data were sent to the PC from the microcontroller (ATmega328), where they were saved by means of the use of Processing tool. At the Appendix B is showed the Processing source code, and Figure 3 displays the control interface achieved with Processing, for being used at the PC. 6. CDI cell: this is the object of study of this paper. Its correct operation is essential to characterize it. Its operating range has been designed to satisfy the needs required in the programmed tests, which have carried on with different EDLCs (electrochemical double layer capacitors) for commissioning and evaluation. Results The target prototype developed for characterization testing is capable of charging and discharging at constant voltage and current (galvanostatic mode). In addition, the power supply provides the load with a constant current at 95% efficiency and establishes the duration for which the nominal voltage is maintained. The device is capable of measuring current and voltage with a maximum error tolerance of ± 1%. Moreover, voltmeter measurements have a resolution of 0.125 mV for voltage measurement. The input impedance of these voltmeters must be sufficiently high for measurement errors to be negligible. To obtain the data, an analog-digital converter (ADC1115) was used, which has a series of filters at the input and output of the converter, resulting in precise, noise-free data. Results The designed device must be able to perform constant voltage and current charging and discharging, as well as simultaneous voltage and current measurements at the terminals of the CDI cell. Results The power supply (through the OPA549) must be able to provide the constant load current to the CDI cell with 95% efficiency and, in addition, set the duration of voltage maintenance. Results The developed device must satisfy the requirement of an error tolerance of ± 0.01% for voltage measurement and an error tolerance of ± 0.1% for current measurement. Proposed Test Results This section provides the details of the tests carried out and the results obtained for the characterization of the CCD system. Figure 3. Processing PC control interface and data logger. Results The target prototype developed for characterization testing is capable of charging and discharging at constant voltage and current (galvanostatic mode). In addition, the power supply provides the load with a constant current at 95% efficiency and establishes the duration for which the nominal voltage is maintained. The device is capable of measuring current and voltage with a maximum error tolerance of ±1%. Moreover, voltmeter measurements have a resolution of 0.125 mV for voltage measurement. The input impedance of these voltmeters must be sufficiently high for measurement errors to be negligible. To obtain the data, an analog-digital converter (ADC1115) was used, which has a series of filters at the input and output of the converter, resulting in precise, noise-free data. Results The designed device must be able to perform constant voltage and current charging and discharging, as well as simultaneous voltage and current measurements at the terminals of the CDI cell. Results The power supply (through the OPA549) must be able to provide the constant load current to the CDI cell with 95% efficiency and, in addition, set the duration of voltage maintenance. Results The developed device must satisfy the requirement of an error tolerance of ± 0.01% for voltage measurement and an error tolerance of ±0.1% for current measurement. Proposed Test Results This section provides the details of the tests carried out and the results obtained for the characterization of the CCD system. Calibration of the Equipment To provide veracity and reliability to the results obtained during the tests, the CSP-CDI was first subjected to a series of calibration tests. The procedure that followed consisted in the fact that, knowing an input setpoint, the system returned a series of expected results since the output data were known, since a 1 Ω resistor was used instead of a CDI cell. Calibration of the Digital-to-Analog Converter DAC (MCP4725) The first test of the CSP-CDI was the calibration of the equipment by setting an input setpoint current to measure the voltage at the terminals of the 1 Ω resistor (see the results in Table 1). With this experience, the calibration line of the equipment is determined, obtaining the expression of the digital-analogical converter's transformation of accounts. As can be seen in the previous Figure 4, the slope of the straight line corresponds to the resistance of 1 Ω, and it can also be seen that the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized with the Equation (1): y = 1.0588 X + 3.9833 (1) where: X is the rated setpoint current in mA (milli-Amperes). Y is the current at the load mA (milli-Amperes). Calibration of the Digital-to-Analog Converter DAC (MCP4725) Finally, knowing the current, the voltage is trivial because the resistance is 1 Ω. This experiment is based on connecting a 1 Ω (Ohms) resistor to the load and establishing an input setpoint current to measure the voltage in the measuring cell. With this, we know the current and current of the CSP-CDI (see . With this experience, the calibration line of the equipment is determined, obtaining the expression of the transformation of accounts of the analogical-digital converter (table 2) this, we know the current and current of the CSP-CDI (see . With this experience, the calibration line of the equipment is determined, obtaining the expression of the transformation of accounts of the analogical-digital converter ( Table 2). As can be seen in the previous figures, the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized, with Equation (2) being "I" of the measured ADC counts, while Equation (3) is the sensor current, Equation (4) is "V" of the measured ADC counts, and Equation (5) As can be seen in the previous figures, the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized, with Equation (2) being "I" of the measured ADC counts, while Equation (3) is the sensor current, Equation (4) is "V" of the measured ADC counts, and Equation (5) is the sensor voltage, as follows: y = 141704 X + 20340 (2) where: X is the rated set point current in A (Amps). Y are the counts corresponding to the current of the ADS1115. y = 17.691 X + 2.5387 (3) where: X is the rated setpoint current in A (Amperes). Calibration of the Digital-to-Analog Converter DAC (MCP4725) Y is the measured current in V (Volts) at the sensor. Calibration of the Digital-to-Analog Converter DAC (MCP4725) where: X is the rated setpoint current in A (Amperes). Y are the counts corresponding to the voltage of the ADS1115. y = −1.1824 X + 0.6963 (5) where: X is the rated setpoint current in A (Amperes). Y is the measured voltage in V (Volts) at the sensor. Charging and Self-Discharge Tests at an Input Set Point This section specifies the tests to which the equipment is subjected for its validation, where the degree of response from the equipment to an input setpoint will be determined, characterizing its behavior through the supercapacitors and the standardized tests. Charging and Self-Discharge Tests at an Input Set Point Three samples were taken in each test to avoid uncertainty and mean error. Furthermore, the data obtained in the tests are representative of the CSP-CDI. Charging and Self-Discharge Tests at an Input Set Point The first characterization test performed was the charging and self-discharging of a 1 F capacity supercapacitor with a setpoint voltage of 2 V and a setpoint current of 0.1 A. The data generated were stored in a database. The data generated have been saved in a plain text file with ".txt" extension for further processing. Charging and Self-Discharge Tests at an Input Set Point A script was created with Matlab software for data management on the screen. In this way, a detailed analysis of each test carried out is carried out. The result of this first test can be seen in Figure 9. Figures 10-13 show that the test was carried out satisfactorily. Although, there is a small variation of 0.01 A in the current. This was due to an equipment calibration problem, hence the importance of having the CSP-CDI properly calibrated. Charging and Self-Discharge Tests at an Input Set Point The data generated were stored in a database. The data generated have been saved in a plain text file with ".txt" extension for further processing. Charging and Self-Discharge Tests at an Input Set Point A script was created with Matlab software for data management on the screen. In this way, a detailed analysis of each test carried out is carried out. The result of this first test can be seen in Figure 9. Figure 9 Charging and self-discharge test at Vc_max = 2 V and Ic = 0.1 A. show that the test was carried out satisfactorily. Although, there is a small variation of 0.01 A in the current. This was due to an equipment calibration problem, hence the importance of having the CSP-CDI properly calibrated. The following tests were at the same maximum set point voltage, but at the set point current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show the results of the tests per screen. The following tests were at the same maximum set point voltage, but at the set p current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show results of the tests per screen. Figure 11. Load and self-discharge test at Vc_max = 2 V and Ic = 0.05 A. Figure 11. Load and self-discharge test at Vc_max = 2 V and Ic = 0.05 A. On the other hand, the system was validated with another supercapacitor, with a capacity of 650 F at another maximum voltage and setpoint current. The test results can be seen in the following figure. The following tests were at the same maximum set point voltage, but at the set point current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show the results of the tests per screen. Figure 9 On the other hand, the system was validated with another supercapacitor, with a capacity of 650 F at another maximum voltage and setpoint current. The test results can be seen in the following figure. Figure 9 Firstly, as can be seen in Figure 14, the test was carried out at the set voltage of 0.4 V and set current of 0.1 A. This test lasted 1 h. It should be noted that the results are as expected for a supercapacitor with these characteristics, the reason being that the setpoint current is very small and the capacity of the supercapacitor is too large. Figure 9 On the other hand, quality results have been obtained without the adverse effects of noise. This was possible because the design of the CSP-CDI foresaw the need to have a noise-free reading of the data when characterizing. For this reason, the use of the analogicalto-digital converter (ADS1115) is fundamental to the system. This converter has a series of input and output filters that result in accurate and noise-free data. Figure 9 Finally, the self-discharge of CDI for 1 F, 100 F and 150 F supercapacitors has been analyzed and characterized (Figures 11-14). The results shown are satisfactory and, with this, the characterization system is again validated. Figure 9 As can be seen in Figures 15 and 16, there are anomalies at the beginning of the charge and self-discharge. It has been deduced from the results obtained that an equivalent series resistance coexists due to the poor connection of the supercapacitor with the system terminals, resulting in a series resistance of 56 Ω. This can be seen in more detail in Figure 17. noise. This was possible because the design of the CSP-CDI foresaw the need to have a noise-free reading of the data when characterizing. For this reason, the use of the analogical-to-digital converter (ADS1115) is fundamental to the system. This converter has a series of input and output filters that result in accurate and noise-free data. Figure 9 Finally, the self-discharge of CDI for 1 F, 100 F and 150 F supercapacitors has been analyzed and characterized (Figures 11-14). The results shown are satisfactory and, with this, the characterization system is again validated. Figure 14. Self-discharge test to characterize a 1 F capacitor. Figure 9 As can be seen in Figures 15 and 16, there are anomalies at the beginning of the charge and self-discharge. It has been deduced from the results obtained that an equivalent series resistance coexists due to the poor connection of the supercapacitor with the system terminals, resulting in a series resistance of 56 Ω. This can be seen in more detail in Figure 17. Figure 9 Voltage Intensity Figure 14. Self-discharge test to characterize a 1 F capacitor. In this section, the system will be validated based on the standardized tests for supercapacitors. For the first charge and discharge characterization test of the CSP-CDI, the initial data have been programmed via the interface created with processing. The follow- Figure 17. Graphs with details of the charge and self-discharge test, characterizing it on a 150 F capacitor. CDI Charging and Discharging Test In this section, the system will be validated based on the standardized tests for supercapacitors. For the first charge and discharge characterization test of the CSP-CDI, the initial data have been programmed via the interface created with processing. The following table (Table 3) shows the data given to the interface. Once the data have been entered on the screen, the test is started. Once the test has been completed and the data obtained have been managed, the result is shown on the screen ( Figure 18). Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Secondly, the test responds to the initially programmed times and the input setpoints (Vcmax and Icons). CDI Charging and Discharging Test Finally, the cleanliness of the data obtained should be highlighted, as the noise phenomenon in the result is negligible. This has been possible with the analogical-digital converter (ADS1115), which inhibits the noise generated by the instrumentation elements of the system. CDI Charging and Discharging Test On the other hand, another test has been carried out with different initial conditions to those described above, to validate the CSP-CDI system. The data entered by the interface are shown in Table 4. The results per screen can be seen in Figure 20. CDI Charging and Discharging Test In Figure 20, it can be seen in time interval five that the capacitor self-charges once this period starts. The cause is the inertia of the capacitor in maintaining an equilibrium state, even though the attack current in the CSP-CDI system is 0A. CDI Charging and Discharging Test Finally, a new charge/discharge test is carried out with a supercapacitor of capacity 1 F (Farad), with different initial conditions to those previously described. The data initially programmed by the interface are shown in the following Table 5. The results per screen can be seen in Figure 20. In Figure 20, it can be seen in time interval five that the capacitor self-charges once this period starts. The cause is the inertia of the capacitor in maintaining an equilibrium state, even though the attack current in the CSP-CDI system is 0A. CDI Charging and Discharging Test Finally, a new charge/discharge test is carried out with a supercapacitor of capacity 1 F (Farad), with different initial conditions to those previously described. The data initially programmed by the interface are shown in the following Table 5. The following Figures 21 and 22 show the results of the test per screen. Figure 21 Charging and discharging test characterizing a 1 F supercapacitor. Figure 21 Voltage Intensity Figure 21. Charging and discharging test characterizing a 1 F supercapacitor. Conclusions The conclusions obtained in the development of this study are as follows: Conclusions 1. A prototype has been designed that can operate with constant current charging and discharging. 2. Adequate precision has been achieved, as can be seen in the results obtained. 3. A philosophy of using free software with open-source code has been followed, such as the microcontroller ATmega328 (Arduino platform) and Processing programming editors, as well as the analogical-digital converter (ADS1015) and the digital-analogical converter (MCP4725). 4. A low-cost system has been developed. 5. A robust and versatile system has been designed for water treatment. 6. A flexible system has been obtained for the specifications established. Conflicts of Interest: The authors declare no conflict of interest. Conclusions The conclusions obtained in the development of this study are as follows: 1. A prototype has been designed that can operate with constant current charging and discharging. 2. Adequate precision has been achieved, as can be seen in the results obtained. 3. A philosophy of using free software with open-source code has been followed, such as the microcontroller ATmega328 (Arduino platform) and Processing programming editors, as well as the analogical-digital converter (ADS1015) and the digital-analogical converter (MCP4725). 4. A low-cost system has been developed. 5. A robust and versatile system has been designed for water treatment. 6. 5. A flexible system has been obtained for the specifications established. Conflicts of Interest: The authors declare no conflict of interest. Appendix A. Microcontroller Source Code (ATmega328) /********************************************************************************************* ******* CSP_MCDI ATmega328 source code Title: Design and implementation of an electrical characterization system for membrane capacitive deionization units for water treatment. Appendix A. Microcontroller Source Code (ATmega328) Authors: Federico Leon, Alejandro Ramos-Martin and David Santana-Quintana. ********************************************************************************************** ***** int16_t a; int16_t b; int c = 0; // Consigna para los ensayos /************************************************************************************ * Inicialización de variables ************************************************************************************/ unsigned long inicio=0;//Variable de entrada que fuerza la puesta en marcha y parada del ensayo. Appendix A. Microcontroller Source Code (ATmega328) // 0 -> En espera o parado. // 1 -> Cargar con consigna de tension maxima. // 2 -> Cargar con consigna de carga electrica. // 3 -> forzar descarga con resistencia externa. // 4 -> carga y descarga. // 5 -> conductimetro. Appendix A. Microcontroller Source Code (ATmega328) unsigned long tiempo_1=0;//Tiempo de precarga. unsigned long tiempo_2=0;//Tiempo de carga, cuando se establezca la referencia de carga eléctrica (inicio=2). unsigned long tiempo_3=0;//Tiempo de estado de auto-descarga o tiempo de mantenimiento de la tensión unsigned long tiempo_4=0;//Tiempo de estado de descarga. unsigned long tiempo_5=0;//Tiempo de estado de auto-descarga. */ /********************************************************************* * Ventrada<>[−2.5;2.5]V // Valores de entrada al OPA548 ********************************************************************/ uint16_t Vcuenta1=0;//Vopa -->[X4=2.5 V] uint16_t Vcuenta2=2048;//Vopa -->[X4=0 V] uint16_t Icons=2048;//Consigna establecida de corriente de carga-descarga. // Iconns es un valor inicial que luego se refresca int16_t results; int16_t results1; /************************************************************************************ * Configuración del puerto serial y del timerone ************************************************************************************/ [2,5;−2,5] -> Rcerámica=18 ohm * I_carga_max=2.5/18=138,9 mA * Icarga maxima=138.9 mA -> {Icons=0} * Icarga mínima=−138.9 mA -> {Icons=4095} */ /************************************************************************************ * Configuración de los DAC y los relés ************************************************************************************/ dac1.setVoltage(2048, false);//Inicializado a 0A. digitalWrite(Rele1, HIGH);//Rele NC digitalWrite(Rele2, HIGH);//Rele NC /* * El OPA esta como un seguidor de tensión y la CDI está a tierra */ } //interructión a los 1 micros void intu() { Serial.print(a); Serial.print(","); Serial.print(b); Serial.print(","); Serial.print(Icons); Serial.print(","); Serial.print(Vcmax); Serial.print(","); Serial.println(estado); // Serial.print(","); // Serial.println(inicio); control_tiempos=control_tiempos+1; } /*********************************************************************************************** * Se realizan los ensayos ***********************************************************************************************/ void loop(void) { Timer1.detachInterrupt();//Se deshabilita la interrupcion de envio de datos switch (inicio){ //Tiempo a 0 sg case 0: //Estado de espera o parada. digitalWrite(Rele1, HIGH);//Relé NC. digitalWrite(Rele2, HIGH);//Relé NC. results1 = ads.readADC_Differential_0_1(); results = ads.readADC_Differential_2_3(); a = results1; b = results; control_tiempos=0; Timer1.attachInterrupt(intu); //Se habilita la interrupción de envio de datos. break; /***************************************************************************************** * RESOLUCIONES del MCP4725 * Vard= 5 V − 2.5 V -->> Tensiones positivas 4095-2048 bit para MCP4725 * Vard= 2.5 V − 0 V -->> Tensiones negativas 2048-0 bit para MCP4725 ******************************************************************************************/ case 1: //Carga con consigna de tensión máxima. switch ( /*********************************************************************************************** * Etapa del serial Event ***********************************************************************************************/ /* * C -> La consigna del ensayo{CASO -} * Por ejemplo: * Inicio -> 2 * Tiempo_1-> 50 * Tiempo_2-> 200 * Tiempo_3-> 50 ** Tiempo_4-> 100 ** Tiempo_5-> 100 * Icons -> 1500 * Vcmax -> 1000 */ void serialEvent(){ ////**1**//c 2, 50,200,50,1500,1000 c 1,50,200,50,1500,1000 c 3,50,200,50,1500,1000 ///***2***//c 2, 50,200,50,100,100,1500,1000 Serial.println("holaaaaa estoy aquiii David");// Línea de prueba del SerialEvent if (Serial.peek() == 'c') { //Verifica el caracter significativo para que pueda ser comandado Timer1.detachInterrupt();//Se deshabilita la interrupción de envio de datos Serial.read(); //Lee el puerto serial inicio = Serial.parseInt(); tiempo_1 = Serial.parseInt(); tiempo_2 = Serial.parseInt(); tiempo_3 = Serial.parseInt(); tiempo_4 = Serial.parseInt(); tiempo_5 = Serial.parseInt(); Icons = Serial.parseInt(); Vcmax = Serial.parseInt(); estado=1;//Inicia el primer estado del ensayo. control_tiempos=0; Timer1.attachInterrupt(intu); //Se habilita la interrupción de envio de datos. } while (Serial.available() > 0){ Serial.read(); } } Appendix B. Processing Source Code (ATmega328) /******************************************************************************************** ******** CSP_MCDI GUI Title: Design and implementation of an electrical characterization system for membrane capacitive deionization units for water treatment. Appendix A. Microcontroller Source Code (ATmega328) Authors: Federico Leon, Alejandro Ramos-Martin and David Santana-Quintana. Appendix A. Microcontroller Source Code (ATmega328) ********************************************************************************************** ******/ // V2-2021/07/07 import processing.serial.*; import controlP5.*; Appendix A. Microcontroller Source Code (ATmega328) String nom_archivo="name.txt",para_nom_archivo="name.txt",estado_CDI="Stop"; String hora_inicio="Begin: "+hour()+":"+minute()+":"+second(); String tiempo_1="0",tiempo_2="0",tiempo_3="0", tiempo_4="0", tiempo_5="0", tipo_CDI="ONE"; Appendix A. Microcontroller Source Code (ATmega328) String I_c="0,1",V_c="1,2"; String tipo_ensayo="0"; PrintWriter archivo;//Archivo de datos ensayo. PrintWriter fichero;//Parametros del ensayo. ControlP5 cp5; Serial myPort; boolean serialInited; int muestras_segundo=10; int finalizado=0; int xPos = 1; int esquina_x=600; int esquina_y=100; int ancho=1200; int alto=600; int pocision_alto=0; int guardar_datos=−1,inicio=0; ControlP5 cp5; String dato_1="____",dato_2="____",dato_3="____",dato_4="____",dato_5="____", dato_6="____"; PShape bot; cp5.addButton("cargar_parametros_archivo") .setValue(0) .setPosition(x_r4+40*mx_r4,y_r4+4*my_r4) .setSize(ancho_boton+ancho_mitad_boton,alto_boton) ; cp5.addTextfield("nom_archivo") .setPosition(x_r2+2*mx_r2+ancho_campo_texto, y_r2+my_r2/3) .setSize (150,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("para_nom_archivo") .setPosition(x_r4+25*mx_r4+ancho_campo_texto, y_r4+4*my_r4/3) .setSize (150,25) .setCaptionLabel("") ControlP5 cp5; .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_1") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_2") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+4*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_3") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+7*dy_t/3) .setSize(100, 25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_4") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+10*dy_t/3) .setSize(100, 25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_5") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+13*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("I_c") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+16*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("V_c") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+19*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tipo_CDI") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+22*dy_t/3) .setSize (200,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addToggle("tension_max") .setPosition(x_r5+10*mx_r5,y_r5+3*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground(color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; cp5.addToggle("carga_culombios") .setPosition(x_r5+10*mx_r5,y_r5+6*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; cp5.addToggle("descarga_resistencia") .setPosition(x_r5+10*mx_r5,y_r5+9*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; ControlP5 cp5; cp5.addToggle("carga_descarga") .setPosition(x_r5+10*mx_r5,y_r5+12*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; ControlP5 cp5; cp5.addToggle("conductimetro") .setPosition(x_r5+10*mx_r5,y_r5+15*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground(color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; /*************************************************************************** Configuration window GUI ***************************************************************************/ tipo_ensayo="1"; // Ensayo a tensión máxima Vcmax myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); hora_inicio="Comienzo: "+hour()+":"+minute()+":"+second(); ControlP5 cp5; if(archivo==null){ }else{ archivo.flush(); archivo.close(); } archivo = createWriter(nom_archivo);// Se crea un TXT nom_archivo="I-"+nom_archivo; }else{ //STOP de CDI String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095; String vcmax=""+1000; ControlP5 cp5; tipo_ensayo="0"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); ControlP5 cp5; if ( String i=""+inicio; String t1=""+tiempo_1; String t2=""+tiempo_2; String t3=""+tiempo_3; String ic=""+I_c; String vcmax=""+V_c; tipo_ensayo="3"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); if(archivo==null){ } else { archivo.flush(); archivo.close(); } } else { String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095; ControlP5 cp5; nom_archivo="I-"+nom_archivo; }else{ //STOP de CDI String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095; String vcmax=""+1000; tipo_ensayo="0"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); if(archivo==null){ } else { archivo.flush(); archivo.close(); } } } /********************************************************************************* Interface configuration **********************************************************************************/ void draw () { // Comand DRAW fill(255, 243, 224); rect(x_r1,y_r1,dx_r1,dy_r1); color(250,0,0,205); fill(0, 102, 153); text(" ### Measured data ###", x_r1+mx_r1, y_r1+my_r1); text("> vc_measu= "+dato_1, x_r1+mx_r1, y_r1+my_r1+dy_t); text("> ic_measu= "+dato_2, x_r1+mx_r1, y_r1+my_r1+2*dy_t); text("> Time 1= "+tiempo_1+" minutes", x_r1+mx_r1, y_r1+my_r1+3*dy_t); text("> Time 2= "+tiempo_2+" seconds", x_r1+mx_r1, y_r1+my_r1+4*dy_t); text("> Time 3= "+tiempo_3+" hours", x_r1+mx_r1, y_r1+my_r1+5*dy_t); text("> Time 4= "+tiempo_4+" secons", x_r1+mx_r1, y_r1+my_r1+6*dy_t); text("> Time 5= "+tiempo_5+" hours", x_r1+mx_r1, y_r1+my_r1+7*dy_t); estado_CDI=" "; switch(int(dato_3)) { case 1: estado_CDI="Precarga"; break; case 2: estado_CDI="Cargando"; break; case 3: estado_CDI="Auto-descarga"; break; case 4: estado_CDI="Finalizado"; break; case 0: estado_CDI="Stop"; break; } /********************************************************************************* Save data to file txt **********************************************************************************/ guardar_datos=int(dato_3); if(guardar_datos>3){ guardar_datos=0; archivo.close(); } if(tipo_ensayo=="0"){ guardar_datos=0; } if(guardar_datos>0){ archivo.print(year( )+" "); // Year archivo.print(month( )+" "); // Month archivo.print(day( )+" "); // Day archivo.print(hour( )+" "); // Hours archivo.print(minute( )+" "); // minutes archivo.print(second( )+" "); // Seconds archivo.print(tipo_ensayo+" "); archivo.print(dato_3+" "); archivo.print(dato_1+" "); archivo.println(dato_2+" "); ControlP5 cp5; archivo.flush(); } } } catch(RuntimeException e) { println(e); } } /********************************************************************************* **********************************************************************************/ public void cargar_parametros_archivo(int theValue) { println("Botón del Evento: "+theValue); ControlP5 cp5; String lines[] = loadStrings("Ensayo."+para_nom_archivo); String list[] = split(lines [1], ':'); tipo_CDI=list [1]; list = split(lines [2], ':'); tiempo_1 =list [1]; list = split(lines [3], ':'); tiempo_2 =list [1]; list = split(lines [4], ':'); tiempo_3 =list [1]; list = split(lines [5], ':'); I_c =list [1]; list = split(lines [6], ':'); V_c =list [1]; para_nom_archivo="nombre.txt"; } /********************************************************************************* Subrutines **********************************************************************************/

섹션 본문 107문단 · 48,912자

Introduction

2The desalination of seawater is one of the most established techniques in the world. In the middle of the 20th century, this was achieved using water evaporation systems and later with reverse osmosis membranes. However, the resulting high energy consumption, generally through fossil fuels, has been an important issue to solve [1][2][3][4].

3Modern times have introduced the possibility to transition from the use of reverse osmosis to capacitive deionization (CDI), or membrane capacitive deionization when an anion and cation membrane exchange is used, which is a novel system still under development that, in addition to removing salt from the water, allows for the storage of energy, similar to other electrochemical devices (batteries, supercapacitors, etc.) [5][6][7][8].

4Currently, some media outlets are claiming that the current hydrological year is the driest hydrological year of the decade. In the last 12 months, the Spanish water reserve has decreased by a volume of water equivalent to that of the Ebro Basin (7511 hm 3 of capacity). These phenomena are aggravated by the evident signs of climate change and, in countries such as Spain, by the advance of desertification processes in large areas, causing water to become so much of an essential resource that it has become as precious a commodity as oil [4].

5Knowing that 97% of the planet's water is salty, the desalination of brackish or marine water (or seawater desalination) is one of the possible alternatives to mitigate the problem. However, current desalination technologies, such as reverse osmosis and distillation present a serious problem, which is the high energy consumption required to produce drinkable water, as well as the problem of boron removal.

6Capacitive deionization (CDI) is an emerging technology that makes it possible to obtain drinking water with an efficiency of 95% [5][6][7][8][9][10]. This technology is in the development stage and consists of porous activated carbon electrodes, which have great potential for saving energy in the water desalination process and can be used for desalination using an innovative technology called capacitive deionization (CDI) and membrane capacitive deionization (MCDI). In CDI and MCDI, salt ions are removed from brackish water by applying a voltage difference between two porous electrodes in which the ions are temporarily immobilized, and dissolved salts are removed from different types of water [6][7][8][9].

7The design and implementation of a characterization system for capacitive deionization units for water treatment was performed using types of water ranging from supply water to water from industrial processes. Capacitive deionization has emerged over the years as a robust, energy-efficient solution for water treatment [10][11][12][13][14][15][16][17][18]. It is an effective technology for the desalination of water with low to moderate salt content [5].

8The optimal operating regime is obtained for water with a salt concentration of slightly less than 10 g/L [18]. Since the salt ions are minority compounds in the water, they can be removed from the mixture with this technology. In contrast, other methods extract the water phase from the salt solution. This technology also allows for the possibility of integrating renewable energy sources and energy storage [6][7][8][9][10].

9The main objective of this study was the design and implementation of an electrical characterization system for capacitive deionization units in water treatment. The intention was also to make use of this system to obtain results that will make it possible to analyze the impact of this technique on different CDI and MCDI elements. The electrical characterization system of CDI and MCDI has been implemented before [11][12][13]. In more detail, the objectives to be achieved are the following:

10To study a control system with a microcontroller (ATmega328 MICROCHIP) that will allow interaction, control, conditioning of different tests and data collection with the medium.

11For future implementations, to study the variation of the concentration as a result of the influence of injecting energy into the system, being influenced by the pH of the solution, temperature, conductivity, etc.

12Analyze by numerical methods the variables involved in the system, Develop a system capable of testing different situations that verify the tests described in similar works of the field.

13Establish a laboratory-scale electrochemical evaluation methodology for the electrical characterization of CDI and MCDI.

14In addition to the tests, the results obtained will be used to determine improvements in active materials (activated carbon, carbon fibers, carbon aerogels, etc.) and the current collectors that make up the electrodes.

15The set of results generated will serve as didactic material to illustrate the influence of the effects studied. This material will be useful for future students and teachers of degrees and masters programs of different universities thanks to the research and improvements on the CDI and MCDI units.

Materials and Methods

16Compared to the classical working modes of the 20th century, there have been several innovations and new technologies, such as ion exchange in the membrane (see Figure 1) [14][15][16][17][18], and operational optimization in modes such as "stop-flow" during ion exchange [19], salt ratio upon voltage reversal [16], current constant during operation [19], energy recovered for desalination in relation to cycling [20,21], flow through electrostatic where water is directly faced through the electrostatic [22,23] and flow electrodes based on suspended carbon [24].

17Membranes 2021, 11, x FOR PEER REVIEW 3 of 52

18Compared to the classical working modes of the 20th century, there have been several innovations and new technologies, such as ion exchange in the membrane (see Figure 1) [14][15][16][17][18], and operational optimization in modes such as "stop-flow" during ion exchange [19], salt ratio upon voltage reversal [16], current constant during operation [19], energy recovered for desalination in relation to cycling [20,21], flow through electrostatic where water is directly faced through the electrostatic [22,23] and flow electrodes based on suspended carbon [24]. Regarding the historical evolution of CDI and MCDI, a stage was defined before 1995, when aerogel carbon was developed for CCD. The peons who worked with the desalination concept called it "electrochemical water demineralization" and its originators were Blair, Murphy and their colleagues, in the 1960s [25][26][27][28]. The basic standardized methods for supercapacitors have been used to study the behavior of CDI and MCDI [29][30][31][32][33]. These methods are constant current charging and discharging, constant power cycling, cyclic voltammetry and electrochemical impedance spectrometry. These procedures, and the self-charging and self-discharging phenomena, will be classified into three typologies: frequency, dynamic and energy characterization.

Frequency Characterization

19The electrochemical impedance spectroscopy (EIS) method is used to characterize the electrochemical behavior of energy storage devices.

20This method has gained popularity in the last decade, especially in the determination of the capacity in fuel cells and batteries, due to the development of the electric car [34,35].

21The purpose of the EIS is to study the system response to the application of a small amplitude periodic alternating current (AC) signal. These measurements are carried out at different frequencies, which is why it is in the frequency characterization group. However, this technique is very sensitive, and it is essential to perform it as accurately as possible. Therefore, it is necessary to use several characterization techniques, because there is no single technique that gives all the expected results. Complementary techniques are therefore used. Regarding the historical evolution of CDI and MCDI, a stage was defined before 1995, when aerogel carbon was developed for CCD. The peons who worked with the desalination concept called it "electrochemical water demineralization" and its originators were Blair, Murphy and their colleagues, in the 1960s [25][26][27][28]. The basic standardized methods for supercapacitors have been used to study the behavior of CDI and MCDI [29][30][31][32][33]. These methods are constant current charging and discharging, constant power cycling, cyclic voltammetry and electrochemical impedance spectrometry. These procedures, and the self-charging and self-discharging phenomena, will be classified into three typologies: frequency, dynamic and energy characterization.

22The electrochemical impedance spectroscopy (EIS) method is used to characterize the electrochemical behavior of energy storage devices.

23This method has gained popularity in the last decade, especially in the determination of the capacity in fuel cells and batteries, due to the development of the electric car [34,35].

24The purpose of the EIS is to study the system response to the application of a small amplitude periodic alternating current (AC) signal. These measurements are carried out at different frequencies, which is why it is in the frequency characterization group. However, this technique is very sensitive, and it is essential to perform it as accurately as possible. Therefore, it is necessary to use several characterization techniques, because there is no single technique that gives all the expected results. Complementary techniques are therefore used.

25On the other hand, there are limitations at high frequencies with CDI, due to the low impedance that the CDI cell can present. One of the factors conditioning the impedance of CDI is dissolution, while others are caused by coupling effects between the power supply Membranes 2021, 11, 773 4 of 50 and the media system cables [36]. These adversities are limited to low frequencies. In practice, twisted cables are used for the measurement cells to reduce these types of errors.

Dynamic Characterization

26The constant current charge/discharge method is the simplest method to apply with direct current (DC). It analyzes the response of CDI when a constant charge/discharge current is applied to it. Despite being a basic method, it is widely used in the characterization of capacitors. Its application is documented with standardizations and will be the main object of the characterization of CDI in this work, being the main endorsement of the designed device [37][38][39][40]. The self-charging or self-discharging of CDI has its origin in two main causes. First, when CDI is charged or discharged, there is a diffusion of ions from the solution to the activated carbon electrode, or vice versa. The diffusion immediately after charging or discharging causes a self-discharge or self-charge, respectively. Secondly, these phenomena exist due to leakage current. Self-discharge by diffusion occurs predominantly in the initial stage. However, self-discharge by leakage is significant after self-discharge begins [41]. Self-discharge originates during dynamic operation, e.g., the dynamic operating cycle of electric vehicles [42], whose genome is through the equivalent impedance method, whose phase element is constant.

27On the other hand, we highlight cyclic voltammetry (C.V.), which has achieved the distinction of a procedure used to evaluate the performance of energy storage systems, as well as to determine the life cycle, the effects of internal resistance and the dissipation losses [43]. The method consists of applying a linear voltage ramp and storing the current response in the capacitors. This current is directly associated with the capacity of the component achieving a versatile procedure [44][45][46][47][48][49].

28Constant power cycling is known as "cycle life testing" (C.L.T.); it is a methodology for calculating the electrochemical device parameter based on periodic charging and discharging, separated by rest time intervals [50][51][52][53].

29The procedure consists of charging the device at a given power until a voltage is achieved [54][55][56][57]. Once this point is reached, the polarity of the current is reversed by applying a given value, and the current is resumed by reversing the current, so that the charging cycle is continued up to a higher voltage [45,46]. This is a research study in the industrial field and several milestones have been previously established, which are as follows:

1.

30A device capable of characterizing capacitive deionization (CDI) and membrane capacitive deionization (MCDI) for different tests, shown in Figure 2, in such a way that the main characteristics of capacitive deionization can be obtained, such as equivalent series resistance, capacitance, etc.

2.

31A system capable of collecting the test parameters and configuring it through a graphical user interface (GUI).

3.

32A procedure capable of characterizing the CDI and MCDI for stationary flows.

4.

33The results obtained will be studied in future research lines for CDI and MCDI technology. Figure 2 shows the scheme of the characterization system prototype for capacitive deionization (CSP-CDI), and the interrelation of components. These components that make up this diagram define the fundamental structure of the system. It is briefly explained below:

1.

34Control and data acquisition system (microcontroller ATmega328): this part of the system can store data and control the different parameters of the CSP-CDI. This part of the system can analyze the data in real time to actuate the power system. The microcontroller ATmega328 model (Atmel, Beijing, China) is implemented in the platform Arduino Nano (Arduino, Beijing, China). This microcontroller is responsible for directly controlling the galvanostatic charging process, so as to capture the data and send them to a PC for saving them (Appendix A shows the Arduino source code). 2.

35Power system (OPA549): A power operational amplifier OPA549 (Texas Instruments). This operational amplifier can provide a nominal current of 8A and also has a special input (ilim) for limiting the output current of the amplifier. This is an important feature for implementing galvanostatic charge or discharge (by controlling the current). This operational amplifier is responsible for sourcing the system, in order to charge and discharge the CDI cell or other similar electrochemical devices (batteries, electrochemical double layer capacitors, etc.).

3.

36ADS1015: An analogical-digital conversion stage based on the precision converter ADS1015 (Texas Instruments, Shanghai, China). This stage has two differential analog inputs for measuring: the charging or discharging current and the voltage of CDI cell. Current i(t) is measured from the voltage of a resistor Rm = 0.1 Ω, which is arranged between the output of the operational amplifier and CDI cell and the CDI cell voltage v(t) directly. The circuit ADS1015 has a 12-Bit resolution, which sets a resolution of 3 mV for the voltage measuring and 30 mA for the current measuring. 4.

37MCP4725: Two digital-analogical conversion stages based on MCP4725 (MICROCHIP, Beijing, China) with a resolution of 12 Bit. These stages are used to control the charging/discharging processes of EDLC, for setting the voltage and current intensity references.

5.

38A PC: that is responsible for controlling and configuring the microcontroller for conducting the tests and storage of data obtained from the measurements. This is achieved through a script made in JavaScript language under Processing IDE (Processing Foundation). For the different tests, data were sent to the PC from the microcontroller (ATmega328), where they were saved by means of the use of Processing tool. At the Appendix B is showed the Processing source code, and Figure 3 displays the control interface achieved with Processing, for being used at the PC. 6.

39CDI cell: this is the object of study of this paper. Its correct operation is essential to characterize it. Its operating range has been designed to satisfy the needs required in the programmed tests, which have carried on with different EDLCs (electrochemical double layer capacitors) for commissioning and evaluation.

40Membranes 2021, 11, x FOR PEER REVIEW 5 of 52 Figure 2. Scheme of the characterization system prototype for capacitive deionization (CSP-CDI). Figure 2 shows the scheme of the characterization system prototype for capacitive deionization (CSP-CDI), and the interrelation of components. These components that make up this diagram define the fundamental structure of the system. It is briefly explained below: (Processing Foundation). For the different tests, data were sent to the PC from the microcontroller (ATmega328), where they were saved by means of the use of Processing tool. At the Appendix B is showed the Processing source code, and Figure 3 displays the control interface achieved with Processing, for being used at the PC. 6. CDI cell: this is the object of study of this paper. Its correct operation is essential to characterize it. Its operating range has been designed to satisfy the needs required in the programmed tests, which have carried on with different EDLCs (electrochemical double layer capacitors) for commissioning and evaluation.

Results

41The target prototype developed for characterization testing is capable of charging and discharging at constant voltage and current (galvanostatic mode). In addition, the power supply provides the load with a constant current at 95% efficiency and establishes the duration for which the nominal voltage is maintained. The device is capable of measuring current and voltage with a maximum error tolerance of ± 1%. Moreover, voltmeter measurements have a resolution of 0.125 mV for voltage measurement. The input impedance of these voltmeters must be sufficiently high for measurement errors to be negligible. To obtain the data, an analog-digital converter (ADC1115) was used, which has a series of filters at the input and output of the converter, resulting in precise, noise-free data.

42The designed device must be able to perform constant voltage and current charging and discharging, as well as simultaneous voltage and current measurements at the terminals of the CDI cell.

43The power supply (through the OPA549) must be able to provide the constant load current to the CDI cell with 95% efficiency and, in addition, set the duration of voltage maintenance.

44The developed device must satisfy the requirement of an error tolerance of ± 0.01% for voltage measurement and an error tolerance of ± 0.1% for current measurement.

Proposed Test Results

45This section provides the details of the tests carried out and the results obtained for the characterization of the CCD system. Figure 3. Processing PC control interface and data logger.

Results

46The target prototype developed for characterization testing is capable of charging and discharging at constant voltage and current (galvanostatic mode). In addition, the power supply provides the load with a constant current at 95% efficiency and establishes the duration for which the nominal voltage is maintained. The device is capable of measuring current and voltage with a maximum error tolerance of ±1%. Moreover, voltmeter measurements have a resolution of 0.125 mV for voltage measurement. The input impedance of these voltmeters must be sufficiently high for measurement errors to be negligible. To obtain the data, an analog-digital converter (ADC1115) was used, which has a series of filters at the input and output of the converter, resulting in precise, noise-free data.

47The designed device must be able to perform constant voltage and current charging and discharging, as well as simultaneous voltage and current measurements at the terminals of the CDI cell.

48The power supply (through the OPA549) must be able to provide the constant load current to the CDI cell with 95% efficiency and, in addition, set the duration of voltage maintenance.

49The developed device must satisfy the requirement of an error tolerance of ± 0.01% for voltage measurement and an error tolerance of ±0.1% for current measurement.

Proposed Test Results

50This section provides the details of the tests carried out and the results obtained for the characterization of the CCD system.

Calibration of the Equipment

51To provide veracity and reliability to the results obtained during the tests, the CSP-CDI was first subjected to a series of calibration tests. The procedure that followed consisted in the fact that, knowing an input setpoint, the system returned a series of expected results since the output data were known, since a 1 Ω resistor was used instead of a CDI cell.

Calibration of the Digital-to-Analog Converter DAC (MCP4725)

52The first test of the CSP-CDI was the calibration of the equipment by setting an input setpoint current to measure the voltage at the terminals of the 1 Ω resistor (see the results in Table 1). With this experience, the calibration line of the equipment is determined, obtaining the expression of the digital-analogical converter's transformation of accounts. As can be seen in the previous Figure 4, the slope of the straight line corresponds to the resistance of 1 Ω, and it can also be seen that the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized with the Equation (1): y = 1.0588 X + 3.9833 (1) where: X is the rated setpoint current in mA (milli-Amperes). Y is the current at the load mA (milli-Amperes).

53Finally, knowing the current, the voltage is trivial because the resistance is 1 Ω. This experiment is based on connecting a 1 Ω (Ohms) resistor to the load and establishing an input setpoint current to measure the voltage in the measuring cell. With this, we know the current and current of the CSP-CDI (see . With this experience, the calibration line of the equipment is determined, obtaining the expression of the transformation of accounts of the analogical-digital converter (table 2) this, we know the current and current of the CSP-CDI (see . With this experience, the calibration line of the equipment is determined, obtaining the expression of the transformation of accounts of the analogical-digital converter ( Table 2). As can be seen in the previous figures, the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized, with Equation (2) being "I" of the measured ADC counts, while Equation (3) is the sensor current, Equation (4) is "V" of the measured ADC counts, and Equation (5) As can be seen in the previous figures, the data dispersion is null, so the sample taken refers to the population and indicates that the CSP-CDI is characterized, with Equation (2) being "I" of the measured ADC counts, while Equation (3) is the sensor current, Equation (4) is "V" of the measured ADC counts, and Equation (5) is the sensor voltage, as follows: y = 141704 X + 20340 (2) where: X is the rated set point current in A (Amps). Y are the counts corresponding to the current of the ADS1115. y = 17.691 X + 2.5387 (3) where: X is the rated setpoint current in A (Amperes).

54Y is the measured current in V (Volts) at the sensor.

55where: X is the rated setpoint current in A (Amperes). Y are the counts corresponding to the voltage of the ADS1115. y = −1.1824 X + 0.6963 (5) where: X is the rated setpoint current in A (Amperes). Y is the measured voltage in V (Volts) at the sensor.

Charging and Self-Discharge Tests at an Input Set Point

56This section specifies the tests to which the equipment is subjected for its validation, where the degree of response from the equipment to an input setpoint will be determined, characterizing its behavior through the supercapacitors and the standardized tests.

57Three samples were taken in each test to avoid uncertainty and mean error. Furthermore, the data obtained in the tests are representative of the CSP-CDI.

58The first characterization test performed was the charging and self-discharging of a 1 F capacity supercapacitor with a setpoint voltage of 2 V and a setpoint current of 0.1 A. The data generated were stored in a database. The data generated have been saved in a plain text file with ".txt" extension for further processing.

59A script was created with Matlab software for data management on the screen. In this way, a detailed analysis of each test carried out is carried out. The result of this first test can be seen in Figure 9. Figures 10-13 show that the test was carried out satisfactorily. Although, there is a small variation of 0.01 A in the current. This was due to an equipment calibration problem, hence the importance of having the CSP-CDI properly calibrated.

60The data generated were stored in a database. The data generated have been saved in a plain text file with ".txt" extension for further processing.

61A script was created with Matlab software for data management on the screen. In this way, a detailed analysis of each test carried out is carried out. The result of this first test can be seen in Figure 9.

Figure 9

62Charging and self-discharge test at Vc_max = 2 V and Ic = 0.1 A. show that the test was carried out satisfactorily. Although, there is a small variation of 0.01 A in the current. This was due to an equipment calibration problem, hence the importance of having the CSP-CDI properly calibrated. The following tests were at the same maximum set point voltage, but at the set point current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show the results of the tests per screen. The following tests were at the same maximum set point voltage, but at the set p current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show results of the tests per screen. Figure 11. Load and self-discharge test at Vc_max = 2 V and Ic = 0.05 A. Figure 11. Load and self-discharge test at Vc_max = 2 V and Ic = 0.05 A. On the other hand, the system was validated with another supercapacitor, with a capacity of 650 F at another maximum voltage and setpoint current. The test results can be seen in the following figure. The following tests were at the same maximum set point voltage, but at the set point current of 0.05 A and 0.025 A, respectively. The following Figures 12 and 13 show the results of the tests per screen.

63On the other hand, the system was validated with another supercapacitor, with a capacity of 650 F at another maximum voltage and setpoint current. The test results can be seen in the following figure.

64Firstly, as can be seen in Figure 14, the test was carried out at the set voltage of 0.4 V and set current of 0.1 A. This test lasted 1 h. It should be noted that the results are as expected for a supercapacitor with these characteristics, the reason being that the setpoint current is very small and the capacity of the supercapacitor is too large.

65On the other hand, quality results have been obtained without the adverse effects of noise. This was possible because the design of the CSP-CDI foresaw the need to have a noise-free reading of the data when characterizing. For this reason, the use of the analogicalto-digital converter (ADS1115) is fundamental to the system. This converter has a series of input and output filters that result in accurate and noise-free data.

66Finally, the self-discharge of CDI for 1 F, 100 F and 150 F supercapacitors has been analyzed and characterized (Figures 11-14). The results shown are satisfactory and, with this, the characterization system is again validated.

67As can be seen in Figures 15 and 16, there are anomalies at the beginning of the charge and self-discharge. It has been deduced from the results obtained that an equivalent series resistance coexists due to the poor connection of the supercapacitor with the system terminals, resulting in a series resistance of 56 Ω. This can be seen in more detail in Figure 17. noise. This was possible because the design of the CSP-CDI foresaw the need to have a noise-free reading of the data when characterizing. For this reason, the use of the analogical-to-digital converter (ADS1115) is fundamental to the system. This converter has a series of input and output filters that result in accurate and noise-free data.

68Finally, the self-discharge of CDI for 1 F, 100 F and 150 F supercapacitors has been analyzed and characterized (Figures 11-14). The results shown are satisfactory and, with this, the characterization system is again validated. Figure 14. Self-discharge test to characterize a 1 F capacitor.

69As can be seen in Figures 15 and 16, there are anomalies at the beginning of the charge and self-discharge. It has been deduced from the results obtained that an equivalent series resistance coexists due to the poor connection of the supercapacitor with the system terminals, resulting in a series resistance of 56 Ω. This can be seen in more detail in Figure 17.

70Voltage Intensity Figure 14. Self-discharge test to characterize a 1 F capacitor. In this section, the system will be validated based on the standardized tests for supercapacitors. For the first charge and discharge characterization test of the CSP-CDI, the initial data have been programmed via the interface created with processing. The follow- Figure 17. Graphs with details of the charge and self-discharge test, characterizing it on a 150 F capacitor.

CDI Charging and Discharging Test

71In this section, the system will be validated based on the standardized tests for supercapacitors. For the first charge and discharge characterization test of the CSP-CDI, the initial data have been programmed via the interface created with processing. The following table (Table 3) shows the data given to the interface. Once the data have been entered on the screen, the test is started. Once the test has been completed and the data obtained have been managed, the result is shown on the screen ( Figure 18). Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Firstly, the test is satisfactory. Figure 19 shows each of the times that make up the experiment, which are: time one, time two, time three, time four and time five. Secondly, the test responds to the initially programmed times and the input setpoints (Vcmax and Icons).

72Finally, the cleanliness of the data obtained should be highlighted, as the noise phenomenon in the result is negligible. This has been possible with the analogical-digital converter (ADS1115), which inhibits the noise generated by the instrumentation elements of the system.

73On the other hand, another test has been carried out with different initial conditions to those described above, to validate the CSP-CDI system. The data entered by the interface are shown in Table 4. The results per screen can be seen in Figure 20.

74In Figure 20, it can be seen in time interval five that the capacitor self-charges once this period starts. The cause is the inertia of the capacitor in maintaining an equilibrium state, even though the attack current in the CSP-CDI system is 0A.

75Finally, a new charge/discharge test is carried out with a supercapacitor of capacity 1 F (Farad), with different initial conditions to those previously described. The data initially programmed by the interface are shown in the following Table 5. The results per screen can be seen in Figure 20. In Figure 20, it can be seen in time interval five that the capacitor self-charges once this period starts. The cause is the inertia of the capacitor in maintaining an equilibrium state, even though the attack current in the CSP-CDI system is 0A.

76Finally, a new charge/discharge test is carried out with a supercapacitor of capacity 1 F (Farad), with different initial conditions to those previously described. The data initially programmed by the interface are shown in the following Table 5. The following Figures 21 and 22 show the results of the test per screen.

Figure 21

77Charging and discharging test characterizing a 1 F supercapacitor.

78Voltage Intensity Figure 21. Charging and discharging test characterizing a 1 F supercapacitor.

Conclusions

79The conclusions obtained in the development of this study are as follows:

801. A prototype has been designed that can operate with constant current charging and discharging. 2. Adequate precision has been achieved, as can be seen in the results obtained. 3. A philosophy of using free software with open-source code has been followed, such as the microcontroller ATmega328 (Arduino platform) and Processing programming editors, as well as the analogical-digital converter (ADS1015) and the digital-analogical converter (MCP4725). 4. A low-cost system has been developed. 5. A robust and versatile system has been designed for water treatment. 6. A flexible system has been obtained for the specifications established.

Conflicts of Interest:

81The authors declare no conflict of interest.

Conclusions

82The conclusions obtained in the development of this study are as follows:

1.

83A prototype has been designed that can operate with constant current charging and discharging.

2.

84Adequate precision has been achieved, as can be seen in the results obtained.

3.

85A philosophy of using free software with open-source code has been followed, such as the microcontroller ATmega328 (Arduino platform) and Processing programming editors, as well as the analogical-digital converter (ADS1015) and the digital-analogical converter (MCP4725).

4.

86A low-cost system has been developed.

5.

87A robust and versatile system has been designed for water treatment. 6.

88A flexible system has been obtained for the specifications established.

Conflicts of Interest:

89The authors declare no conflict of interest.

Appendix A. Microcontroller Source Code (ATmega328)

90/********************************************************************************************* ******* CSP_MCDI ATmega328 source code Title: Design and implementation of an electrical characterization system for membrane capacitive deionization units for water treatment.

91Authors: Federico Leon, Alejandro Ramos-Martin and David Santana-Quintana. ********************************************************************************************** ***** int16_t a; int16_t b; int c = 0; // Consigna para los ensayos /************************************************************************************ * Inicialización de variables ************************************************************************************/ unsigned long inicio=0;//Variable de entrada que fuerza la puesta en marcha y parada del ensayo.

92// 0 -> En espera o parado. // 1 -> Cargar con consigna de tension maxima. // 2 -> Cargar con consigna de carga electrica. // 3 -> forzar descarga con resistencia externa. // 4 -> carga y descarga. // 5 -> conductimetro.

93unsigned long tiempo_1=0;//Tiempo de precarga. unsigned long tiempo_2=0;//Tiempo de carga, cuando se establezca la referencia de carga eléctrica (inicio=2). unsigned long tiempo_3=0;//Tiempo de estado de auto-descarga o tiempo de mantenimiento de la tensión unsigned long tiempo_4=0;//Tiempo de estado de descarga. unsigned long tiempo_5=0;//Tiempo de estado de auto-descarga. */ /********************************************************************* * Ventrada<>[−2.5;2.5]V // Valores de entrada al OPA548 ********************************************************************/ uint16_t Vcuenta1=0;//Vopa -->[X4=2.5 V] uint16_t Vcuenta2=2048;//Vopa -->[X4=0 V] uint16_t Icons=2048;//Consigna establecida de corriente de carga-descarga. // Iconns es un valor inicial que luego se refresca int16_t results; int16_t results1; /************************************************************************************ * Configuración del puerto serial y del timerone ************************************************************************************/ [2,5;−2,5] -> Rcerámica=18 ohm * I_carga_max=2.5/18=138,9 mA * Icarga maxima=138.9 mA -> {Icons=0} * Icarga mínima=−138.9 mA -> {Icons=4095} */ /************************************************************************************ * Configuración de los DAC y los relés ************************************************************************************/ dac1.setVoltage(2048, false);//Inicializado a 0A. digitalWrite(Rele1, HIGH);//Rele NC digitalWrite(Rele2, HIGH);//Rele NC /* * El OPA esta como un seguidor de tensión y la CDI está a tierra */ } //interructión a los 1 micros void intu() { Serial.print(a); Serial.print(","); Serial.print(b); Serial.print(","); Serial.print(Icons); Serial.print(","); Serial.print(Vcmax); Serial.print(","); Serial.println(estado); // Serial.print(","); // Serial.println(inicio); control_tiempos=control_tiempos+1; } /*********************************************************************************************** * Se realizan los ensayos ***********************************************************************************************/ void loop(void) { Timer1.detachInterrupt();//Se deshabilita la interrupcion de envio de datos switch (inicio){ //Tiempo a 0 sg case 0: //Estado de espera o parada. digitalWrite(Rele1, HIGH);//Relé NC. digitalWrite(Rele2, HIGH);//Relé NC. results1 = ads.readADC_Differential_0_1(); results = ads.readADC_Differential_2_3(); a = results1; b = results; control_tiempos=0; Timer1.attachInterrupt(intu); //Se habilita la interrupción de envio de datos. break; /***************************************************************************************** * RESOLUCIONES del MCP4725 * Vard= 5 V − 2.5 V -->> Tensiones positivas 4095-2048 bit para MCP4725 * Vard= 2.5 V − 0 V -->> Tensiones negativas 2048-0 bit para MCP4725 ******************************************************************************************/ case 1: //Carga con consigna de tensión máxima. switch ( /*********************************************************************************************** * Etapa del serial Event ***********************************************************************************************/ /* * C -> La consigna del ensayo{CASO -} * Por ejemplo: * Inicio -> 2 * Tiempo_1-> 50 * Tiempo_2-> 200 * Tiempo_3-> 50 ** Tiempo_4-> 100 ** Tiempo_5-> 100 * Icons -> 1500 * Vcmax -> 1000 */ void serialEvent(){ ////**1**//c 2, 50,200,50,1500,1000 c 1,50,200,50,1500,1000 c 3,50,200,50,1500,1000 ///***2***//c 2, 50,200,50,100,100,1500,1000 Serial.println("holaaaaa estoy aquiii David");// Línea de prueba del SerialEvent if (Serial.peek() == 'c') { //Verifica el caracter significativo para que pueda ser comandado Timer1.detachInterrupt();//Se deshabilita la interrupción de envio de datos Serial.read(); //Lee el puerto serial inicio = Serial.parseInt(); tiempo_1 = Serial.parseInt(); tiempo_2 = Serial.parseInt(); tiempo_3 = Serial.parseInt(); tiempo_4 = Serial.parseInt(); tiempo_5 = Serial.parseInt(); Icons = Serial.parseInt(); Vcmax = Serial.parseInt(); estado=1;//Inicia el primer estado del ensayo. control_tiempos=0; Timer1.attachInterrupt(intu); //Se habilita la interrupción de envio de datos. } while (Serial.available() > 0){ Serial.read(); } } Appendix B. Processing Source Code (ATmega328) /******************************************************************************************** ******** CSP_MCDI GUI Title: Design and implementation of an electrical characterization system for membrane capacitive deionization units for water treatment.

94Authors: Federico Leon, Alejandro Ramos-Martin and David Santana-Quintana.

95********************************************************************************************** ******/ // V2-2021/07/07 import processing.serial.*; import controlP5.*;

96String nom_archivo="name.txt",para_nom_archivo="name.txt",estado_CDI="Stop"; String hora_inicio="Begin: "+hour()+":"+minute()+":"+second(); String tiempo_1="0",tiempo_2="0",tiempo_3="0", tiempo_4="0", tiempo_5="0", tipo_CDI="ONE";

97String I_c="0,1",V_c="1,2"; String tipo_ensayo="0"; PrintWriter archivo;//Archivo de datos ensayo. PrintWriter fichero;//Parametros del ensayo.

ControlP5 cp5;

98Serial myPort; boolean serialInited; int muestras_segundo=10; int finalizado=0; int xPos = 1; int esquina_x=600; int esquina_y=100; int ancho=1200; int alto=600; int pocision_alto=0; int guardar_datos=−1,inicio=0;

99String dato_1="____",dato_2="____",dato_3="____",dato_4="____",dato_5="____", dato_6="____"; PShape bot; cp5.addButton("cargar_parametros_archivo") .setValue(0) .setPosition(x_r4+40*mx_r4,y_r4+4*my_r4) .setSize(ancho_boton+ancho_mitad_boton,alto_boton) ; cp5.addTextfield("nom_archivo") .setPosition(x_r2+2*mx_r2+ancho_campo_texto, y_r2+my_r2/3) .setSize (150,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("para_nom_archivo") .setPosition(x_r4+25*mx_r4+ancho_campo_texto, y_r4+4*my_r4/3) .setSize (150,25) .setCaptionLabel("")

100.setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_1") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_2") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+4*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_3") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+7*dy_t/3) .setSize(100, 25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_4") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+10*dy_t/3) .setSize(100, 25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tiempo_5") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+13*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("I_c") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+16*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("V_c") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+19*dy_t/3) .setSize (100,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addTextfield("tipo_CDI") .setPosition(x_r4+mx_r4+ancho_campo_texto_4, y_r4+my_r4+22*dy_t/3) .setSize (200,25) .setCaptionLabel("") .setColorBackground (color(84,153,199)) .setColorActive(color(100,0,0)) .setColorForeground(color(100,0,0)) .setFont(createFont("times new roman",20)) ; cp5.addToggle("tension_max") .setPosition(x_r5+10*mx_r5,y_r5+3*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground(color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; cp5.addToggle("carga_culombios") .setPosition(x_r5+10*mx_r5,y_r5+6*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; cp5.addToggle("descarga_resistencia") .setPosition(x_r5+10*mx_r5,y_r5+9*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ;

101cp5.addToggle("carga_descarga") .setPosition(x_r5+10*mx_r5,y_r5+12*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground (color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ;

102cp5.addToggle("conductimetro") .setPosition(x_r5+10*mx_r5,y_r5+15*my_r5/2) .setSize (50,20) .setCaptionLabel("on off") .setColorLabel(color (21,67,96)) .setColorBackground(color(235,245,251)) .setColorActive(color (26,82,118)) .setValue(false) .setMode(ControlP5.SWITCH) ; /*************************************************************************** Configuration window GUI ***************************************************************************/ tipo_ensayo="1"; // Ensayo a tensión máxima Vcmax myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); hora_inicio="Comienzo: "+hour()+":"+minute()+":"+second();

103if(archivo==null){ }else{ archivo.flush(); archivo.close(); } archivo = createWriter(nom_archivo);// Se crea un TXT nom_archivo="I-"+nom_archivo; }else{ //STOP de CDI String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095; String vcmax=""+1000;

104tipo_ensayo="0"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax);

105if ( String i=""+inicio; String t1=""+tiempo_1; String t2=""+tiempo_2; String t3=""+tiempo_3; String ic=""+I_c; String vcmax=""+V_c; tipo_ensayo="3"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); if(archivo==null){ } else { archivo.flush(); archivo.close(); } } else { String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095;

106nom_archivo="I-"+nom_archivo; }else{ //STOP de CDI String i=""+0; String t1=""+0; String t2=""+0; String t3=""+0; String ic=""+4095; String vcmax=""+1000; tipo_ensayo="0"; myPort.write("c"); myPort.write(i); myPort.write(","); myPort.write(t1); myPort.write(","); myPort.write(t2); myPort.write(","); myPort.write(t3); myPort.write(","); myPort.write(ic); myPort.write(","); myPort.write(vcmax); if(archivo==null){ } else { archivo.flush(); archivo.close(); } } } /********************************************************************************* Interface configuration **********************************************************************************/ void draw () { // Comand DRAW fill(255, 243, 224); rect(x_r1,y_r1,dx_r1,dy_r1); color(250,0,0,205); fill(0, 102, 153); text(" ### Measured data ###", x_r1+mx_r1, y_r1+my_r1); text("> vc_measu= "+dato_1, x_r1+mx_r1, y_r1+my_r1+dy_t); text("> ic_measu= "+dato_2, x_r1+mx_r1, y_r1+my_r1+2*dy_t); text("> Time 1= "+tiempo_1+" minutes", x_r1+mx_r1, y_r1+my_r1+3*dy_t); text("> Time 2= "+tiempo_2+" seconds", x_r1+mx_r1, y_r1+my_r1+4*dy_t); text("> Time 3= "+tiempo_3+" hours", x_r1+mx_r1, y_r1+my_r1+5*dy_t); text("> Time 4= "+tiempo_4+" secons", x_r1+mx_r1, y_r1+my_r1+6*dy_t); text("> Time 5= "+tiempo_5+" hours", x_r1+mx_r1, y_r1+my_r1+7*dy_t); estado_CDI=" "; switch(int(dato_3)) { case 1: estado_CDI="Precarga"; break; case 2: estado_CDI="Cargando"; break; case 3: estado_CDI="Auto-descarga"; break; case 4: estado_CDI="Finalizado"; break; case 0: estado_CDI="Stop"; break; } /********************************************************************************* Save data to file txt **********************************************************************************/ guardar_datos=int(dato_3); if(guardar_datos>3){ guardar_datos=0; archivo.close(); } if(tipo_ensayo=="0"){ guardar_datos=0; } if(guardar_datos>0){ archivo.print(year( )+" "); // Year archivo.print(month( )+" "); // Month archivo.print(day( )+" "); // Day archivo.print(hour( )+" "); // Hours archivo.print(minute( )+" "); // minutes archivo.print(second( )+" "); // Seconds archivo.print(tipo_ensayo+" "); archivo.print(dato_3+" "); archivo.print(dato_1+" "); archivo.println(dato_2+" ");

107archivo.flush(); } } } catch(RuntimeException e) { println(e); } } /********************************************************************************* **********************************************************************************/ public void cargar_parametros_archivo(int theValue) { println("Botón del Evento: "+theValue);

108String lines[] = loadStrings("Ensayo."+para_nom_archivo); String list[] = split(lines [1], ':'); tipo_CDI=list [1]; list = split(lines [2], ':'); tiempo_1 =list [1]; list = split(lines [3], ':'); tiempo_2 =list [1]; list = split(lines [4], ':'); tiempo_3 =list [1]; list = split(lines [5], ':'); I_c =list [1]; list = split(lines [6], ':'); V_c =list [1]; para_nom_archivo="nombre.txt"; } /********************************************************************************* Subrutines **********************************************************************************/

참고문헌 31건

  1. Electrochemically Controlled Ion Exchange Journal of The Electrochemical Society · Institute of Physics · 1969 10.1149/1.2411821
  2. Desalination of a thermal power plant wastewater by membrane capacitive deionization Desalination · Elsevier BV · 2006 10.1016/j.desal.2006.01.011
  3. Experimental study of supercapacitor serial resistance and capacitance variations with temperature Journal of Power Sources · Elsevier BV · 2003 10.1016/s0378-7753(03)00527-5
  4. The Mechanism of Demineralization at Carbon Electrodes Journal of The Electrochemical Society · Institute of Physics · 1966 10.1149/1.2423813
  5. Capacitive deionization as an electrochemical means of saving energy and delivering clean water. Comparison to present desalination practices: Will it compete? Electrochimica Acta · Elsevier BV · 2010 10.1016/j.electacta.2010.02.012
  6. STUDIES ON THE ELECTROCHEMISTRY OF CARBON AND CHEMICALLY-MODIFIED CARBON SURFACES The Journal of Physical Chemistry · American Chemical Society · 1961 10.1021/j100819a038
  7. Electrosorptive desalination by carbon nanotubes and nanofibres electrodes and ion-exchange membranes Water Research · Elsevier BV · 2008 10.1016/j.watres.2008.09.026
  8. Membrane capacitive deionization Journal of Membrane Science · Elsevier BV · 2009 10.1016/j.memsci.2009.09.043
  9. Desalting by Means of Porous Carbon Electrodes Journal of The Electrochemical Society · Institute of Physics · 1971 10.1149/1.2408094
  10. Energy consumption and constant current operation in membrane capacitive deionization Energy & Environmental Science · Royal Society of Chemistry · 2012 10.1039/c2ee21737f
  11. Testing of electrochemical capacitors: Capacitance, resistance, energy density, and power capability Electrochimica Acta · Elsevier BV · 2010 10.1016/j.electacta.2010.04.074
  12. Electrochemical Parametric Pumping Journal of The Electrochemical Society · Institute of Physics · 1978 10.1149/1.2131570
  13. A control system for operating and investigating reactors: The demonstration of parasitic reactions in the water desalination by capacitive de-ionization Desalination · Elsevier BV · 2010 10.1016/j.desal.2010.10.037
  14. Improvement of desalination efficiency in capacitive deionization using a carbon electrode coated with an ion-exchange polymer Water Research · Elsevier BV · 2009 10.1016/j.watres.2009.10.017
  15. Capacitive desalination with flow-through electrodes Energy & Environmental Science · Royal Society of Chemistry · 2012 10.1039/c2ee21498a
  16. Analysis of power limitations at porous supercapacitor electrodes under cyclic voltammetry modulation and dc charge Journal of Power Sources · Elsevier BV · 2001 10.1016/s0378-7753(00)00682-0
  17. Desalination via a new membrane capacitive deionization process utilizing flow-electrodes Energy & Environmental Science · Royal Society of Chemistry · 2013 10.1039/c3ee24443a
  18. Water desalination by solar powered electrodialysis process Renewable Energy · Elsevier BV · 2003 10.1016/s0960-1481(03)00014-4
  19. Review on the science and technology of water desalination by capacitive deionization Progress in Materials Science · Elsevier BV · 2013 10.1016/j.pmatsci.2013.03.005
  20. Mathematical theory of electrochemical demineralization in flowing systems Electrochimica Acta · Elsevier BV · 1967 10.1016/0013-4686(67)80079-3
  21. Ultracapacitors self discharge modelling using a physical description of porous electrode impedance 2008 10.1109/vppc.2008.4677493
  22. Energetic performance optimization of a capacitive deionization system operating with transient cycles and brackish water Desalination · Elsevier BV · 2013 10.1016/j.desal.2013.01.014
  23. Theory of membrane capacitive deionization including the effect of the electrode pore space Journal of Colloid and Interface Science · Elsevier BV · 2011 10.1016/j.jcis.2011.04.049
  24. Characterization of double-layer capacitors for power electronics applications IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2000 10.1109/28.821816
  25. Energy Recovery in Membrane Capacitive Deionization Environmental Science & Technology · American Chemical Society · 2013 10.1021/es3053202
  26. Capacitive Deionization of NaCl Solutions at Non-Steady-State Conditions: Inversion Functionality of the Carbon Electrodes The Journal of Physical Chemistry C · American Chemical Society · 2011 10.1021/jp2047486
  27. Modern Aspects of Electrochemistry Modern aspects of electrochemistry · Springer Nature · 1999 10.1007/b114166
  28. Short Review on Predicting Fouling in RO Desalination Membranes · Multidisciplinary Digital Publishing Institute · 2017 10.3390/membranes7040062
  29. Climate Change Mitigation Strategy through Membranes Replacement and Determination Methodology of Carbon Footprint in Reverse Osmosis RO Desalination Plants for Islands and Isolated Territories Water · Multidisciplinary Digital Publishing Institute · 2021 10.3390/w13030293
  30. Seawater Reverse Osmosis Desalination Membranes · Multidisciplinary Digital Publishing Institute · 2021 10.3390/membranes11040243
  31. Electrochemical Supercapacitors Springer eBooks · Springer Nature · 2002 10.1007/0-306-47508-1_17