[go: up one dir, main page]

CN117553838A - Dynamic angle measurement error calibration method and system for encoder - Google Patents

Dynamic angle measurement error calibration method and system for encoder Download PDF

Info

Publication number
CN117553838A
CN117553838A CN202311514567.6A CN202311514567A CN117553838A CN 117553838 A CN117553838 A CN 117553838A CN 202311514567 A CN202311514567 A CN 202311514567A CN 117553838 A CN117553838 A CN 117553838A
Authority
CN
China
Prior art keywords
encoder
error
angle measurement
dynamic
dynamic angle
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202311514567.6A
Other languages
Chinese (zh)
Inventor
袁东明
远国勤
张洪文
刘学吉
宋来运
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN202311514567.6A priority Critical patent/CN117553838A/en
Publication of CN117553838A publication Critical patent/CN117553838A/en
Pending legal-status Critical Current

Links

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
    • G01D18/001Calibrating encoders
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/02Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
    • G01B21/04Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness by measuring coordinates of points
    • G01B21/045Correction of measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/22Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring angles or tapers; for testing the alignment of axes

Landscapes

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

Abstract

本申请公开了一种编码器动态测角误差标定方法及系统,运用于仪器测量与应用技术领域,其方法包括:获取编码器动态测角误差先验信息;获取编码器动态测角误差后验信息;根据所述先验信息与所述后验信息建立误差标定模型;采用最小二乘法识别所述误差标定模型的待定参数,完成标定;解决了编码器在旋转过程中测角误差偏大的问题,提升测量精度。

This application discloses an encoder dynamic angle measurement error calibration method and system, which are used in the field of instrument measurement and application technology. The method includes: obtaining a priori information of the encoder dynamic angle measurement error; obtaining the encoder dynamic angle measurement error posteriori information; establish an error calibration model based on the a priori information and the posterior information; use the least square method to identify the undetermined parameters of the error calibration model to complete the calibration; solve the problem of the encoder's angle measurement error being too large during the rotation process problem and improve measurement accuracy.

Description

一种编码器动态测角误差标定方法及系统An encoder dynamic angle measurement error calibration method and system

技术领域Technical field

本发明涉及仪器测量与应用技术领域,尤其涉及一种编码器动态测角误差标定方法及系统。The invention relates to the technical field of instrument measurement and application, and in particular to an encoder dynamic angle measurement error calibration method and system.

背景技术Background technique

编码器作为一种集光学、机械及电子学于一体的高精度测量仪器,已广泛应用于数控机床、智能机器人、测量仪器、光电经纬仪、航空相机及空间机械臂等工业、航空航天领域,涉及民用与军工产品,多作为系统闭环控制的关键测量器件而使用。因此,编码器测量的精度将直接影响系统控制性能,进而影响产品整体性能。根据编码器的组成与工作原理,不可避免的存在各种影响其测量精度的误差因素。特别地,在运动状态下因编码器电子器件的细分测量延迟及幅频响应动态误差使得其测角误差相比静态时增大很多,测量精度显著下降,难以满足系统或产品高精度测量需求。As a high-precision measuring instrument that integrates optics, mechanics and electronics, the encoder has been widely used in industrial and aerospace fields such as CNC machine tools, intelligent robots, measuring instruments, photoelectric theodolite, aerial cameras and space manipulators, involving Civilian and military products are mostly used as key measurement devices for system closed-loop control. Therefore, the accuracy of encoder measurement will directly affect the system control performance and thus the overall product performance. According to the composition and working principle of the encoder, there are inevitably various error factors that affect its measurement accuracy. In particular, in the moving state, due to the subdivision measurement delay of the encoder electronics and the dynamic error of the amplitude-frequency response, the angle measurement error increases much compared with the static state, and the measurement accuracy decreases significantly, making it difficult to meet the high-precision measurement requirements of the system or product. .

因此为了克服这些缺陷,本申请提出了一种编码器动态测角误差标定方法及系统。Therefore, in order to overcome these shortcomings, this application proposes an encoder dynamic angle measurement error calibration method and system.

发明内容Contents of the invention

本申请的目的是提供一种编码器动态测角误差标定方法及系统,旨在解决编码器在运动状态下测量精度下降的问题。The purpose of this application is to provide an encoder dynamic angle measurement error calibration method and system, aiming to solve the problem of reduced measurement accuracy of the encoder in a moving state.

为实现上述目的,本申请提供如下技术方案:In order to achieve the above purpose, this application provides the following technical solutions:

本申请提供一种编码器动态测角误差标定方法,包括:This application provides an encoder dynamic angle measurement error calibration method, including:

获取编码器动态测角误差先验信息;Obtain the prior information of the encoder dynamic angle measurement error;

获取编码器动态测角误差后验信息;Obtain the posterior information of the encoder dynamic angle measurement error;

根据所述先验信息与所述后验信息建立误差标定模型;Establish an error calibration model based on the prior information and the posterior information;

采用最小二乘法识别所述误差标定模型的待定参数,完成标定。The least squares method is used to identify the undetermined parameters of the error calibration model and complete the calibration.

进一步的,在获取编码器动态测角误差先验信息的步骤中,具体包括下述步骤:Further, the step of obtaining a priori information of the encoder's dynamic angle measurement error specifically includes the following steps:

分别计算编码器运动时测角产生的细分迟滞误差、动态响应误差与轴系晃动误差;Calculate the subdivision hysteresis error, dynamic response error and shaft system shaking error caused by angle measurement when the encoder is moving;

所述细分迟滞误差θerr_chizhi的计算公式为:The calculation formula of the subdivision hysteresis error θ err_chizhi is:

θerr_chizhi=ω(t1+t2)θ err_chizhi =ω(t 1 +t 2 )

其中ω为编码器转速,t1为A/D转换时间,t2为剩余信号处理时间;Among them, ω is the encoder speed, t 1 is the A/D conversion time, and t 2 is the remaining signal processing time;

所述动态响应误差θerr_dongtai的计算公式为:The calculation formula of the dynamic response error θ err_dongtai is:

其中A为两路相位差90°的精码信号幅值;ΔA为两信号幅值之差,Δx、Δy为两路精码信号直流分量变动量;αij和λij分别为转速影响系数和幅值衰减系数,其中(i,j=1,2);θ为编码器细分角度,其周期为2π/n,n为精码细分数;ω为编码器转速;Among them, A is the amplitude of the two precise code signals with a phase difference of 90°; ΔA is the difference between the amplitudes of the two signals; Δx and Δy are the changes in the DC components of the two precise code signals; α ij and λ ij are the rotational speed influence coefficients and Amplitude attenuation coefficient, where (i,j=1,2); θ is the encoder subdivision angle, its period is 2π/n, n is the fine code subdivision number; ω is the encoder speed;

所述轴系晃动误差θerr_zhxiebo的计算公式为:The calculation formula of the shafting shake error θ err_zhxiebo is:

其中A1、A3分别为基波、三次谐波幅值;θ为编码器细分角度,其周期为2π/n,n为精码细分数。Among them, A 1 and A 3 are the fundamental wave and third harmonic amplitude respectively; θ is the encoder subdivision angle, its period is 2π/n, and n is the fine code subdivision number.

进一步的,在获取编码器动态测角误差后验信息的步骤中,具体包括下述步骤:Further, the step of obtaining the posterior information of the encoder dynamic angle measurement error specifically includes the following steps:

设编码器在不同转速ωi、不同转角位置θj时的动态测角误差值为dij;将dij进行二维傅里叶变换,得到原始数据频谱,并提取后验信息频谱峰值节点,其计算公式为:Suppose the dynamic angle measurement error value of the encoder at different rotational speeds ω i and different angular positions θ j is d ij ; perform a two-dimensional Fourier transform on d ij to obtain the original data spectrum, and extract the peak node of the posterior information spectrum, The calculation formula is:

其中k、q分别为转速维度、转角维度频谱横坐标。Among them, k and q are the abscissas of the frequency spectrum in the rotational speed dimension and the rotation angle dimension respectively.

进一步的,在根据所述先验信息与所述后验信息建立误差标定模型的步骤中,具体包括下述步骤:Further, the step of establishing an error calibration model based on the a priori information and the a posteriori information specifically includes the following steps:

建立两维傅里叶级数的误差标定模型:Establish an error calibration model for the two-dimensional Fourier series:

其中apq、bpq、c为模型待定系数;Among them, a pq , b pq and c are the undetermined coefficients of the model;

由于上式中的ω、θ取值范围为[-π,π],故进行如下变换:Since the value range of ω and θ in the above formula is [-π, π], the following transformation is performed:

其中ω1、ω2与θ1、θ2分别满足ω∈[ω12],θ∈[θ12];则最终标定模型变为:Among them, ω 1 , ω 2 and θ 1 , θ 2 satisfy ω∈[ω 12 ] and θ∈[θ 12 ] respectively; then the final calibration model becomes:

其中分别为等效转速、转角。in are the equivalent rotational speed and rotation angle respectively.

进一步的,在采用最小二乘法识别所述误差标定模型的待定参数,完成标定的步骤中,具体包括下述步骤:Further, the step of using the least squares method to identify the undetermined parameters of the error calibration model and completing the calibration specifically includes the following steps:

将(wij,dij)代入所述误差标定模型中,建立如下观测方程组:Substituting (w i , θ j , d ij ) into the error calibration model, the following observation equations are established:

观测方程组可简记为:The system of observation equations can be abbreviated as:

AX=dAX=d

采用最小二乘法对观测方程组求解,识别所述误差标定模型的待定参数为:The least squares method is used to solve the observation equations, and the undetermined parameters of the error calibration model are identified as:

X=(ATA)-1ATdX=(A T A) -1 A T d

其中A为观测方程组系数矩阵,X为待求模型参数向量,d为观测向量。Among them, A is the coefficient matrix of the observation equation system, X is the model parameter vector to be found, and d is the observation vector.

进一步的,所述先验信息为编码器的精码细分数n,以此确定动态测角误差谐波分量;所述后验信息为对数据频谱分析得到的频谱峰值节点。Further, the a priori information is the precise code subdivision number n of the encoder, thereby determining the harmonic component of the dynamic angle measurement error; the a posteriori information is the spectrum peak node obtained by analyzing the data spectrum.

进一步的,所述误差标定模型由一簇两维三角函数组成的傅里叶级数建立。Further, the error calibration model is established by a Fourier series composed of a cluster of two-dimensional trigonometric functions.

本申请提供一种编码器动态测角误差标定系统,包括:This application provides an encoder dynamic angle measurement error calibration system, including:

获取模块:获取编码器动态测角误差先验信息;获取编码器动态测角误差后验信息;Acquisition module: obtains the prior information of the encoder's dynamic angle measurement error; obtains the posterior information of the encoder's dynamic angle measurement error;

建立模块:根据所述先验信息与所述后验信息建立误差标定模型;Establishing module: establishing an error calibration model based on the a priori information and the a posteriori information;

标定模块:采用最小二乘法识别所述误差标定模型的待定参数,完成标定。Calibration module: Use the least squares method to identify the undetermined parameters of the error calibration model and complete the calibration.

本申请提供一种设备,所述设备包括处理器、与所述处理器耦接的存储器,其中,所述存储器存储有用于实现一种编码器动态测角误差标定方法的程序指令;所述处理器用于执行所述存储器存储的所述程序指令以实现一种编码器动态测角误差标定。The present application provides a device, which includes a processor and a memory coupled to the processor, wherein the memory stores program instructions for implementing an encoder dynamic angle measurement error calibration method; the processing The device is used to execute the program instructions stored in the memory to implement an encoder dynamic angle measurement error calibration.

本申请提供一种存储介质,存储有处理器可运行的程序指令,所述程序指令用于执行一种编码器动态测角误差标定方法。The present application provides a storage medium that stores program instructions executable by a processor. The program instructions are used to execute an encoder dynamic angle measurement error calibration method.

本申请提供了一种编码器动态测角误差标定方法及系统,具有以下有益效果:This application provides an encoder dynamic angle measurement error calibration method and system, which has the following beneficial effects:

本申请基于编码器动态测角误差的组成与分类,根据编码器的硬件组成获取先验信息,再结合对编码器实测动态测角误差数据的后验频谱分析,建立以两维三角函数为基函数的傅里叶级数误差标定模型,然后基于实测动态测角误差数据,采用最小二乘法识别误差标定模型中的待定参数,进而完成编码器动态测角误差的标定。本申请提出的方法可有效降低编码器旋转运动时的测角误差,提升测量精度,为编码器的精确测量提供理论与方法支持。This application is based on the composition and classification of the encoder's dynamic angle measurement error, obtains a priori information based on the encoder's hardware composition, and then combines the posterior spectrum analysis of the encoder's measured dynamic angle measurement error data to establish a two-dimensional trigonometric function based on The function's Fourier series error calibration model is then used to identify the undetermined parameters in the error calibration model based on the measured dynamic angle measurement error data, using the least squares method to complete the calibration of the encoder's dynamic angle measurement error. The method proposed in this application can effectively reduce the angle measurement error during the rotation of the encoder, improve the measurement accuracy, and provide theoretical and method support for the accurate measurement of the encoder.

