Salt concentration detection model acquisition method, detection method, terminal equipment and medium

By applying a constant voltage and measuring current values at varying salt concentrations, the method compensates for voltage fluctuations to accurately determine salt concentration, improving the performance and longevity of salt chlorinators.

CN119165016AInactive Publication Date: 2024-12-20CHLORITECH INTERNATIONAL CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411299783.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing salt chlorinators struggle to accurately determine real-time salt water concentration, leading to reduced electrolytic unit lifespan and inconsistent purification effects due to high or low salt concentrations.

Method used

A method involving applying a constant voltage across electrodes, measuring current values at varying salt concentrations, determining initial and compensation relationship of salt concentrations, and determining an average change in salt concentrations, and determining an average change in salt concentrations, and using a salt concentration detection model to compensate for voltage fluctuations, thereby improving accuracy.

Benefits of technology

The method enhances the accuracy of salt concentration detection by accounting for voltage variations, ensuring consistent electrolytic unit performance and effective purification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119165016A_ABST
    Figure CN119165016A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of salt concentration detection, and discloses a salt concentration detection model obtaining method, a detection method, terminal equipment and a medium, the method comprises the following steps: obtaining corresponding current values of an electrolysis unit under different salt concentrations when the electrolysis unit is placed in salt water with different salt concentrations for electrolysis; determining an initial relationship between the salt concentration and the current value according to the current values corresponding to different salt concentrations; acquiring corresponding current values and voltage values of the electrolysis unit under different salt concentrations when the electrolysis unit is mounted in the power supply control box; according to the current values and the voltage values corresponding to different salt concentrations, the compensation relation of the salt concentrations is determined; and finally, determining a salt concentration detection model according to the initial relationship between the salt concentration and the current value and the compensation relationship of the salt concentration. By using the salt concentration detection model, the accuracy of salt concentration detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of detection technology, and in particular to a salt concentration detection model acquisition method, a detection method, a terminal device and a medium. Background Art

[0002] The salt chlorinator is a device that converts salt water (sodium chloride solution) into sodium hypochlorite (NaClO) through electrolysis. It is usually used to disinfect swimming pool water. That is, the swimming pool water flows out of the swimming pool through the outlet and enters the water inlet pipe of the salt chlorinator. The salt chlorinator electrolyzes the sewage in the swimming pool to generate ClO with specific bactericidal effect. — , and then flows back into the swimming pool through the outlet pipe of the salt chlorine machine.

[0003] Salt chlorine machines usually use the electrolytic unit in the salt chlorine machine to purify swimming pool water by electrolysis. When using a salt chlorine machine to purify swimming pool water, if the salt water concentration is too high, the output of the salt chlorine machine will be too large for a long time, the life of the electrolytic unit will become shorter, and the resistance value will gradually increase after long-term use, resulting in abnormal output and poor swimming pool purification effect; if the salt water concentration is too low, it will cause insufficient output of the salt chlorine machine, thus affecting the water quality. Therefore, the salt water concentration will affect the purification effect of the salt chlorine machine, so it is necessary to obtain the real-time salt water concentration. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a salt concentration detection model acquisition method, a detection method, a terminal device and a medium, which can effectively solve the problem of being unable to accurately obtain the real-time salt water concentration.

[0005] In a first aspect, an embodiment of the present application provides a method for obtaining a salt concentration detection model, comprising:

[0006] Applying a constant voltage across the electrodes of the electrolysis unit of the salt chlorinator, placing the electrolysis unit in salt water with different salt concentrations for electrolysis, and obtaining current values ​​corresponding to the electrolysis unit at different salt concentrations;

[0007] Determining an initial relationship between salt concentration and current value according to the current values ​​corresponding to the different salt concentrations;

[0008] The electrolysis unit is installed in a power control box, and the salt chlorinator is controlled to electrolyze salt water with different salt concentrations, and the current value and voltage value corresponding to the electrolysis unit under different salt concentrations are obtained;

