High-reliability three-Hall bidirectional metering device and method

文档序号:1611795 发布日期:2020-01-10 浏览:32次 中文

阅读说明:本技术 高可靠性三霍尔双向计量装置及方法 (High-reliability three-Hall bidirectional metering device and method ) 是由 陈舜 李如斌 聂景春 杨志荣 林己 蒋永忠 于 2019-10-12 设计创作,主要内容包括:本发明提出一种高可靠性三霍尔双向计量装置及方法,其特征在于,包括:分别与MCU连接的三个TMR元件,以及磁铁;所述磁铁固定安装在仪表的转动部件上;三个所述TMR元件的安装平面与转动部件的转动平面平行;三个所述TMR元件包括作为计数TMR的TMR元件A、作为方向判断TMR的TMR元件B和TMR元件C。其采用合理的结构布局简化指针或叶轮无规律转动的脉冲输出,程序算法逻辑简单易实现,计量稳定可靠,特别适宜对功耗要求严格的智能仪表信号采集应用情景。(The invention provides a high-reliability three-Hall bidirectional metering device and a method, which are characterized by comprising the following steps: three TMR elements respectively connected with the MCU, and a magnet; the magnet is fixedly arranged on a rotating part of the instrument; the mounting planes of the three TMR elements are parallel to the rotation plane of the rotating component; the three TMR elements include a TMR element a as a count TMR, a TMR element B as a direction judgment TMR, and a TMR element C. The pulse output of the irregular rotation of the pointer or the impeller is simplified by adopting a reasonable structural layout, the program algorithm is simple in logic and easy to realize, the metering is stable and reliable, and the pulse output control method is particularly suitable for the signal acquisition application situation of the intelligent instrument with strict requirements on power consumption.)

1. The utility model provides a two-way metering device of three hall of high reliability which characterized in that includes: three TMR elements respectively connected with the MCU, and a magnet; the magnet is fixedly arranged on a rotating part of the instrument; the mounting planes of the three TMR elements are parallel to the rotation plane of the rotating component; the three TMR elements include a TMR element a as a count TMR, a TMR element B as a direction judgment TMR, and a TMR element C.

2. The high reliability three hall bidirectional metering device of claim 1, in which: the angle of the magnetic field applied by the magnet to the TMR element is less than 90 degrees.

3. The high reliability three hall bidirectional metering device of claim 1, in which: the three TMR elements point to the rotating shaft center of the rotating component and are arranged in a triangular mode by taking the rotating shaft center as a central point, wherein the separation angle between the TMR element A and the TMR element B is 144 degrees; the TMR element B and TMR element C are separated by an angle of 72 °; the TMR element a and the TMR element C are separated by an angle of 144 °.

4. The high reliability three hall bidirectional metering device of claim 1, in which: three of the TMR elements employ TMR 1202.

5. The high reliability three hall bidirectional metering device of claim 1, in which: the three TMR elements are connected with an interruption pin of the MCU, a single-edge trigger mechanism is adopted to collect TMR pulse signals, the work main frequency of the MCU meets the requirement that the interruption response speed is better than t/10, wherein t is the minimum period of one circle of rotation of the rotating component.

6. The high reliability three hall bidirectional metering device of claim 1, in which: the meter is a water meter, a gas meter or a heat meter, and the rotating part is a pointer or an impeller.

7. The metering method of the high-reliability three-Hall bidirectional metering device according to any one of claims 1-6, characterized in that: the magnet is driven by the rotating component to sweep through the TMR element, the TMR element detects the change of the magnetic field and outputs a pulse signal, and the output signal function of the TMR element is as follows:

8. the metering method of the high-reliability three-Hall bidirectional metering device according to any one of claim 7, characterized by comprising the following steps:

step S1: taking two falling edges of the pulse signal output by the TMR element A as a metering period;

step S2: the sequence of the last falling edges of the pulse signals output by the TMR element B and the TMR element C is used as the basis for direction judgment;