附图说明Description of the drawings

图1为本申请实施例1的一种编码器动态测角误差标定方法的流程示意图;Figure 1 is a schematic flow chart of an encoder dynamic angle measurement error calibration method according to Embodiment 1 of the present application;

图2为本申请实施例1的一种编码器动态测角误差标定方法的流程框图;Figure 2 is a flow chart of an encoder dynamic angle measurement error calibration method according to Embodiment 1 of the present application;

图3为本实施例1的动态测角误差原始数据示意图;Figure 3 is a schematic diagram of the original data of the dynamic angle measurement error in Example 1;

图4为本申请实施例1的动态测角误差数据后验频谱分析结果示意图;Figure 4 is a schematic diagram of the posterior spectrum analysis results of dynamic angle measurement error data in Embodiment 1 of the present application;

图5为本申请实施例1的动态测角误差标定拟合结果示意图;Figure 5 is a schematic diagram of the dynamic angle measurement error calibration and fitting results of Example 1 of the present application;

图6为本申请实施例1的动态测角残差示意图;Figure 6 is a schematic diagram of dynamic angle measurement residuals in Embodiment 1 of the present application;

图7为本申请实施例2的一种编码器动态测角误差标定系统的结构示意图;Figure 7 is a schematic structural diagram of an encoder dynamic angle measurement error calibration system according to Embodiment 2 of the present application;

图8本申请实施例3的设备结构示意图;Figure 8 is a schematic diagram of the equipment structure of Embodiment 3 of the present application;

图9为本申请实施例4的存储介质结构示意图。Figure 9 is a schematic structural diagram of a storage medium in Embodiment 4 of the present application.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

实施例1Example 1

请参阅图1和图2,分别为本申请实施例1的一种编码器动态测角误差标定方法的流程示意图和流程框图;步骤包括:Please refer to Figure 1 and Figure 2, which are respectively a schematic flow chart and a flow block diagram of an encoder dynamic angle measurement error calibration method according to Embodiment 1 of the present application; the steps include:

S1:获取编码器动态测角误差先验信息。S1: Obtain the prior information of the encoder dynamic angle measurement error.

在本实施例中,分析编码器组成与工作原理知,因部分电子学元件、电气或电磁惯性迟滞及光机结构零件存在加工、装调偏差,则分别计算编码器运动时测角产生的细分迟滞误差、动态响应误差与轴系晃动误差;In this embodiment, after analyzing the composition and working principle of the encoder, it is known that due to processing and assembly deviations in some electronic components, electrical or electromagnetic inertia hysteresis, and optical-mechanical structural parts, the details generated by angle measurement when the encoder is moving are calculated separately. It is divided into hysteresis error, dynamic response error and shafting shaking error;

所述细分迟滞误差θerr_chizhi的计算公式为:The calculation formula of the subdivision hysteresis error θ err_chizhi is:

θerr_chizhi=ω(t1+t2)θ err_chizhi =ω(t 1 +t 2 )

其中ω为编码器转速,t1为A/D转换时间,t2为剩余信号处理时间;Among them, ω is the encoder speed, t 1 is the A/D conversion time, and t 2 is the remaining signal processing time;

所述动态响应误差θerr_dongtai的计算公式为:The calculation formula of the dynamic response error θ err_dongtai is:

其中A为两路相位差90°的精码信号幅值;ΔA为两信号幅值之差,Δx、Δy为两路精码信号直流分量变动量;αij和λij分别为转速影响系数和幅值衰减系数,其中(i,j=1,2);θ为编码器细分角度,其周期为2π/n,n为精码细分数;ω为编码器转速;Among them, A is the amplitude of the two precise code signals with a phase difference of 90°; ΔA is the difference between the amplitudes of the two signals; Δx and Δy are the changes in the DC components of the two precise code signals; α ij and λ ij are the rotational speed influence coefficients and Amplitude attenuation coefficient, where (i,j=1,2); θ is the encoder subdivision angle, its period is 2π/n, n is the fine code subdivision number; ω is the encoder speed;

所述轴系晃动误差θerr_zhxiebo的计算公式为:The calculation formula of the shafting shake error θ err_zhxiebo is:

其中A1、A3分别为基波、三次谐波幅值;θ为编码器细分角度,其周期为2π/n,n为精码细分数。Among them, A 1 and A 3 are the fundamental wave and third harmonic amplitude respectively; θ is the encoder subdivision angle, its period is 2π/n, and n is the fine code subdivision number.