[0009] Determining a compensation relationship of salt concentration according to the current values ​​and voltage values ​​corresponding to the different salt concentrations;

[0010] A salt concentration detection model is determined according to the initial relationship between the salt concentration and the current value and the compensation relationship of the salt concentration.

[0011] In some embodiments, determining the initial relationship between salt concentration and current value according to the current values ​​corresponding to the different salt concentrations includes:

[0012] The least square method was used to fit different salt concentrations and the corresponding current values ​​to obtain the initial relationship between the salt concentration and the current value.

[0013] In some embodiments, the initial relationship between the salt concentration and the current value satisfies a linear function relationship, including:

[0014] TDS 0 =k*I+f

[0015] Where, TDS 0 is the theoretical value of the salt concentration, I is the current value of the electrolysis unit, and k and f are constants.

[0016] In some embodiments, determining the compensation relationship of salt concentration according to the current values ​​and voltage values ​​corresponding to the different salt concentrations includes:

[0017] Determining an average change in salt concentration according to the voltage values ​​corresponding to the different salt concentrations;

[0018] Determining an actual voltage difference of the electrolysis unit according to the actual working voltage and the standard working voltage of the electrolysis unit;

[0019] The compensation relationship of the salt concentration is determined according to the average change in the salt concentration and the actual voltage difference.

[0020] In some embodiments, the compensation relationship of salt concentration is:

[0021] △TDS=(VV 0 )*h

[0022] Wherein, △TDS is the compensation amount of the salt concentration, V is the standard working voltage of the electrolysis unit, V0 is the actual working voltage of the electrolysis unit, and VV 0 is the actual voltage difference of the electrolysis unit, and h is the average change in salt concentration.

[0023] In some embodiments, the salt concentration detection model is:

[0024] TDS=k*I+f+(VV 0 )*h

[0025] Wherein, TDS is the actual value of the salt concentration, I is the current value of the electrolysis unit, k and f are constants, V is the standard operating voltage of the electrolysis unit, and V 0 is the actual working voltage of the electrolysis unit, and h is the average change in salt concentration.

[0026] In some embodiments, it also includes:

[0027] After the salt chlorinator has been operating for a certain period of time, the salt concentration detection model is self-calibrated;

[0028] The self-calibration comprises:

[0029] A constant voltage is applied to both ends of the electrodes of the electrolysis unit, and the electrolysis unit is placed in salt water with different set salt concentrations for electrolysis, and the current values ​​corresponding to the electrolysis unit under the different set salt concentrations are obtained respectively; wherein the number of the different set salt concentrations is less than the number of the different salt concentrations;

[0030] Determining the real-time relationship between the salt concentration and the current value according to the current values ​​corresponding to the different set salt concentrations;

[0031] The initial relationship between the salt concentration and the current value is updated according to the real-time relationship between the salt concentration and the current value to obtain an updated salt concentration detection model.

[0032] In a second aspect, the present application provides a method for detecting salt concentration, comprising:

[0033] Obtain the actual working voltage and current value of the electrolysis unit during the electrolysis of the salt water in the current swimming pool by the salt chlorinator;

[0034] Input the actual working voltage and current value of the electrolysis unit into the salt concentration detection model to obtain the current salt concentration in the swimming pool;

[0035] Wherein, the salt concentration detection model is obtained using the above-mentioned salt concentration detection model acquisition method.

[0036] In a third aspect, an embodiment of the present application provides a terminal device, comprising a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned salt concentration detection model acquisition method or the above-mentioned salt concentration detection method.