step S3: in the metering period of the TMR element a, if no pulse waveform is generated from the TMR element B and the TMR element C, no count is made; if the TMR element B and the TMR element C have pulse waveforms generated, 1 is added to the count after the direction is judged.

9. The metering method of the high-reliability three-Hall bidirectional metering device according to any one of claim 8, characterized in that: before step S1 and step S2, the pulse signals output from the three TMR elements are low-pass filtered.

Technical Field

The invention relates to the field of instrument data acquisition, in particular to a high-reliability three-Hall bidirectional metering device and method for an instrument.

Background

Along with the improvement of informatization, intellectualization and science and technology, the application of the intelligent metering technology in water meters, electric meters, gas meters and heat meters is more and more extensive. At present, a magnet is added on a dial pointer in the traditional digital meter reading process, and the dial count is read by detecting the rotation of the pointer through electronic devices such as a reed switch or a Hall device, and the like, so that the method has a plurality of problems.

1. The power consumption of the device is large.

Disclosure of Invention

In order to overcome the defects and shortcomings in the prior art, the invention provides a novel high-reliability three-Hall bidirectional metering device and a method, which specifically adopt the following technical scheme:

the utility model provides a two-way metering device of three hall of high reliability which characterized in that includes: three TMR elements respectively connected with the MCU, and a magnet; the magnet is fixedly arranged on a rotating part of the instrument; the mounting planes of the three TMR elements are parallel to the rotation plane of the rotating component; the three TMR elements include a TMR element a as a count TMR, a TMR element B as a direction judgment TMR, and a TMR element C.

Preferably, the angle of the magnetic field applied by the magnet at the TMR element is <90 °.

Preferably, the three TMR elements point to the rotation axis of the rotating part and are arranged in a triangle with the rotation axis as a center point, wherein, the separation angle of the TMR element a and the TMR element B is 144 °; the TMR element B and TMR element C are separated by an angle of 72 °; the TMR element a and the TMR element C are separated by an angle of 144 °.

Preferably, three of the TMR elements employ TMR 1202.

Preferably, the three TMR elements are connected with an interrupt pin of the MCU, a single-edge trigger mechanism is adopted to collect TMR pulse signals, the work main frequency of the MCU meets the requirement that the interrupt response speed is better than t/10, wherein t is the minimum period of one circle of rotation of the rotating component.

Preferably, the meter is a water meter, a gas meter or a heat meter, and the rotating part is a pointer or an impeller.

And the metering method of the high-reliability three-Hall bidirectional metering device according to the device is characterized in that: the magnet is driven by the rotating component to sweep through the TMR element, the TMR element detects the change of the magnetic field and outputs a pulse signal, and the output signal function of the TMR element is as follows:

Figure 100002_DEST_PATH_IMAGE002

preferably, the metering judgment method specifically includes the following steps:

step S1: taking two falling edges of the pulse signal output by the TMR element A as a metering period;

step S2: the sequence of the last falling edges of the pulse signals output by the TMR element B and the TMR element C is used as the basis for direction judgment;

step S3: in the metering period of the TMR element a, if no pulse waveform is generated from the TMR element B and the TMR element C, no count is made; if the TMR element B and the TMR element C have pulse waveforms generated, 1 is added to the count after the direction is judged.

Preferably, the pulse signals output from the three TMR elements are low-pass filtered before step S1 and step S2.

The invention and the optimized proposal thereof are based on 3 TMR elements, and provide a bidirectional metering acquisition proposal for the pointer or the impeller rotating at high speed, the reasonable structural layout is adopted to simplify the pulse output of the irregular rotation of the pointer or the impeller, the program algorithm logic is simple and easy to realize, the metering is stable and reliable, and the invention is particularly suitable for the signal acquisition application situation of the intelligent instrument with strict power consumption requirement. The scheme has low requirement on the layout design process of the TMR element, and can effectively reduce the production and manufacturing cost; the algorithm is simple, high-speed rotation calculation is supported, power consumption is low, self-adaption to rotation disturbance is strong, and the metering precision is high and can reach 0.01% metering precision.

