Encoder calibration method and device

Through alternating sampling and polynomial fitting calibration, the problem of reduced accuracy of the magnetic encoder caused by nonlinear errors is solved, and the accuracy and stability of the output angle are improved.

CN109708681BActive Publication Date: 2024-09-03深圳市盛泰奇科技有限公司
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN201910123023.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-02-19
Publication Date
2024-09-03
Estimated Expiration
2039-02-19

AI Technical Summary

Technical Problem

Magnetic encoders suffer from reduced accuracy when providing position, mainly due to nonlinear errors caused by inconsistent magnetic materials, installation deviations, temperature drift, and differences in magnetic components.

Method used

By alternately sampling the original signal SIN and COS values, and performing polynomial fitting to obtain the calibration parameters, segmented correction is performed after calibration to ensure the accuracy of the output angle.

Benefits of technology

The output angle accuracy of the encoder is improved, the position error and harmonic content are reduced, and the stability of the position accuracy is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109708681B
    Figure CN109708681B
Patent Text Reader

Abstract

The invention discloses an encoder calibration method and device, including driving a high-precision encoder drive motor to rotate, and triggering an encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect original analog signals in the sampling order of SIN, COS, COS, and SIN; triggering the encoder to use the average value of the original analog signal SIN values ​​sampled twice as the sampling point SIN value; triggering the encoder to use the average value of the original analog signal COS values ​​sampled twice as the sampling point COS value; triggering the encoder to use the sampling point SIN value and the sampling point COS value as input to resolve the angle value. By alternately sampling and performing average processing on several samples, the position jump of the encoder caused by the original signal amplitude jump can be reduced. The original signal of the encoder is calibrated by fitting a polynomial and generating calibration parameters. After the output angle is corrected by the encoder nonlinear error curve and compensation, the accuracy of the output angle of the encoder is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motor technology, and in particular to an encoder calibration method and device. Background Art

[0002] In motion-control applications, rotary encoders are critical to system control. Their task is to indicate the position of the motor shaft to the system controller, which can use the position information to accurately and efficiently turn the motor windings and determine speed and direction. Encoders can be based on a variety of technologies, but whether based on optical or magnetic technology, they all involve calibration of the original signal and compensation technology for position errors.

[0003] Magnetic encoders have obvious advantages such as simple production equipment and suitability for working in environments with impact, dust, and oil. However, they also have nonlinear errors caused by inconsistent magnetic materials, installation deviations, temperature drift, differences in magnetic components, etc., which reduce the accuracy of magnetic encoders when providing position.

[0004] The absolute rotary magnetic encoder is a non-contact position sensor that can provide 0-360° position feedback. The encoder magnetic steel sheet is a magnetic sheet with a pair of south and north pole magnetic fields. It is relatively stationary with the motor shaft. When the motor shaft rotates, the magnetic resistance sensor installed on the encoder circuit board will generate a pair of sine and cosine signals with a phase difference of 90°. The signals are sampled to the digital signal processing unit through the ADC module of the microcontroller on the magnetic encoder circuit board, and complex digital signal processing is performed to calculate the 0-360° angular position. Then it is output through the synchronous serial communication interface (SSC Interface) or the incremental interface (Incremental IF), as shown in the schematic diagram. Figure 1 As shown, the accuracy calibration of the magnetic encoder is performed in the signal processing part. Summary of the invention