[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned salt concentration detection model acquisition method or the above-mentioned salt concentration detection method.

[0038] The embodiments of the present application have the following beneficial effects:

[0039] The present application determines the initial relationship between salt concentration and current value and the compensation relationship of salt concentration by measuring the current values ​​corresponding to different salt concentrations and the current values ​​and voltage values ​​corresponding to different salt concentrations under different conditions. Compensation based on the compensation relationship can reduce the concentration deviation caused by the initial relationship alone, thereby improving the accuracy of the salt concentration detection model, and further improving the accuracy of salt concentration detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A flow chart of a method for obtaining a salt concentration detection model in an embodiment of the present application is shown;

[0042] Figure 2 A flow chart showing a compensation relationship for determining salt concentration in an embodiment of the present application is shown;

[0043] Figure 3 A schematic diagram of a process for self-calibration of a salt concentration detection model in an embodiment of the present application is shown;

[0044] Figure 4 A schematic flow chart of a method for detecting salt concentration in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0046] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0047] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0048] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0049] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0050] In order to accurately obtain the real-time brine concentration, in the past, a variety of brine was first prepared in the laboratory. For example, the brine concentration required for the normal operation of the salt chlorine machine is 3500ppm, so the prepared brine starts from 750ppm, and a portion of brine is prepared for each increase of 100ppm until 6500ppm. Then a constant voltage is applied to the electrolytic unit, and the electrolytic unit is placed in the brine, and the working current under different brine concentrations is recorded to obtain a set of current and salt concentration relationship tables. Finally, when the salt chlorine machine is actually running, a relatively close salt concentration value is found based on the actual working current. The existing salt concentration detection method is time-consuming and labor-intensive, and the data obtained is segmented, and the brine concentration data is not smooth enough.

[0051] To this end, the present application proposes a solution for determining salt concentration based on current and voltage, thereby improving the detection result of real-time salt concentration.

[0052] The method for concentrating the salt concentration in a swimming pool is described below with reference to some specific embodiments.

[0053] Figure 1 A flow chart of a method for obtaining a salt concentration detection model in an embodiment of the present application is shown. Exemplarily, in an embodiment of the present application, the method for obtaining a salt concentration detection model includes the following steps:

[0054] S100, applying a constant voltage across the electrodes of the electrolysis unit of the salt chlorinator, placing the electrolysis unit in salt water with different salt concentrations for electrolysis, and obtaining current values ​​corresponding to the electrolysis unit at different salt concentrations.

[0055] In the embodiment of the present application, the standard salt concentration of the salt chlorinator when working is 3500ppm, and the corresponding standard working voltage is 10.5V. Therefore, different salt concentrations are set to 1500ppm, 2000ppm, 2500ppm, 3000ppm, 3500ppm, 4000ppm, 4500ppm, 5000ppm, and 5500ppm, respectively. The applied constant voltage is the standard working voltage of the electrolysis unit of 10.5V. The current values ​​of the electrolysis unit when electrolyzing different salt concentrations are measured as shown in Table 1, which are 10.89A, 14.2A, 17.81A, 21.38A, 25.0A, 28.61A, 32.22A, 35.79A, and 39.41A, respectively.

[0056] Table 1

[0057]

[0058] S200, determining an initial relationship between salt concentration and current value according to current values ​​corresponding to different salt concentrations.

[0059] The salt concentration and current in Table 1 are analyzed to obtain a proportional relationship between the current and the salt concentration. The present application performs fitting processing on all salt concentrations and current values ​​to obtain an initial relationship between the salt concentration and the current value.

[0060] In the present embodiment, the least square method is used to fit all salt concentrations and current values ​​to obtain the initial relationship between the current value and the salt concentration, that is, TDS 0 =138.89*I+27.38; As another implementation, a linear regression method may be used to fit all salt concentrations and current values ​​to obtain an initial linear relationship between the current value I and the salt concentration TDS.

[0061] The initial relationship between salt concentration and current value obtained in this application is TDS 0 =k*I+f; where TDS 0 is the theoretical value of salt concentration, I is the current value of the electrolysis unit, and k and f are constants.

[0062] S300, after installing the electrolysis unit in the power control box, control the salt chlorinator to electrolyze salt water with different salt concentrations, and obtain the current value and voltage value corresponding to the electrolysis unit at different salt concentrations.

