WO2021114419A1 - Calibration method, apparatus and device for rotary magnetoelectric encoder - Google Patents

Calibration method, apparatus and device for rotary magnetoelectric encoder Download PDF

Info

Publication number
WO2021114419A1
WO2021114419A1 PCT/CN2019/129078 CN2019129078W WO2021114419A1 WO 2021114419 A1 WO2021114419 A1 WO 2021114419A1 CN 2019129078 W CN2019129078 W CN 2019129078W WO 2021114419 A1 WO2021114419 A1 WO 2021114419A1
Authority
WO
WIPO (PCT)
Prior art keywords
encoder
voltage signal
rotation angle
signal values
hall sensor
Prior art date
Application number
PCT/CN2019/129078
Other languages
French (fr)
Chinese (zh)
Inventor
夏一帆
Original Assignee
浙江禾川科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 浙江禾川科技股份有限公司 filed Critical 浙江禾川科技股份有限公司
Publication of WO2021114419A1 publication Critical patent/WO2021114419A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/14Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage
    • G01D5/142Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage using Hall-effect devices
    • G01D5/147Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing the magnitude of a current or voltage using Hall-effect devices influenced by the movement of a third element, the position of Hall device and the source of magnetic field being fixed in respect to each other

Definitions

  • the present invention relates to the field of rotary magnetoelectric encoders, in particular to a method for calibrating a rotating magnetoelectric encoder.
  • the invention also relates to a calibration device and equipment of a rotating magnetoelectric encoder.
  • the rotary magnetic encoder can detect the rotation angle of the measured shaft, and calculate the position and speed of the object connected to the shaft (such as the shaft of the motor) based on the rotation angle.
  • Huo The Er sensor can output two sinusoidal voltage signals with a phase difference of 90° with the rotation of the magnetic code disc.
  • the present invention provides a method for calibrating a rotary magnetoelectric encoder, which includes:
  • a preset fitting algorithm is used to calculate the two voltage signal values of the Hall sensor and the value of the magnetic code disc.
  • the rotation angle of the rotating shaft where the encoder to be calibrated is located is calculated.
  • the two voltage signal values of the Hall sensor are calculated using a preset fitting algorithm according to the plurality of sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value
  • the functional expression corresponding to the rotation angle of the magnetic code disc is specifically:
  • a preset fitting algorithm is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc;
  • the obtaining the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft of the encoder to be calibrated is specifically:
  • the accuracy of the precision encoder is a preset multiple of the accuracy of the encoder to be calibrated.
  • the preset fitting algorithm is a Fourier series interpolation fitting method.
  • the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated sampling at least one cycle are specifically:
  • the preset sampling frequency is greater than 1/16 of the resolution of the encoder to be calibrated.
  • the rotary magnetoelectric encoder After calculating the rotation angle of the shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated, the rotary magnetoelectric encoder
  • the calibration method also includes:
  • the present invention also provides a calibration device for a rotary magnetoelectric encoder, which includes:
  • the sampling module is used to sample at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
  • An obtaining module configured to obtain the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
  • the first calculation module is used to calculate the two voltages of the Hall sensor by using a preset fitting algorithm according to the plurality of sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value
  • the second calculation module is configured to calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
  • the first calculation module includes:
  • the fitting module is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc by using a preset fitting algorithm according to the sampled multiple voltage signal values;
  • the third calculation module is used to determine the zero point in the function waveform by using inverse triangulation calculation
  • the determination module is used to determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disk according to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value formula.
  • the calibration device of the rotary magnetoelectric encoder further includes:
  • the return module is used to return to the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated after the preset period.
  • the present invention also provides a calibration device for a rotary magnetoelectric encoder, which includes:
  • Memory used to store computer programs
  • the processor is used to implement the steps of the method for calibrating the rotary magneto-electric encoder as described in any one of the preceding items when the computer program is executed.
  • the present invention provides a method for calibrating a rotary magnetoelectric encoder.
  • the embodiment of the present invention can fit the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated for at least one cycle obtained by sampling.
  • the function expression of the corresponding relationship between the two voltage signal values of the magnetic code disk and the rotation angle of the magnetic code disk because the function expression expresses the true corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disk Therefore, compared with the preset idealized sine-cosine curve, the accurate function expression fitted in this application can calculate the rotation angle of the rotating shaft more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder.
  • the present invention also provides a calibration device and equipment for the rotary magnetic encoder, which has the same beneficial effects as the calibration method of the rotary magnetic encoder.
  • Fig. 1 is a schematic flowchart of a calibration method of a rotary magnetic encoder provided by the present invention
  • Figure 2 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention
  • Fig. 3 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention.
  • FIG. 1 is a schematic flowchart of a method for calibrating a rotary magneto-electric encoder provided by the present invention, including:
  • Step S1 Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
  • the two sets of voltage signal values output by the Hall sensor obtained by sampling in the embodiment of the present invention can be used as the data basis in the subsequent steps, so that the two voltage signal values of the Hall sensor and the rotation of the magnetic code disc can be obtained in the subsequent steps.
  • the functional expression of the corresponding relationship of the angle can be used as the data basis in the subsequent steps, so that the two voltage signal values of the Hall sensor and the rotation of the magnetic code disc can be obtained in the subsequent steps.
  • the embodiment of the present invention in order to achieve accurate fitting of the functional expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc, in the embodiment of the present invention, during the rotation of the shaft where the encoder to be calibrated is located, The voltage signal value of at least one cycle of the Hall sensor in the encoder to be calibrated arranged on the rotating shaft is sampled.
  • the sampling amount here may not be at least one cycle, for example, less than one cycle, etc.
  • This embodiment of the present invention does not do it here. limited.
  • Step S2 Obtain the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
  • a variety of measuring instruments can be used to obtain the precise rotation angle value.
  • a high-precision rotary magnetic encoder can be used for measurement.
  • the precise rotation angle value is required to correspond to the voltage signal value output by the Hall sensor on the time axis. .
  • the rotating shaft where the encoder to be calibrated is located may be of multiple types, for example, it may be a rotating shaft of a motor, etc., which is not limited in the embodiment of the present invention.
  • Step S3 According to the sampled multiple voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value, use a preset fitting algorithm to calculate the two voltage signal values of the Hall sensor and the rotation of the magnetic code disc The functional expression of the corresponding relationship of the angle;
  • the Hole sensor can be fitted.
  • the function expression of the corresponding relationship between the two voltage signal values of the Er sensor and the rotation angle of the magnetic code disc is more true and accurate because it is fitted according to the actual collected data.
  • the function expression of the corresponding relationship between the voltage signal value of the Hall sensor and the rotation angle of the magnetic code disc basically conforms to the function expression of the sine-cosine waveform curve of the trigonometric function, but it is relative to the standard sine-cosine curve. There are some offset errors, gain errors or phase errors.
  • the function expression of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc can basically conform to:
  • Step S4 Calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
  • the measured function expression can be combined with the code to be calibrated.
  • the two voltage signal values output by the Hall sensor in the device calculate the rotation angle of the shaft where the encoder to be calibrated is located. For example, at the current moment, you can combine the two function expressions and the two voltage signal values currently output by the Hall sensor to calculate Get the rotation angle of the shaft at the current moment.
  • the rotary magnetic encoder will sample the current position through the sampling points of the two Hall resistors with a difference of 90° when the magnetic code disc rotates one circle, and output two phase differences.
  • a complete cycle of the sine voltage waveform curve of 90° usually we call the sin ⁇ curve that is 90° ahead, and the cos ⁇ curve that is 90° behind ( ⁇ is the current rotation angle value of the shaft). Then by reading the current two voltage signal values, use the arctangent function to solve the current angle value of the encoder.
  • the principle is as follows:
  • the output waveform signal may not be the ideal sin ⁇ , cos ⁇ curve waveform.
  • the output waveform curve may not be the ideal sin ⁇ , cos ⁇ curve waveform.
  • the present invention provides a method for calibrating a rotary magnetoelectric encoder.
  • the embodiment of the present invention can fit the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated for at least one cycle obtained by sampling.
  • the function expression of the corresponding relationship between the two voltage signal values and the rotation angle of the magnetic code disc because the function expression expresses the true correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc Therefore, compared with the preset idealized sine-cosine curve, the accurate function expression fitted in this application can calculate the rotation angle of the rotating shaft more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder.
  • a preset fitting algorithm is used to calculate the two voltage signal values of the Hall sensor and the functional expression of the corresponding relation of the rotation angle of the magnetic code disc is specifically as follows:
  • a preset fitting algorithm is used to fit the function waveform of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc;
  • the functional expression of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc is determined.
  • the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc can be fitted according to the sampled multiple voltage signal values (without corresponding to the exact rotation angle value of the shaft at the same time)
  • the position of the abscissa zero point should be at the abscissa of the maximum y value of the curve waveform, but we cannot use the directly read voltage signal value
  • the abscissa of the maximum point is used as the abscissa zero point.
  • obtaining the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located is specifically:
  • the precision of the precision encoder is a preset multiple of the precision of the encoder to be calibrated.
  • the preset multiple can be independently set, for example, it can be 10 times, etc., which is not limited in the embodiment of the present invention.
  • a high-precision measuring device as a reference for the abscissa ⁇ value, and consider it as an ideal angular position.
  • the first is to collect data.
  • the dual-channel ADC Analog-to-Digital Converter
  • we appropriately use single-point trigger and dual-channel simultaneous sampling and at the same time we need to synchronize Sampling the angle value of high-precision measuring equipment.
  • What we need to ensure is the dual-channel ADC and high-precision device angle synchronous sampling, so that the phase error can be minimized.
  • the collected data points should be distributed in at least one complete cycle, and they should be properly and evenly distributed on the abscissa ⁇ , and the number should be sufficient. Only in this way can we ensure that the fitted function waveform is as close as possible to the ideal curve waveform.
  • the precision encoder has the advantages of high precision and convenient use.
  • the preset fitting algorithm is a Fourier series interpolation fitting method.
  • the preset fitting algorithm may also be of other types, which is not limited in the embodiment of the present invention.
  • the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated sampling at least one cycle are specifically:
  • the preset sampling frequency is greater than 1/16 of the resolution of the encoder to be calibrated.
  • the sampling frequency can be set to a value greater than 1/16 of the resolution of the encoder to be calibrated. In this case, the number of data points sampled It is sufficient to simulate an accurate waveform curve, and the more data points are sampled, that is, the higher the sampling frequency, the more accurate the simulated waveform curve.
  • the calibration method of the rotary magnetoelectric encoder also includes:
  • the function expression of the waveform curve simulated last time will deviate greatly from the actual one. Therefore, in the embodiment of the present invention, it can be returned after a preset period.
  • the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated, so as to re-determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc It realizes the automatic calibration of the encoder to be calibrated every preset period.
  • the preset period can be independently set according to actual conditions, for example, can be set to 1 month, etc., which is not limited in the embodiment of the present invention.
  • Figure 2 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention, including:
  • Sampling module for sampling at least one cycle of two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated
  • the second calculation module 4 is used to calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
  • the first calculation module includes:
  • the fitting module is used to fit the function waveform of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc by using a preset fitting algorithm according to the sampled multiple voltage signal values;
  • the third calculation module is used to determine the zero point in the function waveform by using inverse triangulation calculation
  • the determination module is used to determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc according to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value.
  • the return module is used to return to the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated after the preset period.
  • FIG. 3 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention, including:
  • the memory 5 is used to store computer programs
  • the processor 6 is used to implement the steps of any one of the calibration methods of the rotary magnetoelectric encoder when executing the computer program.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

