Water quality detection method, water quality detection device and water meter
By detecting water temperature and water volume parameters, calculating water age and microbial concentration and outputting warning signals, the problem of failure of the prior art to detect drinking water age and microbial concentration is solved, ensuring the safety of drinking water.
Patent Information
- Application Number
- CN202411156835.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art fails to effectively detect the age and microbial concentration of drinking water, resulting in the safety of users' drinking water not being fully guaranteed.
By obtaining water temperature parameters and water volume parameters, calculate the water age and microbial concentration, and output a warning signal when the water age exceeds the preset value or the microbial concentration exceeds the standard, use the preset water supply pipe cross-sectional area, water supply pipe length, water use statistical interval time and bacteria Detection of parameters such as initial density.
The detection of the water age and microbial concentration of drinking water is realized, ensuring the safety of users' drinking water, and providing a basis for judging water quality and a warning mechanism.
Smart Images

Figure CN118980800A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of water quality detection, and in particular to a water quality detection method, a water quality detection device and a water meter Background Art With the development of society and the improvement of people's living standards, people's requirements for the quality of drinking water are constantly increasing, and the drinking water quality standards are also constantly developing and improving accordingly. At present, the basis for judging the quality of water is usually the concentration of specific impurities or pollutants in the water, such as water turbidity or radioactive metal content. The age of drinking water and the concentration of microorganisms in the water are not tested, so the safety of users' drinking water is not fully guaranteed. Summary of the invention
[0002] The main purpose of the present invention is to provide a water quality detection method, which aims to detect the water age and microbial concentration of users' drinking water to ensure the safety of users' drinking water.
[0003] To achieve the above object, the water quality detection method proposed by the present invention comprises: Obtain water temperature parameters and water volume parameters; Calculate the water age according to the preset water supply pipe cross-sectional area, the preset water supply pipe length, the preset water consumption statistical interval time and the water volume parameters; Calculate the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval; When the water age exceeds a preset water age and / or the microorganism concentration exceeds a preset microorganism concentration, a warning signal is output.
[0004] Optionally, the step of calculating the water age according to a preset water supply pipe cross-sectional area, a preset water supply pipe length, a preset water consumption statistical interval and the water volume parameter is specifically as follows: Calculate the water use stroke according to the preset water supply pipe cross-sectional area and the water volume parameters; The water age is calculated based on the water use journey, the preset water supply pipe length and the preset water use statistics interval.
[0005] Optionally, the step of calculating the water consumption stroke according to the preset water supply pipe cross-sectional area and the water volume parameter is specifically: Substituting the preset water supply pipe cross-sectional area and water volume parameters into a first preset calculation formula to calculate the water use stroke; The first preset calculation formula is: L=4*C / (Pi*D); Among them, L is the water usage distance, C is the water volume parameter, Pi is the pi, and D is the diameter of the water supply pipe.
[0006] Optionally, the step of calculating the water age according to the water use journey, the preset water supply pipe length and the preset water use statistical interval is specifically: After each preset water consumption statistical interval, the water volume parameter corresponding to the preset water consumption statistical interval and its corresponding water consumption itinerary are calculated once; after each new water consumption itinerary is calculated, it is determined whether the sum of all the calculated water consumption itineraries is not less than the preset water consumption itinerary; If the sum of all the water use trips is not less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined, and the total number and the preset water use statistical interval are substituted into the second preset calculation formula to calculate the water age. The second preset calculation formula is: Tu=n*Ti, where Tu is the water age, Ti is the water use statistical interval, and n is the total number of all the preset water use statistical intervals; If the sum of all the water use trips is less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined and the water age is not calculated until the judgment result is that the sum of all the water use trips is not less than the preset water use trip.
[0007] Optionally, the step of calculating the concentration of microorganisms according to the preset initial density of the bacterial strain, the water temperature parameter and the water age is specifically as follows: Acquire a time parameter corresponding to the water temperature parameter; Calculate the bacterial strain doubling time according to the water temperature parameter and the time parameter; The microbial concentration is calculated based on the preset water use statistical interval and bacterial doubling time.
[0008] Optionally, the step of calculating the bacterial strain doubling time according to the water temperature parameter and the time parameter is specifically: Substituting the water temperature parameter into a third preset calculation formula to calculate the bacterial strain doubling time; The third preset calculation formula is: G(t)=K n *T n +K n-1 *T n-1 +...+K0; Among them, T is the time parameter and G(t) is the doubling time of the strain.
[0009] Optionally, the step of calculating the microbial concentration according to the preset water use statistical interval time and the bacterial strain doubling time is specifically as follows: Substitute the preset water use statistical interval time and bacterial doubling time into the fourth preset calculation formula to calculate the microbial concentration: The fourth preset calculation formula is: Z(n)=Z(n-1)*2(Ti / (G(t))); Among them, Z(n) is the total microbial concentration within n preset water use statistical intervals, Z(n-1) is the total microbial concentration within n-1 preset water use statistical intervals, and Ti is the preset water use statistical interval.
[0010] Optionally, before the step of calculating the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water usage statistical interval, the water quality detection method further comprises the following steps: Obtaining agent concentration and environmental parameters; Based on the concentration of the agent and the environmental parameters, the step of calculating the concentration of microorganisms according to the preset initial density of the bacterial species, the water temperature parameter and the preset water use statistical interval time is specifically: The microorganism concentration is calculated based on the concentration of the agent, environmental parameters, the preset initial density of the bacteria, the water temperature parameters and the water age.
[0011] The present invention also provides a water quality detection device, comprising: Controller; A memory, wherein the memory stores a water quality detection program, and when the water quality detection program is executed by the controller, the health monitoring device control method as described above is implemented.
[0012] The present invention also provides a water meter, comprising the water quality detection device as described above.
[0013] The technical solution of the present invention first obtains water temperature parameters and water volume parameters; then calculates the water age according to the preset water supply pipe cross-sectional area, preset water supply pipe length, preset water use statistical interval time and water volume parameters; calculates the microbial concentration according to the preset bacterial species initial density, the water temperature parameters and the preset water use statistical interval time; and judges the water age of drinking water and the microbial concentration in drinking water, and outputs a warning signal when the water age exceeds the preset water age and / or the microbial concentration exceeds the preset microbial concentration. In this way, the water age and microbial concentration of the user's drinking water can be detected to ensure the safety of the user's drinking water. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0015] Figure 1 A flow chart of the method steps of an embodiment of a water quality detection method of the present invention; Figure 2A flow chart of the method steps of another embodiment of the water quality detection method of the present invention; Figure 3 A flow chart of the method steps of another embodiment of the water quality detection method of the present invention; Figure 4 It is a schematic diagram of the relationship between residual chlorine concentration and time in the water quality detection method of the present invention; Figure 5 This is a schematic diagram of the functional modules of an embodiment of a water quality detection device of the present invention; Figure 6 It is a circuit structure diagram of an embodiment of a temperature detection circuit in a water quality detection device of the present invention; Figure 7 It is a circuit structure diagram of an embodiment of a water meter measuring circuit in a water quality detection device of the present invention; Figure 8 It is a circuit structure diagram of an embodiment of a water meter data communication circuit in a water quality detection device of the present invention; Fig. 9 The present invention is a schematic diagram of the circuit structure of a water meter data storage circuit in a water quality detection device according to an embodiment of the present invention.
[0016] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0018] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0019] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0020] With the development of society and the improvement of people's living standards, people's requirements for the quality of drinking water are constantly increasing, and the drinking water quality standards are also constantly developing and improving accordingly. At present, the basis for judging the quality of water is usually the concentration of specific impurities or pollutants in the water, such as water turbidity or radioactive metal content. The age of drinking water and the concentration of microorganisms in the water are not tested, so the safety of users' drinking water is not fully guaranteed.
[0021] Therefore, the present invention provides a water quality detection method.
[0022] Reference Figure 1 In one embodiment of the present invention, the water quality detection method comprises the following steps: S100, obtaining water temperature parameters and water volume parameters; S200, calculating the water age according to the preset water supply pipe cross-sectional area, the preset water supply pipe length, the preset water consumption statistical interval time and the water volume parameter; S300, calculating the concentration of microorganisms according to the preset initial density of the bacterial species, the water temperature parameter and the preset water use statistical interval; S400: When the water age exceeds a preset water age and / or the microorganism concentration exceeds a preset microorganism concentration, output a warning signal.
[0023] In this embodiment, first, step S100 obtains the water temperature parameter and water volume parameter of the user's drinking water, wherein the water temperature parameter can be detected by the temperature detection circuit for the drinking water in the water supply pipe, and the temperature detection circuit can be composed of devices such as temperature sensors. The water volume parameter is the water consumption of the user's drinking water, and the specific water consumption can be obtained by statistics through the water metering circuit. For example, the water metering circuit can be composed of a magnetic induction chip and a magnetic induction chip detection circuit. When the pointer of the water meter dial rotates, the magnetic induction device is activated; the magnetic output of the single-chip magnetic induction device is detected or interrupted, and the single-chip microcomputer can judge the output state of the magnetic induction device to obtain the state and direction of the water meter rotation, and then judge the reading and direction of the water meter. The water volume statistics in the water meter are relatively common means in this field, and will not be described in detail here. After obtaining the water temperature parameters and water volume parameters, the water age of the drinking water and the concentration of microorganisms in the water can be further calculated.
[0024] Step S200 calculates the water age according to the water volume parameters obtained in step S100 and the preset water supply pipe cross-sectional area, preset water supply pipe length, and preset water use statistics interval. It can be understood that the water supply pipe cross-sectional area and water supply pipe length of the user's drinking water are data that can be obtained when the water supply pipe is installed, and do not need to be measured and obtained in real time, and the water use statistics interval is to count the user's water use every period of time. For example, if the water use statistics interval is 30 minutes, the user's water use and water quality will be counted and reported every 30 minutes. The specific water use statistics interval can also be set according to the actual needs of the user. The water age calculated by the above parameters represents the time when drinking water enters the user's pipe network from the main network. When drinking water enters the user's pipe network from the main network, the fluidity of water is equivalent to whether the user uses water, and the association is relatively accidental. If the user does not use water for a long time, the water age will become longer and the water quality will deteriorate; if the user does not use water for a long time and the pipe is long, the water quality is easy to deteriorate.
[0025] Step S300 is to calculate the concentration of microorganisms in drinking water according to the water temperature parameters obtained in the above steps, the preset water usage statistical interval time, and the preset strain initial density. It should be noted that the strain initial density is related to factors such as the drinking water filtration process and the pipe material, so the preset strain initial density will be different under different environments. The concentration of microorganisms in drinking water can be calculated by the above parameters. If the concentration of microorganisms is too high, it will affect human safety. The temperature of drinking water is an important factor affecting the reproduction of microorganisms, so the water temperature parameter is required for calculation. The growth rate of bacteria in drinking water increases exponentially. Among them, Escherichia coli is the most critical strain for water quality monitoring. Taking Escherichia coli as an example, typical values include. When the temperature is below 20 degrees, the growth rate of Escherichia coli is very slow, and it generally takes 24 hours or more to grow a sufficient number of colonies. When the temperature is around 30 degrees, the growth rate of Escherichia coli is faster, and a sufficient number of colonies can be grown within 12 hours. When the temperature reaches 37 degrees, the growth rate of Escherichia coli reaches the fastest, and the colony formation time is the shortest, usually only 6-8 hours. When the temperature exceeds 40 degrees, E. coli cannot continue to grow and will die or become inactivated. The reproduction time of microorganisms is a factor that affects the concentration of microorganisms in drinking water, so it is necessary to use the water statistical interval to calculate the concentration of microorganisms.
[0026] Step S400 is to make a judgment after calculating the water age and microbial concentration. If the water age exceeds the standard, that is, the drinking water has been in the user's pipe network for too long, a warning signal will be issued to inform the user. The platform can also alarm and push the warning to relevant personnel; to determine whether the water age exceeds the standard, a water age standard parameter can be preset, and the water age calculated by real-time detection is compared with the preset water age standard parameter. When the real-time water age exceeds the water age standard parameter, it is judged that the water age exceeds the standard. The specific water age standard parameter can be set according to user needs and the surrounding environment. For example, if the user has high requirements for water quality, the water age standard parameter can be set lower, or if the surrounding environment is prone to deterioration of water quality, the water age standard parameter can also be set lower. The judgment of the microbial concentration exceeding the standard can also preset a microbial concentration standard parameter. The specific microbial concentration standard parameter is set according to the user's own requirements. For example, if the user is in poor health and has high requirements for the water quality of drinking water, the microbial concentration standard parameter can be set lower. It is understandable that the judgment of water age exceeding the standard and the judgment of microbial concentration exceeding the standard can be performed separately, and a warning signal can be output when either one exceeds the standard; or it can be judged at the same time, and a warning signal can be output when both exceed the standard. In this way, the needs of users in different situations can be met. Such fully quantified calculation results can be sorted, high-risk personnel can be identified, and the efficiency of popularization, promotion and management can be improved in a targeted manner.
[0027] The technical solution of the present invention first obtains water temperature parameters and water volume parameters; then calculates the water age according to the preset water supply pipe cross-sectional area, preset water supply pipe length, preset water use statistical interval time and water volume parameters; calculates the microbial concentration according to the preset bacterial species initial density, the water temperature parameters and the preset water use statistical interval time; and judges the water age of drinking water and the microbial concentration in drinking water, and outputs a warning signal when the water age exceeds the preset water age and / or the microbial concentration exceeds the preset microbial concentration. In this way, the water age and microbial concentration of the user's drinking water can be detected to ensure the safety of the user's drinking water.
[0028] Reference Figure 2 In one embodiment, the step S200 of calculating the water age according to the preset water supply pipe cross-sectional area, the preset water supply pipe length, the preset water consumption statistical interval and the water volume parameter specifically includes: S210, calculating the water use stroke according to the preset water supply pipe cross-sectional area and the water volume parameter; S220, calculating the water age according to the water use journey, the preset water supply pipe length and the preset water use statistics interval.
[0029] In this embodiment, the water volume parameter is the user's drinking water consumption, and the specific water consumption can be obtained by statistically analyzing the water meter measurement circuit. The water consumption stroke can be obtained by dividing the water consumption by the pipe cross-sectional area, that is, the water consumption stroke = water consumption / pipe cross-sectional area. After obtaining the water consumption stroke, further calculations can be performed through the water consumption stroke, the preset water supply pipe length, and the preset water consumption statistical interval to obtain the water age of the drinking water in the user's pipe network. Therefore, the real-time water age is compared with the preset water age parameter to determine whether the water age exceeds the standard.
[0030] In one embodiment, the step of calculating the water use stroke according to the preset water supply pipe cross-sectional area and the water volume parameter is specifically as follows: Substituting the preset water supply pipe cross-sectional area and water volume parameters into a first preset calculation formula to calculate the water use stroke; The first preset calculation formula is: L=4*C / (Pi*D); Among them, L is the water usage distance, C is the water volume parameter, Pi is the pi, and D is the diameter of the water supply pipe.
[0031] In this embodiment, pi Pi is a constant, and the water supply pipe diameter D is a parameter that can be known when installing the user's pipe network. In this way, the user's water consumption can be converted into water use itinerary through the above-mentioned first preset calculation formula, thereby further calculating the water age.
[0032] Furthermore, the step of calculating the water age according to the water use journey, the preset water supply pipe length and the preset water use statistical interval is specifically as follows: After each preset water consumption statistical interval, the water volume parameter corresponding to the preset water consumption statistical interval and its corresponding water consumption itinerary are calculated once; after each new water consumption itinerary is calculated, it is determined whether the sum of all the calculated water consumption itineraries is not less than the preset water consumption itinerary; If the sum of all the water use trips is not less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined, and the total number and the preset water use statistical interval are substituted into the second preset calculation formula to calculate the water age. The second preset calculation formula is: Tu=n*Ti, where Tu is the water age, Ti is the water use statistical interval, and n is the total number of all the preset water use statistical intervals; If the sum of all the water use trips is less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined and the water age is not calculated until the judgment result is that the sum of all the water use trips is not less than the preset water use trip.
[0033] After the water consumption L is obtained, the preset water consumption statistics interval in this embodiment is Ti, which can be preset to half an hour or set according to the actual needs of the user. The preset water supply pipe length is L_U, which is also a parameter that can be known when installing the user pipe network.
[0034] It can be understood that a water consumption statistic is performed every other water consumption statistic interval, and each statistic calculates the water volume parameter and its corresponding water consumption itinerary corresponding to the currently passed preset water consumption statistic interval. Therefore, there will be multiple water consumption statistic intervals in a day or a period of time, and within multiple water consumption statistic intervals Ti, the water volume parameters corresponding to the water consumption statistic interval from the first water consumption statistic interval to the water consumption statistic interval when the water age is calculated are C_0, C_1, C_2...C_n, C_n represents the nth water consumption statistic interval; and then the multiple water volume parameters are substituted into the first preset calculation formula to obtain the water consumption itineraries L_0, L_1...L_n corresponding to the multiple water volume parameters, that is, L_0 corresponding to C_0, L_1 corresponding to C_1,..., L_n corresponding to C_n, and L_n represents the water consumption itineraries corresponding to n water consumption statistic intervals; If the sum of all water use trips is not less than the preset water use trip, that is, when the condition of L_U<=L_0+L_1+...L_n is met, the water age can be calculated according to the second preset calculation formula. From this condition, it can be seen that n in L_n represents the total number of all preset water use statistical intervals. In this way, the time when drinking water enters the user network from the main network can be obtained through the second preset calculation formula. If the sum of all water use trips is less than the preset water use trip, that is, when the condition of L_U<=L_0+L_1+...L_n is not met, the water age will not be calculated.
[0035] Reference Figure 3 In one embodiment, the step S300 of calculating the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval time specifically includes: S310, obtaining a time parameter corresponding to the water temperature parameter; S320, calculating the bacterial strain doubling time according to the water temperature parameter and the time parameter; S330, calculating the microbial concentration according to the preset water use statistical interval and the bacterial strain doubling time.
[0036] In this embodiment, the effect of temperature on water quality is mainly reflected in the reproduction of microorganisms, and the time parameter corresponding to the water temperature parameter is the drinking water temperature value corresponding to a time period or time point. The precise definition of the bacterial doubling time is the time it takes for the bacterial concentration to double, which is mainly related to the temperature; when the bacterial reproduction concentration is low or exceeds the standard, it is in a stable logarithmic growth area, that is, it shows a 2-time logarithmic growth; the bacterial doubling time and the time relationship can be curve-fitted in turn to obtain the third preset calculation formula: G(t)=K n *T n +K n-1 *T n-1 +...+K0; Taking the third order as an example, the third preset calculation formula is: G(t)=K3*T 3 +K2*T 2 +K1*T+K0. Wherein G(t) is the doubling time of the strain, T is the time parameter, and K0 is the cardinality; it should be noted that this embodiment takes Escherichia coli as an example, and for different types of bacteria in water, the fitting parameters in the formula can be set dynamically; and the third preset calculation formula in this embodiment is fitted with a logarithmic relationship. In addition, it can also be fitted by exponential or power methods. After obtaining the doubling time of the strain, the strain density can be calculated based on the preset initial density of the strain, the current calculation time, the start time of water use, and the doubling time of the strain to obtain the strain density. Among them, the preset water use statistical interval can be 30 minutes, and can also be set according to user needs.
[0037] In an exemplary technique, the strain density can be calculated according to the following formula based on the preset strain initial density, the current calculation time, the water start time and the strain doubling time: Nt=N0*2 (t-T0) / G(t) Among them, Nt is the strain density, N0 is the preset strain initial density, t is the current calculation time, T0 is the start time of water use, and G(t) is the strain doubling time. The start time of water use can be the time when drinking water enters the user's pipe network from the main pipe network, and the current calculation time is the time to start calculating the microbial concentration. After the strain density is calculated by the above formula, the microbial concentration in the drinking water can be further derived and calculated, thereby judging the water quality of the user's drinking water.
[0038] Furthermore, the step of calculating the microbial concentration according to the preset water use statistical interval time and the bacterial strain doubling time is specifically as follows: Substitute the preset water use statistical interval time and bacterial doubling time into the fourth preset calculation formula to calculate the microbial concentration: The fourth preset calculation formula is: Z(n)=Z(n-1)*2(Ti / (G(t))); Among them, Z(n) is the total microbial concentration within n preset water use statistical intervals, Z(n-1) is the total microbial concentration within n-1 preset water use statistical intervals, and Ti is the preset water use statistical interval.
[0039] In this embodiment, the fourth preset calculation formula for calculating the microbial concentration can be derived from the above formula for calculating the bacterial density. It can be understood that the Z(n) obtained in this embodiment is the microbial concentration in a single water use statistical interval. If the calculation starts from the time when the drinking water enters the user network from the main network, it can be calculated by the following formula: Z(n)=Z(0)*Z(1)...Z(n), where n can represent the number of preset water use statistical intervals from the time when the drinking water enters the user network from the main network to the calculation time, and Z(n-1) can be the microbial concentration of the previous water use statistical interval. In this way, the microbial concentration in the drinking water in the user network can be obtained in real time, and it can be judged whether a warning signal needs to be issued to the user or the platform based on the specific microbial concentration, so that the water quality monitoring of the user's drinking water can be realized.
[0040] In one embodiment, before the step of calculating the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval, the water quality detection method further includes the following steps: Obtaining agent concentration and environmental parameters; Based on the concentration of the agent and the environmental parameters, the step of calculating the concentration of microorganisms according to the preset initial density of the bacterial species, the water temperature parameter and the preset water use statistical interval time is specifically: The microorganism concentration is calculated based on the concentration of the agent, environmental parameters, the preset initial density of the bacteria, the water temperature parameters and the water age.
[0041] In this embodiment, the surrounding environment and the chemicals in the water will have an impact on the reproduction of microorganisms. Chemicals, such as residual chlorine in tap water, have a strong inhibitory effect on the reproduction of microorganisms. By fitting the relationship between residual chlorine concentration and time, the formula for the concentration of the chemical CL=F(T) can be obtained: CL(T)=K n *T n +K n-1 *T n-1 +...+K0. Taking the third order as an example, the formula for drug concentration is: CL(T)=K3*T 3 +K2*T 2 +K1*T+K0. K0 is the base number. For details, please refer to the curve fitting of the bacterial doubling time and time relationship. For different chemical agents in water, the fitting parameters in the formula can be set dynamically. The relationship between residual chlorine concentration and time can be referred to Figure 4 , Figure 4 A1, A2 and A3 can represent three different types of raw water respectively.
[0042] It is known that the residual chlorine concentration CL (T) is proportional to the inhibitory effect on bacteria. In this embodiment, two scenarios can be considered. In the chlorine scenario, chlorine will be eliminated over time, and the inhibitory effect on bacterial reproduction will gradually weaken; in the direct drinking water scenario, CL (T) is a constant. The environmental parameter can be preset to K_en. When the environmental parameter is <1, the environment has an inhibitory effect on bacteria, otherwise it has an accelerating effect. After adding the influence of environmental parameters and drug concentration to this embodiment, the microbial concentration can be calculated according to the following formula based on the drug concentration, environmental parameters, preset bacterial species initial density, the water temperature parameters and the water age: Z(n)=Z(n-1)*2 (CL(T)*K_en*Ti / (G(t))) . Thus, the microbial concentration in a single water use statistical interval is obtained.
[0043] For the microbial concentration at multiple water usage statistical intervals, it can be calculated using the following formula: Z(n)=Z(0)*Z(1)...Z(n).
[0044] The invention also provides a water quality detection device.
[0045] In one embodiment, the water quality detection device comprises: Controller 10; A memory, wherein the memory stores a water quality detection program, and when the water quality detection program is executed by the controller 10, the health monitoring device control method as described above is implemented.
[0046] In this embodiment, the controller 10 may be a digital signal processor (DSP), a programmable logic device (PLD), a microprocessor, an MCU or other electronic components. The memory may be a memory of the type of EPROM or DDR3.
[0047] Further, refer to Figure 5 The water quality detection device may also include a temperature detection circuit 20, a water meter measurement circuit 30, a water meter data communication circuit 40, and a water meter data storage circuit 50.
[0048] The specific circuit structure of the temperature detection circuit 20 can refer to Figure 6 The present invention does not limit the settings. Figure 6 Taking this as an example, this part of the circuit can include an external NTC platinum high-precision sensor to calculate the temperature encountered by the NTC temperature sensor. When the temperature changes, the NTC resistance changes, and the MCU performs ADC sampling on the TEMP_AIN1 signal, and improves the sampling stability through multiple sampling and filtering algorithms. The TEMP_AIN1 signal is sampled by ADC, and the NTC voltage is calculated using the resistor voltage divider formula, and the actual NTC resistance is calculated according to the volt-ampere formula; then the preset NTC resistance-temperature table is checked to obtain the temperature encountered by the NTC; the temperature is collected once at each water consumption statistical interval by default and stored; when the water meter performs network data communication every day, the current water age parameter can be calculated through the temperature parameter and directly reported to the platform.
[0049] The specific circuit structure of the water meter measuring circuit 30 can be referred to Figure 7 The present invention does not limit the setting. The water meter measurement circuit 30 can realize water meter measurement. This embodiment takes the simplest double pulse four-quadrant measurement circuit as an example for explanation. Figure 7 As shown, the water metering circuit 30 can be composed of a magnetic induction chip and a magnetic induction chip detection circuit. When the water meter dial pointer rotates, the U1 and U5 magnetic induction devices are activated once; the single-chip microcomputer detects or interrupts the magnetic output of the magnetic induction device shown in the figure; the single-chip microcomputer can determine the output state of the magnetic induction device to obtain the state and direction of the water meter rotation, and then determine the reading and direction of the water meter. In addition, in addition to the double pulse four-quadrant mentioned above, the water meter in the present invention also supports magnetic angle, non-magnetic and other measurement methods.
[0050] The specific circuit structure of the water meter data communication circuit 40 can be referred to Figure 8 In this embodiment, the water meter data communication circuit 40 can be composed of a communication module, that is, Figure 8 As shown, U10 and its peripheral circuits are composed, and the single chip microcomputer in the water meter data communication circuit 40 can complete network registration, network connection and data interaction by controlling U10. During the data interaction process, the original data and calculation results such as water meter reading, water meter reading history, temperature and temperature history data, water age and health index are summarized and reported to the data center.
[0051] The specific circuit structure of the water meter data storage circuit 50 can be referred to Fig. 9 The water meter data storage circuit 50 may be composed of a storage chip U4 and its peripheral circuits. When the water meter is working, the periodic data collection is stored in the storage chip. The temperature data, water volume data, i.e., water meter reading history data and algorithm configuration involved in the present invention may all be stored in the chip.
[0052] The present invention also provides a water meter, comprising the water quality detection device as described above. Since the water meter adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0053] In one embodiment, the water meter may include a shell, which forms a accommodating cavity. The shell can be used to fix the positional relationship of each circuit module in the water quality detection device in the accommodating cavity, thereby ensuring the safety and stability inside the accommodating cavity formed by the shell. When the water meter is working, the positional relationship of the water quality detection device will not change, and external gas or objects will not fall on the electrical components and chips in the water quality detection device to affect the normal operation of the water quality detection device. The shell also has a protective effect on the outside of the water meter. The shell mainly has a mid-surface stress evenly distributed along the thickness, and has a better bearing effect on external forces.
[0054] The above descriptions are only optional embodiments of the present invention, and are not intended to limit the patent scope of the present invention. All equivalent structural changes made using the contents of the present invention's specification and drawings under the technical concept of the present invention, or directly / indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A water quality detection method, characterized in that: The following steps are involved: Obtain water temperature parameters and water volume parameters; Calculate the water age according to the preset water supply pipe cross-sectional area, the preset water supply pipe length, the preset water consumption statistical interval time and the water volume parameters; Calculate the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval; When the water age exceeds a preset water age and / or the microorganism concentration exceeds a preset microorganism concentration, a warning signal is output.
2. The water quality detection method according to claim 1, characterized in that: The step of calculating the water age according to the preset water supply pipe cross-sectional area, the preset water supply pipe length, the preset water consumption statistical interval time and the water volume parameter is specifically: Calculate the water use stroke according to the preset water supply pipe cross-sectional area and the water volume parameters; The water age is calculated based on the water use journey, the preset water supply pipe length and the preset water use statistics interval.
3. The water quality detection method according to claim 2, characterized in that: The step of calculating the water use stroke according to the preset water supply pipe cross-sectional area and the water volume parameter is specifically as follows: Substituting the preset water supply pipe cross-sectional area and water volume parameters into a first preset calculation formula to calculate the water use stroke; The first preset calculation formula is: L=4*C / (Pi*D); Among them, L is the water usage distance, C is the water volume parameter, Pi is the pi, and D is the diameter of the water supply pipe.
4. The water quality detection method according to claim 3, characterized in that: The step of calculating the water age according to the water use journey, the preset water supply pipe length and the preset water use statistical interval is specifically: After each preset water consumption statistical interval, the water volume parameter corresponding to the preset water consumption statistical interval and its corresponding water consumption itinerary are calculated once; after each new water consumption itinerary is calculated, it is determined whether the sum of all the calculated water consumption itineraries is not less than the preset water consumption itinerary; If the sum of all the water use trips is not less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined, and the total number and the preset water use statistical interval are substituted into the second preset calculation formula to calculate the water age. The second preset calculation formula is: Tu=n*Ti, where Tu is the water age, Ti is the water use statistical interval, and n is the total number of all the preset water use statistical intervals; If the sum of all the water use trips is less than the preset water use trip, the total number of all the preset water use statistical intervals that have passed is determined and the water age is not calculated until the judgment result is that the sum of all the water use trips is not less than the preset water use trip.
5. The water quality detection method according to claim 1, characterized in that: The step of calculating the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval time is specifically: Acquire a time parameter corresponding to the water temperature parameter; Calculate the bacterial strain doubling time according to the water temperature parameter and the time parameter; The microbial concentration is calculated based on the preset water use statistical interval and bacterial doubling time.
6. The water quality detection method according to claim 5, characterized in that: The step of calculating the bacterial strain doubling time according to the water temperature parameter and the time parameter is specifically as follows: Substituting the water temperature parameter into a third preset calculation formula to calculate the bacterial strain doubling time; The third preset calculation formula is: G(t)=K n *T n +K n-1 *T n-1 +...+K0; Among them, T is the time parameter and G(t) is the doubling time of the strain.
7. The water quality detection method according to claim 5, characterized in that: The step of calculating the microbial concentration according to the preset water use statistical interval time and the bacterial strain doubling time is specifically as follows: Substitute the preset water use statistical interval time and bacterial doubling time into the fourth preset calculation formula to calculate the microbial concentration: The fourth preset calculation formula is: Z(n)=Z(n-1)*2 (Ti / (G(t))) ; Among them, Z(n) is the total microbial concentration within n preset water use statistical intervals, Z(n-1) is the total microbial concentration within n-1 preset water use statistical intervals, and Ti is the preset water use statistical interval.
8. The water quality detection method according to claim 1, characterized in that: Before the step of calculating the microbial concentration according to the preset bacterial strain initial density, the water temperature parameter and the preset water use statistical interval, the water quality detection method further includes the following steps: Obtaining agent concentration and environmental parameters; Based on the concentration of the agent and the environmental parameters, the step of calculating the concentration of microorganisms according to the preset initial density of the bacterial species, the water temperature parameter and the preset water use statistical interval time is specifically: The microorganism concentration is calculated based on the concentration of the agent, environmental parameters, the preset initial density of the bacteria, the water temperature parameters and the water age.
9. A water quality detection device, characterized in that: include: Controller; A memory, wherein the memory stores a water quality detection program, and when the water quality detection program is executed by the controller, the health monitoring device control method according to any one of claims 1 to 8 is implemented.
10. A water meter, characterized in that: Comprising the water quality detection device as described in claim 9.