[0063] In the embodiment of the present application, in order to better analyze the influence of voltage, different salt concentrations are still set to 1500ppm, 2000ppm, 2500ppm, 3000ppm, 3500ppm, 4000ppm, 4500ppm, 5000ppm, and 5500ppm, respectively. When the electrolysis unit is installed in the power control box, the measured current and salt concentration data are shown in Table 2. The current values ​​of the electrolysis unit when electrolyzing different salt concentrations are measured are 13.6A, 16.45A, 19.30A, 22.15A, 25.0A, 27.85A, 30.70A, 33.55A, and 36.40A, respectively; the voltage values ​​are 11.31V, 11.13V, 10.91V, 10.69V, 10.5V, 10.29V, 10.08V, 9.90V, and 9.68V, respectively.

[0064] Table 2

[0065] Salt concentration (ppm) 1500 2000 2500 3000 3500 4000 4500 5000 5500 Current (A) 13.6 16.45 19.30 22.15 25.00 27.85 30.70 33.55 36.40 Voltage (V) 11.31 11.13 10.91 10.69 10.5 10.29 10.08 9.90 9.68

[0066] S400, determining a compensation relationship of salt concentration according to current values ​​and voltage values ​​corresponding to different salt concentrations.

[0067] From Table 2, it can be seen that for every 500ppm decrease in salt concentration, the voltage across the electrolysis unit will decrease by about 0.2V; and the decrease in voltage across the electrolysis unit is due to the voltage division caused by the internal circuit of the power control box, that is, the voltage division of the internal circuit of the power control box causes the voltage across the electrolysis unit to fluctuate. Therefore, the salt concentration result determined only based on the current is inaccurate, and further analysis of the effect of voltage on salt concentration is required.

[0068] The present application determines the compensation relationship of salt concentration according to the current value and voltage value corresponding to different salt concentrations. Figure 2 As shown, including:

[0069] S410, determining an average change in salt concentration according to voltage values ​​corresponding to different salt concentrations;

[0070] In one embodiment of the present application, a group of voltage values ​​corresponding to salt concentration is first used as a reference group and the remaining groups are used as comparison groups; then the change in salt concentration of each comparison group relative to the reference group is determined; finally, the change in salt concentration of all groups is averaged to obtain the average change in salt concentration; specifically, the standard operating voltage corresponding to a salt concentration of 3500ppm is used as a reference group, and the change in salt concentration of each group and the corresponding voltage value relative to the reference group is calculated, and then the change in salt concentration of all groups is averaged to obtain the average change in salt concentration.

[0071] In another embodiment of the present application, the total voltage difference and the total salt concentration difference are calculated first, and then the average change in salt concentration is calculated based on the total voltage difference and the total salt concentration difference.

[0072] S420, determining an actual voltage difference of the electrolysis unit according to the actual working voltage of the electrolysis unit and the standard working voltage;

[0073] In the present application, the actual voltage difference of the electrolysis unit is the difference between the standard working voltage and the actual working voltage.

[0074] S430, determining a compensation relationship of salt concentration according to the average change in salt concentration and the actual voltage difference;

[0075] The compensation relationship of salt concentration in this application is:

[0076] △TDS=(VV 0 )*h

[0077] Where △TDS is the compensation amount of salt concentration, V is the standard working voltage of the electrolysis unit, V 0 is the actual working voltage of the electrolysis unit, and h is the average change in salt concentration.

[0078] S500, determining a salt concentration detection model according to an initial relationship between salt concentration and current value and a compensation relationship of salt concentration.

[0079] In this application, the salt concentration of the electrolytic unit under constant pressure is compensated to obtain the actual salt concentration, that is, TDS = TDS 0 +△TDS, therefore, the salt concentration detection model in this application is:

[0080] TDS=k*I+f+(VV 0 )*h