[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to provide an encoder calibration method and device.

[0006] On the one hand, to achieve the above object, according to an encoder calibration method according to an embodiment of the present invention, the encoder calibration method includes:

[0007] Drive the high-precision encoder drive motor to rotate, and trigger the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect the original analog signal in the sampling order of SIN, COS, COS, SIN;

[0008] The trigger encoder takes the average of the SIN values ​​of the original analog signal sampled twice as the SIN value of the sampling point;

[0009] The trigger encoder takes the average value of the COS value of the original analog signal sampled twice as the COS value of the sampling point;

[0010] The encoder is triggered to calculate the angle value using the sampling point SIN value and the sampling point COS value as input.

[0011] Further, according to an example of the present invention, before calculating the encoder angle value by using the sampling point SIN value and the sampling point COS value, the following steps are also included:

[0012] Receive the SIN value and COS value of each sampling point, as well as the reference value of the high-precision encoder driving the motor;

[0013] A polynomial fitting is performed using the reference value of the high-precision encoder driving the motor, as well as the SIN value and COS value of each sampling point to obtain calibration parameters of the original signal;

[0014] The calibration parameters are transmitted to the encoder for storage, so as to calibrate the SIN value and COS value of each sampling point.

[0015] Further, according to an example of the present invention, after transmitting the calibration parameters to the encoder for storage, the method further includes the following steps:

[0016] Drive the high-precision encoder drive motor to rotate, and trigger the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect the calibrated analog signal in the sampling order of SIN, COS, COS, SIN;

[0017] Receive and calculate the calibrated SIN value and COS value of each sampling point, and receive the reference value of the high-precision encoder drive motor;

[0018] Through the reference value of the high-precision encoder driving the motor, determine whether the SIN value and COS value analog signal errors are within the set range. If the calibrated SIN value and COS value analog signal errors are within the set range, end this step; otherwise, continue to drive the high-precision encoder to drive the motor to rotate, and trigger the encoder analog-to-digital conversion module to collect the original analog signal in the sampling order of SIN, COS, COS, and SIN.

[0019] Further, according to an example of the present invention, the calibration parameters include: zero point deviation, amplitude proportionality coefficient and phase deviation.

[0020] Further, according to an example of the present invention, after determining whether the SIN value and COS value analog signal errors are within a set range, the method further includes the following steps:

[0021] Drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve the angle value;

[0022] Receiving the angle value output by the encoder in one mechanical cycle and the reference value of the high-precision encoder driving the motor;

[0023] Obtaining the error curve and segmented correction parameters of the encoder through the angle value and the reference value of the high-precision encoder driving motor;

[0024] The error curve and the segmented correction parameters are transmitted to the encoder for storage to correct the output angle value.

[0025] Further, according to an example of the present invention, after transmitting the segment correction parameters to the encoder for storage, the method further includes the following steps:

[0026] Drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve and output the corrected angle value;

[0027] Receive the calibrated angle value of a mechanical encoder and the reference value of the high-precision encoder drive motor;

[0028] The reference value of the high-precision encoder driving the motor is used to determine whether the encoder angle value error accuracy is within the set range. If the angle value error accuracy is within the set range, end this step; otherwise, continue to drive the high-precision encoder to drive the motor to rotate, and trigger the encoder to resolve the angle value.

[0029] On the other hand, the present invention also provides an encoder calibration device, comprising:

[0030] Drive motor with high-precision encoder;

[0031] A motor to be calibrated, wherein the rotating shaft of the motor to be calibrated is rotationally connected to the driving motor with a high-precision encoder, the motor to be calibrated is provided with a magnetic encoder to be calibrated, and the driving motor with a high-precision encoder is used to drive the rotating shaft of the motor to be calibrated to rotate synchronously;

[0032] An industrial computer is respectively connected to the motor driving the high-precision encoder and is used to receive a reference value output by the motor driving the high-precision encoder and a calibrated value of the motor to be calibrated, and calibrate the output angle of the magnetic encoder to be calibrated through the reference value and the calibrated value.

[0033] Furthermore, according to an example of the present invention, it also includes: a driver, which is respectively connected to the industrial computer and the motor drive with a high-precision encoder, and is used to receive the output drive instruction of the industrial computer and drive the motor drive with a high-precision encoder to rotate.

[0034] Furthermore, according to an example of the present invention, it also includes: an interface conversion circuit, which is respectively connected to the industrial computer and the motor to be calibrated, and is used to convert interface signals between the industrial computer and the motor to be calibrated.

[0035] Furthermore, according to an example of the present invention, it also includes: a coupling, through which the rotating shaft of the motor to be calibrated is connected to the rotating shaft of the motor with a high-precision encoder drive motor to drive the rotating shaft of the motor to be calibrated to rotate synchronously.

[0036] Furthermore, according to an example of the present invention, it also includes: a connection panel, wherein the connection panel is used to install the coupling body to the drive motor with a high-precision encoder.

[0037] Furthermore, according to an example of the present invention, it also includes: a motor support frame, wherein the motor support frame is used to install and fix the motor to be calibrated.

[0038] Furthermore, according to an example of the present invention, it also includes: a motor positioning pin, and the motor to be tested is installed on the motor support frame through the motor positioning pin.

[0039] Furthermore, according to an example of the present invention, it also includes:

[0040] A first motor support plate, the first motor support plate is connected to the motor to be calibrated and is used to provide support for the motor to be calibrated;

[0041] A second motor support plate, the second motor support plate is connected to the driving motor with a high-precision encoder, and is used to provide support through the driving motor with a high-precision encoder;

[0042] A first motor support bar is disposed between the first motor support plate and the second motor support plate.

[0043] In the encoder calibration method and device provided by the embodiment of the present invention, the problem that the harmonic content of the encoder position error increases due to the asynchronous sampling of the original signal SIN and COS, and thus the encoder position accuracy decreases, can be solved by alternate sampling. At the same time, the average value processing of several samples can reduce the position jump caused by the original signal amplitude jump at the same position point.

[0044] The original non-ideal sinusoidal signal can be shaped into a nearly ideal sinusoidal signal through polynomial fitting, and calibration parameters are generated to calibrate the original signal of the encoder.

[0045] After the output angle is corrected through the encoder's nonlinear error curve and compensation, the accuracy of the encoder's output angle is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of the connection structure between the magnetic encoder provided by an embodiment of the present invention and the calibration equipment and system controller;

[0047] Figure 2 A schematic diagram of the SIN and COS signals and the corresponding output angles provided in an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of the calibration platform structure provided by an embodiment of the present invention;

[0049] Figure 4 A schematic diagram of the structure of a driving motor with a high-precision encoder, a motor to be tested and an encoder provided in an embodiment of the present invention;

[0050] Figure 5 A schematic diagram of the decomposed structure of a driving motor with a high-precision encoder, a motor to be tested, and an encoder provided in an embodiment of the present invention;

[0051] Figure 6 A flow chart of an encoder calibration method provided by an embodiment of the present invention;

[0052] Figure 7 A flow chart of another encoder calibration method provided by an embodiment of the present invention;

[0053] Figure 8 A flow chart of another encoder calibration method provided by an embodiment of the present invention;

[0054] Fig. 9 A schematic diagram of a single sampling of an original encoder signal provided in the prior art;

[0055] Fig.10 A schematic diagram of alternate sampling of the original signal of the encoder provided by an embodiment of the present invention;

[0056] Fig.11 A schematic diagram of the original signal before and after fitting provided by an embodiment of the present invention;

[0057] Fig.12 A schematic diagram of an encoder output angle oblique line provided in an embodiment of the present invention;

[0058] Fig.13 A schematic diagram of an uncorrected error in encoder output angle provided by an embodiment of the present invention;

[0059] Fig.14 A schematic diagram of the error of the encoder output angle after correction provided by an embodiment of the present invention.

[0060] Reference numerals:

[0061] A motor 10 driven by a high-precision encoder;

[0062] The motor to be calibrated 20;

[0063] A magnetic encoder to be calibrated 30;

[0064] Industrial computer 40;

[0065] Driver 50;

[0066] Interface conversion circuit 60;

[0067] Axle coupling 70;

[0068] A connection panel 80;

[0069] Motor support frame 90;

[0070] Motor positioning pin 11;

[0071] A first motor support plate 12;

[0072] A second motor support plate 13;

[0073] The first motor support bar 14 .

[0074] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0075] In order to make those skilled in the art better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0076] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0077] On the one hand, see Figures 1 to 10 An embodiment of the present invention provides an encoder calibration method, comprising the steps of:

[0078] S101, drives the high-precision encoder to drive the motor to rotate, and triggers the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder to collect the original analog signal in the sampling order of SIN, COS, COS, SIN; refer to Fig. 9 1. For low-cost magnetic encoders, if a single-sampling, single-hold ADC configuration processing chip is used, there is a problem of asynchronous acquisition of the two phases of the original signal. That is, if the SIN signal is sampled first and then the COS signal, and the sampling and holding time requires nμs, the COS signal will lag behind the SIN signal by nμs. Due to the asynchronous sampling of SIN and COS, the output angle of the encoder will be wrong. Fig.10 In an embodiment of the present invention, by alternately sampling the SIN and COS signals, in one example of the present invention, the four signals SIN, COS, COS, and SIN are sampled sequentially.

[0079] S102, trigger the encoder to use the average value of the SIN value of the original analog signal sampled twice as the SIN value of the sampling point; trigger the encoder to use the average value of the COS value of the original analog signal sampled twice as the COS value of the sampling point; perform average processing on several samples, and use the average value of the samples as the value of the sampling point.

[0080] S103, triggering the encoder to calculate the angle value with the SIN value and COS value of the sampling point as input. Alternating sampling can solve the problem that the original signal SIN and COS sampling are not synchronized, which causes the increase of the harmonic content of the encoder position error and the decrease of the encoder position accuracy. At the same time, averaging several samples can reduce the position jump caused by the original signal amplitude jump at the same position point.