可以理解,动态测角误差具体包括:与转速成正比的直流分量;与转速、转角位置有关的长周期误差、n次谐波误差、2n次谐波误3n次谐波误差、4n次谐波误差及8n次谐波误差,其中n为精码细分数,对于本实施例中的编码器n=256。It can be understood that the dynamic angle measurement error specifically includes: DC component proportional to the rotational speed; long period error related to the rotational speed and angle position, nth harmonic error, 2nth harmonic error, 3nth harmonic error, and 4nth harmonic error. error and 8nth harmonic error, where n is the fine code subdivision number, and for the encoder in this embodiment, n=256.

S2:获取编码器动态测角误差后验信息。S2: Obtain the posterior information of the encoder dynamic angle measurement error.

在本实施例中,请参阅图3,为本实施例1的动态测角误差原始数据示意图;设编码器在不同转速ωi、不同转角位置θj时的动态测角误差值为dijIn this embodiment, please refer to Figure 3, which is a schematic diagram of the original data of the dynamic angle measurement error in Embodiment 1; assume that the dynamic angle measurement error value of the encoder at different rotation speeds ω i and different angular positions θ j is d ij .

请参阅图4,为本申请实施例1的动态测角误差数据后验频谱分析结果示意图;将dij进行二维傅里叶变换,得到原始数据频谱,并提取后验信息频谱峰值节点,其计算公式为:Please refer to Figure 4, which is a schematic diagram of the posterior spectrum analysis results of the dynamic angle measurement error data in Embodiment 1 of the present application; perform a two-dimensional Fourier transform on d ij to obtain the original data spectrum, and extract the peak node of the posterior information spectrum, which The calculation formula is:

其中k、q分别为转速维度、转角维度频谱横坐标。Among them, k and q are the abscissas of the frequency spectrum in the rotational speed dimension and the rotation angle dimension respectively.

S3:根据所述先验信息与所述后验信息建立误差标定模型。S3: Establish an error calibration model based on the prior information and the posterior information.

在本实施例中,综合先验谐波信息与后验频谱峰值节点信息,建立两维傅里叶级数的误差标定模型:In this embodiment, a priori harmonic information and posterior spectrum peak node information are combined to establish a two-dimensional Fourier series error calibration model:

其中频率成分由先验谐波频点及后验峰值频点组成,apq、bpq、c为模型待定系数;The frequency component consists of a priori harmonic frequency points and a posteriori peak frequency points, a pq , b pq , c are the undetermined coefficients of the model;

由于上式中的ω、θ取值范围为[-π,π],故进行如下变换:Since the value range of ω and θ in the above formula is [-π, π], the following transformation is performed:

其中ω1、ω2与θ1、θ2分别满足ω∈[ω12],θ∈[θ12];则最终标定模型变为:Among them, ω 1 , ω 2 and θ 1 , θ 2 satisfy ω∈[ω 12 ] and θ∈[θ 12 ] respectively; then the final calibration model becomes:

其中分别为等效转速、转角。in are the equivalent rotational speed and rotation angle respectively.

S4:采用最小二乘法识别所述误差标定模型的待定参数,完成标定。S4: Use the least squares method to identify the undetermined parameters of the error calibration model and complete the calibration.

在本实施例中,将(wij,dij)代入所述误差标定模型中,建立如下观测方程组:In this embodiment, (w i , θ j , d ij ) are substituted into the error calibration model to establish the following observation equations:

观测方程组可简记为:The system of observation equations can be abbreviated as:

AX=dAX=d

采用最小二乘法对观测方程组求解,识别所述误差标定模型的待定参数为:The least squares method is used to solve the observation equations, and the undetermined parameters of the error calibration model are identified as:

X=(ATA)-1ATdX=(A T A) -1 A T d

其中A为观测方程组系数矩阵,X为待求模型参数向量,d为观测向量。Among them, A is the coefficient matrix of the observation equation system, X is the model parameter vector to be found, and d is the observation vector.

请参阅图5,为本申请实施例1的动态测角误差标定拟合结果示意图。将待定参数及实测动态误差数据代入误差标定模型中,可得到编码器动态测角误差标定拟合结果。Please refer to FIG. 5 , which is a schematic diagram of the dynamic angle measurement error calibration and fitting results in Example 1 of the present application. By substituting the undetermined parameters and measured dynamic error data into the error calibration model, the encoder dynamic angle measurement error calibration fitting results can be obtained.