[0081] Where TDS is the actual value of salt concentration, I is the current value of the electrolysis unit, k and f are constants, V is the standard working voltage of the electrolysis unit, and V 0 is the actual working voltage of the electrolysis unit, and h is the average change in salt concentration.

[0082] This application takes into account that the resistance of the electrolytic unit will gradually increase after long-term use, which will also affect the purification effect of the swimming pool. Therefore, after the salt chlorine machine has been working for a certain period of time, the salt concentration detection model is self-calibrated, such as Figure 3 As shown, including:

[0083] S600, applying a constant voltage across the electrodes of the electrolysis unit, and placing the electrolysis unit in salt water with different set salt concentrations for electrolysis, and obtaining current values ​​corresponding to the electrolysis unit at different set salt concentrations;

[0084] In the present application, the number of the different set salt concentrations is less than the number of the different salt concentrations, which can reduce the workload of customers using the salt chlorine machine during calibration and facilitate quick calibration.

[0085] S700, determining a real-time relationship between salt concentration and current value according to current values ​​corresponding to different set salt concentrations;

[0086] The real-time relationship between salt concentration and current value in this application is:

[0087] TDS 0 `=k`*I+f`

[0088] Where, TDS 0 ` is the updated value of salt concentration, I is the current value of the electrolysis unit, k` and f` are the updated values ​​of constants.

[0089] S800, updating the initial relationship between the salt concentration and the current value according to the real-time relationship between the salt concentration and the current value to obtain an updated salt concentration detection model.

[0090] In this application, the salt concentration of the electrolytic unit under constant pressure is compensated to obtain the actual salt concentration, that is, TDS`=TDS 0 `+△TDS, therefore, the updated salt concentration detection model in this application is:

[0091] TDS`=k`*I+f`+(VV 0 )*h

[0092] Where TDS` is the actual value of the updated salt concentration, I is the current value of the electrolysis unit, k` and f` are the updated values ​​of the constants, V is the standard operating voltage of the electrolysis unit, and V 0 is the actual working voltage of the electrolysis unit, and h is the average change in salt concentration.

[0093] Figure 4 A schematic flow chart of a method for detecting salt concentration according to an embodiment of the present application is shown. Exemplarily, the method for detecting salt concentration includes:

[0094] S900, obtaining actual working voltage and current values ​​of the electrolysis unit during the electrolysis of salt water in the current swimming pool by the salt chlorinator.

[0095] S910, inputting the actual working voltage and current value of the electrolysis unit into the salt concentration detection model to obtain the current salt concentration in the swimming pool.

[0096] The salt concentration detection model in the present application is obtained by using the salt concentration detection model acquisition method in the above embodiment.

[0097] The present application obtains the actual working voltage and current value of the electrolysis unit during the electrolysis process, and substitutes the actual working voltage and current value into the salt concentration detection model to obtain the salt concentration in the swimming pool.

[0098] The present application also provides a terminal device. Exemplarily, the terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the above-mentioned salt concentration detection model acquisition method or the above-mentioned salt concentration detection method.

[0099] It can be understood that the terminal device of this embodiment implements the salt concentration detection model acquisition method or the salt concentration detection method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.

[0100] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0101] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0102] The present application also provides a computer-readable storage medium for storing the computer program used in the above-mentioned terminal device. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0103] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0104] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0105] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0106] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for obtaining a salt concentration detection model, characterized in that: include: Applying a constant voltage across the electrodes of the electrolysis unit of the salt chlorinator, placing the electrolysis unit in salt water with different salt concentrations for electrolysis, and obtaining current values ​​corresponding to the electrolysis unit at different salt concentrations; Determining an initial relationship between salt concentration and current value according to the current values ​​corresponding to the different salt concentrations; The electrolysis unit is installed in a power control box, and the salt chlorinator is controlled to electrolyze salt water with different salt concentrations, and the current value and voltage value corresponding to the electrolysis unit under different salt concentrations are obtained; Determining a compensation relationship of salt concentration according to the current values ​​and voltage values ​​corresponding to the different salt concentrations; A salt concentration detection model is determined according to the initial relationship between the salt concentration and the current value and the compensation relationship of the salt concentration.

