Water quality control method and device
By combining water quality detection sensors and PID algorithms to control the power of water treatment salt machine equipment and UV lamps, the problems of water quality changes and disinfection by-products in traditional water quality control methods are solved, achieving faster and more stable water quality control effects.
Patent Information
- Application Number
- CN202411693973.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2044-11-25
AI Technical Summary
Traditional water quality control methods use chlorine, which leads to changes in water quality and the production of disinfection by-products, and there is a risk of chlorine leakage.
Combining the ORP and turbidity data collected by the water quality detection sensor, the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the UV lamp to achieve intelligent control of water quality.
It achieves faster disinfection speed and more stable water quality control, reduces the production of disinfection by-products, and reduces the risk of chlorine leakage.
Smart Images

Figure CN119750673B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water quality monitoring, and in particular to a water quality control method and device. Background Art
[0002] Traditional water quality control typically uses water treatment equipment to electrolyze brine to produce chlorine. This chlorine dissolves in water to form hypochlorous acid, which is then used to disinfect swimming pool water. Chlorine has a high solubility in water and reacts quickly with it to produce a bactericidal substance. This provides a stable disinfectant effect, effectively killing a wide range of pathogenic microorganisms, including bacteria, viruses, and protozoa.
[0003] However, chlorine disinfection can alter water quality and produce disinfection byproducts, such as trihalomethanes, which pose potential risks to human health. Furthermore, chlorine itself has a pungent odor, and improper handling can lead to chlorine leaks, posing a threat to operators and nearby residents.
[0004] Therefore, how to control water quality in an appropriate way has become an important issue that needs to be solved urgently. Summary of the Invention
[0005] The present invention provides a water quality control method and device, which are used to solve the defects in the prior art that the use of water treatment salt machine equipment for water quality control will change the water quality, may produce disinfection by-products, and produce an irritating chlorine taste, and realize the comprehensive use of water treatment salt machine equipment and ultraviolet rays to control water quality.
[0006] The present invention provides a water quality control method, comprising:
[0007] Using a water quality detection sensor to collect water quality data of the water area, the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor;
[0008] According to the water quality data, a PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp to control the water quality of the water area.
[0009] According to a water quality control method provided by the present invention, the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp are controlled using a PID algorithm based on the water quality data, including:
[0010] determining, according to a preset range in which the turbidity information is located, a turbidity level corresponding to the preset range, wherein the preset range is pre-associated with the turbidity level;
[0011] When the turbidity level is the second level, the ultraviolet lamp and the water treatment salt machine equipment are turned on, and the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp.
[0012] According to a water quality control method provided by the present invention, after determining the turbidity level corresponding to the preset range according to the preset range of the turbidity information, the method further includes:
[0013] When the turbidity level is the first level, turning on the ultraviolet lamp, turning off the water treatment salt machine equipment, and using the PID algorithm to control the power of the ultraviolet lamp so that the collected ORP data is equal to the ORP target value;
[0014] When the turbidity level is the third level, the ultraviolet lamp is turned off, the water treatment salt machine equipment is turned on, and the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment so that the collected ORP data is equal to the ORP target value.
[0015] According to a water quality control method provided by the present invention, when the turbidity level is the second level, the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp, including:
[0016] determining a target power usage of the ultraviolet lamp according to the turbidity information;
[0017] Determining the target electrolysis power of the water treatment salt machine equipment according to the ORP data;
[0018] The PID algorithm is used to control the power of the ultraviolet lamp to reach the target power, and the electrolysis power of the water treatment salt machine equipment is controlled to reach the target electrolysis power, until the collected ORP data is equal to the ORP target value.
[0019] According to a water quality control method provided by the present invention, the target power of the ultraviolet lamp is determined according to the turbidity information; the target electrolysis power of the water treatment salt machine is determined according to the ORP data, including:
[0020] Obtaining the current temperature and current pH value of the water area;
[0021] comparing the preset range corresponding to the first level with the turbidity information, comparing the ORP data with the ORP target value, comparing the current temperature with the normal electrolysis temperature of the water treatment salt machine, and comparing the current pH value with the normal electrolysis pH value of the water treatment salt machine;
[0022] The target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment are determined according to the comparison result.
[0023] According to a water quality control method provided by the present invention, determining the target power usage according to the comparison result includes:
[0024] determining a ratio of a value within a preset range corresponding to the first level to the turbidity information, a first difference between the ORP data and the ORP target value, a second difference between the current temperature and a temperature at which the water treatment salt machine equipment performs normal electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment performs normal electrolysis;
[0025] Calculating the product of the ratio and the maximum operating power of the ultraviolet lamp;
[0026] The target power usage is obtained by weighting and adding the product, the first difference, the second difference, and the third difference.
[0027] According to a water quality control method provided by the present invention, determining the target electrolysis power according to the comparison result includes:
[0028] determining a first difference between the ORP data and the ORP target value, a fourth difference between a value within a preset range corresponding to the first level and the turbidity information, a second difference between the current temperature and a temperature at which the water treatment salt machine normally performs electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine normally performs electrolysis;
[0029] Calculating a weighted sum of the first difference and the fourth difference, and a weighted sum of the second difference and the third difference;
[0030] The difference between the two weighted sums is taken as the target electrolysis power.
[0031] The present invention also provides a water quality control device, comprising:
[0032] The acquisition module is used to use the water quality detection sensor to collect water quality data of the water area, wherein the water quality data includes ORP data collected by the ORP probe and turbidity information collected by the turbidity sensor;
[0033] The control module is used to control the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp using a PID algorithm according to the water quality data, so as to control the water quality of the water area.
[0034] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-described water quality control methods is implemented.
[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements any of the above-mentioned water quality control methods when executed by a processor.
[0036] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned water quality control methods.
[0037] The water quality control method and device provided by the present invention use water quality data fed back by water quality detection sensors, including ORP data collected by ORP probes and turbidity information collected by turbidity sensors, to adjust the electrolysis power of water treatment salt machine equipment and the power used by ultraviolet lamps through PID closed-loop control, thereby realizing intelligent control of water quality in the water area; an ultraviolet disinfection function is added to the hypochlorous acid disinfection of the water treatment salt machine equipment, and a joint control algorithm of electrolysis power and ultraviolet power is used to obtain faster disinfection speed, better disinfection effect and more stable water quality control. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 This is one of the flow diagrams of the water quality control method provided by the present invention;
[0040] Figure 2 This is the second flow chart of the water quality control method provided by the present invention;
[0041] Figure 3 This is a control flow diagram of the PID algorithm of the water quality control method provided by the present invention;
[0042] Figure 4 It is a structural schematic diagram of the water quality control device provided by the present invention;
[0043] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0044] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0045] The following combination Figure 1A water quality control method of the present invention is described, comprising:
[0046] Step 101: using a water quality detection sensor to collect water quality data of a water area, wherein the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor;
[0047] This embodiment can be applied to the disinfection and water quality control of water areas such as swimming pools. Water quality detection sensors collect feedback water quality data, such as using an ORP probe to collect ORP data and using a turbidity sensor to collect feedback turbidity information.
[0048] Step 102: Based on the water quality data, a PID (Proportion-Integral-Differential) algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp to control the water quality of the water area.
[0049] Turbidity information can be used to monitor the turbidity level of the water, which significantly impacts the effectiveness of UV lamps. The clearer the water, the better the UV lamp's penetration and the greater the disinfection effect. Therefore, turbidity information collected by turbidity sensors is needed to control UV lamp power.
[0050] ORP is a parameter that measures the relative strength of oxidants and reductants in water or solutions. It reflects the electron activity within the system, that is, the tendency of reactants to undergo oxidation or reduction reactions. A positive ORP value indicates that the system tends to undergo oxidation reactions; conversely, a negative ORP value means that the environment is more conducive to reduction reactions.
[0051] The water treatment salt machine equipment mainly controls the chlorine production efficiency by controlling its electrolysis power, thereby adjusting the ORP data of the water area and controlling the water quality.
[0052] PID closed-loop control is used to adjust the electrolysis power of the water treatment salt machine and the power used by the UV lamp, achieving intelligent water quality adjustment. The water quality data determines the adjustment range or target value.
[0053] This embodiment uses water quality data fed back by water quality detection sensors, including ORP data collected by ORP probes and turbidity information collected by turbidity sensors, to adjust the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp through PID closed-loop control, thereby realizing intelligent control of the water quality in the water area; on the basis of the hypochlorous acid disinfection of the water treatment salt machine equipment, an ultraviolet disinfection function is added, and through the joint control algorithm of electrolysis power and ultraviolet power, a faster disinfection speed, better disinfection effect and more stable water quality control are obtained.
[0054] On the basis of the above embodiment, the present embodiment uses the PID algorithm to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp, including:
[0055] determining, according to a preset range in which the turbidity information is located, a turbidity level corresponding to the preset range, wherein the preset range is pre-associated with the turbidity level;
[0056] When the turbidity level is the second level, the ultraviolet lamp and the water treatment salt machine equipment are turned on, and the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp.
[0057] like Figure 2 As shown, the turbidity information can be divided into three turbidity levels according to the preset range of the turbidity information, such as the first level A1 (clear), the second level A2 (slightly turbid) and the third level A3 (turbid).
[0058] The UV lamp power varies depending on the turbidity level of the turbidity information. The higher the turbidity level, the lower the UV lamp power. A fixed UV lamp power can be pre-set for each turbidity level.
[0059] When the turbidity information of the water area is the second level A2 (slightly turbid), the electrolysis of the water treatment salt machine equipment is turned on, and the ultraviolet lamp is turned on at the same time. The PID algorithm is used to jointly control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp to achieve joint disinfection and quickly improve water quality.
[0060] Based on the above embodiment, after determining the turbidity level corresponding to the preset range according to the preset range of the turbidity information, this embodiment further includes:
[0061] When the turbidity level is the first level, turning on the ultraviolet lamp, turning off the water treatment salt machine equipment, and using the PID algorithm to control the power of the ultraviolet lamp so that the collected ORP data is equal to the ORP target value;
[0062] When the turbidity level is the third level, the ultraviolet lamp is turned off, the water treatment salt machine equipment is turned on, and the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment so that the collected ORP data is equal to the ORP target value.
[0063] like Figure 2 As shown, when the turbidity information of the water area is the first level A1 (clear), only the ultraviolet light is turned on to maximize the disinfection effect.
[0064] When the turbidity information of the water area is the third level A3 (turbid), the water treatment salt machine equipment is turned on for high-power electrolysis, and the ultraviolet lamp is turned off at the same time, so as to achieve different control methods according to different water quality conditions and turbidity levels.
[0065] PID algorithm is a commonly used algorithm in closed-loop control systems. P, I and D are the abbreviations of proportional, integral and differential respectively. It is a closed-loop control algorithm that combines proportional, integral and differential into one. The feedback loop is introduced to control the system by using the deviation between the output (actual value) and the input (target value). The specific control process of the PID algorithm is as follows Figure 3 shown.
[0066] For example, in a water treatment salt machine control system, the input target is the ORP target value, the detection device is the ORP probe, the actual measured value is the value detected by the ORP probe, and the error obtained by comparison is the difference between the ORP target value and the measured ORP data. The value output after PID algorithm calculation is used to control the electrolysis power.
[0067] At the same time, the power of the UV lamp is controlled according to the turbidity information fed back by the turbidity sensor, thereby realizing closed-loop control, accurately controlling the water quality ORP, and achieving faster and better disinfection effects.
[0068] On the basis of the above embodiment, in this embodiment, when the turbidity level is the second level, the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp, including:
[0069] determining a target power usage of the ultraviolet lamp according to the turbidity information;
[0070] Determining the target electrolysis power of the water treatment salt machine equipment according to the ORP data;
[0071] The PID algorithm is used to control the power of the ultraviolet lamp to reach the target power, and the electrolysis power of the water treatment salt machine equipment is controlled to reach the target electrolysis power, until the collected ORP data is equal to the ORP target value.
[0072] When the turbidity level is the second level, the target power usage of the ultraviolet lamp is further determined according to the turbidity information. The greater the turbidity information, the smaller the target power usage of the ultraviolet lamp, thereby achieving fine-grained control of the power usage of the ultraviolet lamp.
[0073] The electrolysis of the water treatment salt machine equipment affects the ORP data of the water quality. The target electrolysis power of the water treatment salt machine equipment is determined based on the ORP data. The greater the distance the ORP data deviates from the normal ORP range, the greater the target electrolysis power of the water treatment salt machine equipment.
[0074] This embodiment collects water quality data in real time, and dynamically adjusts the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment according to the water quality data, thereby achieving rapid and accurate control of water quality and improving the disinfection effect.
[0075] Based on the above embodiment, in this embodiment, the target power of the ultraviolet lamp is determined according to the turbidity information; and the target electrolysis power of the water treatment salt machine is determined according to the ORP data, including:
[0076] Obtaining the current temperature and current pH value of the water area;
[0077] comparing the preset range corresponding to the first level with the turbidity information, comparing the ORP data with the ORP target value, comparing the current temperature with the normal electrolysis temperature of the water treatment salt machine, and comparing the current pH value with the normal electrolysis pH value of the water treatment salt machine;
[0078] The target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment are determined according to the comparison result.
[0079] This embodiment takes into account that the temperature and pH value of the water area affect the disinfection effect of the water treatment salt machine equipment, so the current temperature and current pH value of the water area are obtained to control the power usage of the ultraviolet lamp and the electrolysis power of the water treatment salt machine equipment.
[0080] The greater the distance that the current turbidity information of the water area deviates from the preset range corresponding to the first level A1 (clear), the worse the disinfection effect of the ultraviolet lamp is, and the lower the power used by the ultraviolet lamp is.
[0081] The greater the distance between the ORP data and the ORP target value, the worse the water quality is, and it is necessary to increase the power of the UV lamp and the electrolysis power of the water treatment salt machine equipment.
[0082] The greater the distance between the current temperature and the normal electrolysis temperature of the water treatment salt machine equipment, the greater the distance between the current pH value and the normal electrolysis pH value of the water treatment salt machine equipment, the worse the disinfection effect of the water treatment salt machine equipment, and the smaller the electrolysis power of the water treatment salt machine equipment.
[0083] This embodiment comprehensively considers various influencing factors of the power usage of the ultraviolet lamp and the electrolysis power of the water treatment salt machine equipment, thereby achieving precise control of the power usage of the ultraviolet lamp and the electrolysis power of the water treatment salt machine equipment, and improving the disinfection effect.
[0084] Based on the above embodiment, in this embodiment, the target power usage is determined according to the comparison result, including:
[0085] determining a ratio of a value within a preset range corresponding to the first level to the turbidity information, a first difference between the ORP data and the ORP target value, a second difference between the current temperature and a temperature at which the water treatment salt machine equipment performs normal electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment performs normal electrolysis;
[0086] Calculating the product of the ratio and the maximum operating power of the ultraviolet lamp;
[0087] The target power usage is obtained by weighting and adding the product, the first difference, the second difference, and the third difference.
[0088] The ratio of the median or maximum value within the preset range corresponding to the first level to the turbidity information can be determined. The larger the turbidity information, the smaller the ratio, the worse the disinfection effect of the ultraviolet lamp, and the smaller the target power usage of the ultraviolet lamp.
[0089] The larger the first difference between the ORP data and the ORP target value, the worse the water quality, and the larger the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment.
[0090] The greater the second difference between the current temperature and the normal electrolysis temperature of the water treatment salt machine equipment, the greater the third difference between the current pH value and the normal electrolysis pH value of the water treatment salt machine equipment, the worse the disinfection effect of the water treatment salt machine equipment, the smaller the target electrolysis power of the water treatment salt machine equipment, and the greater the target usage power of the ultraviolet lamp required.
[0091] This embodiment comprehensively considers various influencing factors of the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment, and realizes the complementary disinfection effects of the ultraviolet lamp and the water treatment salt machine equipment, thereby realizing precise control of the usage power of the ultraviolet lamp and improving the disinfection effect.
[0092] On the basis of the above embodiment, in this embodiment, the target electrolysis power is determined according to the comparison result, including:
[0093] determining a first difference between the ORP data and the ORP target value, a fourth difference between a value within a preset range corresponding to the first level and the turbidity information, a second difference between the current temperature and a temperature at which the water treatment salt machine normally performs electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine normally performs electrolysis;
[0094] Calculating a weighted sum of the first difference and the fourth difference, and a weighted sum of the second difference and the third difference;
[0095] The difference between the two weighted sums is taken as the target electrolysis power.
[0096] A fourth difference between the median or maximum value within a preset range corresponding to the first level and the turbidity information can be determined. The greater the turbidity information, the greater the fourth difference, the worse the disinfection effect of the UV lamp, the lower the target power usage of the UV lamp, and the higher the target electrolysis power required for the water treatment salt machine.
[0097] The larger the first difference between the ORP data and the ORP target value, the worse the water quality, and the larger the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment.
[0098] The greater the second difference between the current temperature and the normal electrolysis temperature of the water treatment salt machine equipment, the greater the third difference between the current pH value and the normal electrolysis pH value of the water treatment salt machine equipment, the worse the disinfection effect of the water treatment salt machine equipment, the smaller the target electrolysis power of the water treatment salt machine equipment, and the greater the target usage power of the ultraviolet lamp required.
[0099] This embodiment comprehensively considers various influencing factors of the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment, thereby achieving complementary disinfection effects of the ultraviolet lamp and the water treatment salt machine equipment, accurately controlling the electrolysis power of the water treatment salt machine equipment, and improving the disinfection effect.
[0100] The water quality control device provided by the present invention is described below. The water quality control device described below and the water quality control method described above can be referenced to each other.
[0101] like Figure 4 As shown, the device includes a collection module 401 and a control module 402, wherein:
[0102] The acquisition module 401 is used to use a water quality detection sensor to collect water quality data of the water area, wherein the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor;
[0103] The control module 402 is used to control the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp using a PID algorithm according to the water quality data, so as to control the water quality of the water area.
[0104] This embodiment uses water quality data fed back by water quality detection sensors, including ORP data collected by ORP probes and turbidity information collected by turbidity sensors, to adjust the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp through PID closed-loop control, thereby realizing intelligent control of the water quality in the water area; on the basis of the hypochlorous acid disinfection of the water treatment salt machine equipment, an ultraviolet disinfection function is added, and through the joint control algorithm of electrolysis power and ultraviolet power, a faster disinfection speed, better disinfection effect and more stable water quality control are obtained.
[0105] Figure 5An example of a physical structure diagram of an electronic device is shown below. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530, and a communication bus 540, wherein the processor 510, the communication interface 520, and the memory 530 communicate with each other via the communication bus 540. The processor 510 may call logic instructions in the memory 530 to execute a water quality control method, which includes: using a water quality detection sensor to collect water quality data of a water area, the water quality data including ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor; and using a PID algorithm to control the electrolysis power of a water treatment salt machine and the power used by an ultraviolet lamp based on the water quality data to control the water quality of the water area.
[0106] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, 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. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: 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.
[0107] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the water quality control method provided by the above methods, which includes: using a water quality detection sensor to collect water quality data of a water area, the water quality data including ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor; based on the water quality data, using a PID algorithm to control the electrolysis power of a water treatment salt machine equipment and the power used by an ultraviolet lamp to control the water quality of the water area.
[0108] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the water quality control method provided by the above-mentioned methods, the method comprising: using a water quality detection sensor to collect water quality data of a water area, the water quality data comprising ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor; based on the water quality data, using a PID algorithm to control the electrolysis power of a water treatment salt machine equipment and the power used by an ultraviolet lamp to control the water quality of the water area.
[0109] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0110] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0111] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A water quality control method, characterized in that: include: Using a water quality detection sensor to collect water quality data of the water area, the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor; According to the water quality data, a PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp to control the water quality of the water area; The method of controlling the electrolysis power of the water treatment salt machine and the power of the ultraviolet lamp using a PID algorithm according to the water quality data includes: Determining, based on a preset range within which the turbidity information is located, a turbidity level corresponding to the preset range, wherein the preset range is pre-associated with the turbidity level; wherein the turbidity information is divided into three turbidity levels, clear water being a first level, slightly turbid water being a second level, and turbid water being a third level; When the turbidity level is the second level, turning on the ultraviolet lamp and the water treatment salt machine equipment, and using the PID algorithm to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp; After determining the turbidity level corresponding to the preset range according to the preset range of the turbidity information, the method further includes: When the turbidity level is the first level, turning on the ultraviolet lamp, turning off the water treatment salt machine equipment, and using the PID algorithm to control the power of the ultraviolet lamp so that the collected ORP data is equal to the ORP target value; When the turbidity level is the third level, turning off the ultraviolet lamp, turning on the water treatment salt machine, and using the PID algorithm to control the electrolysis power of the water treatment salt machine so that the collected ORP data is equal to the ORP target value; When the turbidity level is the second level, the PID algorithm is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp, including: determining a target power usage of the ultraviolet lamp according to the turbidity information; Determining the target electrolysis power of the water treatment salt machine equipment according to the ORP data; Using the PID algorithm to control the power of the ultraviolet lamp to reach the target power, and controlling the electrolysis power of the water treatment salt machine to reach the target electrolysis power, until the collected ORP data is equal to the ORP target value; Determining the target power usage of the ultraviolet lamp according to the turbidity information; determining the target electrolysis power of the water treatment salt machine equipment according to the ORP data, including: Obtaining the current temperature and current pH value of the water area; comparing the preset range corresponding to the first level with the turbidity information, comparing the ORP data with the ORP target value, comparing the current temperature with the normal electrolysis temperature of the water treatment salt machine, and comparing the current pH value with the normal electrolysis pH value of the water treatment salt machine; The target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment are determined according to the comparison result.
2. The water quality control method according to claim 1, characterized in that: Determining the target power usage according to the comparison result includes: determining a ratio of a value within a preset range corresponding to the first level to the turbidity information, a first difference between the ORP data and the ORP target value, a second difference between the current temperature and a temperature at which the water treatment salt machine equipment performs normal electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment performs normal electrolysis; Calculating the product of the ratio and the maximum operating power of the ultraviolet lamp; The target power usage is obtained by weighting and adding the product, the first difference, the second difference, and the third difference.
3. The water quality control method according to claim 1, characterized in that: Determining the target electrolysis power according to the comparison result includes: determining a first difference between the ORP data and the ORP target value, a fourth difference between a value within a preset range corresponding to the first level and the turbidity information, a second difference between the current temperature and a temperature at which the water treatment salt machine normally performs electrolysis, and a third difference between the current pH value and a pH value at which the water treatment salt machine normally performs electrolysis; Calculating a weighted sum of the first difference and the fourth difference, and a weighted sum of the second difference and the third difference; The difference between the two weighted sums is taken as the target electrolysis power.
4. A water quality control device, characterized in that: include: The acquisition module is used to use the water quality detection sensor to collect water quality data of the water area, wherein the water quality data includes ORP data collected by the ORP probe and turbidity information collected by the turbidity sensor; The control module executes the water quality control method according to any one of claims 1 to 3, and is used to control the electrolysis power of the water treatment salt machine equipment and the power of the ultraviolet lamp using a PID algorithm according to the water quality data to control the water quality of the water area.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the water quality control method according to any one of claims 1 to 3 is implemented.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the water quality control method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Control method and control device of water production equipment and water production equipment
CN114162924A
System for processing ballast water with variable output and multi channel type UV processing apparatus
KR1020150089162A