请参阅图6,为本申请实施例1的动态测角残差示意图。用编码器实测动态误差数据与标定拟合结果作差,可得编码器动态测角残差。对比图6与图3可知,编码器动态测角误差得到有效标定,动态测角精度显著提升。Please refer to FIG. 6 , which is a schematic diagram of dynamic angle measurement residuals in Embodiment 1 of the present application. By making the difference between the measured dynamic error data of the encoder and the calibration fitting results, the dynamic angle measurement residual of the encoder can be obtained. Comparing Figure 6 with Figure 3, it can be seen that the dynamic angle measurement error of the encoder is effectively calibrated, and the dynamic angle measurement accuracy is significantly improved.

综上所述,本申请实施例1基于编码器动态测角误差的组成与分类,根据编码器的硬件组成获取先验信息,再结合对编码器实测动态测角误差数据的后验频谱分析,建立以两维三角函数为基函数的傅里叶级数误差标定模型,然后基于实测动态测角误差数据,采用最小二乘法识别误差标定模型中的待定参数,进而完成编码器动态测角误差的标定。本申请提出的方法可有效降低编码器旋转运动时的测角误差,提升测量精度,为编码器的精确测量提供理论与方法支持。To sum up, Embodiment 1 of the present application is based on the composition and classification of the encoder's dynamic angle measurement error, obtains a priori information based on the hardware composition of the encoder, and then combines it with the posterior spectrum analysis of the encoder's measured dynamic angle measurement error data, Establish a Fourier series error calibration model with two-dimensional trigonometric functions as the basis function, and then use the least square method to identify the undetermined parameters in the error calibration model based on the measured dynamic angle measurement error data, and then complete the calculation of the encoder's dynamic angle measurement error. Calibration. The method proposed in this application can effectively reduce the angle measurement error during the rotation of the encoder, improve the measurement accuracy, and provide theoretical and method support for the accurate measurement of the encoder.

实施例2Example 2

请参阅图7,为本申请实施例2的一种编码器动态测角误差标定系统的结构示意图;具体内容包括:Please refer to Figure 7, which is a schematic structural diagram of an encoder dynamic angle measurement error calibration system according to Embodiment 2 of the present application; the specific content includes:

获取模块:获取编码器动态测角误差先验信息;获取编码器动态测角误差后验信息;Acquisition module: obtains the prior information of the encoder's dynamic angle measurement error; obtains the posterior information of the encoder's dynamic angle measurement error;

建立模块:根据所述先验信息与所述后验信息建立误差标定模型;Establishing module: establishing an error calibration model based on the a priori information and the a posteriori information;

标定模块:采用最小二乘法识别所述误差标定模型的待定参数,完成标定。Calibration module: Use the least squares method to identify the undetermined parameters of the error calibration model and complete the calibration.

实施例3Example 3

请参阅图8,为本申请实施例3的设备结构示意图。该设备50包括处理器51、与处理器51耦接的存储器52。Please refer to Figure 8, which is a schematic diagram of the equipment structure of Embodiment 3 of the present application. The device 50 includes a processor 51 and a memory 52 coupled to the processor 51 .

存储器52存储有用于实现上述一种编码器动态测角误差标定方法的程序指令。The memory 52 stores program instructions for implementing the above-mentioned dynamic angle measurement error calibration method of an encoder.

处理器51用于执行存储器52存储的程序指令以实现一种编码器动态测角误差标定。The processor 51 is used to execute program instructions stored in the memory 52 to implement an encoder dynamic angle measurement error calibration.

其中,处理器51还可以称为CPU(Central Processing Unit,中央处理单元)。The processor 51 may also be called a CPU (Central Processing Unit).

处理器51可能是一种集成电路芯片,具有信号的处理能力。处理器51还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 51 may be an integrated circuit chip with signal processing capabilities. The processor 51 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. . A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

实施例4Example 4

请参阅图9,为本申请实施例4的存储介质结构示意图。本申请实施例的存储介质存储有能够实现上述所有方法的程序文件61,其中,该程序文件61可以以软件产品的形式存储在上述存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等设备。Please refer to FIG. 9 , which is a schematic structural diagram of a storage medium according to Embodiment 4 of the present application. The storage medium of the embodiment of the present application stores a program file 61 that can implement all the above methods. The program file 61 can be stored in the above storage medium in the form of a software product and includes a number of instructions to make a computer device (can It is a personal computer, server, or network device, etc.) or processor that executes all or part of the steps of the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code. , or computers, servers, mobile phones, tablets and other devices.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, in this document, the terms "include", "comprises" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, device, article or method that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, apparatus, article or method. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, apparatus, article or method that includes that element.