2. The method for obtaining a salt concentration detection model according to claim 1, characterized in that: The determining the initial relationship between the salt concentration and the current value according to the current values ​​corresponding to the different salt concentrations includes: The least square method was used to fit different salt concentrations and the corresponding current values ​​to obtain the initial relationship between the salt concentration and the current value.

3. The method for acquiring a salt concentration detection model according to claim 2, characterized in that: The initial relationship between the salt concentration and the current value satisfies a linear function relationship, including: TDS0=k*I+f Wherein, TDS0 is the theoretical value of the salt concentration, I is the current value of the electrolysis unit, and k and f are constants.

4. The method for acquiring a salt concentration detection model according to claim 1, characterized in that: The method of determining the compensation relationship of salt concentration according to the current values ​​and voltage values ​​corresponding to the different salt concentrations includes: Determining an average change in salt concentration according to the voltage values ​​corresponding to the different salt concentrations; Determining an actual voltage difference of the electrolysis unit according to the actual working voltage and the standard working voltage of the electrolysis unit; The compensation relationship of the salt concentration is determined according to the average change in the salt concentration and the actual voltage difference.

5. The method for obtaining a salt concentration detection model according to claim 4, characterized in that: The compensation relationship of the salt concentration is: △TDS=(V-V0)*h Wherein, ΔTDS is the compensation amount of the salt concentration, V is the standard working voltage of the electrolysis unit, V0 is the actual working voltage of the electrolysis unit, V-V0 is the actual voltage difference of the electrolysis unit, and h is the average change of the salt concentration.

6. The method for acquiring a salt concentration detection model according to claim 1, characterized in that: The salt concentration detection model is: TDS=k*I+f+(V-V0)*h Wherein, TDS is the actual value of the salt concentration, I is the current value of the electrolytic unit, k and f are constants, V is the standard operating voltage of the electrolytic unit, V0 is the actual operating voltage of the electrolytic unit, and h is the average change in the salt concentration.

7. The method for obtaining a salt concentration detection model according to claim 1, characterized in that: Also includes: After the salt chlorinator has been operating for a certain period of time, the salt concentration detection model is self-calibrated; The self-calibration comprises: A constant voltage is applied to both ends of the electrodes of the electrolysis unit, and the electrolysis unit is placed in salt water with different set salt concentrations for electrolysis, and the current values ​​corresponding to the electrolysis unit under the different set salt concentrations are obtained respectively; wherein the number of the different set salt concentrations is less than the number of the different salt concentrations; Determining the real-time relationship between the salt concentration and the current value according to the current values ​​corresponding to the different set salt concentrations; The initial relationship between the salt concentration and the current value is updated according to the real-time relationship between the salt concentration and the current value to obtain an updated salt concentration detection model.

8. A method for detecting salt concentration, characterized in that: include: Obtain the actual working voltage and current value of the electrolysis unit during the electrolysis of the salt water in the current swimming pool by the salt chlorinator; Input the actual working voltage and current value of the electrolysis unit into the salt concentration detection model to obtain the current salt concentration in the swimming pool; Wherein, the salt concentration detection model is obtained by using the salt concentration detection model acquisition method according to any one of claims 1-7.

9. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the salt concentration detection model acquisition method described in any one of claims 1 to 7 or the salt concentration detection method described in claim 8.

10. A computer-readable storage medium, characterized in that: The computer program is stored therein, and when the computer program is executed on a processor, the method for acquiring a salt concentration detection model according to any one of claims 1 to 7 or the method for detecting salt concentration according to claim 8 is implemented.

Citation Information

Cited By

  • Salt concentration measurement model acquisition method, salt concentration measurement method, terminal device and medium

    WO2026061099A1