A magnetic metering chip and a metering method
By designing a magnetic metering chip that integrates an induction head and a signal processing circuit, and using a vertical Hall induction unit or a Wheatstone bridge to achieve metering and forward and reverse identification, the problems of multiple chips, complex installation and high cost in the existing magnetic metering methods are solved. , realizing the functions of identifying forward and reverse, anti-tampering and anti-strong magnetic attack, simplifying installation and reducing costs.
Patent Information
- Application Number
- CN202410955059.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing magnetic metering method requires multiple magnetic switches, which are complex to install and costly, and cannot effectively identify forward and reverse rotation, prevent disassembly, and prevent strong magnetic attacks.
Design a magnetic measurement chip, including an induction head and a signal processing circuit. It uses two vertical Hall induction units or Wheatstone bridges to achieve measurement and forward and reverse identification, and realizes anti-tampering and anti-tampering through the output square wave signal and alarm pin. Protect against strong magnetic attacks.
It enables a single chip to complete multi-chip functions, simplifies installation, reduces costs, avoids operating errors, and improves production efficiency.
Smart Images

Figure CN118500486B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of magnetic metering technology, and in particular to a magnetic metering chip and a metering method, which are magnetic metering chips and metering methods that integrate metering, forward and reverse rotation identification, anti-disassembly and anti-strong magnetic attack functions. Background Art
[0002] In the application scenarios where water meters, gas meters, and flow meters need to be measured, the currently widely used magnetic metering methods are as follows:
[0003] The first type uses an axially magnetized magnet to rotate around the shaft, and uses two omnipolar magnetic switches to be spaced apart. The purpose of measurement is achieved by the approach of the magnets to trigger the pulse counting of the magnetic switches in sequence. The two omnipolar magnetic switches cannot be turned on at the same time in normal working conditions to detect strong magnetic attacks, but forward and reverse rotation cannot be identified. In addition, an additional magnetic switch is required to detect whether the case has been disassembled. Overall, this method requires three magnetic switches for measurement, anti-disassembly and anti-strong magnetic attack, but it cannot identify forward and reverse rotation;
[0004] The second type uses an axially magnetized magnet to rotate around the shaft, and uses three omnipolar magnetic switches to be evenly spaced. The purpose of metering is achieved by the pulse counting of the magnetic switches triggered in sequence by the proximity of the magnets. The forward and reverse rotations are identified by the order in which the three omnipolar magnetic switches are turned on, and the detection of strong magnetic attacks is achieved by the characteristic that any two omnipolar magnetic switches cannot be turned on at the same time in normal working conditions. In addition, an additional magnetic switch is required to detect whether the case has been disassembled. Overall, this method requires 4 magnetic switches to complete the functions of metering, identifying forward and reverse rotations, anti-disassembly, and anti-strong magnetic attacks.
[0005] The third method is to use two axially magnetized magnets placed 180 degrees apart, and the magnetization directions are opposite. At the same time, the two magnets rotate around the rotating axis together, and two bipolar latching magnetic switches are placed at intervals. The magnetic switches are opened and closed in turn by the rotation of the magnets, and the purpose of metering and detecting forward and reverse rotation is achieved through the opening phase relationship of the two bipolar latching magnetic switches. In addition, two additional magnetic switches are required to respectively realize the detection of anti-disassembly and anti-strong magnetic attack. Overall, this method also requires 4 magnetic switches to complete the functions of metering, identifying forward and reverse rotation, anti-disassembly and anti-strong magnetic attack.
[0006] As mentioned above, the existing widely used magnetic metering methods have the disadvantages of requiring a large number of magnetic switch chips (3 to 4), complex installation and high overall cost. In order to solve the above problems, the present invention provides a magnetic metering chip and implementation method that integrates metering, forward and reverse identification, anti-disassembly and anti-strong magnetic attack functions. Summary of the invention
[0007] The purpose of the present invention is to provide a magnetic metering chip and a metering method, which is a magnetic metering chip and an implementation method that integrates metering, forward and reverse identification, anti-dismantling and anti-strong magnetic attack functions, so as to solve the problems in the existing magnetic metering methods.
[0008] In order to solve the above technical problems, the present invention provides the following technical methods:
[0009] A magnetic measurement chip, characterized by comprising an inductive magnetic head and a signal processing circuit;
[0010] The magnetic metering chip has two pins for outputting two square wave signals with phase difference, so as to realize metering and identify forward and reverse rotation;
[0011] The magnetic metering chip also has two other output pins, one of which indicates whether the watch case has been disassembled, and the other indicates whether it has encountered a strong magnetic attack. In normal status, these two pins output a default level state. When the watch case is disassembled or a strong magnetic attack occurs and an alarm message is required, the output level state changes.
[0012] The inductive magnetic head is composed of two vertical Hall inductive units, which have the same structure and are rotated 90 degrees relative to each other; the two vertical Hall inductive units respectively sense magnetic fields in two directions within a plane.
[0013] The inductive magnetic head is composed of two Wheatstone bridges, the two Wheatstone bridges have the same structure and are placed at a rotation angle relative to each other;
[0014] The two-way Wheatstone bridge is composed of an AMR sensing unit, a GMR sensing unit, or a TMR unit.
[0015] The two Wheatstone bridges are rotated at different angles according to different sensing units. If an AMR sensing unit is used, the two Wheatstone bridges are rotated 45 degrees relative to each other. If a GMR sensing unit or a TMR sensing unit is used, the two Wheatstone bridges are rotated 90 degrees relative to each other or the magnetic moment directions of the pinned layers of the two Wheatstone bridges are rotated 90 degrees relative to each other.
[0016] The signal processing circuit includes one or more of an operational amplifier, a filter, a comparator, a Schmitt trigger, and a digital circuit.
[0017] When the external magnetic mechanism rotates, the inductive magnetic head outputs two analog voltage signals with phase difference to the signal processing circuit;
[0018] The analog voltage signal is processed by the signal processing circuit, and the magnetic metering chip outputs two square wave signals with phase difference, which are used for metering and identifying forward and reverse rotation;
[0019] The analog voltage signal is processed by the signal processing circuit and compared with a threshold value inside the signal processing circuit to determine whether the watch case is disassembled or encounters a strong magnetic attack.
[0020] A magnetic measurement method, characterized by comprising the following steps:
[0021] Using magnetic metering chip, PCB board and magnetic mechanism;
[0022] The magnetic mechanism rotates around the axis under the impetus of water flow and air flow.
[0023] The magnetic mechanism is a permanent magnetic material, and is used to provide a periodic magnetic field signal to the magnetic measurement chip during the process of rotating around the axis;
[0024] The magnetic mechanism is a radially magnetized magnet, and the axis of the magnet coincides with the axis of rotation.
[0025] The magnetic metering chip has two pins, and when the magnetic mechanism rotates, two square wave signals with phase differences are output respectively, which are used for metering and forward and reverse rotation identification.
[0026] The magnetic metering chip also has two pins. When the watch case is dismantled and the magnetic metering chip is away from the magnetic mechanism, one of the pins outputs an alarm message indicating that the watch case has been dismantled. When the magnetic metering chip senses the magnetic field when encountering a strong magnetic attack, the other pin outputs an alarm message indicating that the watch case has been dismantled.
[0027] The magnetic metering chip is placed on the PCB board, and the position of the PCB board is adjusted so that the magnetic metering chip is located directly above the magnetic mechanism;
[0028] The magnetic metering chip is placed on the PCB board, and the position of the PCB board is adjusted so that the magnetic metering chip is located on the side of the magnetic mechanism;
[0029] The PCB board includes an MCU and peripheral circuits, and transmits the output signal of the magnetic metering chip to the MCU for processing, thereby realizing the functions of metering, identifying forward and reverse rotation, anti-disassembly and anti-strong magnetic attack.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] 1. The present invention proposes a magnetic metering chip and magnetic metering method that integrates metering, forward and reverse identification, anti-disassembly and anti-strong magnetic attack functions. One chip is used to achieve the functions that previously required 3 to 4 chips. The installation is simple and the cost is significantly reduced.
[0032] 2. The magnetic metering chip and magnetic metering method proposed in the present invention only require radially magnetized magnets, and do not need to distinguish the directions of the N / S poles during installation, thus avoiding operational errors and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 Schematic diagram of the pins of the magnetic metering chip of the first embodiment of the invention.
[0034] 2(a) and 2(b) are schematic diagrams of two-way Wheatstone bridges of the inductive magnetic head of the first embodiment; FIG. 2(a) is a two-way Wheatstone bridge composed of AMR inductive units, and FIG. 2(b) is a two-way Wheatstone bridge composed of GMR inductive units or TMR inductive units.
[0035] Figure 3 Schematic diagram of two analog voltage signals VA and VB output by the inductive head of the first embodiment.
[0036] Figure 4 Schematic diagram of two square wave signals A and B with phase difference output by the magnetic metering chip of the first embodiment.
[0037] Figure 5 It is a schematic diagram of the pin OUT3 of the magnetic metering chip of the first embodiment outputting an alarm signal when the case is removed.
[0038] Figure 6 It is a schematic diagram of the pin OUT4 of the magnetic metering chip of the first embodiment outputting an alarm signal when a strong magnetic field attacks.
[0039] Figure 7 is a schematic diagram of a magnetic measurement method of Example 2, Figure 7 Middle: 10. magnetic metering chip, 20. PCB board, 30. magnetic mechanism. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical methods in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] Embodiment 1:
[0042] A magnetic measurement chip, comprising an inductive magnetic head and a signal processing circuit;
[0043] The magnetic metering chip has two conventional pins for outputting two square wave signals with phase difference, so as to realize metering and identify forward and reverse rotation;
[0044] The magnetic metering chip also has two output pins, one of which indicates whether the case has been dismantled, and the other indicates whether it has encountered a strong magnetic attack. In normal state, both pins output a default normal working level state, such as a high level. When the case is dismantled or a strong magnetic attack occurs and an alarm message is prompted, the output level state becomes abnormal, such as becoming a low level;
[0045] The pin diagram of the magnetic metering chip is as follows Figure 1 As shown, in addition to the two required pins VCC and GND, there are two regular output pins OUT1 and OUT2 and two output pins OUT3 and OUT4; the two regular output pins OUT1 and OUT2 are used to output two square wave A and B signals with phase difference, and the two output pins OUT3 and OUT4 are used to indicate whether the case has been dismantled or whether it has encountered a strong magnetic attack;
[0046] The induction head is composed of two vertical Hall sensing units, which have the same structure and are rotated 90 degrees relative to each other; the two vertical Hall sensing units respectively sense the magnetic field in two directions in the plane;
[0047] The inductive magnetic head is composed of two Wheatstone bridges, the two Wheatstone bridges have the same structure and are placed at a rotation angle relative to each other;
[0048] The two Wheatstone bridges are composed of AMR sensing units, and the two Wheatstone bridges are rotated 45 degrees relative to each other, as shown in FIG. 2( a ).
[0049] The two Wheatstone bridges are composed of GMR sensing units or TMR sensing units, and the magnetic moment directions of the pinned layers of the GMR sensing units or TMR sensing units of the two Wheatstone bridges are rotated 90 degrees relative to each other, as shown in FIG. 2( b ), where the arrow direction is a schematic diagram of the magnetic moment direction of the pinned layer.
[0050] The signal processing circuit includes one or more of an operational amplifier, a filter, a comparator, a Schmitt trigger, and a digital circuit;
[0051] With the cooperation of the external magnetic mechanism, when the magnet of the external magnetic mechanism rotates, the two vertical Hall sensing units or the two Wheatstone bridges respectively output two analog voltage signals VA and VB with phase differences, such as Figure 3 As shown;
[0052] The two analog voltage signals VA and VB with a phase difference are respectively processed preliminarily by the signal processing circuit (such as amplification and filtering) and then become VA0 and VB0. Then they are respectively compared with the thresholds VBop and VBrp. After passing through a comparator or a Schmitt trigger, two square-wave signals A and B with a phase difference are output, as Figure 4 shown. For example, if VA0 > VBop, the output is low level; if VA0 < VBrp, the output is high level. The same applies to VB, that is, the square-wave signal A corresponding to VA and the square-wave signal B corresponding to VB are obtained, and there is a phase difference between A and B. The two square-wave signals A and B with a phase difference are respectively output through two conventional pins OUT1 and OUT2 of the magnetic metering chip;
[0053] By calculating the number of pulses or the number of rising edges or the number of falling edges of square-wave A or B, the metering value is obtained; by comparing the phase relationship between square-wave A and B, the forward rotation and reverse rotation are judged. For example, if square-wave A leads B, it is forward rotation; if square-wave A lags behind B, it is reverse rotation;
[0054] At the same time, the signals VA0 and VB0 after being preliminarily processed (such as amplification and filtering) by the signal processing circuit are squared and added or squared and added and then square-rooted or the absolute values are added to obtain a new amplitude signal Vamp. The amplitude signal Vamp has a positive correlation with the magnetic field strength at the magnetic metering chip;
[0055] Vamp = VA0^2 + VB0^2;
[0056] Vamp = sqrt(VA0^2 + VB0^2);
[0057] Vamp = |VA0| + |VB0|;
[0058] The amplitude signal Vamp is compared with the threshold Vth1 set inside the magnetic metering chip. If Vamp < Vth1, after passing through a comparator or a Schmitt trigger, the corresponding level state changes, and then a pin OUT3 controlled by this level state changes from the normal output level to the abnormal output level. The abnormal output level of this pin OUT3 is used to indicate the alarm information that the watch case has been disassembled, as Figure 5 shown; when the watch case is disassembled, the magnetic metering chip is far from the magnetic mechanism, the magnetic field sensed by the magnetic metering chip is significantly weakened, and the amplitudes of the output signals VA and VB of the two perpendicular Hall induction units or the two Wheatstone bridges inside the magnetic metering chip decrease, thereby causing the amplitude signal Vamp to decrease. When Vamp < Vth1, the normal output level (such as high level) of pin OUT3 changes to the abnormal output level (such as low level);
[0059] Considering the actual situation, a hysteresis Vhys1 is set for this comparator or Schmitt trigger. When Vamp > Vth1 + Vhys1, the output level of this comparator or Schmitt trigger is the normal level, so that the output level of pin OUT3 indicating whether the watch case has been disassembled is the normal level, indicating that the watch case is intact and has not been disassembled;
[0060] The amplitude signal Vamp is compared with the threshold Vth2 set inside the magnetic measurement chip. If Vamp > Vth2, the output corresponding level state changes after passing through a comparator or Schmitt trigger, and then a pin OUT4 controlled by this level state changes from the normal output level to the abnormal output level. The abnormal output level of this pin OUT4 is used to indicate the alarm information of the watch case being attacked by strong magnetism, such as Figure 6 shown; when under strong magnetism attack, the magnetic field sensed by the magnetic measurement chip is significantly enhanced, and the amplitudes of the output signals VA and VB of the two perpendicular Hall induction units or the two Wheatstone bridges of the induction magnetic head inside the magnetic measurement chip increase, which in turn causes the amplitude signal Vamp to increase. When Vamp > Vth2, the normal output level (such as high level) of pin OUT4 changes to the abnormal output level (such as low level);
[0061] Considering the actual situation, a hysteresis Vhys2 is set for this comparator or Schmitt trigger. When Vamp < Vth2 - Vhys2, the output level of this comparator or Schmitt trigger is the normal level, so that the output level of pin OUT4 indicating whether there is a strong magnetism attack is the normal level, indicating that there is no strong magnetism attack;
[0062] Embodiment 2:
[0063] A magnetic measurement method includes a magnetic measurement chip 10, a PCB board 20, and a magnetic mechanism 30, as Figure 7 shown;
[0064] The magnetic mechanism 30 rotates around the axis under the push of fluids such as water flow and air flow.
[0065] The magnetic mechanism 30 is made of permanent magnetic material and is used to provide a periodic magnetic field signal for the magnetic measurement chip during the rotation around the axis;
[0066] The magnetic mechanism 30 is a radially magnetized magnet, and the axis of the magnet coincides with the axis of rotation;
[0067] The magnetic measurement chip 10 has two pins, and when the magnetic mechanism rotates, two square wave signals A and B with a phase difference are respectively output for measurement and forward and reverse rotation identification;
[0068] By calculating the number of pulses or rising edges or falling edges of square wave A or B, the measured value is obtained; by comparing the phase relationship between square wave A and B, the forward rotation and reverse rotation are judged. For example, if square wave A leads B, it is forward rotation, and if square wave A lags behind B, it is reverse rotation.
[0069] The magnetic metering chip also has two other pins. When the watch case is disassembled and the magnetic metering chip is away from the magnetic mechanism, one of the pins outputs an alarm message indicating that the watch case has been disassembled. When the magnetic metering chip senses the magnetic field when encountering a strong magnetic attack, the other pin outputs an alarm message indicating that the watch case has been disassembled.
[0070] The magnetic metering chip 10 is placed on the PCB board 20, and the position of the PCB board is adjusted so that the magnetic metering chip is located directly above the magnetic mechanism 30;
[0071] The magnetic metering chip 10 is placed on the PCB board 20, and the position of the PCB board is adjusted so that the magnetic metering chip is located on the side of the magnetic mechanism 30;
[0072] The PCB board 20 includes an MCU and peripheral circuits, and transmits the output signal of the magnetic metering chip to the MCU for processing, thereby realizing the functions of metering, identifying forward and reverse rotation, anti-disassembly and anti-strong magnetic attack.
[0073] The above shows and describes the basic principles, features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only preferred examples of the invention and are not intended to limit the present invention. Without departing from the novel spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
[0074] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A magnetic measurement chip, characterized in that It includes an induction head and a signal processing circuit; The magnetic metering chip has two pins for outputting two square wave signals with a phase difference, which are used to realize metering and identifying forward and reverse rotation; the magnetic metering chip also has two other output pins, one of which indicates the information on whether the watch case has been disassembled, and the other indicates the information on whether a strong magnetic attack has been encountered; The induction head consists of two perpendicular Hall induction units, the structures of the two perpendicular Hall induction units are the same and are rotated 90 degrees relative to each other; the two perpendicular Hall induction units respectively sense the magnetic fields in two directions in the plane; The induction head consists of two Wheatstone bridges, the structures of the two Wheatstone bridges are the same and are placed in a rotated manner; the two Wheatstone bridges are composed of AMR induction units or GMR induction units or TMR units; The two Wheatstone bridges are rotated by different angles according to different induction units. When using AMR induction units, the two Wheatstone bridges are rotated 45 degrees relative to each other. When using GMR induction units or TMR units, the two Wheatstone bridges are rotated 90 degrees relative to each other or the pinned layer magnetic moment directions of the two Wheatstone bridges are rotated 90 degrees relative to each other; With the cooperation of an external magnetic mechanism, when the magnet of the external magnetic mechanism rotates, the two perpendicular Hall induction units or the two Wheatstone bridges respectively output two analog voltage signals VA and VB with a phase difference to the signal processing circuit; The analog voltage signals VA and VB become VA0 and VB0 after preliminary processing by the signal processing circuit, and then are respectively compared with the thresholds VBop and VBrp. After passing through a comparator or a Schmitt trigger, two square wave signals A and B with a phase difference are output. By calculating the number of pulses or the number of rising edges or the number of falling edges of square wave A or B, the metering value can be obtained; by comparing the phase relationship between square wave A and B, forward and reverse rotation can be identified; The signals VA0 and VB0 after the analog voltage signals VA and VB are preliminarily processed by the signal processing circuit are squared and added or squared and added and then square-rooted or the absolute values are added to obtain a new amplitude signal Vamp, and the amplitude signal Vamp has a positive correlation with the magnetic field strength at the magnetic metering chip; Vamp = VA0^2 + VB0^2; Vamp = sqrt(VA0^2 + VB0^2); Vamp = |VA0| + |VB0|; The amplitude signal Vamp is compared with the threshold Vth1 set inside the magnetic metering chip. If Vamp < Vth1, the corresponding level state changes after passing through a comparator or a Schmitt trigger, and then the level state controls a pin to change from the normal output level to the abnormal output level. The abnormal output level of this pin is used to indicate the alarm information on the disassembly of the watch case; The amplitude signal Vamp is compared with the threshold value Vth2 set inside the magnetic metering chip. If Vamp>Vth2, the corresponding level state is changed after being output through a comparator or a Schmitt trigger, so that a pin controlled by the level state changes from a normal output level to an abnormal output level. The abnormal output level of this pin is used to indicate the alarm information that the watch case is attacked by strong magnetism.
2. The magnetic measurement chip according to claim 1, characterized in that The signal processing circuit includes one or more of an operational amplifier, a filter, a comparator, a Schmitt trigger, and a digital circuit.
3. A magnetic measurement method, characterized in that The method of using any one of the magnetic metering chips in claims 1 to 2 for metering comprises the following steps: Using magnetic metering chip, PCB board and magnetic mechanism; The magnetic mechanism rotates around the axis under the impetus of water flow and air flow; The magnetic mechanism is a permanent magnetic material, and is used to provide a periodic magnetic field signal to the magnetic measurement chip during the process of rotating around the axis; The magnetic mechanism is a radially magnetized magnet, the axis of the magnet coincides with the axis of rotation; The magnetic metering chip has two pins, and when the magnetic mechanism rotates, two square wave signals with phase difference are output respectively, which are used for metering and forward and reverse rotation identification; The magnetic metering chip also has two other pins. When the watch case is disassembled and the magnetic metering chip is away from the magnetic mechanism, one of the pins outputs an alarm message indicating that the watch case has been disassembled. When a strong magnetic attack occurs, the other pin outputs an alarm message indicating that a strong magnetic attack occurs. The magnetic metering chip is placed on the PCB board, and the position of the PCB board is adjusted so that the magnetic metering chip is located directly above the magnetic mechanism; The magnetic metering chip is placed on the PCB board, and the position of the PCB board is adjusted so that the magnetic metering chip is located on the side of the magnetic mechanism; The PCB board includes an MCU and peripheral circuits, and transmits the output signal of the magnetic metering chip to the MCU for processing, thereby realizing the functions of metering, identifying forward and reverse rotation, anti-disassembly and anti-strong magnetic attack.
Citation Information
Patent Citations
Device and method for measuring fluid direction
CN105136215A
Counting device for automatically controlling sampling detection of two magnetic sensors with low power consumption
CN106441479A
