Salt concentration measurement model acquisition method, salt concentration measurement method, terminal device and medium
By applying a constant voltage to the electrolysis unit of the salt chlorinator, measuring the current value, and combining the voltage change to establish a salt concentration detection model, the problem of inaccurate brine concentration detection in the salt chlorinator is solved, achieving more accurate salt concentration detection and extending equipment life.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2026-03-26
AI Technical Summary
Existing technologies cannot accurately determine the concentration of brine in a salt chlorinator, leading to poor purification results or shortened equipment lifespan.
By applying a constant voltage across the electrolysis unit of the salt chlorinator, the current values at different salt concentrations are measured. The initial relationship is obtained by fitting the data using the least squares method, and the compensation relationship is determined by combining the voltage change. A salt concentration detection model is established and self-calibrated to improve detection accuracy.
This improves the accuracy of salt concentration detection, reduces concentration deviations caused by initial conditions, and ensures the normal operation and purification effect of the salt chlorinator.
Smart Images

Figure CN2025107058_26032026_PF_FP_ABST
Abstract
Description
Salt concentration detection model acquisition method, detection method, terminal device and medium
[0001] Cross-reference to related disclosures
[0002] The present disclosure claims priority from the Chinese patent application No. 2024112997838, filed on September 18, 2024, and entitled "Salt concentration detection model acquisition method, detection method, terminal device and medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] The present disclosure relates to the technical field of detection, and in particular to a salt concentration detection model acquisition method, a detection method, a terminal device and a medium. BACKGROUND
[0004] A salt chlorinator is a device that converts salt water (sodium chloride solution) into sodium hypochlorite (NaClO) through electrolysis. It is commonly used for disinfection of swimming pool water, i.e., the water in the swimming pool flows out of the pool through the water outlet, enters the water inlet pipe of the salt chlorinator, and the salt chlorinator performs electrolysis on the sewage in the pool to generate ClO — with specific bactericidal effect, and then flows back to the pool through the water outlet pipe of the salt chlorinator.
[0005] The salt chlorinator usually purifies the swimming pool water by electrolysis using the electrolysis unit in the salt chlorinator. However, if the salt water concentration is too high, the salt chlorinator output will be too large for a long time, the service life of the electrolysis unit will be shortened, and the resistance will gradually increase after long-term use, resulting in abnormal output and poor purification effect of the swimming pool. If the salt water concentration is too low, the salt chlorinator output will be insufficient, thereby affecting the water quality. Therefore, the salt water concentration affects the purification effect of the salt chlorinator, and thus the real-time salt water concentration needs to be obtained.
[0006] SUMMARY
[0007] Therefore, the embodiments of the present disclosure 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 real-time salt water concentration.
[0008] In a first aspect, the embodiments of the present disclosure provide a salt concentration detection model acquisition method, comprising:
[0009] A constant voltage is applied across the electrodes of the electrolysis unit of the salt chlorinator, and the electrolysis unit is placed in salt water with different salt concentrations for electrolysis to obtain corresponding current values of the electrolysis unit under different salt concentrations, respectively;
[0010] An initial relationship between salt concentration and current value is determined according to the corresponding current values under different salt concentrations;
[0011] Install the electrolytic unit in a power supply control box, control the salt chlorinator to electrolyze salt water with different salt concentrations, and obtain corresponding current values and voltage values of the electrolytic unit under different salt concentrations;
[0012] According to the corresponding current values and voltage values under different salt concentrations, a compensation relationship of the salt concentration is determined.
[0013] According to the initial relationship of the salt concentration and the current value and the compensation relationship of the salt concentration, a salt concentration detection model is determined.
[0014] In some embodiments, the initial relationship of the salt concentration and the current value is determined according to the corresponding current values under different salt concentrations, comprising:
[0015] The least square method is used to fit different salt concentrations and corresponding current values to obtain the initial relationship of the salt concentration and the current value.
[0016] In some embodiments, the initial relationship of the salt concentration and the current value satisfies a linear function relationship, comprising:
[0017] TDS0=k*I+f
[0018] In the formula, TDS0 is the theoretical value of the salt concentration, I is the current value of the electrolytic unit, and k and f are constants.
[0019] In some embodiments, the compensation relationship of the salt concentration is determined according to the corresponding current values and voltage values under different salt concentrations, comprising:
[0020] According to the corresponding voltage values of the different salt concentrations, an average change amount of the salt concentration is determined.
[0021] According to the actual working voltage and the standard working voltage of the electrolytic unit, an actual voltage difference of the electrolytic unit is determined.
[0022] According to the average change amount of the salt concentration and the actual voltage difference, the compensation relationship of the salt concentration is determined.
[0023] In some embodiments, the compensation relationship of the salt concentration is:
[0024] △TDS=(V-V0)*h
[0025] In the formula, △TDS is the compensation amount of the salt concentration, V is the standard working voltage of the electrolytic unit, V0 is the actual working voltage of the electrolytic unit, V-V0 is the actual voltage difference of the electrolytic unit, and h is the average change amount of the salt concentration.
[0026] In some embodiments, the salt concentration detection model is:
[0027] TDS=k*I+f+(V-V0)*h
[0028] In the formula, 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.
[0029] In some embodiments, further comprising:
[0030] After the salt chlorinator has been working for a certain period of time, the salt concentration detection model is self-calibrated.
[0031] The self-calibration comprises:
[0032] A constant voltage is applied across the electrodes of the electrolytic unit, and the electrolytic unit is placed in salt water of different set salt concentrations for electrolysis, and the corresponding current values of the electrolytic unit at different set salt concentrations are obtained respectively; wherein the number of different set salt concentrations is less than the number of different salt concentrations.
[0033] According to the corresponding current values at different set salt concentrations, the real-time relationship between the salt concentration and the current value is determined.
[0034] According to the real-time relationship between the salt concentration and the current value, the initial relationship between the salt concentration and the current value is updated to obtain an updated salt concentration detection model.
[0035] In a second aspect, the embodiments of the present disclosure provide a salt concentration detection method, comprising:
[0036] During the process of electrolysis of salt water in the current swimming pool by the salt chlorinator, the actual operating voltage and current value of the electrolytic unit are obtained.
[0037] The actual operating voltage and current value of the electrolytic unit are input into the salt concentration detection model to obtain the salt concentration in the current swimming pool.
[0038] The salt concentration detection model is obtained by the above-mentioned salt concentration detection model obtaining method.
[0039] In a third aspect, the embodiments of the present disclosure provide a terminal device, comprising a processor and a memory, the memory stores a computer program, and the processor is configured to execute the computer program to implement the above-mentioned salt concentration detection model obtaining method or the above-mentioned salt concentration detection method.
[0040] In a fourth aspect, the embodiments of the present disclosure provide a computer readable storage medium, which stores a computer program, and when the computer program is executed on a processor, the above-mentioned salt concentration detection model obtaining method or the above-mentioned salt concentration detection method is implemented.
[0041] Embodiments of the present disclosure have the following beneficial effects:
[0042] The present disclosure determines the initial relationship between the salt concentration and the current value and the compensation relationship of the salt concentration by the corresponding current value under different salt concentrations and the corresponding current value and voltage value under different salt concentrations measured under different conditions, and based on the compensation of the compensation relationship, the deviation of the concentration caused by only the initial relationship can be reduced, thereby improving the accuracy of the salt concentration detection model, and further improving the accuracy of the salt concentration detection. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0044] FIG. 1 shows a flowchart of a salt concentration detection model acquisition method in an embodiment of the present disclosure;
[0045] FIG. 2 shows a flowchart of determining a compensation relationship of the salt concentration in an embodiment of the present disclosure;
[0046] FIG. 3 shows a flowchart of self-calibration of the salt concentration detection model in an embodiment of the present disclosure;
[0047] FIG. 4 shows a flowchart of a salt concentration detection method in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in combination with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, not all the embodiments.
[0049] The components of the embodiments of the present disclosure generally described and shown in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the claimed present disclosure, but only represents selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the scope of the present disclosure.
[0050] Hereinafter, the terms "include", "has", and similar terms used in the various embodiments of the present disclosure are merely intended to denote that there is a certain feature, number, step, operation, component, part, or combination thereof, and are not intended to exclude the presence or possibility of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.
[0051] Unless defined otherwise, all terms used herein (including technical terms and scientific terms) have the same meanings as those generally understood by those having ordinary knowledge in the field to which the various embodiments of the present disclosure belong. Such terms as those defined in a generally used dictionary are to be interpreted to have the same meanings as those in the context of relevant technology and are not to be interpreted to have ideal or excessively formal meanings unless clearly defined in the various embodiments of the present disclosure.
[0052] Some embodiments of the present disclosure will be described below in detail with reference to the accompanying drawings. The following embodiments and features of the embodiments can be combined with each other unless there is a conflict.
[0053] In order to accurately obtain real-time brine concentration, in the past, a plurality of brines were first prepared in a laboratory, such as brine concentration required for normal operation of a salt chlorinator is 3500 ppm, then brine is prepared from 750 ppm, and a brine is prepared every time the concentration increases by 100 ppm until 6500 ppm. 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 brine concentration relationship table, and finally during actual operation of the salt chlorinator, the actual working current is used to find the closest brine concentration value. The existing brine concentration detection method is time-consuming and laborious, and the obtained data is segmented, and the brine concentration data is not smooth enough.
[0054] To this end, the present disclosure proposes a scheme for determining brine concentration according to current and voltage, thereby improving the detection result of real-time brine concentration.
[0055] The following describes the method for determining brine concentration in a swimming pool according to some specific embodiments.
[0056] FIG. 1 shows a flowchart of a brine concentration detection model acquisition method according to an embodiment of the present disclosure. In the embodiment of the present disclosure, the brine concentration detection model acquisition method includes the following steps:
[0057] S100, a constant voltage is applied between the electrodes of the electrolytic unit of the salt chlorinator, and the electrolytic unit is placed in salt water with different salt concentrations for electrolysis, and the corresponding current values of the electrolytic unit under different salt concentrations are obtained.
[0058] In the embodiments of the present disclosure, the standard salt concentration of the salt chlorinator during operation is 3500 ppm, and the corresponding standard operating voltage is 10.5 V. Therefore, different salt concentrations are set as 1500 ppm, 2000 ppm, 2500 ppm, 3000 ppm, 3500 ppm, 4000 ppm, 4500 ppm, 5000 ppm, and 5500 ppm. The constant voltage applied is the standard operating voltage 10.5 V of the electrolytic unit. The current values of the electrolytic unit during electrolysis of different salt concentrations are shown in Table 1, which are 10.89 A, 14.2 A, 17.81 A, 21.38 A, 25.0 A, 28.61 A, 32.22 A, 35.79 A, and 39.41 A, respectively.
[0059] Table 1
[0060] S200, according to the corresponding current values under different salt concentrations, the initial relationship between the salt concentration and the current value is determined.
[0061] The salt concentration and the current in Table 1 are analyzed to obtain a proportional relationship between the current and the salt concentration. The initial relationship between the salt concentration and the current value is obtained by fitting all the salt concentrations and the current values in the present disclosure.
[0062] In the embodiments of the present disclosure, the least square method is used to fit all the salt concentrations and the current values to obtain the initial relationship between the current value and the salt concentration, that is, TDS0=138.89*I+27.38. As another implementation manner, the linear regression method can also be used to fit all the salt concentrations and the current values to obtain the initial linear relationship between the current value I and the salt concentration TDS.
[0063] The initial relationship between the salt concentration and the current value obtained by the present disclosure is TDS0=k*I+f; wherein TDS0 is the theoretical value of the salt concentration, I is the current value of the electrolytic unit, and k and f are constants.
[0064] S300, after the electrolytic unit is installed in the power supply control box, the salt chlorinator is controlled to electrolyze salt water with different salt concentrations, and the corresponding current values and voltage values of the electrolytic unit under different salt concentrations are obtained.
[0065] In the embodiments of the present disclosure, in order to better analyze the influence of voltage, different salt concentrations are still set as 1500 ppm, 2000 ppm, 2500 ppm, 3000 ppm, 3500 ppm, 4000 ppm, 4500 ppm, 5000 ppm, and 5500 ppm. When the electrolytic unit is installed in the power supply control box, the measured current and salt concentration data are shown in Table 2. The measured current values of the electrolytic unit when electrolyzing different salt concentrations are 13.6 A, 16.45 A, 19.30 A, 22.15 A, 25.0 A, 27.85 A, 30.70 A, 33.55 A, and 36.40 A, respectively. The voltage values are 11.31 V, 11.13 V, 10.91 V, 10.69 V, 10.5 V, 10.29 V, 10.08 V, 9.90 V, and 9.68 V, respectively.
[0066] Table 2
[0067] S400, according to the corresponding current values and voltage values under different salt concentrations, the compensation relationship of the salt concentration is determined.
[0068] From Table 2, it can be analyzed that when the salt concentration decreases by 500 ppm, the voltage across the electrolytic unit decreases by about 0.2 V. The decrease in voltage across the electrolytic unit is caused by the voltage division of the internal circuit of the power supply control box, that is, the voltage division of the internal circuit of the power supply control box causes the voltage across the electrolytic unit to fluctuate. Therefore, the result of determining the salt concentration only according to the current is not accurate, and the influence of voltage on the salt concentration needs to be further analyzed.
[0069] The process of determining the compensation relationship of the salt concentration according to the corresponding current values and voltage values in the present disclosure is shown in FIG. 2, which includes the following steps.
[0070] S410, according to the voltage values corresponding to different salt concentrations, the average change amount of the salt concentration is determined.
[0071] In an embodiment of the present disclosure, a group of voltage values corresponding to a group of salt concentrations is taken as a reference group, and the remaining groups are taken as comparison groups. Then, the change amount of each group of salt concentrations of each comparison group relative to the reference group is determined. Finally, the average of all group salt concentration change amounts is obtained to obtain the average change amount of the salt concentration. Specifically, the standard working voltage corresponding to the salt concentration of 3500 ppm is taken as the reference group. The change amount of each group of salt concentrations relative to the reference group is calculated. Then, the average of all group salt concentration change amounts is obtained to obtain the average change amount of the salt concentration.
[0072] In another embodiment of the present disclosure, the total voltage difference and the total salt concentration difference are calculated first. Then, the average change amount of the salt concentration is calculated according to the total voltage difference and the total salt concentration difference.
[0073] S420, determining an actual voltage difference of the electrolysis unit according to the actual working voltage and the standard working voltage of the electrolysis unit.
[0074] The actual voltage difference of the electrolysis unit in the present disclosure is the difference between the standard working voltage and the actual working voltage.
[0075] S430, determining a compensation relationship of the salt concentration according to the average change amount of the salt concentration and the actual voltage difference.
[0076] The compensation relationship of the salt concentration in the present disclosure is:
[0077] △TDS=(V-V0)*h
[0078] In the formula, △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 h is the average change amount of the salt concentration.
[0079] S500, 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.
[0080] In the present disclosure, the actual salt concentration is obtained by compensating the salt concentration of the electrolysis unit under the constant voltage environment, that is, TDS=TDS0+△TDS, therefore, the salt concentration detection model in the present disclosure is:
[0081] TDS=k*I+f+(V-V0)*h
[0082] In the formula, 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 working voltage of the electrolysis unit, V0 is the actual working voltage of the electrolysis unit, and h is the average change amount of the salt concentration.
[0083] The present disclosure considers that the resistance of the electrolysis unit will gradually increase after long-term use, which will also affect the purification effect of the pool, therefore, after the salt chlorine machine works for a certain period of time, the salt concentration detection model is self-calibrated, as shown in FIG. 3, including:
[0084] S600, a constant voltage is applied to both ends of the electrode of the electrolysis unit, and the electrolysis unit is placed in salt water with different set salt concentrations for electrolysis, and corresponding current values of the electrolysis unit under different set salt concentrations are obtained.
[0085] In the present disclosure, the number of different set salt concentrations is less than the number of different salt concentrations, which can reduce the workload of customers using the salt chlorine machine when calibrating, and also facilitates rapid calibration.
[0086] S700, determining a real-time relationship between the salt concentration and the current value according to the corresponding current values under different set salt concentrations.
[0087] The real-time relationship between the salt concentration and the current value in the present disclosure is:
[0088] TDS0`=k`*I+f`
[0089] In the formula, TDS0` is the updated value of the salt concentration, I is the current value of the electrolysis unit, and k`, f` are the updated values of the constants.
[0090] 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.
[0091] In the present disclosure, the salt concentration of the electrolysis unit under the constant voltage environment is compensated to obtain the actual salt concentration, that is, TDS`=TDS0`+△TDS, therefore, the updated salt concentration detection model in the present disclosure is:
[0092] TDS`=k`*I+f`+(V-V0)*h
[0093] In the formula, TDS` is the actual value of the updated salt concentration, I is the current value of the electrolysis unit, k`, f` are the updated values of the constants, V is the standard working voltage of the electrolysis unit, V0 is the actual working voltage of the electrolysis unit, and h is the average change amount of the salt concentration.
[0094] FIG. 4 shows a flowchart of a salt concentration detection method according to an embodiment of the present disclosure. The salt concentration detection method includes the following steps:
[0095] S900, obtaining the actual working voltage and the current value of the electrolysis unit during the electrolysis process of the salt water in the current swimming pool by the salt chlorinator.
[0096] S910, inputting the actual working voltage and the current value of the electrolysis unit into the salt concentration detection model to obtain the salt concentration in the current swimming pool.
[0097] The salt concentration detection model in the present disclosure is obtained by the salt concentration detection model obtaining method in the above embodiment.
[0098] According to the present disclosure, the actual working voltage and the current value of the electrolysis unit during the electrolysis process are obtained, and the actual working voltage and the current value are substituted into the salt concentration detection model, so that the salt concentration in the swimming pool can be obtained.
[0099] The present disclosure also provides a terminal device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program, so that the terminal device executes the above-mentioned salt concentration detection model obtaining method or the above-mentioned salt concentration detection method.
[0100] It can be understood that the terminal device of the embodiment implements the salt concentration detection model acquisition method or the salt concentration detection method of the above-mentioned embodiments, and the optional items in the above-mentioned embodiments are also applicable to the embodiment, so the description is not repeated here.
[0101] The processor can be an integrated circuit chip with a signal processing capability. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), and a network processing unit (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations thereof. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc., and can implement or execute the disclosed methods, steps, and logic block diagrams in the embodiments of the present disclosure.
[0102] The memory can 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 can execute the computer program accordingly after receiving an execution instruction.
[0103] The present disclosure also provides a computer-readable storage medium for storing the computer program used in the terminal device. For example, the computer-readable storage medium can include, but is not limited to, a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0104] In several embodiments provided by the present disclosure, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are merely illustrative, for example, the flowcharts and structural diagrams in the drawings show the possible implementation architecture, function and operation of the apparatus, method and computer program product according to the embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation manners, the functions noted in the blocks can also occur in different order from that noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flowchart, and the combination of blocks in the structural diagram and / or flowchart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0105] In addition, each functional module or unit in the various embodiments of the present disclosure can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0106] 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 solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
[0107] The above description is merely a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Industrial applicability
[0108] By the above scheme, the initial relationship between the salt concentration and the current value and the compensation relationship of the salt concentration can be respectively determined according to the current values corresponding to different salt concentrations measured under different conditions and the current values and voltage values corresponding to different salt concentrations, and the deviation of the concentration caused by only the initial relationship can be reduced based on the compensation of the compensation relationship, so that the accuracy of the salt concentration detection model is improved, and the accuracy of the salt concentration detection is further improved.
Claims
1. A method for obtaining a salt concentration detection model, characterized in that, The method comprises the following steps: A constant voltage is applied to the electrodes of an electrolysis unit of a salt chlorinator, and the electrolysis unit is placed in salt water with different salt concentrations for electrolysis to obtain corresponding current values of the electrolysis unit under different salt concentrations; An initial relationship between salt concentration and current value is determined according to the corresponding current values under different salt concentrations; The electrolysis unit is installed in a power control box to control the electrolysis of the salt chlorinator on salt water with different salt concentrations, and corresponding current values and voltage values of the electrolysis unit under different salt concentrations are obtained; A compensation relationship of salt concentration is determined according to the corresponding current values and voltage values under different salt concentrations; A salt concentration detection model is determined according to the initial relationship between salt concentration and current value and the compensation relationship of salt concentration.
2. The salt concentration detection model acquisition method according to claim 1, characterized by, The initial relationship between salt concentration and current value is determined according to the corresponding current values under different salt concentrations, which comprises: The least square method is used to fit different salt concentrations and corresponding current values to obtain the initial relationship between salt concentration and current value.
3. The salt concentration detection model acquisition method according to claim 1 or 2, characterized by, The initial relationship between salt concentration and current value satisfies a linear function relationship, which comprises: TDS0=k*I+f In the formula, 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 salt concentration detection model acquisition method according to any one of claims 1 to 3, characterized by, The compensation relationship of salt concentration is determined according to the corresponding current values and voltage values under different salt concentrations, which comprises: The average change amount of salt concentration is determined according to the voltage values corresponding to different salt concentrations; The actual voltage difference of the electrolysis unit is determined according to the actual working voltage and the standard working voltage of the electrolysis unit; The compensation relationship of salt concentration is determined according to the average change amount of salt concentration and the actual voltage difference.
5. The salt concentration detection model acquisition method according to claim 4, characterized by, The compensation relationship of salt concentration is: △TDS=(V-V0)*h In the formula, △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 amount of the salt concentration.
6. The salt concentration detection model acquisition method according to any one of claims 1 to 5, characterized by, The salt concentration detection model is: TDS=k*I+f+(V-V0)*h In the formula, 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 working voltage of the electrolysis unit, V0 is the actual working voltage of the electrolysis unit, and h is the average change amount of the salt concentration.
7. The salt concentration detection model acquisition method according to any one of claims 1 to 6, characterized by, Further comprising: After the salt chlorinator works for a certain period of time, the salt concentration detection model is self-calibrated; The self-calibration comprises: A constant voltage is applied to the electrodes of an electrolysis unit, and the electrolysis unit is placed in salt water with different set salt concentrations for electrolysis to obtain corresponding current values of the electrolysis unit under different set salt concentrations; wherein the number of different set salt concentrations is less than the number of different salt concentrations; A real-time relationship between salt concentration and current value is determined according to the corresponding current values under different set salt concentrations; The initial relationship between salt concentration and current value is updated according to the real-time relationship between salt concentration and current value to obtain an updated salt concentration detection model.
8. A method of detecting a salt concentration, characterized by, The actual working voltage and current value of the electrolysis unit in the electrolysis process of the salt water in the current swimming pool are acquired; The actual working voltage and current value of the electrolysis unit are input into the salt concentration detection model to obtain the salt concentration in the current swimming pool; The salt concentration detection model is obtained by the salt concentration detection model acquisition method in any one of claims 1-7.
9. A terminal device, comprising: The terminal device comprises a processor and a memory, the memory stores a computer program, and the processor is configured to execute the computer program to implement the salt concentration detection model acquisition method in any one of claims 1-7 or the salt concentration detection method in claim 8.
10. A computer-readable storage medium, characterized in that, The computer program is stored in the memory and is configured to be executed on the processor to implement the salt concentration detection model acquisition method in any one of claims 1-7 or the salt concentration detection method in claim 8.
Citation Information
Patent Citations
Salt content detection method and device, electrolysis control method and device, detection circuit and sterilizer
CN113026055A
Swimming pool sterilization control method, device and equipment and storage medium
CN116102137A
Salt chlorine machine control method and circuit
CN117348615A
Salt concentration detection model acquisition method, detection method, terminal equipment and medium
CN119165016A
Circuit for measuring salinity concentration
JP2002005862A