[0081] See also Figure 7 , before calculating the encoder angle value by using the sampling point SIN value and the sampling point COS value, the method further includes the following steps:

[0082] S202, receiving the SIN value and COS value of each sampling point, and receiving the reference value of the high-precision encoder driving the motor; see Figure 3 In this step, the high-precision encoder drive motor is driven to rotate, and the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor is triggered to collect the original analog signals of multiple sampling points in the sampling order of SIN, COS, COS, and SIN; and the SIN value and COS value of each sampling point are received. At the same time, the reference value of the high-precision encoder drive motor is received as a calibration reference value.

[0083] S203, polynomial fitting is performed through the reference value of the high-precision encoder driving the motor, as well as the SIN value and COS value of each sampling point, to obtain the calibration parameters of the original signal; in practical applications, even if the synchronous sampling of the SIN COS signals can be achieved, due to differences in components and installation deviations, the collected original signal will be a non-ideal signal, that is, there will be a zero point deviation (DC Offset), unequal SIN COS amplitudes, and a SIN COS phase difference of not strictly 90°. Fig.11 , considering that the original signal SIN,COS is a non-ideal signal, it is necessary to perform a polynomial fitting calibration (signal shaping) on ​​the sampled signal through the reference value of the high-precision encoder driving the motor, thereby greatly reducing the signal error. Reduce the resources occupied by subsequent solution and correction. Fig.11 As shown in , the signal after fitting calibration is closer to the ideal signal ( Fig.11 The solid line in the figure is the original signal, and the dotted line is the signal after fitting calibration). The calibration parameters of the original signal are obtained after fitting calibration; further, in an example of the present invention, the calibration parameters include: zero point deviation, amplitude proportionality coefficient and phase deviation.

[0084] S204: Transmit the calibration parameters to the encoder for storage, so as to calibrate the SIN value and COS value of each sampling point. By transmitting the calibration parameters to the encoder for storage, when the encoder performs a solution operation through the SIN value and COS value of the sampling point, the calibration parameters can be used to calibrate the SIN value and COS value of the sampling point, so as to improve the angle accuracy.

[0085] See also Figure 7 , after transmitting the calibration parameters to the encoder for storage, the method further comprises the steps of:

[0086] S205, drive the high-precision encoder drive motor to rotate, and trigger the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect the calibrated analog signal in the sampling order of SIN, COS, COS, SIN; in this step, the calibration result is verified by collecting the calibrated analog signal. This step is similar to step S202.

[0087] S206, receiving and calculating the calibrated SIN value and COS value of each sampling point, and receiving a reference value of the high-precision encoder driving the motor;

[0088] S207, through the reference value of the high-precision encoder driving the motor, determine whether the calibrated SIN value and COS value analog signal errors are within the set range. If the calibrated SIN value and COS value analog signal errors are within the set range, then end this step; otherwise, continue to drive the high-precision encoder to drive the motor to rotate, and trigger the encoder analog-to-digital conversion module to collect the original analog signal in the sampling order of SIN, COS, COS, SIN. By comparing with the reference value of the high-precision encoder driving the motor, determine whether the calibrated SIN value and COS value analog signal errors are within the set range. If they are within the set range, it means that after calibration, the SIN value and COS value analog signal meet the accuracy requirements; otherwise, the accuracy requirements are not met, and the calibration parameter fitting process needs to be re-performed.

[0089] See also Figure 8 After determining whether the SIN value and COS value analog signal errors are within a set range, the method further includes the following steps:

[0090] S308, drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve the angle value; during the use of the encoder, nonlinear errors caused by other factors may reduce the accuracy of the system's angle resolution, so that the signal after the angle resolution still has a nonlinear error of <±1°. In this step, the high-precision encoder drive motor is driven to rotate to trigger the encoder to resolve and output the angle value.

[0091] S309, receiving the angle value output by the encoder in one mechanical cycle and the reference value of the high-precision encoder driving motor;