以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly used in other related The technical fields are all equally included in the scope of patent protection of this application.

尽管已经示出和描述了本申请的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本申请的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本申请的范围由所附权利要求及其等同物限定。Although the embodiments of the present application have been shown and described, those of ordinary skill in the art will understand that various changes, modifications, and substitutions can be made to these embodiments without departing from the principles and spirit of the present application. and variations, the scope of the application is defined by the appended claims and their equivalents.

当然,本发明还可有其它多种实施方式,基于本实施方式,本领域的普通技术人员在没有做出任何创造性劳动的前提下所获得其他实施方式,都属于本发明所保护的范围。Of course, the present invention can also have various other implementations. Based on this implementation, other implementations obtained by those of ordinary skill in the art without any creative work fall within the scope of protection of the present invention.

Claims (10)

1. The dynamic angle measurement error calibration method for the encoder is characterized by comprising the following steps of:
acquiring the prior information of the dynamic angle measurement error of the encoder;
acquiring posterior information of dynamic angle measurement errors of an encoder;
establishing an error calibration model according to the prior information and the posterior information;
and identifying undetermined parameters of the error calibration model by adopting a least square method, and completing calibration.
2. The method for calibrating dynamic angle measurement error of an encoder according to claim 1, wherein the step of obtaining the priori information of the dynamic angle measurement error of the encoder comprises the steps of:
respectively calculating subdivision hysteresis errors, dynamic response errors and shafting shaking errors generated by angle measurement when the encoder moves;
the subdivision hysteresis error theta err_chizhi The calculation formula of (2) is as follows:
θ err_chizhi =ω(t 1 +t 2 )
wherein ω is encoder speed, t 1 For A/D conversion time, t 2 Processing time for the remaining signal;
the dynamic response error theta err_dongtai The calculation formula of (2) is as follows:
wherein A is the amplitude of two paths of fine code signals with 90 DEG phase difference; Δa is the difference between the amplitudes of the two signals, and Δx and Δy are the fluctuation amounts of the direct current components of the two paths of fine code signals; alpha ij And lambda (lambda) ij A rotation speed influence coefficient and an amplitude attenuation coefficient, respectively, wherein (i, j=1, 2); θ is the encoder subdivision angle, the period is 2pi/n, n is the fine code subdivision number; omega is the encoder rotation speed;
the shafting shaking error theta err_zhxiebo The calculation formula of (2) is as follows:
wherein A is 1 、A 3 The amplitudes of fundamental waves and third harmonic waves are respectively; θ is the encoder subdivision angle, its period is 2pi/n, n is the fine code subdivision number.
3. The method for calibrating dynamic angular error of an encoder according to claim 1, wherein the step of obtaining the posterior information of the dynamic angular error of the encoder comprises the steps of:
the encoder is arranged at different rotation speeds omega i Different angular positions theta j The dynamic angle error value is d ij The method comprises the steps of carrying out a first treatment on the surface of the Will d ij Performing two-dimensional Fourier transform to obtain an original data spectrum, and extracting a posterior information spectrum peak node, wherein the calculation formula is as follows:
wherein k and q are rotational speed dimension and rotational angle dimension frequency spectrum abscissa.
4. The method for calibrating dynamic angular error of an encoder according to claim 1, wherein in the step of establishing an error calibration model according to the prior information and the posterior information, the method specifically comprises the following steps:
establishing an error calibration model of a two-dimensional Fourier series:
wherein a is pq 、b pq C is a model undetermined coefficient;
since the values of ω and θ in the above formula are [ -pi, pi ], the following conversion is performed:
wherein omega 1 、ω 2 And theta 1 、θ 2 Respectively meet omega E [ omega ] 1 ,ω 2 ],θ∈[θ 1 ,θ 2 ]The method comprises the steps of carrying out a first treatment on the surface of the The final standard model becomes:
wherein the method comprises the steps ofThe equivalent rotation speed and the rotation angle are respectively adopted.
5. The method for calibrating dynamic angle measurement error of encoder according to claim 1, wherein in the step of identifying undetermined parameters of said error calibration model by using least square method, calibration is completed, specifically comprising the steps of:
will (w) i ,θ j ,d ij ) Substituting the set of observation equations into the error calibration model, and establishing the following observation equation sets:
the set of observation equations can be abbreviated as:
AX=d
solving an observation equation set by adopting a least square method, and identifying undetermined parameters of the error calibration model as follows:
X=(A T A) -1 A T d
wherein A is an observation equation set coefficient matrix, X is a model parameter vector to be solved, and d is an observation vector.
6. The method for calibrating dynamic angle measurement error of an encoder according to claim 1, wherein the prior information is a fine code fraction n of the encoder, so as to determine a harmonic component of the dynamic angle measurement error; the posterior information is a spectrum peak value node obtained by analyzing the data spectrum.
7. The method for calibrating dynamic angular errors of an encoder according to claim 1, wherein the error calibration model is built up by a fourier series of two-dimensional trigonometric functions.
8. A system for an encoder dynamic angular error calibration method according to claim 1, comprising:
the acquisition module is used for: acquiring the prior information of the dynamic angle measurement error of the encoder; acquiring posterior information of dynamic angle measurement errors of an encoder;
and (3) a building module: establishing an error calibration model according to the prior information and the posterior information;
and (3) a calibration module: and identifying undetermined parameters of the error calibration model by adopting a least square method, and completing calibration.
9. An apparatus comprising a processor, a memory coupled to the processor, wherein the memory stores program instructions for implementing an encoder dynamic angular error calibration method of any of claims 1-7; the processor is used for executing the program instructions stored in the memory to realize dynamic angle measurement error calibration of the encoder.
10. A storage medium storing program instructions executable by a processor for performing a method of calibrating dynamic angular error of an encoder according to any of claims 1-7.
CN202311514567.6A 2023-11-14 2023-11-14 Dynamic angle measurement error calibration method and system for encoder Pending CN117553838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311514567.6A CN117553838A (en) 2023-11-14 2023-11-14 Dynamic angle measurement error calibration method and system for encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311514567.6A CN117553838A (en) 2023-11-14 2023-11-14 Dynamic angle measurement error calibration method and system for encoder

