TDS detection method and detection system based on fluid water quality
By obtaining the original detection data of fluid water quality and correcting the temperature and flow rate, and using the compensation table and the corresponding table to calculate the final TDS result, the problem of low fluid water quality detection accuracy in the existing technology is solved, and high-precision TDS detection of fluid water quality is achieved.
Patent Information
- Application Number
- CN201910442152.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-05-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot accurately detect TDS (total dissolved solids) of fluid water quality, and the detection accuracy is low.
By obtaining the original TDS detection data, temperature and flow rate of the fluid water quality, using the conductivity-temperature compensation table and flow-conductivity correspondence table for correction, the final TDS detection result is calculated, using the NTC temperature sensor and FM-HL3012 Hall flow rate The meter performs temperature and flow detection, and is combined with the controller for data processing.
It realizes high-precision TDS detection of fluid water quality, with wide application range and accurate detection results.
Smart Images

Figure CN110044968B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of TDS water quality detection, and in particular to a TDS detection method and detection system based on fluid water quality. Background Art
[0002] TDS water quality testing technology is used to determine all solid substances dissolved in water, including minerals, salts, and tiny metal substances dissolved in water. The unit of measurement is ppm or mg / L, which indicates how many milligrams of soluble solids are dissolved in 1 liter of water. The strength of water's ability to conduct electricity is called conductivity, which reflects the amount of soluble solids in the water. Usually, conductivity can be used to infer the salt content in the solution. The purer the water, the fewer soluble solids, the greater the resistance, and the smaller the conductivity. Pure water can hardly conduct electricity.
[0003] Currently, TDS water quality testing methods all perform TDS testing on water quality in a static state, and cannot achieve accurate TDS testing of fluid water quality. Summary of the invention
[0004] To this end, an embodiment of the present invention provides a TDS detection method and a detection system based on fluid water quality to solve the problem that the TDS of fluid water quality cannot be accurately detected in the prior art.
[0005] In order to achieve the above purpose, the embodiment of the present invention provides the following technical solutions:
[0006] An embodiment of the first aspect of the present invention discloses a TDS detection method based on fluid water quality, including: obtaining original TDS detection data of the target fluid water quality; obtaining the temperature and flow rate of the target fluid water quality; and obtaining the final TDS detection result of the target fluid water quality based on the original TDS detection data, the temperature and the flow rate.
[0007] Furthermore, the final TDS detection result of the target fluid water quality is obtained according to the original TDS detection data, the temperature and the flow rate, including: obtaining a first conductivity according to the original TDS detection data, the temperature and a preset conductivity-temperature compensation table; obtaining the final TDS detection result according to the first conductivity and a preset flow-conductivity correspondence table.
[0008] Furthermore, the temperature of the target fluid water quality is detected by an NTC temperature sensor to obtain the temperature.
[0009] Furthermore, the flow rate of the target fluid water quality is detected by using a FM-HL3012 Hall flowmeter to obtain the flow rate.
[0010] The embodiment of the second aspect of the present invention discloses a TDS detection system based on fluid water quality, including: a TDS detection device, the TDS detection device having a TDS detection end and a first communication port, the TDS detection device is used to contact the target fluid water quality through the TDS detection end to obtain the original TDS detection data of the target fluid water quality; a temperature detection device, the temperature detection device having a temperature detection end and a second communication port, the temperature detection device is used to contact the target fluid water quality through the temperature detection end to obtain the temperature of the target fluid water quality; a flow detection device, the flow detection device having a flow detection end and a third communication port, the flow detection device is used to contact the target fluid water quality through the flow detection end to obtain the flow of the target fluid water quality; a controller, the controller having a fourth communication port, a fifth communication port and a sixth communication port; wherein the first communication port is connected to the fourth communication port, the second communication port is connected to the fifth communication port, and the third communication port is connected to the sixth communication port; the controller is used to obtain the final TDS detection result of the target fluid water quality according to the original TDS detection data, the temperature and the flow.
[0011] Furthermore, the temperature detection device is an NTC temperature sensor.
[0012] Furthermore, the flow detection device is a FM-HL3012 Hall flow meter.
[0013] Furthermore, the controller is a CSU38M20-SSOP28 controller.
[0014] The embodiments of the present invention have the following advantages:
[0015] By acquiring the test data through the TDS detection device and then correcting it according to the temperature and flow rate, TDS detection of fluid water quality can be finally achieved, with high detection accuracy and a wide range of applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0017] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0018] Figure 1 It is a flow chart of a TDS detection method based on fluid water quality according to an embodiment of the present invention;
[0019] Figure 2 It is a structural block diagram of a TDS detection system based on fluid water quality according to an embodiment of the present invention;
[0020] Figure 3 A circuit diagram of a TDS detection device in one embodiment of the present invention;
[0021] Figure 4 A circuit diagram of a temperature detection device in one embodiment of the present invention;
[0022] Figure 5 FIG. 4 is a circuit diagram of a controller in one embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. 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.
[0024] In the description of the present invention, it should be understood that the terms “first” and “second” are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0025] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0026] Figure 1 FIG. 4 is a flow chart of a TDS detection method based on fluid water quality according to an embodiment of the present invention. Figure 1 As shown, the TDS detection method based on fluid water quality according to an embodiment of the present invention includes:
[0027] S1: Obtain the original TDS test data of the target fluid water quality.
[0028] Specifically, a TDS detection device is used to detect the water quality of the target fluid. The TDS detection device includes a TDS detection circuit, a TDS detection probe, and a communication port connected to a controller. The TDS detection probe is inserted into the target fluid water quality to contact the target fluid water quality, and then the TDS detection circuit obtains the original TDS detection data and sends it to the controller through the communication port. The specific structure of the TDS detection circuit is similar to the detection circuit of the TDS detection device used in static detection in the prior art, and no further explanation is given in this embodiment.
[0029] S2: Obtain the temperature and flow rate of the target fluid water quality;
[0030] Specifically, the accuracy of the original TDS detection data transmitted by the TDS detection device in step S1 is low, because the TDS detection result of the fluid water quality is greatly affected by the temperature and flow rate, resulting in poor detection accuracy.
[0031] The present invention detects the temperature of the target fluid water quality through a temperature detection device, and detects the flow rate of the target fluid water quality through a flow detection device.
[0032] In one embodiment of the present invention, the target fluid water quality is detected by an NTC temperature sensor to obtain the temperature. The NTC temperature sensor has high sensitivity, fast response speed, good insulation and sealing, good mechanical collision resistance and good bending resistance. The detection end of the NTC temperature sensor is contacted with the target fluid water quality to obtain temperature detection data, and the obtained temperature detection data is sent to the controller through the corresponding data communication port.
[0033] In one embodiment of the present invention, the target fluid water quality is flow-tested by the FM-HL3012 Hall flowmeter to obtain the flow rate. The FM-HL3012 Hall flowmeter has the advantages of small size, light weight, high flow measurement accuracy, high reliability and long life. The detection end of the FM-HL3012 Hall flowmeter is contacted with the target fluid water quality to obtain flow detection data, and the obtained flow detection data is sent to the controller through the corresponding data communication port.
[0034] S3: Obtain the final TDS test result of the target fluid water quality according to the original TDS test data, temperature and flow rate.
[0035] Specifically, the final TDS detection result is obtained by correcting the original TDS detection data according to the acquired temperature and flow rate.
[0036] In one embodiment of the present invention, step S3 includes:
[0037] S3-1: Obtaining a first conductivity according to original TDS detection data, temperature and a preset conductivity-temperature compensation table.
[0038] Specifically, a preset conductivity-temperature compensation table is provided. In one example of the present invention, the preset conductivity-temperature compensation table is shown in Table 1.
[0039] Serial number Temperature range Compensation formula 1 ≤10℃ electornic_conductor=siemens_value / (0.0169*temperature+0.5583) 2 10-20℃ electornic_conductor=siemens_value / (0.018*temperature+0.5473) 3 20-30℃ electornic_conductor=siemens_value / (0.0189*temperature+0.5281) 4 ≥30℃ electornic_conductor=siemens_value / (0.022*temperature+0.45)
[0040] Table 1 Conductivity-temperature compensation table
[0041] Among them, electornic_conductor is the conductivity, siemens_value is the original TDS detection value, and temperature is the detected temperature.
[0042] Table 1 is searched according to the original TDS detection data and the temperature, and the first conductivity is obtained according to the corresponding compensation formula.
[0043] S3-2: Obtaining a final TDS detection result according to the first conductivity and a preset flow-conductivity correspondence table.
[0044] Specifically, a preset flow rate-conductivity correspondence table is provided. In one example of the present invention, the preset flow rate-conductivity correspondence table is shown in Table 2.
[0045]
[0046]
[0047] Table 2 Flow rate-conductivity correspondence table
[0048] Among them, final TDS is the final TDS detection result, and electornic_conductor is the first conductivity mentioned above.
[0049] According to the original TDS test data and temperature query table 2, and according to the corresponding correction formula to obtain the final TDS test result.
[0050] The TDS detection method based on fluid water quality in the embodiment of the present invention obtains detection data through a TDS detection device, and then corrects it according to temperature and flow rate to ultimately achieve TDS detection of fluid water quality, with high detection accuracy and a wide range of applications.
[0051] Figure 2 FIG. 1 is a structural block diagram of a TDS detection system based on fluid water quality according to an embodiment of the present invention. Figure 2As shown, the TDS detection system based on fluid water quality according to an embodiment of the present invention includes a TDS detection device 100 , a temperature detection device 200 , a flow detection device 300 and a controller 400 .
[0052] The TDS detection device 100 has a TDS detection end and a first communication port, and the TDS detection device is used to contact the target fluid water quality through the TDS detection end to obtain original TDS detection data of the target fluid water quality.
[0053] The temperature detection device 200 has a temperature detection terminal and a second communication port. The temperature detection device 200 is used to contact the target fluid water quality through the temperature detection terminal to obtain the temperature of the target fluid water quality.
[0054] The flow detection device 300 has a flow detection end and a third communication port. The flow detection device 300 is used to contact the target fluid water quality through the flow detection end to obtain the flow of the target fluid water quality.
[0055] The controller 400 has a fourth communication port, a fifth communication port and a sixth communication port. The first communication port is connected to the fourth communication port, the second communication port is connected to the fifth communication port, and the third communication port is connected to the sixth communication port. The controller 400 is used to obtain the final TDS test result of the target fluid water quality according to the original TDS test data, temperature and flow rate.
[0056] In one embodiment of the present invention, the temperature detection device 200 is an NTC temperature sensor.
[0057] In one embodiment of the present invention, the flow detection device 300 is a FM-HL3012 Hall flow meter.
[0058] In one embodiment of the present invention, the controller 400 is a CSU38M20-SSOP28 controller.
[0059] Figure 3 This is a circuit diagram of a TDS detection device in one embodiment of the present invention. Figure 4 is a circuit diagram of a temperature detection device in one embodiment of the present invention, Figure 5 FIG. 4 is a circuit diagram of a controller in one embodiment of the present invention.
[0060] like Figures 3 to 5As shown, TDS_OUT1 of the TDS detection device 100 is connected to port 16 of the controller 400, TDS_OUT2 of the TDS detection device 100 is connected to port 18 of the controller 400, and TDS_IN of the TDS detection device 100 is connected to port 17 of the controller 400. The controller 400 sends a fixed-cycle PWM duty cycle TDS_OUT1 low level, TDS_OUT2 high level, and records the TDS_IN sampling value as the original TDS detection data. Among them, the working mode of the TDS detection device 100 is that the controller 400 MCU detects the voltage value of TDS_IN to the ground (TDS_OUT2) and performs A / D conversion, and the controller converts the actual TDS conductivity value through the sampled voltage value.
[0061] TEMP_OUT of the temperature detection device 200 is connected to port 23 of the controller 400, and TEMP_IN of the temperature detection device 200 is connected to port 22 of the controller 400. The working mode of the temperature detection device 200 is that the controller 400 MCU detects the voltage value of TEMP_IN to the ground and performs A / D conversion. The controller can convert the current water temperature value by sampling the voltage value corresponding to the table data.
[0062] The output port of the flow detection device 300 is connected to the I2 port of the controller 400 .
[0063] In addition, other structures and functions of the TDS detection system based on fluid water quality in the embodiment of the present invention are well known to those skilled in the art, and will not be described in detail to reduce redundancy.
[0064] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A TDS detection system based on fluid water quality, characterized in that: include: A TDS detection device, the TDS detection device having a TDS detection end and a first communication port, the TDS detection device being used to contact the target fluid water quality through the TDS detection end to obtain original TDS detection data of the target fluid water quality; A temperature detection device, the temperature detection device having a temperature detection end and a second communication port, the temperature detection device being used to contact the target fluid water quality through the temperature detection end to obtain the temperature of the target fluid water quality; A flow detection device, the flow detection device having a flow detection end and a third communication port, the flow detection device being used to contact the target fluid water quality through the flow detection end to obtain the flow of the target fluid water quality; a controller having a fourth communication port, a fifth communication port, and a sixth communication port; Wherein, the first communication port is connected to the fourth communication port, the second communication port is connected to the fifth communication port, and the third communication port is connected to the sixth communication port; the controller is used to obtain the final TDS detection result of the water quality of the target fluid according to the original TDS detection data, the temperature and the flow rate; Obtaining a first conductivity according to the original TDS detection data, the temperature and a preset conductivity-temperature compensation table; The final TDS detection result is obtained according to the first conductivity and a preset flow-conductivity correspondence table.
2. The TDS detection system based on fluid water quality according to claim 1, characterized in that: The temperature detection device is an NTC temperature sensor.
3. The TDS detection system based on fluid water quality according to claim 1, characterized in that: The flow detection device is a FM-HL3012 Hall flow meter.
4. The TDS detection system based on fluid water quality according to claim 1, characterized in that: The controller is a CSU38M20-SSOP28 controller.
5. A TDS detection method based on fluid water quality, using the TDS detection system as claimed in claim 1, characterized in that: include: Obtain the original TDS test data of the target fluid water quality; Obtaining the temperature and flow rate of the target fluid water quality; The final TDS test result of the target fluid water quality is obtained according to the original TDS test data, the temperature and the flow rate: Obtaining a first conductivity according to the original TDS detection data, the temperature and a preset conductivity-temperature compensation table; The final TDS detection result is obtained according to the first conductivity and a preset flow-conductivity correspondence table.
6. The TDS detection method based on fluid water quality according to claim 5, characterized in that: The temperature of the target fluid water quality is detected by an NTC temperature sensor to obtain the temperature.
7. The TDS detection method based on fluid water quality according to claim 5, characterized in that: The flow rate of the target fluid water quality is detected by using a FM-HL3012 Hall flowmeter to obtain the flow rate.
