Rotor surface magnetism detection method capable of simultaneously collecting magnetic field data and position data

文档序号:1736095 发布日期:2019-12-20 浏览:45次 中文

阅读说明:本技术 一种同时采集磁场数据和位置数据的转子表磁检测方法 (Rotor surface magnetism detection method capable of simultaneously collecting magnetic field data and position data ) 是由 彭林 玉明进 舒克茂 于 2019-09-24 设计创作,主要内容包括:本发明公开了一种同时采集磁场数据和位置数据的转子表磁检测方法,包括如下步骤:设置位置数据采集单元;调整转子转动速度,进行位置数据采集和磁场数据采集;将磁场和位置数据对应绑定,组成一个数据包;将数据包传送至应用软件进行解绑,计算每个磁场数据对应的位置数据,得到每个磁场值对应的转子角度位置值,确定每个磁场和位置对应关系。本发明通过在转动机构上设置增量式编码器输出位置数据,AD转换芯片将接收到的磁场与位置数据进行对应绑定,然后发送至应用软件按绑定顺序解绑数据,分析位置数据,得到磁场数据和位置数据对应关系,实现高斯计同步采集转子的磁场数据和位置数据,不影响采集速度,成本低,精度高。(The invention discloses a rotor surface magnetism detection method for simultaneously acquiring magnetic field data and position data, which comprises the following steps: setting a position data acquisition unit; adjusting the rotation speed of the rotor, and acquiring position data and magnetic field data; correspondingly binding the magnetic field and the position data to form a data packet; and transmitting the data packet to application software for unbinding, calculating position data corresponding to each magnetic field data to obtain a rotor angle position value corresponding to each magnetic field value, and determining the corresponding relation between each magnetic field and the position. According to the invention, the incremental encoder is arranged on the rotating mechanism to output position data, the AD conversion chip correspondingly binds the received magnetic field and the position data, then the magnetic field and the position data are sent to application software to unbind the data according to the binding sequence, the position data are analyzed, and the corresponding relation between the magnetic field data and the position data is obtained, so that synchronous acquisition of the magnetic field data and the position data of the rotor by the Gaussmeter is realized, the acquisition speed is not influenced, the cost is low, and the precision is high.)

1. A rotor surface magnetism detection method for simultaneously collecting magnetic field data and position data is used for surface magnetism detection of a rotor in a motor, and is characterized in that: the method comprises the following steps:

step S1, setting a position data acquisition unit, wherein the position data acquisition unit comprises an encoder;

step S2, adjusting the rotation speed of the rotor, performing position data acquisition and magnetic field data acquisition, and simultaneously ensuring that the position data acquisition rate is higher than twice of the encoder output pulse rate, namely ensuring that each encoder pulse is at least acquired with 2 signals;

step S3, binding each magnetic field data and each position data in a one-to-one correspondence manner to form a data packet;

step S4, transmitting the data packet to application software;

and step S5, the application software unbinds the data packet according to the binding sequence, calculates the position data corresponding to each magnetic field data, obtains the rotor angle position value corresponding to each magnetic field value, and determines the one-to-one corresponding relation between each magnetic field and the position.

2. The rotor surface magnetism detection method for simultaneously acquiring magnetic field data and position data according to claim 1, characterized in that: the encoder is an incremental encoder, and the output signal line of the incremental encoder is A +, A-, B +, B-, Z + and Z-.

3. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 2, characterized in that: and recording position data signals output by the incremental encoder A +, A-, B +, B-, Z + and Z-, collecting the position data signals output by the incremental encoder as digital signals, binding 3 bytes of 24-bit data corresponding to magnetic field data together, and representing the one-to-one corresponding relation between a magnetic field and a position by using a 4-byte 32-bit data packet.

4. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 2, characterized in that: the position data signals output by the incremental encoder are recorded, the position data signals output by the incremental encoder are used as analog signals to be collected, 4 paths of analog signals including the incremental encoder A +, B +, Z + and magnetic field data signals are collected at the same time, or 4 paths of analog signals including the incremental encoder A +, B +, Z + and magnetic field data signals are collected at the same time, and a 12-byte 96-bit data packet represents the one-to-one corresponding relation between a magnetic field and a position.

5. The rotor surface magnetic detection method for simultaneously acquiring magnetic field data and position data according to claim 3 or 4, characterized in that: if the data packet is 4 bytes and 32 bits, the application software unbinds each 4 bytes and 32 bits of data according to the binding sequence and analyzes the unbound data; if the data packet is 12 bytes and 96 bits, the application software unbinds each 12 bytes and 96 bits of data according to the binding sequence, and analyzes the unbinding data: searching the rising edge of the Z signal from the position data, wherein the rising edge corresponds to the beginning of one circle of rotation; finding a Z starting signal, and marking the position of a corresponding magnetic field signal as a position 0-degree point; continuing to search the rising edge of the next Z signal, and corresponding to the end of one circle of rotation; finding a Z end signal, and marking the position of the corresponding magnetic field signal as a 360-degree position point; and (4) between the starting point and the ending point, accumulating and marking the angle position value corresponding to each magnetic field value according to A, B pulse counting correspondence, and confirming the one-to-one correspondence relationship between each magnetic field and the position.

6. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 4, characterized in that: also included is an acquisition circuit for acquiring magnetic field data and position data.

7. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 6, characterized in that: the acquisition circuit includes: the device comprises a position data input terminal, a magnetic field data input terminal, a reference voltage circuit, an analog-to-digital conversion circuit, a data packet output terminal and an AD conversion chip, wherein the position data input terminal, the magnetic field data input terminal, the reference voltage circuit, the analog-to-digital conversion circuit and the data packet output terminal are respectively connected with the AD conversion chip, and the AD conversion chip transmits received magnetic field data and position data to application software through the data packet output terminal after the magnetic field data and the position data are bound in a one-to-one correspondence mode.

8. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 7, characterized in that: the reference voltage circuit comprises R440, R439, C1, C2 and C3, one end of the R440 is connected with VREF _2.5, the other end of the R440 is connected with the 6 th pin of the AD conversion chip through the R439, a node between the R440 and the R439 is respectively connected with a first end of C1, a first end of C2 and a first end of C3, and a second end of C1, a second end of C2 and a second end of C3 are respectively connected with the ground;

the analog-to-digital conversion circuit comprises C5, C6 and C7, wherein a first end of C5 and a first end of C6 are respectively connected with VCC, the VCC is connected with a 9 th pin of an AD conversion chip, a first end of C5 is also connected with a 10 th pin of the AD conversion chip, and a second end of C5 and a second end of C6 are respectively grounded; the first end of the C7 is connected with VDD, the VDD is connected with the 20 th pin of the AD conversion chip, the second end of the C7 is connected with the 21 st pin of the AD conversion chip, and the 21 st pin of the AD conversion chip is grounded.

9. The rotor surface magnetism detection method of simultaneously collecting magnetic field data and position data according to claim 6, characterized in that: the acquisition circuit further comprises: c8, C9, C10, C11, C8 first end, C9 first end are connected with AD conversion chip 22 th foot respectively, C8 second end, C9 second end ground connection respectively, C10 first end, C11 first end are connected with AD conversion chip 7 th foot respectively, C10 second end, C11 second end are connected with AD conversion chip 8 th foot respectively, AD conversion chip 8 th foot ground connection.

Technical Field

The invention relates to the field of surface magnetism detection of a motor rotor, in particular to a rotor surface magnetism detection method capable of simultaneously acquiring magnetic field data and position data.

Background

Disclosure of Invention

The technical problem to be solved by the invention is as follows: the rotor surface magnetism detection method capable of simultaneously acquiring the magnetic field data and the position data is provided, the one-to-one correspondence of the acquired magnetic field data and the position data is guaranteed, the acquisition speed is not influenced, the cost is low, and the precision is high.

The technical scheme of the invention is as follows: a rotor surface magnetic detection method for simultaneously acquiring magnetic field data and position data comprises the following steps:

step S1, setting a position data acquisition unit, wherein the position data acquisition unit comprises an encoder;

step S2, adjusting the rotation speed of the rotor, performing position data acquisition and magnetic field data acquisition, and simultaneously ensuring that the position data acquisition rate is higher than twice of the encoder output pulse rate, namely ensuring that each encoder pulse is at least acquired with 2 signals;

step S3, binding each magnetic field data and each position data in a one-to-one correspondence manner to form a data packet;

step S4, transmitting the data packet to application software;

and step S5, the application software unbinds the data packet according to the binding sequence, calculates the position data corresponding to each magnetic field data, obtains the rotor angle position value corresponding to each magnetic field value, and determines the one-to-one corresponding relation between each magnetic field and the position.

By adopting the technical scheme, in the rotor surface magnetic detection by the method for simultaneously acquiring the magnetic field data and the position data, the encoder is an incremental encoder, and the output signal line of the incremental encoder is A +, A-, B +, B-, Z + or Z-.

By adopting the technical scheme, in the rotor surface magnetic detection method for simultaneously acquiring the magnetic field data and the position data, position data signals output by the incremental encoder A +, A-, B +, B-, Z + and Z-are recorded, the position data signals output by the incremental encoder are acquired as digital signals, 3 bytes of 24-bit data corresponding to the magnetic field data are bound together, and a 4-byte 32-bit data packet represents the one-to-one corresponding relationship between a magnetic field and a position.

By adopting the technical scheme, in the rotor surface magnetic detection method for simultaneously acquiring the magnetic field data and the position data, position data signals output by the incremental encoder A +, A-, B +, B-, Z + and Z-are recorded, the position data signals output by the incremental encoder are acquired as analog signals, 4 paths of analog signals including the incremental encoder A +, B +, Z + and the magnetic field data signals are acquired simultaneously, or 4 paths of analog signals including the incremental encoder A-, B-, Z-and the magnetic field data signals are acquired simultaneously, and a 12-byte 96-bit data packet represents the one-to-one correspondence relationship between a magnetic field and a position.

By adopting the technical schemes, in the rotor surface magnetic detection method for simultaneously acquiring the magnetic field data and the position data, the application software judges the byte size of the data packet, if the data packet is 4 bytes and 32 bits, the data of each 4 bytes and 32 bits are unbound according to the binding sequence, and the unbound data is analyzed; if the data packet is 12 bytes and 96 bits, unbinding the data of each 12 bytes and 96 bits according to the binding sequence, and analyzing the unbound data: searching the rising edge of the Z signal from the position data, wherein the rising edge corresponds to the beginning of one circle of rotation; finding a Z starting signal, and marking the position of a corresponding magnetic field signal as a position 0-degree point; continuing to search the rising edge of the next Z signal, and corresponding to the end of one circle of rotation; finding a Z end signal, and marking the position of the corresponding magnetic field signal as a 360-degree position point; and (4) between the starting point and the ending point, accumulating and marking the angle position value corresponding to each magnetic field value according to A, B pulse counting correspondence, and confirming the one-to-one correspondence relationship between each magnetic field and the position.

By adopting the technical scheme, the rotor surface magnetic detection method for simultaneously acquiring the magnetic field data and the position data further comprises an acquisition circuit for acquiring the magnetic field data and the position data.

By adopting the above technical solutions, in the rotor surface magnetic detection method for simultaneously acquiring magnetic field data and position data, the acquisition circuit includes: the device comprises a position data input terminal, a magnetic field data input terminal, a reference voltage circuit, an analog-to-digital conversion circuit, a data packet output terminal and an AD conversion chip, wherein the position data input terminal, the magnetic field data input terminal, the reference voltage circuit, the analog-to-digital conversion circuit and the data packet output terminal are respectively connected with the AD conversion chip, and the AD conversion chip transmits received magnetic field data and position data to application software through the data packet output terminal after the magnetic field data and the position data are bound in a one-to-one correspondence mode.

By adopting the technical scheme, in the rotor surface magnetic detection method for simultaneously acquiring the magnetic field data and the position data, the reference voltage circuit comprises R440, R439, C1, C2 and C3, one end of the R440 is connected with VREF _2.5, the other end of the R440 is connected with the 6 th pin of the AD conversion chip through the R439, a node between the R440 and the R439 is respectively connected with the first end of the C1, the first end of the C2 and the first end of the C3, and the second end of the C1, the second end of the C2 and the second end of the C3 are respectively grounded;

the analog-to-digital conversion circuit comprises C5, C6 and C7, wherein a first end of C5 and a first end of C6 are respectively connected with VCC, the VCC is connected with a 9 th pin of an AD conversion chip, a first end of C5 is also connected with a 10 th pin of the AD conversion chip, and a second end of C5 and a second end of C6 are respectively grounded; the first end of the C7 is connected with VDD, the VDD is connected with the 20 th pin of the AD conversion chip, the second end of the C7 is connected with the 21 st pin of the AD conversion chip, and the 21 st pin of the AD conversion chip is grounded.

By adopting the above technical solutions, in the rotor surface magnetic detection method for simultaneously acquiring magnetic field data and position data, the acquisition circuit further includes: c8, C9, C10, C11, C8 first end, C9 first end are connected with AD conversion chip 22 th foot respectively, C8 second end, C9 second end ground connection respectively, C10 first end, C11 first end are connected with AD conversion chip 7 th foot respectively, C10 second end, C11 second end are connected with AD conversion chip 8 th foot respectively, AD conversion chip 8 th foot ground connection.

By adopting the technical scheme, the incremental encoder is arranged on the rotating mechanism, the position data is output to the AD conversion chip through the incremental encoder A +, A-, B +, B-, Z + and Z-, the AD conversion chip binds the received magnetic field data and the position data in a one-to-one correspondence mode, then the magnetic field data and the position data are sent to application software to be unbound according to the binding sequence, the position data are analyzed, the one-to-one correspondence relationship of the magnetic field data and the position data is obtained, synchronous collection of the magnetic field data and the position data of the rotor by the gaussmeter is achieved, the collection speed is not affected, the cost is low, and the precision is high.

Drawings

FIG. 1 is a schematic overall flow diagram of the present invention;

FIG. 2 is a schematic view of a data analysis process flow according to the present invention;

fig. 3 is a schematic diagram of the acquisition circuit structure of the present invention.

Detailed Description

The invention is described in detail below with reference to the figures and the specific embodiments.

The invention provides a rotor surface magnetism detection method for simultaneously acquiring magnetic field data and position data, which is used for carrying out surface magnetism detection on a rotor in a motor and comprises the following steps:

step S1, setting a position data acquisition unit, wherein the position data acquisition unit comprises an encoder;

step S2, adjusting the rotation speed of the rotor, performing position data acquisition and magnetic field data acquisition, and simultaneously ensuring that the position data acquisition rate is higher than twice of the encoder output pulse rate, namely ensuring that each encoder pulse is at least acquired with 2 signals; the rotor is subjected to rotation speed adjustment through a rotating mechanism, and the rotating mechanism can be a mechanism which can drive the rotor to rotate, such as a motor;

step S3, binding each magnetic field data and each position data in a one-to-one correspondence manner to form a data packet;

step S4, transmitting the data packet to application software;

and step S5, the application software unbinds the data packet according to the binding sequence, calculates the position data corresponding to each magnetic field data, obtains the rotor angle position value corresponding to each magnetic field value, and determines the one-to-one corresponding relation between each magnetic field and the position.

There are at least 2 embodiments of the manner of acquiring the position data signal and the magnetic field data signal according to the above steps, and the specific embodiments are as follows

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于混合土壤模型的接地极环境与入地电流测量平台

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!