[0092] S310, obtain the error curve and segmented correction parameters of the encoder through the angle value and the reference value of the high-precision encoder drive motor; in order to improve the accuracy. It is necessary to compare the magnetic encoder output position angle value with the reference value and perform segmented correction on the error to meet the design requirements. For example, 0 to 360° is evenly divided into n equal parts, and the encoder output value and the reference position signal 23-bit photoelectric encoder are sampled at n points respectively, and the difference is recorded as the Error array. When the magnetic encoder output is required, the output value of the angle solution is used to look up the Error array, and a linear interpolation operation is performed and output. In the example of the present invention, the segmented correction can use cubic spline interpolation. Cubic spline interpolation is a smooth curve through a series of shape value points. Mathematically, the curve function group is obtained by solving the three-moment equation group. Cubic spline curve interpolation is essentially a segmented cubic curve fitting.

[0093] S311, transmitting the error curve and the segmented correction parameters to the encoder for storage, so as to correct the output angle value. Fig.12 , Fig.13 and Fig.14 , Fig.12 This is the output angle oblique graph of the magnetic encoder. Fig.13 This is the output angle error curve without angle value correction. Fig.14 The output angle error curve after angle value correction is shown in Figure 2. As can be seen from the above, the output angle accuracy is improved after angle value correction.

[0094] See also Figure 8 , after transmitting the segmented correction parameters to the encoder for storage, the method further comprises the steps of:

[0095] S312, drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve and output the corrected angle value; in this step, the correction result is verified by collecting the corrected output angle. This step is similar to step S308.

[0096] S313, receiving a calibrated angle value of a mechanical mid-circle encoder and a reference value of a high-precision encoder driving a motor;

[0097] S314, judging whether the error precision of the encoder angle value is within the set range through the reference value of the high-precision encoder driving the motor, if the error precision of the angle value is within the set range, then ending this step; otherwise, continuing to drive the high-precision encoder driving the motor to rotate, and triggering the encoder to resolve the angle value. By comparing with the reference value of the high-precision encoder driving the motor, judging whether the encoder angle value error is within the set range, if it is within the set range, it means that after correction, the encoder angle value meets the accuracy requirement; otherwise, it does not meet the accuracy requirement, and the correction parameter fitting process needs to be re-performed.

[0098] In the encoder calibration method and device provided by the embodiment of the present invention, the problem that the harmonic content of the encoder position error increases due to the asynchronous sampling of the original signal SIN and COS, and thus the encoder position accuracy decreases, can be solved by alternate sampling. At the same time, the average value processing of several samples can reduce the position jump caused by the original signal amplitude jump at the same position point.

[0099] The original non-ideal sinusoidal signal can be shaped into a nearly ideal sinusoidal signal through polynomial fitting, such as Figure 5 As shown, the solid line shows the original SIN and COS signals. It can be seen that the original signal zero point deviation (DC Offset), SIN and COS amplitudes are not equal, and the SIN and COS phase difference is not strictly 90°. The SIN and COS signals after fitting are as follows Figure 5 The dashed line in the middle is close to the ideal sine curve.

[0100] Figure 6 Shown in the figure are the encoder position feedback curve, the encoder nonlinear error curve and the residual error of the position after compensation. It can be seen that the positioning accuracy after compensation is within 80 arc seconds.

[0101] On the other hand, see Figure 3 , Figure 4 and Figure 5 The present invention provides an encoder calibration device, comprising: a high-precision encoder driving motor 10, a motor to be calibrated 20 and an industrial computer 40, wherein the rotating shaft of the motor to be calibrated 20 is connected to the rotation of the high-precision encoder driving motor 10, and the motor to be calibrated 20 is provided with a magnetic encoder to be calibrated 30, and the high-precision encoder driving motor 10 is used to drive the rotating shaft of the motor to be calibrated 20 to rotate synchronously, and the rotation angle is calculated by the magnetic encoder to be calibrated 30; the high-precision encoder driving motor 10 can output a high-precision reference value, because the high-precision encoder driving motor 10 can drive the magnetic encoder to be calibrated 30 to rotate synchronously. At this time, the magnetic encoder to be calibrated 30 outputs a calibrated value corresponding to the high-precision reference value.