This low-power consumption, high stable two-way measurement scheme measures TMR through rational design, and direction TMR spatial layout improves and rotates the detection angle, simplifies the algorithm, promotes two-way measurement reliability and measurement accuracy under the high-speed rotation.

Drawings

The invention is described in further detail below with reference to the following figures and detailed description:

FIG. 1 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of TMR output waveforms when the pointer rotates clockwise according to the embodiment of the present invention;

FIG. 3 is a schematic diagram of TMR output waveforms when the pointer rotates counterclockwise according to one embodiment of the present invention;

FIG. 4 is a schematic flow chart of a method of an embodiment of the present invention;

in the figure: 1-TMR element A; a 2-TMR element B; a 3-TMR element C; 4-a magnet; 5-pointer.

Detailed Description

In order to make the features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail as follows:

as shown in fig. 1, taking an intelligent water meter dial with a pointer 5 as an example, the main assembly of the device of the embodiment includes: three TMR elements connected to the MCU respectively, and a magnet 4.

In order to overcome traditional intelligent water gauge when magnet near the sensor shake (the water pipe rivers are unstable to cause), frequent spurious triggering problem appears easily, lead to the measurement inaccurate, this embodiment adopts the bipolar type ultralow power consumption Tunnel Magneto Resistor (TMR) that has CMOS digital latch output, specifically can adopt TMR1202, chooseing for use of this device can ensure when magnet near the sensor shake, can not appear frequent spurious triggering problem.

Wherein the magnet 4 is fixedly arranged above the pointer 5 of the instrument; the mounting planes of the three TMR elements are parallel to the rotating plane of the rotating component, and the angle of the magnetic field of the magnet 4 acting on the TMR elements is ensured to be less than 90 degrees, so that the effect of simplifying pulse waveform output judgment can be achieved.

As shown in fig. 1, the three TMR elements include TMR element a1 as a count TMR, TMR element B2 as a direction determination TMR, and TMR element C3 directed to the rotation axis of the rotating member and arranged in a triangular shape with the rotation axis as a center point, wherein the separation angle of TMR element a1 and TMR element B2 is 144 °; the separation angle of TMR element B2 and TMR element C3 is 72 °; the TMR element a1 and TMR element C3 are separated by an angle of 144 °.

The three TMR elements are connected with an interruption pin of the MCU, a single-edge trigger mechanism is adopted to collect TMR pulse signals, the work main frequency of the MCU meets the requirement that the interruption response speed is better than t/10, wherein t is the minimum period of one circle of rotation of the rotating part.

The device scheme of the embodiment can also be used on a gas meter or a heat meter, and the pointer 5 can also be replaced by an impeller.

Based on the above apparatus, the present embodiment further provides a corresponding metering method, that is: the magnet 4 is driven by the rotating component to sweep through the TMR element, the TMR element detects the change of the magnetic field and outputs a pulse signal, and the output signal function of the TMR element is as follows:

Figure DEST_PATH_IMAGE002A

as shown in fig. 4, the metering determination method implemented in this embodiment is embodied in a flow form and specifically includes the following steps:

the pulse signals output by the three TMR elements are first low-pass filtered to filter out high frequency jitter.

Step S1: taking two falling edges of the pulse signal output by the TMR element a1 as a measurement period;

step S2: the sequence of the last falling edges of the pulse signals output by the TMR element B2 and the TMR element C3 is used as the basis for direction judgment, 3 TMR element output waveforms approximately show the form shown in fig. 2 when the pointer 5 rotates clockwise, and 3 TMR element output waveforms approximately show the form shown in fig. 3 when the pointer 5 rotates counterclockwise;

step S3: in the metering period of TMR element a1, if no pulse waveform is generated from TMR element B2 and TMR element C3, it is not counted; if the TMR element B2 and TMR element C3 have pulse waveforms generated, the count is incremented by 1 after the direction is judged.

The present invention is not limited to the above preferred embodiments, and all other types of highly reliable three hall bidirectional meters and methods can be obtained by anyone who can use the present invention, and all equivalent changes and modifications made within the scope of the present invention shall be covered by the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种带有防冻结构的物联网水表

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!