Conductivity sensor and conductivity measurement method
By using a combination of excitation magnetic ring, compensation magnetic ring and induction magnetic ring in the conductivity sensor, and using a low-temperature drift resistor to output the compensation signal in series, the impact of temperature changes on conductivity measurement is solved and the measurement accuracy is improved.
Patent Information
- Application Number
- CN202210210994.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-03
AI Technical Summary
Existing conductivity sensors have insufficient measurement accuracy when temperature changes. The change in magnetic permeability of the magnetic ring and the influence of the conditioning amplifier circuit cause signal deviation, making it difficult to accurately measure liquid conductivity.
It uses a combination of excitation magnetic ring, compensation magnetic ring and induction magnetic ring, and connects it in series through a low-temperature drift resistor to output a compensation signal to correct the induction signal to ensure the accuracy of conductivity measurement.
Through the compensation coil output signal under temperature changes, the impact of temperature drift on conductivity measurement is reduced, and the measurement precision and accuracy of the conductivity sensor are improved.
Smart Images

Figure CN114594308B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of seawater detection, and in particular to a conductivity sensor and a conductivity measurement method. Background Art
[0002] The conductivity sensor uses a coaxially arranged excitation magnetic ring and induction magnetic ring, and a flow guide tube is set between the excitation magnetic ring and the induction magnetic ring. In actual operation, the conductivity sensor is immersed in the liquid to be tested, and the liquid to be tested flows through the transmitting magnetic ring and the induction magnetic ring through the flow guide tube, which is equivalent to connecting a liquid equivalent resistor Rc in series between the excitation magnetic ring and the induction magnetic ring; due to the electromagnetic induction effect, the induction magnetic ring generates an induction signal, that is, the receiving signal S1, which is related to the conductivity of the liquid to be tested flowing between the transmitting magnetic ring and the induction magnetic ring. After conditioning and amplification, the receiving signal S1 is obtained to obtain the signal S2, and the amplitude of S2 is linearly related to the conductivity of the liquid to be tested. AD sampling (i.e., converting analog quantity into digital quantity) is performed on S2, and the sampling result enters the MCU (Microcontroller Unit, micro control unit), and the conductivity of the liquid to be tested can be obtained after calculation.
[0003] However, temperature changes will have a significant impact on the conductivity measurement results. On the one hand, the magnetic permeability of the magnetic ring will change with temperature, thereby affecting the received signal S1; on the other hand, temperature changes will also affect intermediate circuits such as conditioning and amplifier circuits, thereby affecting signal S2.
[0004] At present, nanocrystals or Permalloys whose magnetic permeability changes little with temperature are usually used to make magnetic rings, and resistors, capacitors and chips with low temperature drift are used as much as possible in the measurement circuit to reduce the impact of temperature changes on the measurement.
[0005] However, the measurement accuracy of the above method needs to be improved. Summary of the invention
[0006] The present invention provides a conductivity sensor and a conductivity measurement method, which can compensate the voltage amplitude or conductivity corresponding to the induction coil output signal by changing the voltage amplitude or conductivity of the compensation coil output signal caused by temperature change, thereby ensuring the reference value of the measured conductivity.
[0007] In a first aspect, the present invention provides a conductivity sensor, comprising:
[0008] An excitation magnetic ring, wherein the magnetic core is wound with an excitation coil, and an excitation signal is applied to both ends of the excitation coil;
[0009] A compensation magnetic ring, wherein a compensation coil is wound around the magnetic core, and a low temperature drift resistor is connected in series between the excitation magnetic ring and the compensation magnetic ring, so that the compensation coil outputs a first induction signal, and the first induction signal is used to reflect the magnetic field condition of the compensation magnetic ring at the current temperature;
[0010] Induction magnetic ring, the magnetic core is wound with an induction coil;
[0011] A flow guide tube, disposed between the excitation magnetic ring and the induction magnetic ring, and used for passing the liquid to be tested so that the induction coil outputs a second induction signal;
[0012] an amplitude extraction circuit, configured to perform voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively, to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal;
[0013] A compensation circuit is used to determine a first amplitude error based on the first voltage amplitude and a reference voltage amplitude of an output signal of the compensation coil of the compensation magnetic ring at a reference temperature; determine a relationship between the second amplitude error and the second voltage amplitude based on a relationship between the first amplitude error and the first voltage amplitude to solve a second amplitude error; correct the second voltage amplitude based on the second amplitude error; solve conductivity based on a relationship between the corrected second voltage amplitude, the voltage amplitude and the conductivity to determine the conductivity of the liquid to be tested.
[0014] In a first aspect, the present invention provides a conductivity sensor, comprising:
[0015] An excitation magnetic ring, wherein the magnetic core is wound with an excitation coil, and an excitation signal is applied to both ends of the excitation coil;
[0016] A compensation magnetic ring, wherein a compensation coil is wound around the magnetic core, and a low temperature drift resistor is connected in series between the excitation magnetic ring and the compensation magnetic ring, so that the compensation coil outputs a first induction signal, and the first induction signal is used to reflect the magnetic field condition of the compensation magnetic ring at the current temperature;
[0017] Induction magnetic ring, the magnetic core is wound with an induction coil;
[0018] A flow guide tube, disposed between the excitation magnetic ring and the induction magnetic ring, and used for passing the liquid to be tested so that the induction coil outputs a second induction signal;
[0019] an amplitude extraction circuit, configured to perform voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively, to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal;
[0020] A compensation circuit is used to solve the conductivity based on the relationship between the voltage amplitude and the conductivity, determine the first conductivity corresponding to the first voltage amplitude and the second conductivity corresponding to the second voltage amplitude; determine the first conductivity error based on the first conductivity and the reference conductivity corresponding to the output signal of the compensation coil of the compensation magnetic ring at a reference temperature; determine the relationship between the second conductivity error and the second conductivity based on the relationship between the first conductivity error and the first conductivity to solve the second conductivity error; correct the second conductivity based on the second conductivity error to determine the third conductivity of the liquid to be tested.
[0021] In a third aspect, the present invention provides a conductivity measurement method, which is applied to a conductivity sensor, wherein the conductivity sensor comprises an excitation magnetic ring having an excitation coil wound around a magnetic core, an induction magnetic ring having an induction coil wound around a magnetic core, a compensation magnetic ring having a compensation coil wound around a magnetic core, and a flow guide tube between the excitation magnetic ring and the induction magnetic ring, wherein a low temperature drift resistor is connected in series between the excitation magnetic ring and the compensation magnetic ring, and the method comprises:
[0022] Applying an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil;
[0023] When the flow guide tube passes through the liquid to be tested, obtaining a second induction signal output by the induction coil;
[0024] Performing voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal;
[0025] determining a first amplitude error based on the first voltage amplitude and a reference voltage amplitude of an output signal of the compensation coil of the compensation magnetic ring at a reference temperature;
[0026] Based on the relationship between the first amplitude error and the first voltage amplitude, determining the relationship between the second amplitude error and the second voltage amplitude to solve for the second amplitude error;
[0027] correcting the second voltage amplitude based on the second amplitude error;
[0028] The conductivity is solved based on the corrected second voltage amplitude, the relationship between the voltage amplitude and the conductivity to determine the conductivity of the liquid to be tested.
[0029] In a fourth aspect, the present invention provides a conductivity measurement method, which is applied to a conductivity sensor, wherein the conductivity sensor comprises an excitation magnetic ring having an excitation coil wound around a magnetic core, an induction magnetic ring having an induction coil wound around a magnetic core, a compensation magnetic ring having a compensation coil wound around a magnetic core, and a flow guide tube between the excitation magnetic ring and the induction magnetic ring, wherein a low temperature drift resistor is connected in series between the excitation magnetic ring and the compensation magnetic ring, and the method comprises:
[0030] Applying an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil;
[0031] When the flow guide tube passes through the liquid to be tested, obtaining a second induction signal output by the induction coil;
[0032] Performing voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal;
[0033] Solving the conductivity based on the relationship between the voltage amplitude and the conductivity, and determining a first conductivity corresponding to the first voltage amplitude and a second conductivity corresponding to the second voltage amplitude;
[0034] determining a first conductivity error based on the first conductivity and a reference conductivity corresponding to an output signal of the compensation coil of the compensation magnetic ring at a reference temperature;
[0035] Based on the relationship between the first conductivity error and the first conductivity, determining the relationship between the second conductivity error and the second conductivity to solve the second conductivity error;
[0036] The second conductivity is corrected based on the second conductivity error to determine a third conductivity of the liquid to be measured.
[0037] In a fifth aspect, the present invention provides a computer-readable storage medium, comprising execution instructions. When the conductivity sensor executes the execution instructions, the method described in any one of the third aspect or the fourth aspect is performed.
[0038] The present invention provides a conductivity sensor and a conductivity measurement method, which compensates the voltage amplitude or conductivity corresponding to the induction coil output signal by changing the voltage amplitude or conductivity of the compensation coil output signal caused by temperature change, thereby ensuring the reference value of the measured conductivity.
[0039] The further effects of the above-mentioned non-conventional preferred manner will be described below in conjunction with specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the existing technical solutions, 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 recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 Schematic diagram of the structure of the conductivity sensor provided in the embodiment of the present invention Figure 1 ;
[0042] Figure 2 Schematic diagram of the structure of the conductivity sensor provided in the embodiment of the present invention Figure 2 ;
[0043] Figure 3 Schematic diagram of the conductivity measurement method provided in the embodiment of the present invention Figure 1 ;
[0044] Figure 4 Schematic diagram of the conductivity measurement method provided in the embodiment of the present invention Figure 2 ;
[0045] Figure 5 Schematic diagram of the structure of the conductivity sensor provided in the embodiment of the present invention Figure 3 . DETAILED DESCRIPTION
[0046] 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 specific embodiments and corresponding drawings. 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.
[0047] like Figure 1 Shown and Figure 2As shown, a conductivity sensor provided by an embodiment of the present invention. In this embodiment, the conductivity sensor includes: an excitation magnetic ring 1, a magnetic core wound with an excitation coil 11, and an excitation signal is applied to both ends of the excitation coil 11; a compensation magnetic ring 2, a magnetic core wound with a compensation coil 21, and a low-temperature drift resistor is connected in series between the excitation magnetic ring 1 and the compensation magnetic ring 2, so that the compensation coil 21 outputs a first induction signal, and the first induction signal is used to reflect the magnetic field condition of the excitation magnetic ring 1 at the current temperature; an induction magnetic ring 3, a magnetic core wound with an induction coil 31; a flow guide tube 4, which is arranged between the excitation magnetic ring 1 and the induction magnetic ring 3, and is used to pass the liquid to be tested, so that the induction coil 31 outputs a second induction signal; an amplitude extraction circuit 5, used for performing voltage amplitude extraction processing on the first induction signal and the second induction signal, and determining the first voltage amplitude corresponding to the first induction signal and the second voltage amplitude corresponding to the second induction signal; the compensation circuit 6, used for analyzing the relationship between the influence of the change from the reference temperature to the current temperature on the excitation magnetic ring 1 and the induction magnetic ring 3 based on the reference voltage amplitude and / or reference conductivity corresponding to the output signal of the compensation coil 21 of the compensation magnetic ring 2 at the reference temperature, and realizing compensation for the conductivity or voltage amplitude corresponding to the output signal of the induction coil 31, and determining the conductivity of the liquid to be measured.
[0048] In this embodiment, the first induction signal generated by the compensation coil 21 is used to correct the conductivity or voltage amplitude corresponding to the second induction signal generated by the induction coil 31, thereby reducing the influence of temperature drift and ensuring the accuracy of the conductivity measured by the conductivity sensor.
[0049] Temperature changes will have a great impact on the conductivity results measured by the conductivity sensor. On the one hand, the magnetic permeability of the magnetic ring will change with temperature, thereby affecting the magnitude of the output current of the coil wound around the magnetic core of the magnetic ring; on the other hand, temperature changes will also affect the relevant circuits for voltage amplitude extraction (i.e., the above-mentioned amplitude extraction circuit 5), thereby affecting the extraction results of the voltage amplitude. In this embodiment, in order to reduce the impact of temperature changes on the conductivity measurement results, on the one hand, nanocrystalline or permalloy with small changes in magnetic permeability with temperature is usually selected to make the excitation magnetic ring 1, the induction magnetic ring 3 and the compensation magnetic ring 2. In practical applications, the compensation magnetic ring 2, the excitation magnetic ring 1, and the induction magnetic ring 3 can be selected from the same manufacturer, the same material, the same batch, and the magnetic permeability changes little with temperature; on the other hand, the relevant circuit for extracting the voltage amplitude (amplitude extraction circuit 5) is used as much as possible. Low temperature drift resistors and capacitors and chips, thereby reducing the impact of temperature changes on the circuit to a certain extent, and then ensuring the reference value of the voltage amplitude measurement results.
[0050] It should be noted that, since a low-temperature drift resistor is connected in series between the excitation magnetic ring 1 and the compensation magnetic ring 2, it is equivalent to simulating the movement of the liquid cutting the magnetic flux lines between the excitation magnetic ring 1 and the compensation magnetic ring 2, that is, the low-temperature drift resistor is equivalent to a liquid with a specific conductivity. Therefore, when the excitation coil 11 of the excitation magnetic ring 1 applies an excitation signal, the compensation coil 21 wound around the compensation magnetic ring 2 outputs a first induction signal, and the first induction signal can reflect the change in the magnetic field of the compensation magnetic ring 2 at the current temperature. In actual operation, the conductivity sensor is immersed in the liquid to be tested, and the flow guide tube 4 passes through the liquid to be tested, which is equivalent to connecting a liquid equivalent resistor Rc in series between the excitation magnetic ring 1 and the induction magnetic ring 3. Due to the electromagnetic induction effect, the induction coil 31 wound around the induction magnetic ring 3 outputs a second induced current. Furthermore, since the conductivity of the liquid represented by the low temperature drift resistor will not change, that is, the conductivity corresponding to the output signal of the compensation coil 21 is unchanged, therefore, under the conditions that the excitation magnetic ring 1 and the compensation magnetic ring 2 are the same and the temperature is the same, there is a certain relationship between the influence of temperature change on the excitation magnetic ring 1 and the compensation magnetic ring 2, so the change in voltage amplitude or conductivity reflected by the output signal of the compensation coil 21 under temperature change can be used to compensate for the conductivity corresponding to the induction signal generated by the induction coil 31. It is worth noting that since the conductivity sensor is immersed in the liquid for a long time, the temperature of the induction magnetic ring 3, the compensation magnetic ring 2 and the excitation magnetic ring 1 is the same.
[0051] In addition, the conductivity sensor needs to be calibrated before it can work. The specific reference process is as follows:
[0052] In practical applications, when the temperature is T1, the voltage amplitude of the output signal of the compensation coil 21 obtained by the conductivity sensor in the water tank (containing the calibration liquid with conductivity C1) is A1, and the voltage amplitude of the output signal of the induction coil 31 is B1, and then the amplitude extraction circuit 5 is adjusted so that A1=B1, that is, the conductivity of the liquid represented by the low temperature drift resistor is C1. In a possible implementation, the conductivity C1 can be the maximum conductivity of the liquid to be measured, such as the maximum conductivity of seawater. As a feasible implementation, the temperature T1 can be understood as a reference temperature, such as room temperature.
[0053] The relationship between conductivity and voltage amplitude provided by the embodiment of the present invention is described below.
[0054] In practical applications, the conductivity sensor will obtain the voltage amplitude A1 and the voltage amplitude A2 of the output signal of the induction coil 31 in the constant temperature water tank with conductivity C1 and C2 respectively. Then, in the liquid to be tested with conductivity Cx, the voltage amplitude of the output signal of the induction coil 31 is Ax. Considering that there is a linear relationship between voltage amplitude and conductivity, Furthermore, the conductivity Cx of the liquid to be tested can be calculated by formula (1):
[0055]
[0056] Among them, C1, C2, A1 and A2 are all constants.
[0057] It is worth noting that the conductivity sensor includes a probe and a main body, the flow guide tube 4, the compensation magnetic ring 2, the excitation magnetic ring 1, and the induction magnetic ring 3 are all arranged in the probe, and the amplitude extraction circuit 5 and the compensation circuit 6 are located in the main body.
[0058] As a feasible implementation manner, the output signals at both ends of the compensation coil 21 are used as the first induction signal.
[0059] In practical applications, the output signal of one end of the compensation coil 21 is used as the first induction signal, and the other end is connected to the ground.
[0060] As a feasible implementation manner, the signals outputted from both ends of the induction coil 31 are used as the second induction signals.
[0061] In practical applications, a signal outputted from one end of the induction coil 31 is used as the second induction signal, and the other end is connected to the ground wire.
[0062] As a feasible implementation manner, the excitation signal is provided by the compensation circuit 5 .
[0063] As a feasible implementation, the amplitude extraction circuit 5 is a shared circuit, that is, the amplitude providing circuit performs the same voltage amplitude extraction processing on the first sensing signal and the second sensing signal, thereby reducing the impact of temperature changes on the circuit to a certain extent, thereby ensuring the reference value of the voltage amplitude extraction result.
[0064] In one example, the amplitude extraction circuit 5 includes: a signal selection circuit 51, which is used to take one of the first sensing signal and the second sensing signal as an input signal; a conditioning circuit 52, which is used to convert the input signal into a voltage signal and amplify it, and determine the amplified voltage signal corresponding to the input signal; an amplitude analog signal extraction 53, which is used to perform amplitude extraction on the amplified voltage signal and determine the voltage amplitude analog signal corresponding to the amplified voltage signal; a digital sampling circuit 54, which is used to convert the voltage amplitude analog signal into a voltage amplitude; wherein, when the input signal is the first sensing signal, the voltage amplitude output by the digital sampling circuit 54 is the first voltage amplitude; when the input signal is the second sensing signal, the voltage amplitude output by the digital sampling circuit 54 is the second voltage amplitude.
[0065] In this implementation, in order to ensure the accuracy of the voltage amplitude of the extracted analog signal, in addition, considering that the current of the first induction signal and the second induction signal is small, it is easy to cause a large deviation in conductivity. Furthermore, it is also necessary to meet the voltage input range of the digital sampling circuit 54. Therefore, it is necessary to use a conditioning circuit 52 to perform the same conditioning and amplification on the first induction signal and the second induction signal generated by the compensation magnetic ring 2 and the induction magnetic ring 3 respectively, so as to eliminate the influence of the circuit on the signal.
[0066] Considering that temperature has an influence on the amplification of the conditioning circuit 52, in order to reduce the influence of temperature on the conditioning circuit 52, the first sensing signal and the second sensing signal are processed by the amplitude extraction circuit 5 to ensure the accuracy of the extracted voltage amplitude.
[0067] It should be noted that the conductivity measurement circuit only processes one signal at a time, thereby ensuring the reliability of signal processing.
[0068] Optionally, the compensation circuit 6 is used to determine a first sampling frequency and a second sampling frequency, wherein the first sampling frequency is greater than the second sampling frequency; the signal selection circuit 51 is used to select the first sensing signal as the input signal based on the first sampling frequency; and select the second sensing signal as the input signal based on the second sampling frequency.
[0069] Considering that temperature change is a slow process, the sampling frequency of the first induction signal of the compensation coil 21 can be appropriately reduced to reduce the amount of data processing to a certain extent and ensure the calculation speed of the conductivity sensor.
[0070] In addition, when the compensation circuit 6 obtains the first voltage amplitude output by the amplitude extraction circuit 5, it does not obtain the second voltage amplitude output by the amplitude extraction circuit 5 within the set time period (because the signal selection circuit 51 does not select the second sensing signal). The first voltage amplitude is substituted into the above formula (1) to calculate the conductivity as the conductivity of the liquid to be tested.
[0071] As a feasible implementation method, the compensation circuit 6 is used to determine the first amplitude error based on the first voltage amplitude and the reference voltage amplitude of the output signal of the compensation coil 21 of the compensation magnetic ring 2 at the reference temperature; determine the relationship between the second amplitude error and the second voltage amplitude based on the relationship between the first amplitude error and the first voltage amplitude to solve the second amplitude error; correct the second voltage amplitude based on the second amplitude error; solve the conductivity based on the relationship between the corrected second voltage amplitude, the voltage amplitude and the conductivity, and determine the conductivity of the liquid to be tested.
[0072] It should be noted that the reference voltage amplitude can be understood as the voltage amplitude output by the compensation coil 21 output signal of the compensation magnetic ring 2 at the reference temperature after being processed by the amplitude extraction circuit 5. The first amplitude error reflects the influence of the reference temperature change to the current temperature on the compensation magnetic ring 2, resulting in the change of the voltage amplitude of the output signal of the compensation coil 21. The second amplitude error reflects the influence of the reference temperature change to the current temperature on the induction magnetic ring 3, resulting in the change of the voltage amplitude of the output signal of the induction coil 31.
[0073] In this embodiment, the compensation magnetic ring, the excitation magnetic ring and the induction magnetic ring are the same, and the relationship between the first amplitude error and the first voltage amplitude is equal to the relationship between the second amplitude error and the second voltage amplitude.
[0074] The second amplitude error solution process provided by this embodiment is described below.
[0075] In practical applications, when the temperature is T1, the voltage amplitude of the first induction signal output by the compensation coil 21 obtained by the conductivity sensor in a water tank with a conductivity of C1 is A1, and the voltage amplitude of the second induction signal output by the induction coil 31 is B1; when the temperature is T2, due to the influence of temperature on the magnetic ring, when measuring again in a water tank with a conductivity of C1, the voltage amplitude of the first induction signal output by the compensation coil 21 is A1', and the voltage amplitude of the second induction signal output by the induction coil 31 is B1'; in this embodiment, the conductivity of the reference liquid represented by the low-temperature drift resistor will not change, that is, the conductivity corresponding to the output signal of the compensation coil 21 will not change. Under the conditions that the compensation magnetic ring 1 and the induction magnetic ring 2 are the same and the temperature is the same, and considering that the conductivity of the liquid to be measured and the conductivity of the reference liquid represented by the low-temperature drift resistor are usually different, there is a linear relationship between the influence of temperature change on the compensation magnetic ring 2 and the induction magnetic ring 3. Therefore, Furthermore, the solution formula for the second amplitude error is as follows:
[0076]
[0077] Wherein, ΔA represents the second amplitude error; A 初 Indicates the second voltage amplitude; ΔB=B 测 -B 参 Represents the first amplitude error; B 测 Indicates the first voltage amplitude; B 参 Indicates the reference voltage amplitude.
[0078] Further, the voltage amplitude is A 测 =A 初 +ΔA.
[0079] Afterwards, A 测 As A xBy solving the above formula (1), we can get C x .
[0080] It should be noted that, considering that the temperature changes slowly, the compensation circuit 6 is used to correct the second voltage amplitude based on the second amplitude error when the second amplitude error is greater than or equal to the preset first threshold; otherwise, no compensation is performed, and the second voltage amplitude is directly substituted into the above formula (1), and the conductivity calculated is the conductivity of the liquid to be tested. The first threshold can be determined in combination with actual conditions, and this embodiment does not make specific restrictions on this. In addition, when the second amplitude error is greater than or equal to the preset first threshold, it can be considered that the influence of temperature change is large, and therefore compensation is required.
[0081] As a feasible implementation method, the compensation circuit 6 is used to solve the conductivity based on the relationship between the voltage amplitude and the conductivity, determine the first conductivity corresponding to the first voltage amplitude and the second conductivity corresponding to the second voltage amplitude; determine the first conductivity error based on the first conductivity and the reference conductivity corresponding to the output signal of the compensation coil 21 of the compensation magnetic ring 2 at the reference temperature; determine the relationship between the second conductivity error and the second conductivity based on the relationship between the first conductivity error and the first conductivity to solve the second conductivity error; correct the second conductivity based on the second conductivity error to determine the third conductivity of the liquid to be tested.
[0082] It should be noted that the reference conductivity can be understood as the conductivity corresponding to the voltage amplitude output by the compensation coil 21 output signal of the compensation magnetic ring 2 at the reference temperature after being processed by the amplitude extraction circuit 5. The first conductivity error reflects the influence of the reference temperature change to the current temperature on the compensation magnetic ring 2, resulting in the change of the voltage amplitude of the output signal of the compensation coil 21. The second amplitude error reflects the influence of the reference temperature change to the current temperature on the induction magnetic ring 3, resulting in the change of the voltage amplitude of the output signal of the induction coil 31.
[0083] In this embodiment, the compensation magnetic ring, the excitation magnetic ring and the induction magnetic ring are the same, and the relationship between the first conductivity error and the first conductivity is equal to the relationship between the second conductivity error and the second conductivity.
[0084] In one example, the first voltage amplitude is A x The first conductivity is obtained by solving the above formula (1); the second voltage amplitude is taken as A x The second conductivity is obtained by solving the above formula (1).
[0085] The calculation methods of the voltage amplitude error and the conductivity error are similar. As long as the voltage amplitude in formula (2) is replaced by conductivity, the second conductivity error can be obtained.
[0086] Afterwards, the second conductivity is corrected based on the second conductivity error, so that the conductivity of the liquid to be measured can be determined.
[0087] It should be noted that, considering that the temperature changes slowly, the compensation circuit 4 can correct the second conductivity based on the second conductivity error to determine the third conductivity of the liquid to be tested when the second conductivity error is greater than or equal to the preset second threshold. The second threshold can be determined in combination with actual conditions, and this embodiment does not specifically limit this. In addition, when the second conductivity error is greater than or equal to the preset second threshold, it can be considered that the influence of temperature is large, and therefore compensation is required.
[0088] In addition, the compensation circuit 6 is also used to comprehensively consider the conductivity calculated after the second voltage amplitude is corrected and the result after the second conductivity is corrected, so as to ensure the accuracy of the conductivity measurement result.
[0089] As a feasible implementation manner, the compensation circuit 6 may be a single chip microcomputer.
[0090] As a feasible implementation method, the flow guide tube 4 includes an input tube 41 and an output tube 42. The input tube 41 is located between the excitation magnetic ring 1 and the induction magnetic ring 3 to pass the liquid to be tested. The output tube 42 is used to discharge the liquid to be tested that passes through the input tube 41. The opening of the output tube 42 faces the surroundings of the conductivity sensor, and the compensation magnetic ring 2 is arranged on the side of the input tube 41 facing the outlet.
[0091] In one example, the input tube 41 may be a quartz tube, and the output tube 42 may be a cross-shaped tube. The input tube 41 and the cross-shaped tube are connected, so that the liquid flows into the input tube 41 and flows out of the cross-shaped tube.
[0092] As a feasible implementation method, a gasket 7 is provided between the excitation magnetic ring 1 and the induction magnetic ring 2, and the gasket 7 is used to separate the excitation magnetic ring 1 and the induction magnetic ring 2 to ensure normal operation.
[0093] like Figure 3 As shown, a conductivity measurement method provided by an embodiment of the present invention is provided. The method provided by an embodiment of the present invention can be applied to the above-mentioned conductivity sensor. In this embodiment, the method specifically includes the following steps:
[0094] Step 301: Apply an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil.
[0095] When the current in the excitation coil changes, since a low-temperature drift resistor is connected in series between the excitation magnetic ring and the compensation coil, the magnetic field of the excitation magnetic ring 1 changes due to the current change, thereby generating an induced electromotive force in the compensation coil, causing the compensation coil to output a first induction signal.
[0096] The first induction signal is used to reflect the magnetic field of the compensation magnetic ring 2 at the current temperature.
[0097] Step 302: When the flow guide tube passes through the liquid to be tested, a second induction signal output by the induction coil is obtained.
[0098] When the current in the excitation coil changes and the flow guide tube passes through the liquid to be tested, it is equivalent to connecting a liquid equivalent resistor Rc in series between the excitation magnetic ring and the induction magnetic ring. Therefore, the magnetic field of the excitation magnetic ring 1 changes due to the change in current, thereby generating an induced electromotive force in the induction coil, causing the induction coil to output a second induction signal.
[0099] The second induction signal is used to reflect the magnetic field of the induction magnetic ring at the current temperature.
[0100] Step 303: Perform voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal.
[0101] Considering that temperature change may affect the circuit, in order to reduce the impact, this embodiment performs the same voltage amplitude extraction process on the first sensing signal and the second sensing signal.
[0102] Step 304: Determine a first amplitude error based on the first voltage amplitude and a reference voltage amplitude of an output signal of the compensation coil of the compensation magnetic ring at a reference temperature.
[0103] The first amplitude error indicates the influence of the change from the reference temperature to the current temperature on the compensation magnetic ring, resulting in the change of the voltage amplitude of the compensation coil output signal.
[0104] In practical applications, at room temperature, the voltage amplitude of the compensation coil output signal after passing through the amplitude extraction circuit 5 is used as the reference voltage amplitude.
[0105] Step 305: Based on the relationship between the first amplitude error and the first voltage amplitude, determine the relationship between the second amplitude error and the second voltage amplitude to solve the second amplitude error.
[0106] The second amplitude error indicates the influence of the change from the reference temperature to the current temperature on the induction magnetic ring, resulting in the change of the voltage amplitude of the output signal of the induction coil.
[0107] Step 306: Correct the second voltage amplitude based on the second amplitude error.
[0108] Step 307: Solve the conductivity based on the corrected second voltage amplitude and the relationship between the voltage amplitude and the conductivity to determine the conductivity of the liquid to be tested.
[0109] Through the above technical solution, it can be seen that the beneficial effects of this embodiment are:
[0110] By compensating for the change in voltage amplitude of the output signal of the compensation coil under temperature changes, the voltage amplitude corresponding to the induction signal generated by the induction coil is compensated, thereby ensuring the measurement accuracy of the conductivity sensor.
[0111] like Figure 4 As shown, a conductivity measurement method provided by an embodiment of the present invention is provided. The method provided by an embodiment of the present invention can be applied to the above-mentioned conductivity sensor. In this embodiment, the method specifically includes the following steps:
[0112] Step 401: Apply an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil.
[0113] Please refer to step 301 for details, which will not be repeated here.
[0114] Step 402: When the flow guide tube passes through the liquid to be tested, a second induction signal output by the induction coil is obtained.
[0115] Please refer to step 302 for details, which will not be repeated here.
[0116] Step 403: Perform voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal.
[0117] Please refer to step 303 for details, which will not be repeated here.
[0118] Step 404: Solve the conductivity based on the relationship between the voltage amplitude and the conductivity to determine a first conductivity corresponding to the first voltage amplitude and a second conductivity corresponding to the second voltage amplitude.
[0119] The relationship between voltage amplitude and conductivity is generally considered to be constant. Therefore, the first conductivity corresponding to the first voltage amplitude and the second conductivity corresponding to the second voltage amplitude can be determined by the above formula (1).
[0120] Step 405: Determine a first conductivity error based on the first conductivity and a reference conductivity corresponding to an output signal of the compensation coil of the compensation magnetic ring at a reference temperature.
[0121] In practical applications, at room temperature, the voltage amplitude of the compensation coil output signal after passing through the amplitude extraction circuit 5 is substituted into the above formula (1), and the obtained conductivity is used as the reference conductivity.
[0122] The first amplitude error indicates the influence of the change from the reference temperature to the current temperature on the compensation magnetic ring, resulting in a change in the conductivity corresponding to the output signal of the compensation coil.
[0123] Step 406: Based on the relationship between the first conductivity error and the first conductivity, determine the relationship between the second conductivity error and the second conductivity to solve the second conductivity error.
[0124] The second amplitude error indicates the influence of the change from the reference temperature to the current temperature on the induction magnetic ring, resulting in a change in the conductivity corresponding to the output signal of the induction coil.
[0125] Step 407: Correct the second conductivity based on the second conductivity error to determine a third conductivity of the liquid to be tested.
[0126] Through the above technical solution, it can be seen that the beneficial effects of this embodiment are:
[0127] By compensating for the change in conductivity reflected by the output signal of the compensation coil under temperature changes, the conductivity corresponding to the induction signal generated by the induction coil is compensated, thereby ensuring the measurement accuracy of the conductivity sensor.
[0128] Figure 5 It is a structural diagram of a conductivity sensor provided by an embodiment of the present invention. At the hardware level, the sensor includes a processor 501 and a memory 502 storing execution instructions, and optionally also includes an internal bus 503 and a network interface 504. Among them, the memory 502 may include a memory 5021, such as a high-speed random access memory (Random-Access Memory, RAM), and may also include a non-volatile memory 5022 (non-volatile memory), such as at least one disk storage, etc.; the processor 501, the network interface 504 and the memory 502 can be interconnected through an internal bus 503, and the internal bus 503 can be an ISA (Industry Standard Architecture, Industrial Reference Architecture) bus, a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Reference) bus or an EISA (Extended Industry Standard Architecture, Extended Industrial Reference Architecture) bus, etc.; the internal bus 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. Of course, the electronic device may also include hardware required for other services. When the processor 501 executes the execution instruction stored in the memory 502, the processor 501 executes the method in any embodiment of the present invention, and is at least used to execute the following steps: Figure 3 or Figure 4 The method shown.
[0129] In a possible implementation, the processor reads the corresponding execution instruction from the non-volatile memory into the memory and then runs it, and can also obtain the corresponding execution instruction from other devices to form a conductivity measurement method at the logical level. The processor executes the execution instruction stored in the memory to implement a conductivity measurement method provided in any embodiment of the present invention by executing the execution instruction.
[0130] The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0131] The embodiment of the present invention further provides a computer-readable storage medium, including an execution instruction. When a processor of an electronic device executes the execution instruction, the processor executes the method provided in any embodiment of the present invention. The electronic device may be specifically as follows: Figure 5 The electronic device shown; the execution instruction is a computer program corresponding to a conductivity measurement method.
[0132] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or computer program products. Therefore, the present invention may be implemented in the form of a complete hardware embodiment, a complete software embodiment, or a combination of software and hardware.
[0133] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0134] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0135] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A conductivity sensor, characterized in that: include: An excitation magnetic ring, wherein the magnetic core is wound with an excitation coil, and an excitation signal is applied to both ends of the excitation coil; A compensation magnetic ring, a magnetic core is wound with a compensation coil, and a low temperature drift resistor is connected in series between the excitation magnetic ring and the compensation magnetic ring, so that the compensation coil outputs a first induction signal, and the first induction signal is used to reflect the magnetic field condition of the compensation magnetic ring at the current temperature; Induction magnetic ring, the magnetic core is wound with an induction coil; A flow guide tube, disposed between the excitation magnetic ring and the induction magnetic ring, and used for passing the liquid to be tested so that the induction coil outputs a second induction signal; an amplitude extraction circuit, configured to perform voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively, to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal; A compensation circuit, configured to determine a first amplitude error based on the first voltage amplitude and a reference voltage amplitude of an output signal of the compensation coil of the compensation magnetic ring at a reference temperature; Based on the relationship between the first amplitude error and the first voltage amplitude, determining the relationship between the second amplitude error and the second voltage amplitude to solve for the second amplitude error; correcting the second voltage amplitude based on the second amplitude error; Solving the conductivity based on the corrected second voltage amplitude, the relationship between the voltage amplitude and the conductivity, and determining the conductivity of the liquid to be tested; or, A compensation circuit is used to solve the conductivity based on the relationship between the voltage amplitude and the conductivity, determine the first conductivity corresponding to the first voltage amplitude and the second conductivity corresponding to the second voltage amplitude; determine the first conductivity error based on the first conductivity and the reference conductivity corresponding to the output signal of the compensation coil of the compensation magnetic ring at a reference temperature; determine the relationship between the second conductivity error and the second conductivity based on the relationship between the first conductivity error and the first conductivity to solve the second conductivity error; correct the second conductivity based on the second conductivity error to determine the third conductivity of the liquid to be tested.
2. The conductivity sensor according to claim 1, characterized in that: The amplitude extraction circuit is used to perform the same voltage amplitude extraction process on the first sensing signal and the second sensing signal.
3. The conductivity sensor according to claim 2, characterized in that: The amplitude extraction circuit comprises: a signal selection circuit, configured to use one of the first sensing signal and the second sensing signal as an input signal; A conditioning circuit, used for converting an input signal into an amplified voltage signal and then amplifying it, and determining the amplified voltage signal corresponding to the input signal; an amplitude analog signal extraction circuit, used for performing amplitude extraction on the amplified voltage signal to determine a voltage amplitude analog signal corresponding to the amplified voltage signal; A digital sampling circuit, used for converting the voltage amplitude analog signal into a voltage amplitude; When the input signal is the first sensing signal, the voltage amplitude output by the digital sampling circuit is the first voltage amplitude; when the input signal is the second sensing signal, the voltage amplitude output by the digital sampling circuit is the second voltage amplitude.
4. The conductivity sensor according to claim 3, characterized in that: The compensation circuit is used to determine a first sampling frequency and a second sampling frequency; wherein the first sampling frequency is greater than the second sampling frequency; The signal selection circuit is used to select the first sensing signal as the input signal based on the first sampling frequency; and select the second sensing signal as the input signal based on the second sampling frequency.
5. The conductivity sensor according to claim 1, characterized in that: The flow guide pipe comprises an input pipe and an output pipe, wherein the input pipe is located between the excitation magnetic ring and the induction magnetic ring to pass the liquid to be measured, and the output pipe is used to discharge the liquid to be measured passing through the input pipe, and the opening of the output pipe faces the periphery of the conductivity sensor, and the compensation magnetic ring is arranged on the side facing the outlet of the input pipe; The measuring circuit is a single chip microcomputer.
6. The conductivity sensor according to claim 1, characterized in that: The compensation circuit is used for correcting the second voltage amplitude based on the second amplitude error when the second amplitude error is greater than or equal to a preset first threshold; Solving the conductivity based on the corrected second voltage amplitude, the relationship between the voltage amplitude and the conductivity, and determining the conductivity of the liquid to be tested; The compensation circuit is used for correcting the second conductivity based on the second conductivity error to determine the third conductivity of the liquid to be tested when the second conductivity error is greater than or equal to a preset second threshold value; The relationship between the first amplitude error and the first voltage amplitude is the relationship between the second amplitude error and the second voltage amplitude; The relationship between the first conductivity error and the first conductivity is the relationship between the second conductivity error and the second conductivity.
7. A conductivity measurement method, characterized in that: Applied to a conductivity sensor, the conductivity sensor comprises an excitation magnetic ring having an excitation coil wound around a magnetic core, an induction magnetic ring having an induction coil wound around a magnetic core, a compensation magnetic ring having a compensation coil wound around a magnetic core, a flow guide tube between the excitation magnetic ring and the induction magnetic ring, and a low temperature drift resistor connected in series between the excitation magnetic ring and the compensation magnetic ring. The method comprises: Applying an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil; When the flow guide tube passes through the liquid to be tested, obtaining a second induction signal output by the induction coil; Performing voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal; determining a first amplitude error based on the first voltage amplitude and a reference voltage amplitude of an output signal of the compensation coil of the compensation magnetic ring at a reference temperature; Based on the relationship between the first amplitude error and the first voltage amplitude, determining the relationship between the second amplitude error and the second voltage amplitude to solve for the second amplitude error; correcting the second voltage amplitude based on the second amplitude error; The conductivity is solved based on the corrected second voltage amplitude, the relationship between the voltage amplitude and the conductivity to determine the conductivity of the liquid to be tested.
8. The conductivity sensor according to claim 7, characterized in that: When the second amplitude error is greater than or equal to a preset first threshold, the second voltage amplitude is corrected based on the second amplitude error.
9. A conductivity measurement method, characterized in that: Applied to a conductivity sensor, the conductivity sensor comprises an excitation magnetic ring having an excitation coil wound around a magnetic core, an induction magnetic ring having an induction coil wound around a magnetic core, a compensation magnetic ring having a compensation coil wound around a magnetic core, a flow guide tube between the excitation magnetic ring and the induction magnetic ring, and a low temperature drift resistor connected in series between the excitation magnetic ring and the compensation magnetic ring. The method comprises: Applying an excitation signal to the excitation coil to obtain a first induction signal output by the compensation coil; When the flow guide tube passes through the liquid to be tested, obtaining a second induction signal output by the induction coil; Performing voltage amplitude extraction processing on the first sensing signal and the second sensing signal respectively to determine a first voltage amplitude corresponding to the first sensing signal and a second voltage amplitude corresponding to the second sensing signal; Solving the conductivity based on the relationship between the voltage amplitude and the conductivity, and determining a first conductivity corresponding to the first voltage amplitude and a second conductivity corresponding to the second voltage amplitude; determining a first conductivity error based on the first conductivity and a reference conductivity corresponding to an output signal of the compensation coil of the compensation magnetic ring at a reference temperature; Based on the relationship between the first conductivity error and the first conductivity, determining the relationship between the second conductivity error and the second conductivity to solve the second conductivity error; The second conductivity is corrected based on the second conductivity error to determine a third conductivity of the liquid to be measured.
10. The conductivity sensor according to claim 9, characterized in that: When the second conductivity error is greater than or equal to a preset second threshold, the second conductivity is corrected based on the second conductivity error to determine a third conductivity of the liquid to be tested.