[0102] The industrial computer 40 is respectively connected to the motor drive 10 with a high-precision encoder, and is used to receive the reference value output by the motor drive 10 with a high-precision encoder and the calibration value of the motor 20 to be calibrated, and calibrate the output angle of the magnetic encoder 30 to be calibrated by the reference value and the calibration value. In one embodiment of the present invention, the calibration includes calibration of parameters of the original sampling signal, for example, the calibration parameters of the original sampling signal include: zero point deviation, amplitude proportional coefficient and phase deviation, etc.

[0103] In another embodiment of the present invention, the calibration also includes calibration of the output angle. The industrial computer 40 drives and controls the high-precision encoder drive motor 10 to control the rotation of the high-precision encoder drive motor 10, and receives the reference value output by the high-precision encoder drive motor 10 and the calibrated value output by the encoder to be tested, generates calibration parameters through fitting processing, and stores the values ​​in the memory of the magnetic encoder 30 to be calibrated, so as to calibrate the magnetic encoder 30 to be calibrated.

[0104] See also Figure 3, further comprising: a driver 50, the driver 50 is respectively connected to the industrial computer 40 and the drive motor 10 with a high-precision encoder, and is used to receive the output drive instruction of the industrial computer 40, and drive the drive motor 10 with a high-precision encoder to rotate. The driver 50 receives the drive command output by the industrial computer 40, and outputs a drive signal to the drive motor 10 with a high-precision encoder through the drive command to drive it.

[0105] See also Figure 3 , further comprising: an interface conversion circuit 60, the interface circuit being respectively connected to the industrial computer 40 and the motor to be calibrated 20, for converting the interface signals between the industrial computer 40 and the motor to be calibrated 20. Since the interfaces between the industrial computer 40 and the motor to be calibrated 20 are different, the interface conversion circuit 60 is required to convert the input and output signals to realize the communication between the industrial computer 40 and the motor to be calibrated 20.

[0106] See also Figure 5 , further comprising: a coupling body 70, through which the rotating shaft of the motor 20 to be calibrated is connected to the rotating shaft of the motor 10 with a high-precision encoder, so as to drive the rotating shaft of the motor 20 to be calibrated to rotate synchronously. One end of the coupling body 70 is arranged on the rotating shaft with a high-precision encoder, and the other end is connected to the rotating shaft of the motor 20 to be calibrated, so as to synchronously rotate the rotating shaft of the motor 20 to be calibrated through the high-precision encoder, and the encoder to be tested performs angle encoding output on the motor 20 to be calibrated. The synchronous output of the angle is achieved through the coupling body 70, so as to calibrate the encoder to be tested through the output of the motor 10 with a high-precision encoder.

[0107] See also Figure 5 , further comprising: a connection panel 80, the connection panel 80 is used to install the coupling body 70 on the drive motor with high-precision encoder 10. One end surface of the connection panel 80 is fixedly connected to the drive motor with high-precision encoder 10, and the other end surface is fixedly connected to the coupling body 70, so that the coupling body 70 is installed and fixed to the rotating shaft of the drive motor with high-precision encoder 10.

[0108] See also Figure 5 , further comprising: a motor support frame 90, wherein the motor support frame 90 is used to install and fix the motor 20 to be calibrated. Since the motor 20 to be calibrated has a certain gravity and is placed vertically, during the calibration test, the placement may be unstable and cause errors. The motor 20 to be calibrated can be installed and fixed by the motor support frame 90 to avoid unstable placement of the motor.

[0109] See also Figure 5, further comprising: a motor positioning pin 11, through which the motor to be tested is mounted on the motor support frame 90. The motor to be tested is mounted and fixed to the motor support frame 90 through the motor positioning pin 11. Simple and convenient.

[0110] See also Figure 5 , further comprising: a first motor support plate 12, a second motor support plate 13 and a first motor support bar 14, wherein the first motor support plate 12 is connected to the motor 20 to be calibrated, and is used to provide support for the motor 20 to be calibrated; the first motor support plate 12 is fixed to the bottom of the motor 20 to be calibrated, so that the motor 20 to be calibrated is relatively stable. As shown in the figure, the bottom of the motor 20 to be calibrated is completely fixed to the first motor support plate 12, and the first motor support plate 12 is placed horizontally. The stability of the motor to be tested is greatly improved.

[0111] The second motor support plate 13 is connected to the driving motor 10 with a high-precision encoder, and is used to provide support through the driving motor 10 with a high-precision encoder; the second motor support plate 13 is fixed to the top end surface of the driving motor 10 with a high-precision encoder, and is close to the edge, through a fixing column, so as to be relatively fixed.

[0112] The first motor support bar 14 is disposed between the first motor support plate 12 and the second motor support plate 13. Two first motor support bars 14 are provided, and the first motor support plate 12 is supported by the two first motor support bars 14. The coupling body 70 is located in the middle of the space formed by the two first motor support bars 14. The upper and lower ends of the first motor support bar 14 are fixed to the first motor support plate 12 and the second motor support plate 13, respectively.

[0113] The above are only embodiments of the present invention, but they do not limit the patent scope of the present invention. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features with equivalent ones. Any equivalent structure made by using the contents of the present invention specification and drawings, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.

[0114] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0115] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention without departing from the principles and intent of the present invention.

Claims

1. A method for calibrating an encoder, characterized in that: include: Drive the high-precision encoder drive motor to rotate, and trigger the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect the original analog signal in the sampling order of SIN, COS, COS, SIN; The trigger encoder takes the average of the SIN values ​​of the original analog signal sampled twice as the SIN value of the sampling point; The trigger encoder takes the average value of the COS value of the original analog signal sampled twice as the COS value of the sampling point; The encoder is triggered to calculate the angle value by taking the SIN value and COS value of the sampling point as input; Wherein, before the triggering encoder uses the sampling point SIN value and the sampling point COS value as input to resolve the angle value, the step of: Receive the SIN value and COS value of each sampling point, as well as the reference value of the high-precision encoder driving the motor; A polynomial fitting is performed using the reference value of the high-precision encoder driving the motor, as well as the SIN value and COS value of each sampling point to obtain calibration parameters of the original signal; The calibration parameters are transmitted to the encoder for storage, so as to calibrate the SIN value and COS value of each sampling point; Wherein, after transmitting the calibration parameters to the encoder for storage, the method further includes the following steps: Drive the high-precision encoder drive motor to rotate, and trigger the encoder analog-to-digital conversion module that rotates synchronously with the high-precision encoder drive motor to collect the calibrated analog signal in the sampling order of SIN, COS, COS, SIN; Receive and calculate the calibrated SIN value and COS value of each sampling point, and receive the reference value of the high-precision encoder drive motor; By using the reference value of the high-precision encoder to drive the motor, determine whether the SIN value and COS value analog signal errors are within the set range. If the calibrated SIN value and COS value analog signal errors are within the set range, end this step; otherwise, continue to drive the high-precision encoder to drive the motor to rotate, and trigger the encoder analog-to-digital conversion module to collect the original analog signal in the sampling order of SIN, COS, COS, and SIN; Wherein, after determining whether the SIN value and COS value analog signal errors are within a set range, the method further includes the following steps: Drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve the angle value; Receiving the angle value output by the encoder in one mechanical cycle and the reference value of the high-precision encoder driving the motor; Obtaining the error curve and segmented correction parameters of the encoder through the angle value and the reference value of the high-precision encoder driving motor; The error curve and the segmented correction parameters are transmitted to the encoder for storage to correct the output angle value; Wherein, after transmitting the segmented correction parameters to the encoder for storage, the method further includes the steps of: Drive the high-precision encoder drive motor to rotate, and trigger the encoder that rotates synchronously with the high-precision encoder drive motor to resolve and output the corrected angle value; Receive the calibrated angle value of a mechanical encoder and the reference value of the high-precision encoder drive motor; The reference value of the high-precision encoder driving the motor is used to determine whether the encoder angle value error accuracy is within the set range. If the angle value error accuracy is within the set range, end this step; otherwise, continue to drive the high-precision encoder to drive the motor to rotate, and trigger the encoder to resolve the angle value.

2. The encoder calibration method according to claim 1, characterized in that: The calibration parameters include: zero point deviation, amplitude proportionality coefficient and phase deviation.

Citation Information

Patent Citations

  • Virtual horizontal reference correction-based inertial and astronomical positioning method for onboard environment

    CN101813481A

  • Device of three-channel encoder refinement and positional information acquisition with tested piece synchronization function

    CN105487489A

  • Incremental magnetic induction bus type encoder for high-speed high-precision machine tool main shaft and electric main shaft

    CN106625020A

  • Magnetoelectric encoder self correction method based on permanent magnet synchronous motor sensorless speed control

    CN108180933A

  • Encoder correction system and method

    CN109000702A