A calibration method and calibration apparatus for a rotary magnetoelectric encoder. On the basis of two groups of voltage signal values, which are obtained by means of sampling, output within at least one period by a Hall sensor in an encoder to be calibrated, a function expression of a correlation between two voltage signal values of the Hall sensor and the rotation angle of a magnetic coded disk is fitted. Since the function expression expresses the real correlation between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic coded disk, compared with preset idealized sine and cosine curves, the rotation angle of a rotary shaft can be calculated more accurately according to the fitted accurate function expression, thereby improving the measurement accuracy of the rotary magnetoelectric encoder.

Description

一种旋转磁电编码器的校准方法、装置及设备Method, device and equipment for calibrating rotary magnetoelectric encoder
本申请要求于2019年12月13日提交至中国专利局、申请号为201911283773.4、发明名称为“一种旋转磁电编码器的校准方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed to the Chinese Patent Office on December 13, 2019 with the application number 201911283773.4 and the invention title "A calibration method, device and equipment for a rotary magnetic encoder", all of which The content is incorporated in this application by reference.
技术领域Technical field
本发明涉及旋转磁电编码器领域,特别是涉及一种旋转磁电编码器的校准方法,本发明还涉及一种旋转磁电编码器的校准装置及设备。The present invention relates to the field of rotary magnetoelectric encoders, in particular to a method for calibrating a rotating magnetoelectric encoder. The invention also relates to a calibration device and equipment of a rotating magnetoelectric encoder.
背景技术Background technique
旋转磁电编码器能够对被测转轴的旋转角度进行检测,根据该旋转角度能够计算出与转轴(例如电机的转轴)连接的物体的位置以及速度等数据,在对旋转角度进行测量时,霍尔传感器随着磁码盘的旋转可以输出两路相位相差90°的正弦电压信号,我们认为相位超前90°的正弦信号为sin信号,相位滞后90°的正弦信号为cos信号。我们根据这两路电压信号进行模数转换得到数字信号,再根据两路数字信号解码出编码器的磁码盘(被测转轴)的角度值。The rotary magnetic encoder can detect the rotation angle of the measured shaft, and calculate the position and speed of the object connected to the shaft (such as the shaft of the motor) based on the rotation angle. When measuring the rotation angle, Huo The Er sensor can output two sinusoidal voltage signals with a phase difference of 90° with the rotation of the magnetic code disc. We consider the sinusoidal signal with a phase lead of 90° as a sin signal, and a sinusoidal signal with a phase lag of 90° as a cos signal. We perform analog-to-digital conversion according to the two voltage signals to obtain a digital signal, and then decode the angle value of the encoder's magnetic code disc (the measured shaft) according to the two digital signals.
然而,由于机械安装、芯片设计以及电路干扰等原因导致上述两路正弦电压信号之间幅值以及偏置等存在差异,相位差也可能不是标准的90°。导致最终解码出的角度值存在偏差,从而影响整个旋转磁电编码器的测量精度。However, due to mechanical installation, chip design, circuit interference and other reasons, there are differences in amplitude and offset between the two sinusoidal voltage signals, and the phase difference may not be the standard 90°. As a result, there is a deviation in the final decoded angle value, which affects the measurement accuracy of the entire rotary magnetoelectric encoder.
因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problems is a problem that needs to be solved by those skilled in the art at present.
发明内容Summary of the invention
本发明的目的是提供一种旋转磁电编码器的校准方法,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度;本发明的另一目的是提供一种旋转磁电编码器 的校准装置及设备,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度。The purpose of the present invention is to provide a method for calibrating a rotary magnetoelectric encoder. According to the accurate function expression fitted in this application, the rotation angle of the rotating shaft can be calculated more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder. Another object of the present invention is to provide a calibration device and equipment for a rotary magnetoelectric encoder, which can calculate the rotation angle of the rotating shaft more accurately according to the accurate function expression fitted in this application, which improves the rotating magnetoelectricity The measurement accuracy of the encoder.
为解决上述技术问题,本发明提供了一种旋转磁电编码器的校准方法,包括:In order to solve the above technical problems, the present invention provides a method for calibrating a rotary magnetoelectric encoder, which includes:
采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值;Acquiring an accurate rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;According to the multiple sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value, a preset fitting algorithm is used to calculate the two voltage signal values of the Hall sensor and the value of the magnetic code disc. The functional expression of the corresponding relationship of the rotation angle;
根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度。According to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated, the rotation angle of the rotating shaft where the encoder to be calibrated is located is calculated.
优选地,所述根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式具体为:Preferably, the two voltage signal values of the Hall sensor are calculated using a preset fitting algorithm according to the plurality of sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value The functional expression corresponding to the rotation angle of the magnetic code disc is specifically:
根据采样的多个所述电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;According to the plurality of sampled voltage signal values, a preset fitting algorithm is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc;
利用反三角计算确定出所述函数波形中零点;Using inverse trigonometric calculation to determine the zero point in the function waveform;
根据所述零点以及与每个采样的所述电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。According to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value, a functional expression of the correspondence relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc is determined.
优选地,所述获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值具体为:Preferably, the obtaining the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft of the encoder to be calibrated is specifically:
获取在所述转轴转动的过程中,通过精准编码器同步测量出的所述转轴的旋转角度;Acquiring the rotation angle of the rotation shaft that is synchronously measured by a precision encoder during the rotation of the rotation shaft;
其中,所述精准编码器的精度为所述待校准编码器精度的预设倍数。Wherein, the accuracy of the precision encoder is a preset multiple of the accuracy of the encoder to be calibrated.
优选地,所述预设拟合算法为傅里叶级数插值拟合法。Preferably, the preset fitting algorithm is a Fourier series interpolation fitting method.
优选地,所述采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值具体为:Preferably, the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated sampling at least one cycle are specifically:
以预设采样频率采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated at a preset sampling frequency;
其中,所述预设采样频率大于所述待校准编码器的分辨率的1/16。Wherein, the preset sampling frequency is greater than 1/16 of the resolution of the encoder to be calibrated.
优选地,所述根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度之后,该旋转磁电编码器的校准方法还包括:Preferably, after calculating the rotation angle of the shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated, the rotary magnetoelectric encoder The calibration method also includes:
在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。After the preset period, return to the step of sampling at least one period of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated.
为解决上述技术问题,本发明还提供了一种旋转磁电编码器的校准装置,包括:In order to solve the above technical problems, the present invention also provides a calibration device for a rotary magnetoelectric encoder, which includes:
采样模块,用于采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;The sampling module is used to sample at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
获取模块,用于获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值;An obtaining module, configured to obtain the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
第一计算模块,用于根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;The first calculation module is used to calculate the two voltages of the Hall sensor by using a preset fitting algorithm according to the plurality of sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value The functional expression of the corresponding relationship between the signal value and the rotation angle of the magnetic code disc;
第二计算模块,用于根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度。The second calculation module is configured to calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
优选地,所述第一计算模块包括:Preferably, the first calculation module includes:
拟合模块,用于根据采样的多个所述电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;The fitting module is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc by using a preset fitting algorithm according to the sampled multiple voltage signal values;
第三计算模块,用于利用反三角计算确定出所述函数波形中零点;The third calculation module is used to determine the zero point in the function waveform by using inverse triangulation calculation;
确定模块,用于根据所述零点以及与每个采样的所述电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。The determination module is used to determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disk according to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value formula.
优选地,该旋转磁电编码器的校准装置还包括:Preferably, the calibration device of the rotary magnetoelectric encoder further includes:
返回模块,用于在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。The return module is used to return to the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated after the preset period.
为解决上述技术问题,本发明还提供了一种旋转磁电编码器的校准设备,包括:In order to solve the above technical problems, the present invention also provides a calibration device for a rotary magnetoelectric encoder, which includes:
存储器,用于存储计算机程序;Memory, used to store computer programs;
处理器,用于执行所述计算机程序时实现如上任一项所述旋转磁电编码器的校准方法的步骤。The processor is used to implement the steps of the method for calibrating the rotary magneto-electric encoder as described in any one of the preceding items when the computer program is executed.
本发明提供了一种旋转磁电编码器的校准方法,本发明实施例能够基于采样得到的至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值,拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式,由于该函数表达式表达出了霍尔传感器的两个电压信号值与磁码盘的旋转角度的真实的对应关系,因此相比于预设的理想化的正余弦曲线,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度。The present invention provides a method for calibrating a rotary magnetoelectric encoder. The embodiment of the present invention can fit the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated for at least one cycle obtained by sampling. The function expression of the corresponding relationship between the two voltage signal values of the magnetic code disk and the rotation angle of the magnetic code disk, because the function expression expresses the true corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disk Therefore, compared with the preset idealized sine-cosine curve, the accurate function expression fitted in this application can calculate the rotation angle of the rotating shaft more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder.
本发明还提供了一种旋转磁电编码器的校准装置及设备,具有如上旋转磁电编码器的校准方法相同的有益效果。The present invention also provides a calibration device and equipment for the rotary magnetic encoder, which has the same beneficial effects as the calibration method of the rotary magnetic encoder.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对现有技术和实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present invention, the following will briefly introduce the prior art and the drawings needed in the embodiments. Obviously, the drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, without creative work, other drawings can be obtained based on these drawings.
图1为本发明提供的一种旋转磁电编码器的校准方法的流程示意图;Fig. 1 is a schematic flowchart of a calibration method of a rotary magnetic encoder provided by the present invention;
图2为本发明提供的一种旋转磁电编码器的校准装置的结构示意图;Figure 2 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention;
图3为本发明提供的一种旋转磁电编码器的校准设备的结构示意图。Fig. 3 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种旋转磁电编码器的校准方法,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度;本发明的另一核心是提供一种旋转磁电编码器的校准装置及设备,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度。The core of the present invention is to provide a method for calibrating a rotary magnetoelectric encoder. According to the accurate function expression fitted in this application, the rotation angle of the rotating shaft can be calculated more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder. ; Another core of the present invention is to provide a calibration device and equipment for a rotating magnetoelectric encoder. According to the accurate function expression fitted in this application, the rotation angle of the rotating shaft can be calculated more accurately, which improves the rotating magnetoelectricity The measurement accuracy of the encoder.
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
请参考图1,图1为本发明提供的一种旋转磁电编码器的校准方法的流程示意图,包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for calibrating a rotary magneto-electric encoder provided by the present invention, including:
步骤S1:采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Step S1: Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
具体的,本发明实施例中采样得到的霍尔传感器输出的两组电压信号值可以作为后续步骤中的数据基础,以便后续步骤中得到霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。Specifically, the two sets of voltage signal values output by the Hall sensor obtained by sampling in the embodiment of the present invention can be used as the data basis in the subsequent steps, so that the two voltage signal values of the Hall sensor and the rotation of the magnetic code disc can be obtained in the subsequent steps. The functional expression of the corresponding relationship of the angle.
其中,为了实现对于霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式进行精确拟合,本发明实施例中在待校准编码器所在转轴转动的过程中,采样了设置于转轴上的待校准编码器中霍尔传感器至少一个周期的电压信号值,当然这里的采样量也可以不为至少一个周期,例如小于一个周期等,本发明实施例在此不做限定。Among them, in order to achieve accurate fitting of the functional expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc, in the embodiment of the present invention, during the rotation of the shaft where the encoder to be calibrated is located, The voltage signal value of at least one cycle of the Hall sensor in the encoder to be calibrated arranged on the rotating shaft is sampled. Of course, the sampling amount here may not be at least one cycle, for example, less than one cycle, etc. This embodiment of the present invention does not do it here. limited.
步骤S2:获取待校准编码器所在转轴的与每个采样的电压信号值对应的精确旋转角度值;Step S2: Obtain the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
精确旋转角度值的获取可以采用多种的测量仪器,例如可以采用精度较高的旋转磁电编码器测量,这里要求精确旋转角度值在时间轴上要与霍尔传感器输出的电压信号值相对应。A variety of measuring instruments can be used to obtain the precise rotation angle value. For example, a high-precision rotary magnetic encoder can be used for measurement. Here, the precise rotation angle value is required to correspond to the voltage signal value output by the Hall sensor on the time axis. .
具体的,为了精确拟合出霍尔传感器的电压信号值与磁码盘的旋转角度的对应关系的函数表达式,还需要使用相关测量仪器同步地测量出转轴精确的旋转角度值,以便确定出每一刻霍尔传感器输出的电压信号值所对应的转轴的旋转角度值并得到霍尔传感器的电压信号值与磁码盘的旋转角度的对应关系的函数表达式。Specifically, in order to accurately fit the function expression of the corresponding relationship between the voltage signal value of the Hall sensor and the rotation angle of the magnetic code disc, it is also necessary to use a related measuring instrument to synchronously measure the precise rotation angle value of the shaft in order to determine The rotation angle value of the shaft corresponding to the voltage signal value output by the Hall sensor at each tick, and the function expression of the corresponding relationship between the voltage signal value of the Hall sensor and the rotation angle of the magnetic code disc is obtained.
其中,待校准编码器所在转轴可以为多种类型,例如可以为电机的转轴等,本发明实施例在此不做限定。Wherein, the rotating shaft where the encoder to be calibrated is located may be of multiple types, for example, it may be a rotating shaft of a motor, etc., which is not limited in the embodiment of the present invention.
步骤S3:根据采样的多个电压信号值、与每个采样的电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;Step S3: According to the sampled multiple voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value, use a preset fitting algorithm to calculate the two voltage signal values of the Hall sensor and the rotation of the magnetic code disc The functional expression of the corresponding relationship of the angle;
其中,根据上述步骤中获取到的数据基础,由于包含了至少一个周期内每一采样时刻霍尔传感器输出的电压信号值以及与电压信号值对应的转轴的旋转角度值,便可以拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式,此函数表达式由于是根据实际采集的数据进行拟合出来的,比较真实准确。Among them, according to the data basis obtained in the above steps, since it includes the voltage signal value output by the Hall sensor at each sampling moment in at least one cycle and the rotation angle value of the shaft corresponding to the voltage signal value, the Hole sensor can be fitted. The function expression of the corresponding relationship between the two voltage signal values of the Er sensor and the rotation angle of the magnetic code disc. This function expression is more true and accurate because it is fitted according to the actual collected data.
其中,霍尔传感器的电压信号值与磁码盘的旋转角度的对应关系的函数表达式基本也符合三角函数的正余弦波形曲线的函数表达式,只是相对于标准的正余弦曲线来水,可能存在一些偏置误差、增益误差或者相位误差,霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式基本可以符合:
Figure PCTCN2019129078-appb-000001
Among them, the function expression of the corresponding relationship between the voltage signal value of the Hall sensor and the rotation angle of the magnetic code disc basically conforms to the function expression of the sine-cosine waveform curve of the trigonometric function, but it is relative to the standard sine-cosine curve. There are some offset errors, gain errors or phase errors. The function expression of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc can basically conform to:
Figure PCTCN2019129078-appb-000001
步骤S4:根据函数表达式以及待校准编码器中霍尔传感器输出的两个电压信号值,计算待校准编码器所在转轴的旋转角度。Step S4: Calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
具体的,在依据曲线拟合的方式获得霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式后,便可以根据实测的函数表达式,并结合待校准编码器中霍尔传感器输出的两个电压信号值计算出待校准编码器所在转轴的旋转角度,例如在当前时刻,可以结合两个函数表 达式以及霍尔传感器当前输出的两个电压信号值,计算出当前时刻转轴的旋转角度。Specifically, after obtaining the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc according to the curve fitting method, the measured function expression can be combined with the code to be calibrated. The two voltage signal values output by the Hall sensor in the device calculate the rotation angle of the shaft where the encoder to be calibrated is located. For example, at the current moment, you can combine the two function expressions and the two voltage signal values currently output by the Hall sensor to calculate Get the rotation angle of the shaft at the current moment.
具体的,我们需要明确本发明所适用的旋转磁电编码器输出角度的原理。旋转磁电编码器会根据磁场的变化,在磁码盘旋转一圈时,通过在磁场位置中,两个相差90°的霍尔电阻的采样点,对当前位置的采样,输出两条相位相差90°的一个完整周期的正弦电压波形曲线,通常我们称超前90°的为sinθ曲线,落后90°的为cosθ曲线(θ为转轴的当前旋转角度值)。然后通过读取当前两个电压信号值,使用反正切函数解算出来编码器的当前角度值。原理如下:Specifically, we need to clarify the principle of the output angle of the rotary magnetoelectric encoder applicable to the present invention. According to the change of the magnetic field, the rotary magnetic encoder will sample the current position through the sampling points of the two Hall resistors with a difference of 90° when the magnetic code disc rotates one circle, and output two phase differences. A complete cycle of the sine voltage waveform curve of 90°, usually we call the sinθ curve that is 90° ahead, and the cosθ curve that is 90° behind (θ is the current rotation angle value of the shaft). Then by reading the current two voltage signal values, use the arctangent function to solve the current angle value of the encoder. The principle is as follows:
令:make:
x=sinθ,y=cosθ;x=sinθ, y=cosθ;
则:then:
θ=arctan(x/y);θ=arctan(x/y);
其中,由于霍尔传感器采样点相对位置的偏差,编码器磁盘和电路板的安装位置偏差以及磁场本身易受外界干扰等原因,导致输出的波形信号可能并非理想的sinθ,cosθ曲线波形,这就导致输出的波形曲线存在偏置误差A、B,增益误差α、β以及相位误差
Figure PCTCN2019129078-appb-000002
霍尔传感器实际输出原始信号波形曲线的函数表达式可以如下所示:
Among them, due to the deviation of the relative position of the sampling point of the Hall sensor, the installation position deviation of the encoder disk and the circuit board, and the magnetic field itself is susceptible to external interference, the output waveform signal may not be the ideal sinθ, cosθ curve waveform. Cause the output waveform curve to have offset error A, B, gain error α, β and phase error
Figure PCTCN2019129078-appb-000002
The function expression of the original signal waveform curve of the actual output of the Hall sensor can be as follows:
Figure PCTCN2019129078-appb-000003
Figure PCTCN2019129078-appb-000003
Figure PCTCN2019129078-appb-000004
Figure PCTCN2019129078-appb-000004
具体的,由编码器的原理可知波形曲线x和波形曲线y周期相同,为θ∈[0,2*π),所以ω1=ω2=1;角度值θ的零点位置是相对的,所以我们可以令波形曲线
Figure PCTCN2019129078-appb-000005
代入(1),(2)式整理可得:
Specifically, from the principle of the encoder, it can be known that the waveform curve x and the waveform curve y have the same period, θ∈[0, 2*π), so ω1=ω2=1; the zero position of the angle value θ is relative, so we can Make squiggles
Figure PCTCN2019129078-appb-000005
Substituting into (1) and (2), we can get:
Figure PCTCN2019129078-appb-000006
Figure PCTCN2019129078-appb-000006
y=β*cosθ+B;        (4)y=β*cosθ+B; (4)
将(3)式整理,展开可得:Organize (3) formula and expand it to get:
Figure PCTCN2019129078-appb-000007
Figure PCTCN2019129078-appb-000007
将(4),(5)两式整理转化可得:After finishing and transforming the two formulas (4) and (5), we can get:
β*cosθ=y-B;            (6)β*cosθ=y-B; (6)
Figure PCTCN2019129078-appb-000008
Figure PCTCN2019129078-appb-000008
又知:Also know:
θ=arctan(tanθ)=arctan[(β*sinθ)/(β*cosθ)];        (8)θ=arctan(tanθ)=arctan[(β*sinθ)/(β*cosθ)]; (8)
因此我们只要求出能理想(β*sinθ)的值和理想(β*cosθ)的值,也即只要得出未知量A、B、
Figure PCTCN2019129078-appb-000009
以及
Figure PCTCN2019129078-appb-000010
的值,就能求出的当前理想角度位置值θ,而根据上述步骤中得到的霍尔传感器的两个函数表达式便可得知这几个未知量,从而便可以求解出准确地转轴的旋转角度值θ。
Therefore, we only require the ideal (β*sinθ) value and the ideal (β*cosθ) value, that is, as long as the unknown quantities A, B,
Figure PCTCN2019129078-appb-000009
as well as
Figure PCTCN2019129078-appb-000010
The value of, the current ideal angular position value θ can be obtained, and these unknown quantities can be known according to the two function expressions of the Hall sensor obtained in the above steps, so that the accurate rotation axis can be solved Rotation angle value θ.
本发明提供了一种旋转磁电编码器的校准方法,本发明实施例能够基于采样得到的至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值,拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式,由于该函数表达式表达出了霍尔传感器的两个电压信号值与磁码盘的旋转角度的真实的对应关系,因此相比于预设的理想化的正余弦曲线,根据本申请中拟合出的精确的函数表达式能够更精准地计算转轴的旋转角度,提高了旋转磁电编码器的测量精度。The present invention provides a method for calibrating a rotary magnetoelectric encoder. The embodiment of the present invention can fit the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated for at least one cycle obtained by sampling. The function expression of the corresponding relationship between the two voltage signal values and the rotation angle of the magnetic code disc, because the function expression expresses the true correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc Therefore, compared with the preset idealized sine-cosine curve, the accurate function expression fitted in this application can calculate the rotation angle of the rotating shaft more accurately, which improves the measurement accuracy of the rotary magnetoelectric encoder.
在上述实施例的基础上:On the basis of the above embodiment:
作为一种优选的实施例,根据采样的多个电压信号值、与每个采样的电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式具体为:As a preferred embodiment, according to the sampled multiple voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value, a preset fitting algorithm is used to calculate the two voltage signal values of the Hall sensor and The functional expression of the corresponding relation of the rotation angle of the magnetic code disc is specifically as follows:
根据采样的多个电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;According to the sampled multiple voltage signal values, a preset fitting algorithm is used to fit the function waveform of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc;
利用反三角计算确定出函数波形中零点;Use inverse triangle calculation to determine the zero point in the function waveform;
根据零点以及与每个采样的电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。According to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value, the functional expression of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc is determined.
具体的,根据采样的多个电压信号值(无需与其对应的同一时刻的转轴的精确旋转角度值)便可以拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形,但是此时无法知道函数波形横坐标的零点,理论上来说横坐标零点的位置应当在在曲线波形的y值最大点的 横坐标,但是我们不能使用直接读取的电压信号值的最大值点的横坐标作为横坐标零点,这是由于即使我们采样了足够数量的电压信号值的数据点,在概率上其中的y值最大点也只能无限接近最大值点,无法精确到达最大值点,还有就是磁电编码器的一致性较差,所以采样得到电压信号值中y值的最大值点极大概率也不是我们拟合后的函数表达式中的最大值点。所以这里我们使用直接计算的方式,利用反三角计算直接计算出拟合的函数波形的最大值点的角度值,以此确定出函数波形的零点,然后便可以得到函数波形以及函数波形中每个电压信号值对应的精确旋转角度值。Specifically, the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc can be fitted according to the sampled multiple voltage signal values (without corresponding to the exact rotation angle value of the shaft at the same time) The function waveform of the function waveform, but the zero point of the abscissa of the function waveform cannot be known at this time. Theoretically, the position of the abscissa zero point should be at the abscissa of the maximum y value of the curve waveform, but we cannot use the directly read voltage signal value The abscissa of the maximum point is used as the abscissa zero point. This is because even if we sample a sufficient number of data points of the voltage signal value, the maximum y value can only be infinitely close to the maximum point in terms of probability, and cannot reach the maximum accurately. The value point, and the consistency of the magnetic encoder is poor, so the maximum probability of the maximum point of the y value in the voltage signal value obtained by sampling is not the maximum point in the function expression after our fitting. So here we use the direct calculation method to directly calculate the angle value of the maximum point of the fitted function waveform by using inverse trigonometric calculation to determine the zero point of the function waveform, and then we can get the function waveform and each of the function waveforms. The precise rotation angle value corresponding to the voltage signal value.
作为一种优选的实施例,获取待校准编码器所在转轴的与每个采样的电压信号值对应的精确旋转角度值具体为:As a preferred embodiment, obtaining the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located is specifically:
获取在转轴转动的过程中,通过精准编码器同步测量出的转轴的旋转角度;Obtain the rotation angle of the rotation shaft measured synchronously by the precision encoder during the rotation of the rotation shaft;
其中,精准编码器的精度为待校准编码器精度的预设倍数。Among them, the precision of the precision encoder is a preset multiple of the precision of the encoder to be calibrated.
具体的,预设倍数可以进行自主设定,例如可以为10倍等,本发明实施例在此不做限定。Specifically, the preset multiple can be independently set, for example, it can be 10 times, etc., which is not limited in the embodiment of the present invention.
具体的,我们需要一台高精度测量设备作为横坐标θ值的参考,认为它为理想角度位置。首先是采集数据,我们在采集磁电编码器霍尔传感器对应的双通道ADC(模数转换器)的数据时,适当使用单点触发,双通道同时采样的方式,并且与此同时我们需要同步采样高精度测量设备的角度值。我们需要保证的是双通道ADC和高精度设备角度同步采样,这样可以尽量减少相位误差的产生。采集到的数据点应当保证至少分布在一个完整周期上,应当在横坐标θ值上分布适当均匀,数量足够多。只有这样我们才能保证拟合出的函数波形尽可能的接近理想曲线波形。Specifically, we need a high-precision measuring device as a reference for the abscissa θ value, and consider it as an ideal angular position. The first is to collect data. When we collect the data of the dual-channel ADC (Analog-to-Digital Converter) corresponding to the magnetic encoder Hall sensor, we appropriately use single-point trigger and dual-channel simultaneous sampling, and at the same time we need to synchronize Sampling the angle value of high-precision measuring equipment. What we need to ensure is the dual-channel ADC and high-precision device angle synchronous sampling, so that the phase error can be minimized. The collected data points should be distributed in at least one complete cycle, and they should be properly and evenly distributed on the abscissa θ, and the number should be sufficient. Only in this way can we ensure that the fitted function waveform is as close as possible to the ideal curve waveform.
具体的,精准编码器具有精度高以及使用方便等优点。Specifically, the precision encoder has the advantages of high precision and convenient use.
当然,除了精准编码器外,还可以采用其他方法以及设备来测量转轴的精确旋转角度值,本发明实施例在此不做限定。Of course, in addition to the precision encoder, other methods and devices may also be used to measure the precise rotation angle value of the rotating shaft, which is not limited in the embodiment of the present invention.
作为一种优选的实施例,预设拟合算法为傅里叶级数插值拟合法。As a preferred embodiment, the preset fitting algorithm is a Fourier series interpolation fitting method.
具体的,由于上述的波形曲线x和波形曲线y的函数表达式格式和傅里叶级数一阶展开式(f(x)=a0+a1*cos(x*ω)+a2*(x*ω))完全相同,所以 这里我们可以使用傅里叶级数插值拟合法对波形曲线x和波形曲线y的函数表达式进行拟合计算从而算出这两条曲线的函数表达式,具有快捷且准确度高的优点。Specifically, due to the above-mentioned function expression format of the waveform curve x and the waveform curve y and the first-order expansion of the Fourier series (f(x)=a0+a1*cos(x*ω)+a2*(x* ω)) are exactly the same, so here we can use the Fourier series interpolation fitting method to fit the function expressions of the waveform curve x and the waveform curve y to calculate the function expressions of the two curves, which is fast and accurate The advantages of high degrees.
当然,除了傅里叶级数插值拟合法外,预设拟合算法还可以为其他多种类型,本发明实施例在此不做限定。Of course, in addition to the Fourier series interpolation fitting method, the preset fitting algorithm may also be of other types, which is not limited in the embodiment of the present invention.
作为一种优选的实施例,采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值具体为:As a preferred embodiment, the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated sampling at least one cycle are specifically:
以预设采样频率采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated at a preset sampling frequency;
其中,预设采样频率大于待校准编码器的分辨率的1/16。Among them, the preset sampling frequency is greater than 1/16 of the resolution of the encoder to be calibrated.
具体的,为了使得拟合出的波形曲线具有合格的准确度,因此可以将采样频率设置为大于待校准编码器的分辨率的1/16的值,此种情况下采样出的数据点的数量足够模拟出准确的波形曲线,且采样的数据点越多,也即采样频率越高时模拟出的波形曲线越准确。Specifically, in order to make the fitted waveform curve have qualified accuracy, the sampling frequency can be set to a value greater than 1/16 of the resolution of the encoder to be calibrated. In this case, the number of data points sampled It is sufficient to simulate an accurate waveform curve, and the more data points are sampled, that is, the higher the sampling frequency, the more accurate the simulated waveform curve.
作为一种优选的实施例,根据函数表达式以及待校准编码器中霍尔传感器输出的两个电压信号值,计算待校准编码器所在转轴的旋转角度之后,该旋转磁电编码器的校准方法还包括:As a preferred embodiment, according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated, after calculating the rotation angle of the shaft where the encoder to be calibrated is located, the calibration method of the rotary magnetoelectric encoder Also includes:
在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。After the preset period, return to the step of sampling at least one period of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated.
具体的,考虑到随着待校准编码器使用时间的增长,上次模拟出的波形曲线的函数表达式会变得与实际偏差较大,因此本发明实施例中可以在预设周期之后重新返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤,以便重新确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式,实现了每个预设周期自动校准待校准编码器。Specifically, considering that as the use time of the encoder to be calibrated increases, the function expression of the waveform curve simulated last time will deviate greatly from the actual one. Therefore, in the embodiment of the present invention, it can be returned after a preset period. The step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated, so as to re-determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc , It realizes the automatic calibration of the encoder to be calibrated every preset period.
其中,预设周期可以根据实际情况自主设定,例如可以设置为1个月等,本发明实施例在此不做限定。Wherein, the preset period can be independently set according to actual conditions, for example, can be set to 1 month, etc., which is not limited in the embodiment of the present invention.
请参考图2,图2为本发明提供的一种旋转磁电编码器的校准装置的结构示意图,包括:Please refer to Figure 2. Figure 2 is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention, including:
采样模块1,用于采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值; Sampling module 1, for sampling at least one cycle of two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
获取模块2,用于获取待校准编码器所在转轴的与每个采样的电压信号值对应的精确旋转角度值;The acquiring module 2 is used to acquire the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
第一计算模块3,用于根据采样的多个电压信号值、与每个采样的电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;The first calculation module 3 is used to calculate the two voltage signal values of the Hall sensor and the exact rotation angle value corresponding to each sampled voltage signal value by using a preset fitting algorithm according to the sampled multiple voltage signal values The functional expression of the corresponding relation of the rotation angle of the magnetic code disc;
第二计算模块4,用于根据函数表达式以及待校准编码器中霍尔传感器输出的两个电压信号值,计算待校准编码器所在转轴的旋转角度。The second calculation module 4 is used to calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
作为一种优选的实施例,第一计算模块包括:As a preferred embodiment, the first calculation module includes:
拟合模块,用于根据采样的多个电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;The fitting module is used to fit the function waveform of the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc by using a preset fitting algorithm according to the sampled multiple voltage signal values;
第三计算模块,用于利用反三角计算确定出函数波形中零点;The third calculation module is used to determine the zero point in the function waveform by using inverse triangulation calculation;
确定模块,用于根据零点以及与每个采样的电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。The determination module is used to determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc according to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value.
作为一种优选的实施例,该旋转磁电编码器的校准装置还包括:As a preferred embodiment, the calibration device of the rotary magnetic encoder further includes:
返回模块,用于在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。The return module is used to return to the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated after the preset period.
对于本发明实施例提供的旋转磁电编码器的校准装置的介绍请参照前述的旋转磁电编码器的校准方法的实施例,本发明实施例在此不再赘述。For the introduction of the calibration device of the rotary magnetoelectric encoder provided by the embodiment of the present invention, please refer to the foregoing embodiment of the calibration method of the rotary magnetoelectric encoder, and the embodiment of the present invention will not be repeated here.
请参考图3,图3为本发明提供的一种旋转磁电编码器的校准设备的结构示意图,包括:Please refer to FIG. 3, which is a schematic structural diagram of a calibration device for a rotary magnetic encoder provided by the present invention, including:
存储器5,用于存储计算机程序;The memory 5 is used to store computer programs;
处理器6,用于执行计算机程序时实现如上任一项旋转磁电编码器的 校准方法的步骤。The processor 6 is used to implement the steps of any one of the calibration methods of the rotary magnetoelectric encoder when executing the computer program.
对于本发明实施例提供的旋转磁电编码器的校准设备的介绍请参照前述的旋转磁电编码器的校准方法的实施例,本发明实施例在此不再赘述。For the introduction of the calibration equipment of the rotary magnetic encoder provided by the embodiment of the present invention, please refer to the foregoing embodiment of the calibration method of the rotary magnetic encoder, and the embodiment of the present invention will not be repeated here.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其他实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown in this document, but should conform to the widest scope consistent with the principles and novel features disclosed in this document.