Publications (1)

Publication Number Publication Date
CN117553838A true CN117553838A (en) 2024-02-13

Family

ID=89812169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311514567.6A Pending CN117553838A (en) 2023-11-14 2023-11-14 Dynamic angle measurement error calibration method and system for encoder

Country Status (1)

Country Link
CN (1) CN117553838A (en)

Similar Documents

Publication Publication Date Title
CN110375694B (en) Self-calibration method based on angle measurement error of circular grating of portable articulated coordinate measuring machine
CN114670192B (en) Calibration method and device for robot workpiece coordinate system, storage medium and terminal
CN110470320B (en) Calibration method of swinging scanning type line structured light measurement system and terminal equipment
CN113470091A (en) Hub point cloud registration method and device, electronic equipment and storage medium
CN112465877A (en) Kalman filtering visual tracking stabilization method based on motion state estimation
CN108398670B (en) A kind of pulse signal direction finding method and device based on rotating interferometer
CN113189541A (en) Positioning method, device and equipment
WO2019105133A1 (en) Phase deviation compensation method and device
Wu et al. A novel calibration method for non-orthogonal shaft laser theodolite measurement system
CN114061632A (en) High-precision magnetic encoder decoding method for compensating specified subharmonic
CN116124017B (en) Method and device for measuring film thickness, electronic equipment and storage medium
WO2024066472A1 (en) Error compensation method for sine-cosine signal, and storage medium
CN108108335A (en) A kind of method of abnormal value removing and correction and device
CN116678404A (en) A Ship Heave Measurement Method Based on Multiple Fourier Linear Combiner
CN117553838A (en) Dynamic angle measurement error calibration method and system for encoder
CN112198473B (en) Phase disambiguation method based on uniform circular array direction finder and electronic equipment
CN107451992B (en) A method and device for detecting changes in SAR images
EP1782076A1 (en) Method and apparatus for calibrating the rotational relationship between two motion sensors of a sensor system
CN115147465B (en) A three-dimensional point cloud registration method, system and storage medium
CN115049813B (en) Coarse registration method, device and system based on first-order spherical harmonics
CN108253931B (en) Binocular stereo vision ranging method and ranging device thereof
CN116878477A (en) Hemispherical resonator gyro damping non-uniformity parameter identification method, equipment and storage medium
CN110160577A (en) A kind of angle displacement measurement method of incremental rotary encoder, device and equipment
CN112230194B (en) Deblurring method, equipment and storage medium based on translation array
Zhou et al. Analysis and application of real-time compensation of positioning precision of the turntable with a harmonic function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination