Water quality control method and device
By combining water treatment salt machine equipment and ultraviolet technology, the electrolytic power and ultraviolet lamp power are controlled using PID algorithms, which solves the problems of water quality changes, by-product generation and irritating odor caused by traditional water quality control methods, and achieves a more efficient and safer water quality control effect.
Patent Information
- Application Number
- CN202411693973.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-11-25
AI Technical Summary
The existing water quality control methods use water treatment salt machine equipment to generate chlorine, resulting in water quality changes, by-product production and irritating odors, which poses a potential risk to human health and operational safety.
The comprehensive method is adopted, combined with water treatment salt machine equipment and ultraviolet technology, data is collected through water quality detection sensors, and electrolytic power and ultraviolet lamp power are controlled using PID algorithm to achieve intelligent control of water quality.
It achieves faster disinfection speed, better disinfection effect and more stable water quality control, reducing the production of by-products and the irritation of chlorine, and improving operational safety.
Smart Images

Figure CN119750673A_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 usually uses water treatment salt machine equipment to electrolyze salt water to produce chlorine, which dissolves in water to generate hypochlorous acid for swimming pool water disinfection. Chlorine has a high solubility in water and can quickly react with water to generate bactericidal substances. The disinfection effect is stable and can effectively kill a variety of bacteria, viruses, protozoa and other pathogenic microorganisms.
[0003] However, chlorine disinfection will change the water quality and may produce disinfection by-products, such as trihalomethanes, which may pose potential risks to human health. In addition, chlorine itself has a pungent odor, and improper operation may cause chlorine leakage, causing harm to operators and surrounding 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 water quality control using water treatment salt machine equipment will change the water quality, may produce disinfection by-products, and produce irritating chlorine taste, and realize water quality control using water treatment salt machine equipment and ultraviolet rays in combination.
[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 used by the ultraviolet lamp are controlled by using a PID algorithm according to 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 where the turbidity information is located, the method further includes:
[0013] When the turbidity level is the first level, the ultraviolet lamp is turned on, the water treatment salt machine equipment is turned off, and the PID algorithm is used 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 the 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 usage of the ultraviolet lamp to reach the target power usage, 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 usage of the ultraviolet lamp is determined according to the turbidity information; the target electrolysis power of the water treatment salt machine equipment is determined according to the ORP data, including:
[0020] Obtain the current temperature and current pH value of the water area;
[0021] Compare the preset range corresponding to the first level with the turbidity information, compare the ORP data with the ORP target value, compare the current temperature with the normal electrolysis temperature of the water treatment salt machine equipment, and compare the current pH value with the normal electrolysis pH value of the water treatment salt machine equipment;
[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, the target power usage is determined according to the comparison result, including:
[0024] Determine 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 the temperature at which the water treatment salt machine equipment is normally electrolyzed, and a third difference between the current pH value and the pH value at which the water treatment salt machine equipment is normally electrolyzed;
[0025] Calculating the product of the ratio and the maximum power used by 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, the target electrolysis power is determined according to the comparison result, comprising:
[0028] Determine 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 equipment is normally electrolyzed, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment is normally electrolyzed;
[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] A collection module, used to collect water quality data of the water area using a water quality detection sensor, wherein the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor;
[0033] The control module is used to control the electrolysis power of the water treatment salt machine equipment and the power used by 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 water quality control methods described above is implemented.
[0035] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the water quality control method as described above is implemented.
[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 water quality control method as described above is implemented.
[0037] The water quality control method and device provided by the present invention use water quality data fed back by a water quality detection sensor, including ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor, to adjust the electrolysis power of a water treatment salt machine and the power used by an ultraviolet lamp through PID closed-loop control, thereby realizing intelligent control of water quality in a water area; an ultraviolet disinfection function is added to the hypochlorous acid disinfection of the water treatment salt machine, and a faster disinfection speed, better disinfection effect and more stable water quality control are obtained through a joint control algorithm of electrolysis power and ultraviolet power. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces 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 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 It 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] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] Combine the following 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 (Oxidation-Reduction Potential) 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. The feedback water quality data is collected by a water quality detection sensor, 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 used by the ultraviolet lamp to control the water quality of the water area.
[0049] Turbidity information can be used to feedback the turbidity of the water area, which has a great impact on the disinfection effect of the UV lamp. The clearer the water, the better the penetration of the UV lamp and the better the disinfection effect. Therefore, the turbidity information collected by the turbidity sensor is needed to control the power of the UV lamp.
[0050] ORP data is a parameter that measures the relative strength of oxidants and reductants in water or solutions, reflecting the level of electronic activity in the system, that is, the tendency of the reactants to undergo oxidation or reduction reactions. When the ORP value is positive, it indicates that the system tends to undergo oxidation reactions; conversely, a negative ORP value means that the environment is more conducive to the occurrence of 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] The electrolysis power of the water treatment salt machine and the power of the UV lamp are adjusted through PID closed-loop control to achieve intelligent adjustment of water quality. 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 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; an ultraviolet disinfection function is added to the hypochlorous acid disinfection of the water treatment salt machine, and a joint control algorithm of the electrolysis power and the ultraviolet power is used to obtain a faster disinfection speed, a better disinfection effect and a more stable water quality control.
[0054] On the basis of the above embodiment, the PID algorithm is used in this embodiment 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 power used by the UV lamp varies with the turbidity level of the turbidity information. The higher the turbidity level, the lower the power used by the UV lamp. A fixed power used by the UV lamp can be preset for each turbidity level.
[0059] When the turbidity information of the water area is the second level A2 (slightly turbid), turn on the electrolysis of the water treatment salt machine equipment, and turn on the ultraviolet lamp at the same time. Use the PID algorithm 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] On the basis of the above embodiment, after determining the turbidity level corresponding to the preset range according to the preset range where the turbidity information is located, the present embodiment further includes:
[0061] When the turbidity level is the first level, the ultraviolet lamp is turned on, the water treatment salt machine equipment is turned off, and the PID algorithm is used 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 proportion, integration and differentiation respectively. It is a closed-loop control algorithm that combines proportion, integration and differentiation into one. The feedback loop is introduced to control the system by using the deviation between output (actual value) and input (target value). The specific control process of 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 output value 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 used by the ultraviolet lamp, including:
[0069] Determining the 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 usage of the ultraviolet lamp to reach the target power usage, 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 that 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] On the basis of the above embodiment, in this embodiment, the target power usage of the ultraviolet lamp is determined according to the turbidity information; the target electrolysis power of the water treatment salt machine equipment is determined according to the ORP data, including:
[0076] Obtain the current temperature and current pH value of the water area;
[0077] Compare the preset range corresponding to the first level with the turbidity information, compare the ORP data with the ORP target value, compare the current temperature with the normal electrolysis temperature of the water treatment salt machine equipment, and compare the current pH value with the normal electrolysis pH value of the water treatment salt machine equipment;
[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, and therefore obtains the current temperature and current pH value of the water area 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 smaller 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] Determine 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 the temperature at which the water treatment salt machine equipment is normally electrolyzed, and a third difference between the current pH value and the pH value at which the water treatment salt machine equipment is normally electrolyzed;
[0086] Calculating the product of the ratio and the maximum power used by 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 in 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 is, and the larger the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment are.
[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 larger the target power required of the ultraviolet lamp.
[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, 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] Determine 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 equipment is normally electrolyzed, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment is normally electrolyzed;
[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] The fourth difference between the median or maximum value in the preset range corresponding to the first level and the turbidity information can be determined. The larger the turbidity information, the larger the fourth difference, the worse the disinfection effect of the ultraviolet lamp, the smaller the target power of the ultraviolet lamp, and the larger the target electrolysis power of the water treatment salt machine equipment.
[0097] The larger the first difference between the ORP data and the ORP target value, the worse the water quality is, and the larger the target usage power of the ultraviolet lamp and the target electrolysis power of the water treatment salt machine equipment are.
[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 larger the target power required of the ultraviolet lamp.
[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 collection module 401 is used to collect water quality data of the water area using a water quality detection sensor, 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 used by 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 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; an ultraviolet disinfection function is added to the hypochlorous acid disinfection of the water treatment salt machine, and a joint control algorithm of the electrolysis power and the ultraviolet power is used to obtain a faster disinfection speed, a better disinfection effect and a more stable water quality control.
[0105] Figure 5An example of a physical structure diagram of an electronic device is shown in FIG. 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 through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the water quality control method, which includes: 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; according to the water quality data, using a PID algorithm to control the electrolysis power of a water treatment salt machine and the power used by an ultraviolet lamp 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 it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0107] On the other hand, the present invention also provides a computer program product, which includes a computer program. 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-mentioned methods, which includes: 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; 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, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for 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 some 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 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.
2. The water quality control method according to claim 1, characterized in that: The method of controlling 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 includes: 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; 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.
3. The water quality control method according to claim 2, characterized in that: After determining the turbidity level corresponding to the preset range according to the preset range where the turbidity information is located, the method further includes: When the turbidity level is the first level, the ultraviolet lamp is turned on, the water treatment salt machine equipment is turned off, and the PID algorithm is used 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, 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.
4. The water quality control method according to claim 3, characterized in that: 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 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; The PID algorithm is used to control the power usage of the ultraviolet lamp to reach the target power usage, 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.
5. The water quality control method according to claim 4, characterized in that: 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 includes: Obtain the current temperature and current pH value of the water area; Compare the preset range corresponding to the first level with the turbidity information, compare the ORP data with the ORP target value, compare the current temperature with the normal electrolysis temperature of the water treatment salt machine equipment, and compare the current pH value with the normal electrolysis pH value of the water treatment salt machine equipment; 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.
6. The water quality control method according to claim 5, characterized in that: Determining the target power usage according to the comparison result includes: Determine 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 the temperature at which the water treatment salt machine equipment is normally electrolyzed, and a third difference between the current pH value and the pH value at which the water treatment salt machine equipment is normally electrolyzed; Calculating the product of the ratio and the maximum power used by 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.
7. The water quality control method according to claim 5, characterized in that: Determining the target electrolysis power according to the comparison result includes: Determine 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 equipment is normally electrolyzed, and a third difference between the current pH value and a pH value at which the water treatment salt machine equipment is normally electrolyzed; 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.
8. A water quality control device, characterized in that: include: A collection module, used to collect water quality data of the water area using a water quality detection sensor, wherein the water quality data includes ORP data collected by an ORP probe and turbidity information collected by a turbidity sensor; The control module is used to control the electrolysis power of the water treatment salt machine equipment and the power used by the ultraviolet lamp using a PID algorithm according to the water quality data, so as to control the water quality of the water area.
9. 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, the water quality control method according to any one of claims 1 to 7 is implemented.
10. 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 7 is implemented.
Citation Information
Patent Citations
Control method and control device of water production equipment and water production equipment
CN114162924A
Turbidity compensation method, device, equipment and storage medium
CN115266603A
Coagulant injection control system
JP2012101171A
System for processing ballast water with variable output and multi channel type UV processing apparatus
KR1020150089162A
KR20200017707A