Coil induction type water meter capable of detecting countercurrent and method for detecting countercurrent
Technical Field
The invention belongs to the technical field of water meters, and particularly relates to a coil induction type water meter capable of detecting countercurrent and a method for detecting the countercurrent.
Background
At present, a reed switch, a Hall element and a Wiegand sensor are mostly adopted for water meter measurement, but because the inherent mechanical property, the service life and the vibration resistance of a dry yellow tube are influenced, the Hall element has too large current and also has the problem of low or high flow rate frequency response; the Wiegand sensor has the defect of large magnetic resistance, is easy to adsorb the impeller to increase the initial flow, and is expensive. Therefore, the existing remote water meter adopts the principle of no coil induction to convert the rotation of a mechanical meter gear or the rotation of a pointer into an electric pulse signal, for example, chinese patent CN201810125788.7 discloses a non-magnetic remote water meter, patent CN100535603C discloses an induction type angular position sensor, wherein a semicircular steel sheet (4a) or a partially metallized disk (4) is arranged on a rotating shaft (a) of a water meter base meter, an external inductance coil and 4 inductance coils (2 pairs of secondary coils) uniformly arranged in the external inductance coil (primary coil) are arranged above (parallel to) the disk of a water meter body glass, and as shown in fig. 1, the water flow is measured by detecting the voltage difference of the paired inductance coils.
In the fields of industrial water and domestic water, if water flow is in counter flow, errors can occur in flow calculation of the water meter, and even water source pollution can be caused. There is a need for a coil induction water meter solution that is capable of detecting reverse flow. Therefore, a coil induction type water meter capable of detecting the reverse flow and a method for detecting the reverse flow are provided.
Disclosure of Invention
The invention aims to solve the technical problem that the existing coil induction type water meter cannot detect the reverse flow, and provides a coil induction type water meter capable of detecting the reverse flow and a method for detecting the reverse flow.
The invention adopts a coil induction type water meter described in the background technology, which comprises a body, a non-circular metal sheet which is arranged in a dial plate and coaxially rotates with a pointer in the dial plate, and a metering module which is positioned right above the non-circular metal sheet; the metering module comprises a single chip microcomputer, an inductance coil which is electrically connected with the single chip microcomputer and used for receiving and transmitting pulse signals, and a circuit used for detecting the difference of the induction voltages; the induction coil comprises a primary coil used for pulse signal transmission and a plurality of pairs of secondary coils used for pulse signal reception; and the singlechip calculates the water flow according to the induction voltage difference data of each pair of secondary coils at each sampling moment. The invention adds program for judging whether water meter is reverse flow into said single chip computer.
The invention discloses a method for detecting countercurrent of a coil induction type water meter, which comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet.
Generating a sequence of voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; acquiring the inductive voltage difference metering values sampled by each secondary coil pair in the current period, wherein the quantity of the inductive voltage difference metering values is represented by a variable m, and the inductive voltage difference metering values of each secondary coil pair are represented by a variable vijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequencei=(vi1,vi2,…,vij,…vim)。
The number of said induced voltage difference measurement values
Calculating the distance between the voltage difference vector sequences: according to the voltage difference vector sequence a of each secondary coil pairiCalculating the distance between adjacent pairs of secondary windings and the sequence of voltage difference vectors using the variable siRepresents; b, calling the voltage difference vector sequence of each secondary coil pair in the last sampling periodiRepresenting a variable u for a measured value of an induced voltage difference in a sequence of voltage difference vectorsijRepresents that j is more than or equal to 1 and less than or equal to m; according to the vector sequence a of voltage differencesiAnd a sequence of voltage difference vectors biCalculating the distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair by using variable xiAnd (4) showing.
Distance between said adjacent secondary coil pairs voltage difference vector sequence
Or
Distance between said adjacent secondary coil pairs voltage difference vector sequence
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
Or
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
Judging whether the water meter has counter flow: determining the distance s between the sequence of voltage difference vectors of adjacent secondary winding pairsiThe size of the standard distance S from the preset value if SiIf the current period of each secondary coil pair is S, judging that the water meter coil has no fault, and judging the distance x between the current period and the last period of each secondary coil pairiWhether the water meter is larger than a preset counter flow threshold value X or not is judged, if yes, the water meter is judged to have counter flow, and if not, the water meter is judged not to have counter flow; if siAnd if not, judging that the water meter has a fault.
The invention relates to a coil induction type water meter, comprising:
a water meter body;
one or more processors;
a readable storage medium; and
one or more programs, wherein the one or more programs are stored in a readable storage medium and configured to be executed by the one or more processors, the programs comprising instructions for performing the above-described methods.
The method of the invention has the advantages that:
(1) compared with the traditional processing mode, the voltage difference data of each secondary coil pair are digitized and statistically processed by calculating the metering value of the induced voltage difference data and generating a voltage difference vector sequence, and the calculation complexity is low.
(2) Through the distance of the voltage difference vector sequence between different secondary coil pairs and between different periods of the same secondary coil pair, whether the water meter generates reverse flow under the condition of no fault can be simply and effectively judged.
Drawings
FIG. 1 is a diagram of a prior art coil induction water meter;
FIG. 2 is a graph showing the voltage difference metric of two pairs of secondary windings according to the first embodiment of the present invention;
fig. 3 is a flow chart of a method of a coil induction water meter detecting reverse flow in accordance with an embodiment of the present invention.
Detailed Description
The following describes in detail preferred embodiments of the present invention.
The invention adopts a coil induction type water meter described in the background technology, which comprises a body, a non-circular metal sheet which is arranged in a dial plate and coaxially rotates with a pointer in the dial plate, and a metering module which is positioned right above the non-circular metal sheet; the metering module comprises a single chip microcomputer, an inductance coil which is electrically connected with the single chip microcomputer and used for receiving and transmitting pulse signals, and a circuit used for detecting the difference of the induction voltages; the induction coil comprises a primary coil used for pulse signal transmission and a plurality of pairs of secondary coils used for pulse signal reception; and the singlechip calculates the water flow according to the induction voltage difference data of each pair of secondary coils at each sampling moment. The embodiment of the invention adds a program for judging whether the water meter flows reversely into the singlechip.
The embodiment discloses a method for detecting reverse flow of a coil induction type water meter.
In the first embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 4 secondary coils are divided into two pairs which are connected in series and in opposite phase.
The method for detecting the reverse flow by the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In the present embodiment, the logarithm N of the secondary coil is 2, and the coil a,C is numbered 1, and coil B, D is numbered 2; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second1V is 7 millivolts2When the preset measurement threshold V is 5 mv, the induced voltage difference between the two pairs of secondary coils is measured to be 1.
Generating a sequence of voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; acquiring the inductive voltage difference metering values sampled by each secondary coil pair in the current period, wherein the quantity of the inductive voltage difference metering values is represented by a variable m, and the inductive voltage difference metering values of each secondary coil pair are represented by a variable vijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequencei=(vi1,vi2,…,vij,…vim)。
The number of said induced voltage difference measurement values
In this embodiment, the induced voltage difference metering values of each secondary winding pair are counted to obtain two voltage difference metering value display graphs, as shown in fig. 2, and a period value is calculated according to the difference metering values, where the variable p represents 0.8 second, and the number of the induced voltage difference metering values is calculated
Variable v for measuring induced voltage difference of each secondary coil pair
ijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequence
i=(v
i1,v
i2,…,v
ij,…v
im) I.e. a
1=(1,0,-1,-1,-1,0,1,1),a
2=(1,1,1,0,-1,-1,-1,0)。
Calculating the distance between the voltage difference vector sequences: according to the voltage difference vector sequence a of each secondary coil pairiCalculating the distance between adjacent pairs of secondary windings and the sequence of voltage difference vectors using the variable siRepresents; the voltage difference vector sequence of each secondary coil pair in the last sampling period is calledColumn with biRepresenting a variable u for a measured value of an induced voltage difference in a sequence of voltage difference vectorsijRepresents that j is more than or equal to 1 and less than or equal to m; according to the vector sequence a of voltage differencesiAnd a sequence of voltage difference vectors biCalculating the distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair by using variable xiAnd (4) showing.
Distance between said adjacent secondary coil pairs voltage difference vector sequence
Or
Distance between said adjacent secondary coil pairs voltage difference vector sequence
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
Or
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
In this embodiment, the distance between the sequence of voltage difference vectors of the two pairs of secondary coils is calculated,
b is the sequence of voltage difference vectors of each secondary coil pair in the last sampling period
1=(1,0,-1,-1,-1,0,1,1),b
2Calculating the distance between the current period and the last period voltage difference vector sequence of each secondary coil pair (-1, -1, -1,0,1,1,1,0)
Judging whether the water meter has counter flow: determining the distance s between the sequence of voltage difference vectors of adjacent secondary winding pairsiThe size of the standard distance S from the preset value if SiIf the current period of each secondary coil pair is S, judging that the water meter coil has no fault, and judging the distance x between the current period and the last period of each secondary coil pairiWhether the water meter is larger than a preset counter flow threshold value X or not is judged, if yes, the water meter is judged to have counter flow, and if not, the water meter is judged not to have counter flow; if siAnd if not, judging that the water meter has a fault. In the present embodiment, the preset standard distance S is 3.46, and S is the same as SiAnd (5) judging that the water meter coil has not failed, and setting a preset backflow threshold value X to be 1 when X is equal to S2>And X, judging that the water meter has counter flow.
The flow chart of the method for detecting reverse flow of the coil induction water meter in the embodiment is shown in fig. 3.
The second embodiment is a method for detecting reverse flow by a coil induction type water meter.
In the second embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 4 secondary coils are divided into two pairs which are connected in series and in opposite phase.
The method for detecting the reverse flow by the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In this embodiment, the logarithm N of the secondary coil is 2, the coil A, C is numbered 1, and the coil B, D is numbered 2; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second1V is 7 millivolts2When the preset measurement threshold V is 5 mv, the induced voltage difference between the two pairs of secondary coils is measured to be 1.
Generating a sequence of voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; acquiring the inductive voltage difference metering values sampled by each secondary coil pair in the current period, wherein the quantity of the inductive voltage difference metering values is represented by a variable m, and the inductive voltage difference metering values of each secondary coil pair are represented by a variable vijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequencei=(vi1,vi2,…,vij,…vim)。
The number of said induced voltage difference measurement values
In this embodiment, the induced voltage difference metric values of each secondary winding pair are counted to obtain two voltage difference metric value display graphs, as shown in fig. 2, and the two voltage difference metric value display graphs are calculated according to the two voltage difference metric valuesPeriod value, expressed as variable p, 0.8 seconds, number of induced voltage difference measurements
Variable v for measuring induced voltage difference of each secondary coil pair
ijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequence
i=(v
i1,v
i2,…,v
ij,…v
im) I.e. a
1=(1,0,-1,-1,-1,0,1,1),a
2=(1,1,1,0,-1,-1,-1,0)。
Calculating the distance between the voltage difference vector sequences: according to the voltage difference vector sequence a of each secondary coil pairiCalculating the distance between adjacent pairs of secondary windings and the sequence of voltage difference vectors using the variable siRepresents; b, calling the voltage difference vector sequence of each secondary coil pair in the last sampling periodiRepresenting a variable u for a measured value of an induced voltage difference in a sequence of voltage difference vectorsijRepresents that j is more than or equal to 1 and less than or equal to m; according to the vector sequence a of voltage differencesiAnd a sequence of voltage difference vectors biCalculating the distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair by using variable xiAnd (4) showing.
Distance between said adjacent secondary coil pairs voltage difference vector sequence
Or
Distance between said adjacent secondary coil pairs voltage difference vector sequence
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
Or
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
In this embodiment, the distance, s, between the sequence of voltage difference vectors of the two pairs of secondary coils is calculated
1=|a
1-a
2|=|a
2-a
1|=s
21-1| + |0-1| + | -1-1| + |0-1| + | -1+1| + |1-0| + | 8. B is the sequence of voltage difference vectors of each secondary coil pair in the last sampling period
1=(1,0,-1,-1,-1,0,1,1),b
2Calculating the distance between the current period and the last period voltage difference vector sequence of each secondary coil pair (-1, -1, -1,0,1,1,1,0)
Judging whether the water meter has counter flow: determining the distance s between the sequence of voltage difference vectors of adjacent secondary winding pairsiThe size of the standard distance S from the preset value if SiIf the current period of each secondary coil pair is S, judging that the water meter coil has no fault, and judging the distance x between the current period and the last period of each secondary coil pairiWhether the water meter is larger than a preset counter flow threshold value X or not is judged, if yes, the water meter is judged to have counter flow, and if not, the water meter is judged not to have counter flow; if siAnd if not, judging that the water meter has a fault. In this embodiment, the preset standard distance S is 8, and S is the same as SiAnd (5) judging that the water meter coil has not failed, and setting the preset backflow threshold value X to be 5 when X is equal to S2>And X, judging that the water meter has counter flow.
The third embodiment is a method for detecting reverse flow by a coil induction type water meter.
In the third embodiment, the non-circular metal sheet is a semicircular metal sheet, and the 6 secondary coils are divided into three pairs which are connected in series and in reverse phase.
The method for detecting the reverse flow by the coil induction type water meter comprises the following steps:
acquiring induction voltage difference data and calculating a voltage difference metering value: the number of secondary coil pairs is recorded as N according to a preset sampling time interval T0Obtaining the induced voltage difference of each secondary coil pair by using variable viRepresents, where i is the number of the secondary coil pair, 1 ≦ i ≦ N; judging the induced voltage difference viWith a previously set metering threshold value V, if Vi>V, the measured value of the induced voltage difference is 1, and V is setiWhen V is obtained, the measured value of the induced voltage difference is 0, Vi<V, then the metering value of the induced voltage difference is-1.
The pre-set sampling time interval T0Less than the time taken for a half turn of the non-round metal sheet. In the present embodiment, the logarithm N of the secondary coil is 3, and is numbered as 1, 2, and 3; preset sampling time interval T0Acquiring the induced voltage difference data of each pair of secondary coils at a certain time, v, 0.1 second17 millivolts, v210 millivolts, v3When the preset measurement threshold V is 5 mv at 1 mv, the induced voltage difference measurement values of the three pairs of secondary coils are 1, and-1, respectively.
Generating a sequence of voltage difference vectors: counting the induced voltage difference metering values of the secondary coil pairs, calculating a period value according to the calculated value, and expressing the period value by using a variable p; acquiring the inductive voltage difference metering values sampled by each secondary coil pair in the current period, wherein the quantity of the inductive voltage difference metering values is represented by a variable m, and the inductive voltage difference metering values of each secondary coil pair are represented by a variable vijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequencei=(vi1,vi2,…,vij,…vim)。
The number of said induced voltage difference measurement values
In this embodiment, the number of induced voltage difference measurement values is calculated by counting the induced voltage difference measurement values of each secondary coil pair and calculating a period value, where a variable p represents 0.8 seconds
Variable v for measuring induced voltage difference of each secondary coil pair
ijRepresents that j is more than or equal to 1 and less than or equal to m; generating a voltage difference vector sequence a of each secondary coil pair according to the sampling time sequence
i=(v
i1,v
i2,…,v
ij,…v
im) I.e. a
1=(1,0,-1,-1,-1,0,1,1),a
2=(1,1,1,0,-1,-1,-1,0),a
3=(-1,1,0,-1,1,-1,0,1)。
Calculating the distance between the voltage difference vector sequences: according to the voltage difference vector sequence a of each secondary coil pairiCalculating the distance between adjacent pairs of secondary windings and the sequence of voltage difference vectors using the variable siRepresents; b, calling the voltage difference vector sequence of each secondary coil pair in the last sampling periodiRepresenting a variable u for a measured value of an induced voltage difference in a sequence of voltage difference vectorsijRepresents that j is more than or equal to 1 and less than or equal to m; according to the vector sequence a of voltage differencesiAnd a sequence of voltage difference vectors biCalculating the distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair by using variable xiAnd (4) showing.
Distance between said adjacent secondary coil pairs voltage difference vector sequence
Or
Distance between said adjacent secondary coil pairs voltage difference vector sequence
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
Or
The distance between the current period and the last period of the voltage difference vector sequence of each secondary coil pair
In this embodiment, the distance between the sequence of voltage difference vectors of the two pairs of secondary coils is calculated,
b is the sequence of voltage difference vectors of each secondary coil pair in the last sampling period
1=(1,0,-1,-1,-1,0,1,1),b
2=(-1,-1,-1,0,1,1,1,0),b
3Calculating the distance between the current period and the last period voltage difference vector sequence of each secondary coil pair (-1,1,0, -1,1, -1,0,1)
Judging whether the water meter has counter flow: determining the distance s between the sequence of voltage difference vectors of adjacent secondary winding pairsiThe size of the standard distance S from the preset value if SiIf the current period of each secondary coil pair is S, judging that the water meter coil has no fault, and judging the distance x between the current period and the last period of each secondary coil pairiWhether the water meter is larger than a preset counter flow threshold value X or not is judged, if yes, the water meter is judged to have counter flow, and if not, the water meter is judged not to have counter flow; if siAnd if not, judging that the water meter has a fault. In the present embodiment, the preset standard distance S is 3.46, and S is the same as S1=s2=s3When S is 3.46, the water meter coil is judged not to be in failure, and the preset backflow threshold value X is 1, wherein X is2>And X, judging that the water meter has counter flow.
The embodiment of the invention provides a coil induction type water meter, which comprises:
a water meter body;
one or more processors;
a readable storage medium; and
one or more programs, wherein the one or more programs are stored in a readable storage medium and configured to be executed by the one or more processors, the programs comprising instructions for performing the method of embodiment one or embodiment two.
Of course, a user of ordinary skill in the art should recognize that the above embodiments are only for illustrating the present invention and are not to be construed as limiting the present invention, and that the changes and modifications of the above embodiments are within the scope of the present invention.