Claims (10)

  1. 一种旋转磁电编码器的校准方法,其特征在于,包括:A method for calibrating a rotary magnetoelectric encoder, which is characterized in that it comprises:
    采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
    获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值;Acquiring an accurate rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
    根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;According to the multiple sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value, a preset fitting algorithm is used to calculate the two voltage signal values of the Hall sensor and the value of the magnetic code disc. The functional expression of the corresponding relationship of the rotation angle;
    根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度。According to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated, the rotation angle of the rotating shaft where the encoder to be calibrated is located is calculated.
  2. 根据权利要求1所述的旋转磁电编码器的校准方法,其特征在于,所述根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式具体为:The method for calibrating a rotary magneto-electric encoder according to claim 1, characterized in that, according to the plurality of sampled voltage signal values, the precise rotation angle value corresponding to each sampled voltage signal value, Using the preset fitting algorithm to calculate the corresponding relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc, the specific function expression is:
    根据采样的多个所述电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;According to the plurality of sampled voltage signal values, a preset fitting algorithm is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc;
    利用反三角计算确定出所述函数波形中零点;Using inverse trigonometric calculation to determine the zero point in the function waveform;
    根据所述零点以及与每个采样的所述电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。According to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value, a functional expression of the correspondence relationship between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc is determined.
  3. 根据权利要求2所述的旋转磁电编码器的校准方法,其特征在于,所述获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值具体为:The method for calibrating a rotary magnetic encoder according to claim 2, wherein the obtaining the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located is specifically :
    获取在所述转轴转动的过程中,通过精准编码器同步测量出的所述转轴的旋转角度;Acquiring the rotation angle of the rotation shaft that is synchronously measured by a precision encoder during the rotation of the rotation shaft;
    其中,所述精准编码器的精度为所述待校准编码器精度的预设倍数。Wherein, the accuracy of the precision encoder is a preset multiple of the accuracy of the encoder to be calibrated.
  4. 根据权利要求3所述的旋转磁电编码器的校准方法,其特征在于,所述预设拟合算法为傅里叶级数插值拟合法。The calibration method of a rotary magnetoelectric encoder according to claim 3, wherein the preset fitting algorithm is a Fourier series interpolation fitting method.
  5. 根据权利要求1所述的旋转磁电编码器的校准方法,其特征在于,所述采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值具体为:The method for calibrating a rotary magnetoelectric encoder according to claim 1, wherein the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated sampling at least one cycle are specifically:
    以预设采样频率采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;Sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated at a preset sampling frequency;
    其中,所述预设采样频率大于所述待校准编码器的分辨率的1/16。Wherein, the preset sampling frequency is greater than 1/16 of the resolution of the encoder to be calibrated.
  6. 根据权利要求1至5任一项所述的旋转磁电编码器的校准方法,其特征在于,所述根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度之后,该旋转磁电编码器的校准方法还包括:The method for calibrating a rotary magnetoelectric encoder according to any one of claims 1 to 5, wherein the two voltage signals output by the Hall sensor in the encoder to be calibrated are based on the function expression After calculating the rotation angle of the rotating shaft where the encoder to be calibrated is located, the calibration method of the rotary magnetic encoder further includes:
    在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。After the preset period, return to the step of sampling at least one period of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated.
  7. 一种旋转磁电编码器的校准装置,其特征在于,包括:A calibration device for a rotary magnetoelectric encoder, which is characterized in that it comprises:
    采样模块,用于采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值;The sampling module is used to sample at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated;
    获取模块,用于获取所述待校准编码器所在转轴的与每个采样的所述电压信号值对应的精确旋转角度值;An obtaining module, configured to obtain the precise rotation angle value corresponding to each sampled voltage signal value of the rotating shaft where the encoder to be calibrated is located;
    第一计算模块,用于根据采样的多个所述电压信号值、与每个采样的所述电压信号值对应的精确旋转角度值,采用预设拟合算法计算出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式;The first calculation module is used to calculate the two voltages of the Hall sensor by using a preset fitting algorithm according to the plurality of sampled voltage signal values and the precise rotation angle value corresponding to each sampled voltage signal value The functional expression of the corresponding relationship between the signal value and the rotation angle of the magnetic code disc;
    第二计算模块,用于根据所述函数表达式以及所述待校准编码器中霍尔传感器输出的两个电压信号值,计算所述待校准编码器所在转轴的旋转角度。The second calculation module is configured to calculate the rotation angle of the rotating shaft where the encoder to be calibrated is located according to the function expression and the two voltage signal values output by the Hall sensor in the encoder to be calibrated.
  8. 根据权利要求7所述的旋转磁电编码器的校准装置,其特征在于,所述第一计算模块包括:The calibration device for a rotary magnetic encoder according to claim 7, wherein the first calculation module comprises:
    拟合模块,用于根据采样的多个所述电压信号值,采用预设拟合算法拟合出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数波形;The fitting module is used to fit the function waveform of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disc by using a preset fitting algorithm according to the sampled multiple voltage signal values;
    第三计算模块,用于利用反三角计算确定出所述函数波形中零点;The third calculation module is used to determine the zero point in the function waveform by using inverse triangulation calculation;
    确定模块,用于根据所述零点以及与每个采样的所述电压信号值对应的精确旋转角度值确定出霍尔传感器的两个电压信号值与磁码盘的旋转角度的对应关系的函数表达式。The determination module is used to determine the function expression of the correspondence between the two voltage signal values of the Hall sensor and the rotation angle of the magnetic code disk according to the zero point and the precise rotation angle value corresponding to each sampled voltage signal value formula.
  9. 根据权利要求7或8所述的旋转磁电编码器的校准装置,其特征在于,该旋转磁电编码器的校准装置还包括:The calibration device of a rotary magnetic-electric encoder according to claim 7 or 8, wherein the calibration device of the rotary magnetic-electric encoder further comprises:
    返回模块,用于在预设周期之后,返回采样至少一个周期的待校准编码器中霍尔传感器输出的两组电压信号值的步骤。The return module is used to return to the step of sampling at least one cycle of the two sets of voltage signal values output by the Hall sensor in the encoder to be calibrated after the preset period.
  10. 一种旋转磁电编码器的校准设备,其特征在于,包括:A calibration equipment for a rotary magnetoelectric encoder, which is characterized in that it comprises:
    存储器,用于存储计算机程序;Memory, used to store computer programs;
    处理器,用于执行所述计算机程序时实现如权利要求1至6任一项所述旋转磁电编码器的校准方法的步骤。The processor is configured to implement the steps of the method for calibrating the rotary magnetoelectric encoder according to any one of claims 1 to 6 when the computer program is executed.
PCT/CN2019/129078 2019-12-13 2019-12-27 Calibration method, apparatus and device for rotary magnetoelectric encoder WO2021114419A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911283773.4A CN110940371B (en) 2019-12-13 2019-12-13 Calibration method, device and equipment of rotary magnetoelectric encoder
CN201911283773.4 2019-12-13

Publications (1)

Publication Number Publication Date
WO2021114419A1 true WO2021114419A1 (en) 2021-06-17

Family

ID=69910799

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129078 WO2021114419A1 (en) 2019-12-13 2019-12-27 Calibration method, apparatus and device for rotary magnetoelectric encoder

Country Status (2)

Country Link
CN (1) CN110940371B (en)
WO (1) WO2021114419A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113758513B (en) * 2020-06-04 2022-11-04 杭州海康威视数字技术股份有限公司 Method for detecting precision of magnetic encoder in equipment and electronic equipment
CN113050699B (en) * 2020-08-30 2024-01-12 惠州华阳通用电子有限公司 Control method and device based on magnetic encoder
CN112039373A (en) * 2020-09-03 2020-12-04 苏州臻迪智能科技有限公司 Rotor angle detection method and device based on linear Hall system
CN112152542B (en) * 2020-09-24 2022-04-19 深圳市兆威机电股份有限公司 Hall signal processing method and device, motor controller and storage medium
CN112304210B (en) * 2020-11-10 2023-03-21 陕西宏星电器有限责任公司 Hall angle sensor angle calibration method
CN114593754B (en) * 2020-12-04 2024-01-19 小华半导体有限公司 Data analysis/correction/method and system, storage medium and magnetic encoder
CN114665749A (en) * 2020-12-08 2022-06-24 山东新松工业软件研究院股份有限公司 Motor high-precision subdivision control method and system, terminal equipment and storage medium
CN112964164A (en) * 2021-03-02 2021-06-15 Oppo广东移动通信有限公司 Calibration method, calibration device, computer-readable storage medium and electronic equipment
CN113029222A (en) * 2021-03-08 2021-06-25 深圳市昂霸科技有限公司 Calibration method and device for magnetic encoder and magnetic encoder
CN114383495B (en) * 2021-11-15 2023-11-03 北京诺多科技发展有限公司 double-Hall yaw angle measurement method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011022103A (en) * 2009-07-21 2011-02-03 Meidensha Corp Method of correcting detection angle error in resolver, r/d converter for performing the method of correcting detection angle error in resolver, and cpu including r/d conversion section for performing the method of correcting detection angle error in resolver
CN103837169A (en) * 2014-02-28 2014-06-04 哈尔滨工业大学 Self-correcting device and method for magneto-electricity encoder and magneto-electricity encoder
KR20160071067A (en) * 2014-12-11 2016-06-21 현대자동차주식회사 Offset correction method of the inverter hall sensors for air blower of fuel cell vehicle
CN107449460A (en) * 2017-07-07 2017-12-08 银弗(北京)科技有限公司 A kind of compensation method of rotary encoder and compensation system
CN107655511A (en) * 2017-11-03 2018-02-02 常州寻心电子科技有限公司 A kind of magnetic encoder calibrating installation and method
CN109163752A (en) * 2018-09-18 2019-01-08 张明辉 The first value-based algorithm of least square method curve matching correction magnetic coder
CN109708681A (en) * 2019-02-19 2019-05-03 深圳市盛泰奇科技有限公司 Encoder calibration method and device
WO2019142875A1 (en) * 2018-01-19 2019-07-25 日本精工株式会社 Electric power steering device and rotation angle detection method

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01233318A (en) * 1988-03-15 1989-09-19 Matsushita Electric Ind Co Ltd Position detector
GB2243211A (en) * 1990-04-20 1991-10-23 Philips Electronic Associated Analytical instrument and method of calibrating an analytical instrument
JP2000314638A (en) * 1999-04-28 2000-11-14 Asahi Optical Co Ltd Encoder
JP2006250604A (en) * 2005-03-09 2006-09-21 Tdk Corp Magnetic encoder and signal processing circuit for magnetic encoder
JP4824635B2 (en) * 2007-06-15 2011-11-30 株式会社 ソキア・トプコン Angle correction method for rotary encoder
CN101726320B (en) * 2009-10-30 2012-11-21 大连光洋科技工程有限公司 Precision compensation system of sine-cosine output type encoder
EP2920554B1 (en) * 2012-11-14 2018-11-07 Baumüller Nürnberg GmbH Method for calibrating a rotary encoder
CN103954316B (en) * 2014-04-30 2016-04-13 湖南大学 A kind of scaling method of angular encoder and device
CN204255287U (en) * 2014-12-02 2015-04-08 厦门市计量检定测试院 Magnetic angular transducer calibration and calibrating installation
DE102016101965A1 (en) * 2016-02-04 2017-08-10 Fraba B.V. Method for calibrating a rotary encoder and rotary encoder for determining a corrected angular position
GB2552385B (en) * 2016-07-22 2021-09-15 Cmr Surgical Ltd Calibrating position sensor readings
CN106679710B (en) * 2017-02-08 2020-03-10 亿航智能设备(广州)有限公司 Magnetic encoder calibration method and system
CN107607037B (en) * 2017-09-18 2020-05-19 哈尔滨理工大学 Magnetoelectric encoder calibration method based on arc tangent trans-interval tabulation method
CN107843227B (en) * 2017-12-09 2020-04-10 连云港杰瑞电子有限公司 Method for improving precision of encoder based on calibration technology
CN109000702A (en) * 2018-05-16 2018-12-14 苏州汇川技术有限公司 Encoder corrects system and method
CN208635828U (en) * 2018-07-18 2019-03-22 南通市计量检定测试所(江苏省南通质量技术监督眼镜产品质量检验站、江苏省南通质量技术监督金银珠宝饰品产品质量检验站、江苏省大容量南通计量站、南通市大流量计量中心) A kind of coder calibrating device
CN209310837U (en) * 2019-02-19 2019-08-27 深圳市盛泰奇科技有限公司 Coder calibrating device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011022103A (en) * 2009-07-21 2011-02-03 Meidensha Corp Method of correcting detection angle error in resolver, r/d converter for performing the method of correcting detection angle error in resolver, and cpu including r/d conversion section for performing the method of correcting detection angle error in resolver
CN103837169A (en) * 2014-02-28 2014-06-04 哈尔滨工业大学 Self-correcting device and method for magneto-electricity encoder and magneto-electricity encoder
KR20160071067A (en) * 2014-12-11 2016-06-21 현대자동차주식회사 Offset correction method of the inverter hall sensors for air blower of fuel cell vehicle
CN107449460A (en) * 2017-07-07 2017-12-08 银弗(北京)科技有限公司 A kind of compensation method of rotary encoder and compensation system
CN107655511A (en) * 2017-11-03 2018-02-02 常州寻心电子科技有限公司 A kind of magnetic encoder calibrating installation and method
WO2019142875A1 (en) * 2018-01-19 2019-07-25 日本精工株式会社 Electric power steering device and rotation angle detection method
CN109163752A (en) * 2018-09-18 2019-01-08 张明辉 The first value-based algorithm of least square method curve matching correction magnetic coder
CN109708681A (en) * 2019-02-19 2019-05-03 深圳市盛泰奇科技有限公司 Encoder calibration method and device

Also Published As

Publication number Publication date
CN110940371B (en) 2020-08-21
CN110940371A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
WO2021114419A1 (en) Calibration method, apparatus and device for rotary magnetoelectric encoder
CN110793430B (en) Absolute electrical angle detection method, system and computer readable storage medium
CN101672665B (en) Encoder output signal correction apparatus and method
AU2006336718B2 (en) Rotary encoder
CN109945819B (en) Method for measuring position of rotor of permanent magnet synchronous motor
CN108155910B (en) High-speed sine and cosine encoder decoding method based on FPGA
TW201632837A (en) Correction table creation device, encoder and correction table creation method
WO2021017075A1 (en) Position determination method, apparatus and device for hybrid encoder, and readable storage medium
Just et al. Comparison of angle standards with the aid of a high-resolution angle encoder
CN102597707A (en) Angle detector with combined self calibration function
CN206773000U (en) Twin shaft speed position turntable angular speed calibrating installation
CN103217139A (en) Dual probe-based angular displacement transducer on-line self-calibration method
JP2014025871A (en) Encoder output signal correction apparatus
CN1884979A (en) Motion parameter measurer
CN114636387B (en) Circular grating encoder double-reading-head asymmetric installation eccentric error compensation method
JPH0643892B2 (en) Correcting device for angle measurement error
CN108827190B (en) High-precision angle measurement error detection device based on double autocollimators and detection method thereof
WO2021017074A1 (en) Optical-magnetic hybrid encoder system
JP2839340B2 (en) Calibration device for position signal
CN110375788B (en) Four-way orthogonal differential signal demodulation instrument calibration method and system
CN107036627B (en) Ground speed projection component error self-calibration method of annular laser angle measuring device
Ye et al. Development of a digital interpolation module for high-resolution sinusoidal encoders
JP2839341B2 (en) Calibration device for position signal
JP2009288241A6 (en) Method for determining a time difference between a first event and a second event
RU200017U1 (en) HIGH PRECISION SPINDLE ASSEMBLY FOR ANGULAR COMPARATOR

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19956074

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19956074

Country of ref document: EP

Kind code of ref document: A1