1. Field of Invention
The subject disclosure relates to chlorine and pH sensing in fluid solutions and more particularly to a chlorine concentration detection and pH determination system for analyzing chlorine concentration and/or pH in spa or pool water.
2. Related Art
In the prior art, various devices for measuring chlorine (hypochlorous acid) concentration in water are known. Such devices include Oxidation Reduction Potential (ORP) sensors, amperometric sensors and Palin N,N-Diethyl-P-Phenylenediamine (DPD) testing apparatus.
The following is a summary of various aspects and advantages realizable according to various embodiments of the invention. It is provided as an introduction to assist those skilled in the art to more rapidly assimilate the detailed discussion which ensues and does not and is not intended in any way to limit the scope of the claims which are appended hereto in order to particularly point out the invention.
According to an illustrative embodiment, a method of measuring the level of chlorine in a salt water solution and the pH of that solution comprises measuring the UV absorption of a first sample of the first solution to generate a first absorption value, subjecting the solution to electrolysis to generate a catholyte, and measuring the UV absorption of the catholyte to generate a second absorption value. The level of chlorine in the solution and pH may then be determined using the first and second absorption values.
In an illustrative embodiment, the pH of the catholyte is changed such that all chlorine in the catholyte is converted to ClO− prior to measuring the absorption of the catholyte. In one embodiment, the pH of the catholyte is adjusted to be at or above a selected level prior to measuring the absorption thereof.
In one embodiment, the level of chlorine is determined using the equation:
where A293 is the absorption of ClO− at or near 293 nm, and A293alk is the absorption of the catholyte at or near 293 nm after the electrolysis has changed the pH of the catholyte sufficiently so that all chlorine is in hypochlorite form, “ε” is the extinction coefficient for hypochlorite, “l” is the length of the absorption path, and mwCl
In one embodiment, the pH is determined according to the equation:
where A293 is the absorption of ClO− at or near 293 nm, and A293alk is the absorption of the catholyte at or near 293 nm after the electrolysis has changed the pH of the catholyte sufficiently so that all chlorine is in hypochlorite form.
In one illustrative embodiment, an electrolysis cell is configured to generate separate anolyte and catholyte solutions. An advantage of the cell is that, in one embodiment, it can also generate chlorine. Thus, the cell may perform a dual function of sensing chlorine and pH, as well as generating chlorine for maintaining chlorine level in a spa or pool at specified levels.
The UV transmission cell 15 may comprise a photodiode with a known emission spectrum to generate a beam which is directed through a water-chlorine solution (e.g. spa water) contained in a cuvette which is, for example, 10 cm in length. The absorption of light is then detected by a photo sensor that is sensitive in the 293 nm region. In practice, it may be difficult to both create a wavelength and detect a wavelength precisely at 293 nm. Thus, in one embodiment, a range is employed, for example, a photodiode that emits light as close to target value as possible i.e., in a range between 280 and 310 nm, and a photodetector that has sensitivity as close to target as possible, for example, between 290-300 nm.
In the system of
Water from the spa 19 next flows to water a level sensor 21 and then to Data Acquisition Control Module (DAQ) unit 23. The DAQ 23 enables comparing measurements determined by the system with reference measurements. From the DAQ Control unit 23, water flows back into the electrolysis cell 11 through a valve 27. The valve 27 also receives a municipal water feed supplied through a pressure/flow measurement unit 25, which is a safety measure to protect the spa heater element (not shown).
Transmission measurements made by the UV transmission cell 15 comprise inputs to chlorine concentration and pH determining algorithms, which are processed by a computing device 31. The computing device 31 may comprise a microprocessor, a microcontroller, or other data processor or computer with suitable tangible memory or computer readable storage medium or media 30 for storage of, for example, non-transitory software, program instructions, program code, data, or information. The electronics further include a DAQ/Control Interface Unit 33, a programmable power supply 35, and a power control (H-Bridge) unit 37, which supplies power (voltage and current) to the electrolysis cell 11.
In one embodiment, transmission data from the UV cell 15 may be fed back to regulate the electrolysis process for optimized sensing and chlorine generation, and the recombined effluent maintains chlorine levels at pre-set levels in the spa bath. In one embodiment, the electrolysis cell 11 may be based on Boron doped diamond (BDD) electrodes and a Nafion separator and operated in switch mode in order to mitigate electrode fouling. The valve 27 enables the water flow from the electrolysis cell 11 to be close looped into the spa bath and also enables the municipal water feed to be supplied to the spa 19 for water level maintenance and sensor calibration routines.
Various other electrode materials may be used in various embodiments, for example, DSA (dimensional stable anode which is noble metal based, for example, alloys of Pd—Ir—Nb (pallidum iridium niobium), or BDD, boron doped diamond, or simply platinum. One of advantage of these materials is that they work in a polarity reversal operation, which is used to mitigate calcium deposits in the cell.
The electrolysis cell 11 may comprise four BDD electrodes, e.g. 43, 45, with leads 53, 55. The spacing between the electrodes, e.g. 43, 45, may be in the range of 3-5 mm (y direction) and the grid-separator felt-grid stack should occupy no more than 3 mm. The separator felt material 47 need not extend beyond the electrodes 43, 45, which individually are, in an illustrative embodiment, 1×1 cm2. In an illustrative embodiment, the thickness of the separator 47 may be between 0.5 and 1 mm, not including the support grids 48. The electrodes 43, 45 and separator felt 47 are aligned and distanced to specification, but the cell volume can be larger (extended in z and y dimensions) if the design calls for extra spacing to accommodate welding or fixturing features or pressure-flow characteristics. One embodiment supports laminar flow to avoid sedimentation resulting from turbulence-induced “no-flow” regions. No leaking should be permitted between the anode and cathode chambers beginning from the front end of the separator felt 47 and continuing downstream.
The support grid 48 can be polymer thin lanes directed parallel with flow (x direction). There should be no significant forces which push the separator 47 out of position and obviously the polymer support grid desirably takes up the least amount of area (xy) to avoid blockage of the ion path.
The BDD electrodes, e.g. 43, 45, which, in one embodiment may be 1×1 cm2 (xy) and ˜0.5-0.7 mm thick (z), are pressed into a trough 46 in the half-cell and connected to a titanium or copper lead 53, 55, using, for example, i.e. a conductive epoxy glue 57—the glue serving the multiple purposes of holding the electrodes 53, 45 in place, ensuring electrical contact between each electrode 43, 45 and its respective lead 53, 55, preventing saltwater access to the contacts, and preventing saltwater from leaking through a lead exit. If the fit between the electrodes 43, 45 and the trough 46 is somewhat tight, two glue holes may be established for the gluing process at the point where an electrical current lead is exiting.
The cell 11, by nature, is symmetric in the plane of the separator felt 47 (xy) and, in one embodiment, could be constructed from two identical halves. In such an embodiment, assembly may consist of gluing the lead, e.g. 53, and electrode, e.g. 43, in the half cell and then joining the two half cells together while placing the separator 47 and support grids 48 between the halves and welding the seam for permanent pressure tightness and a corrosion proof joint. The entrance and exit to the cell 11 may comprise a straight tube connector 50 for entrance and a T/Y structure 49, 51 (
In one embodiment, the algorithms performed by the computing device 31 to determine chlorine content and pH are as follows:
A. Chlorine:
B. pH:
where A293 is the absorption of ClO− at or near 293 nm, A293alk is the absorption at or near 293 nm of catholyte after the cathodic reaction has changed pH enough so that all chlorine is in hypochlorite form, “ε” is the extinction coefficient for hypochlorite, “l” is the length of the absorption path, mwCl
The pH algorithm of equation (2) may be derived as follows:
[HClO]□K[H+]+[ClO−] (3)
reorganize:
and introduce the relations based on Lambert-Behr:
[ClO−]∝A293 (6)
[HClO]+[ClO−]∝A293alk (7)
A=[ClO−]εl (8)
producing:
where A293 is the absorption at or near 293 nm and A293alk is the absorption at or near 293 nm of catholyte after cathodic reaction has changed pH enough so that all chlorine is in hypochlorite form. As is known, only hypochlorite absorbs UV at 293 nm.
Chlorine dissolved in water is hypochloric acid [HClO] with the corresponding base hypochlorite [ClO−].
Cl2HClO+Cl−ClO−+Cl− (10)
Therefore, producing or generating OH− at the cathode of the cell 11 eliminates HClO and increases ClO− and pH.
Studies indicate that the cathodic reaction is purely pH-changing, according to the reaction:
2H2O+2e−H2+2OH− (11)
This reaction of course increases the alkalinity of the solution at the cathode. In one illustrative embodiment, the cathodic reaction is employed to change pH enough so that all chlorine Cl2 in the solution is converted to hypochlorite ClO− form. In one embodiment the pH is changed by electrolysis for such purpose to a level at or above 9.0.
Accordingly, in an illustrative method or process, the UV absorption A293 of the salted spa water prior to electrolysis (e.g. at pH=7) is first measured by a spectrum analyzer, such as, for example, UV cell 15, then a second sample of the solution is subjected to electrolysis until the pH at the cathode is at or above 9.0. Once at a pH at or above 9.0, the UV absorption of the catholyte is measured by the spectrum analyzer to determine the UV absorption at 293 nm of the alkaline solution, which is denoted A293alk. The chlorine concentration [Cl2] and the pH of the solution are then determined, for example, by computing device 31, according to equations (1) and (2) above.
In one embodiment, once [Cl2] and pH are determined, tests may be performed to determine whether the pH and [Cl2] values are within acceptable ranges and action thereafter taken to adjust those parameters. For example, if the values for chlorine and pH are outside of a range of 7<pH<8.5 and 3<ppm[Cl2]<6 ppm, where “ppm” means parts per million, corrective actions may be taken.
In one embodiment, the electrolysis process is performed at ˜100° F. The electrolysis process preferably should not consume power that leads to excessive cell heating.
In an illustrative embodiment, a microcontroller for computing pH and chlorine concentration and performing other control functions may comprise a PIC 32 microprocessor with 512K bytes of flash ROM, suitable amounts of RAM, EEPROM, and adequate I/O peripherals for various port functions. Additionally, for the purposes of this disclosure, a computer readable medium stores computer data, which data can include computer program code that is executable by a computer, in machine readable form. By way of example, and not limitation, a computer readable medium may comprise computer readable storage medium or media, for tangible or fixed storage of non-transitory data, or communication media for transient interpretation of code-containing signals. Computer readable storage medium or media, as used herein, refers to non-transitory physical or tangible storage (as opposed to signals) and includes without limitation volatile and non-volatile, removable and non-removable storage media implemented in any method or technology for the tangible storage of non-transitory information such as computer-readable instructions, data structures, program modules or other data. Computer readable storage media includes, but is not limited to, RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other physical or material medium which can be used to tangibly store the desired information or data or instructions and which can be accessed by a computer or processor. In certain embodiments, when suitable computer program code is loaded into and executed by a computer (including, e.g., a microprocessor, microcontroller, data processor, or similar computing device), the computer becomes a specially configured apparatus.
Those skilled in the art will appreciate that various adaptations and modifications of the just described preferred embodiment can be configured without departing from the scope and spirit of the invention. Therefore, it is to be understood that, within the scope of the appended claims, the invention may be practiced other than as specifically described herein.