光学仪器  2025, Vol. 47 Issue (3): 15-22   PDF    
椭圆光斑在四象限探测器定位算法的研究
郝林结, 马军山, 金涛     
上海理工大学 光电信息与计算机工程学院,上海 200093
摘要: 为提高四象限探测器对椭圆高斯光斑位置的测量精度,特别是在椭圆光斑与四象限探测器中心坐标存在偏移角时的精度,提出了一种椭圆高斯光斑定位算法。以高斯分布的椭圆光斑作为入射光斑模型,通过无穷积分拟合算法和最小二乘法拟合最佳解析表达式。为建立椭圆光斑在四象限探测器位置的所有模型,对偏移角度进行了多项式拟合,简化了椭圆光斑与四象限探测器中心坐标存在偏移角时的定位算法。最后,通过仿真计算,确定偏移角与定位算法的拟合关系式。经过算法补偿后的定位精度能够达到亚微米量级,为椭圆光斑的定位算法提供了理论基础。
关键词: 四象限探测器    椭圆光斑    偏移角    定位算法    高斯光斑    
Research on localization algorithm of elliptical spot in four quadrant detector
HAO Linjie, MA Junshan, JIN Tao     
School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China
Abstract: In order to improve the measurement accuracy of the elliptical Gaussian spot position in the four quadrant detector and the position detection accuracy of the elliptical spot and the center coordinate of the four quadrant detector with an offset rotation angle, a localization algorithm for the elliptical Gaussian spot is proposed. An elliptical light spot with Gaussian distribution was used as the incident light spot model, and infinite integral fitting algorithm and the least squares method were used to fit the optimal analytical expression. In order to establish all models of elliptical spot in the four quadrant detector, polynomial fitting was performed on the offset angle to simplify the calculation of the algorithm for locating the offset angle between the elliptical spot and the center coordinate of the four quadrant detector. Finally, based on simulation, the fitting relationship between the offset angle and the localization algorithm was determined. The positioning accuracy of the algorithm can reach sub-micron level, providing a theoretical basis for the localization algorithm of elliptical spots.
Key words: four quadrant detector    elliptical spot    offset angle    localization algorithm    Gaussian spot    
引 言

四象限探测器(four quadrant detector,FQD)是由4个基本相同的光电二极管组成,用来定位外部投射光斑相对四象限探测器中心的位置[1]。它具有灵敏度高、光谱范围广、位置分辨率高、抗干扰能力强[2]等优点, 因此常被应用于军事制导、精密检测、航空等领域,并可用于关键部件的力学参数测量,如船用实心轴形变监测、飞机螺旋桨推力测试以及风力发电机转动轴扭矩测量。在利用光学方法测量船用实心轴因海水阻力产生的微小形变时,‌位移、速度或角度参数的测量‌精度均受多种因素影响,‌而光斑中心定位算法的误差是主要误差来源之一。近年来,研究者针对四象限探测器光斑定位精度的影响因素开展了大量研究:文献[3]分析了经典和差算法、对角线算法、对数算法等,但这些算法的测试精度不足;文献[4]提出了高精度的数据库查询法,其仿真误差相对于经典算法的误差显著减小,达到$ {10^{ - 5}} $ mm数量级,但由于计算量大,无法满足实时性需求;文献[5]使用Composite拟合算法进行光斑定位,仿真实验表明,其测量误差为$ {10^{ - 4}} $ mm数量级。该算法是目前应用最广泛的定位算法。以上定位算法都基于标准圆形光斑,这也是目前研究最为广泛的一种模型。文献[6]详细分析了光斑的形状,并建立了椭圆光斑模型。当光束与探测器光敏面法线存在微小夹角时,椭圆光斑模型能够减小由此所产生的误差。但该模型计算光斑中心位置的精度不高,且只讨论了椭圆光斑长短轴与四象限探测器中心坐标系的坐标轴重合这一种情况,并没有分析椭圆光斑长短轴与坐标轴存在偏移角时的情况。

为了解决椭圆光斑长短轴与坐标轴存在偏移角时的定位问题,本研究提出了基于椭圆模型的无穷积分(infinite integral)拟合算法,采用最小二乘法拟合最佳解析表达式。首先进行了仿真计算,该定位算法的测试精度为微米量级,并设计系统对数据进行分析处理。同时,对该算法进行补偿修正,补偿后的精度能够达到亚微米量级,验证了所提方法的有效性。

1 四象限探测器光斑定位原理和算法

四象限探测器由4个理论上性能一致的光电二极管组成[6-7]。如图1所示,4个探测器均匀地排布在直角坐标系的ABCD这 4个象限上。当半导体激光器发出的光束照射在四象限探测器光敏面上时,光电二极管会因受激吸收产生电子,从而形成电流。该电流大小和探测器所接收的光能量成正比[8]

图 1 四象限探测器工作原理图 Figure 1 Working principle diagram of four quadrant detector

当光斑中心$({x_0},{y_0})$相对于四象限探测器光敏面发生偏移时,各象限接收的光能量也会发生变化,从而导致每个光电二极管产生的电流大小发生改变。根据经典的加减法,可以得到光斑中心的解算值$(\mathop x\limits^ \wedge ,\mathop y\limits^ \wedge)$[6-8]

$ \begin{gathered} \mathop x\limits^ \wedge = \dfrac{{({I_A} + {I_D}) - ({I_B} + {I_C})}}{{{I_A} + {I_B} + {I_C} + {I_D}}} = \dfrac{{({P_A} + {P_D}) - ({P_B} + {P_C})}}{{{P_A} + {P_B} + {P_C} + {P_D}}} \\ \mathop y\limits^ \wedge = \dfrac{{({I_A} + {I_B}) - ({I_C} + {I_D})}}{{{I_A} + {I_B} + {I_C} + {I_D}}} = \dfrac{{({P_A} + {P_B}) - ({P_C} + {P_D})}}{{{P_A} + {P_B} + {P_C} + {P_D}}} \\ \end{gathered} $ (1)

式中:$(\mathop x\limits^ \wedge ,\mathop y\limits^ \wedge )$为光斑中心在四象限探测器上的解算值;$ {I_A} $$ {I_B} $$ {I_C} $$ {I_D} $为四象限探测器每个象限产生的光电流;$ {P_A} $$ {P_B} $$ {P_C} $$ {P_D} $为每个象限接收的光能量。

2 基于椭圆高斯光斑四象限探测器定位算法 2.1 椭圆高斯光斑模型

当激光在真空或大气中近距离传输时,照射于四象限探测器光敏面上的光束能量分布可近似为高斯分布[9],具有中心强度最高,径向强度逐渐衰减的特征,如图2所示。激光照射光斑的位置情况可以分为两种:一种如图3(a)所示,椭圆光斑长短轴与四象限探测器坐标轴重合;另一种如图3(b)所示,椭圆光斑长短轴与四象限探测器坐标轴存在偏移角。

图 2 椭圆高斯光斑能量分布图 Figure 2 Energy distribution profile of an elliptical Gaussian spot

图 3 椭圆光斑在四象限探测器光敏面不同位置状态 Figure 3 Elliptical spots at different positions on four quadrant detector photosensitive surfaces

椭圆高斯光斑的能量分布函数[10]

$ {E_{}}(x,y) = \dfrac{{2{I_0}}}{{{\text{π }}{r_x}{r_y}}}\exp \left[ { - \left(\dfrac{{2x_\theta^2}}{{r_x^2}} + \dfrac{{2y_\theta^2}}{{r_y^2}}\right) }\right] $ (2)

其中

$ \begin{gathered} {x_\theta } = (x - {x_0}) \cdot \cos \theta + (y - {y_0}) \cdot \sin \theta \\ {y_\theta } = - (x - {x_0}) \cdot \sin \theta + (y - {y_0}) \cdot \cos \theta \\ \end{gathered} $ (3)

式中:(xy)为光斑任意点坐标;I0为高斯光斑总能量;$ {r_x} $$ {r_y} $为椭圆高斯光斑的长轴和短轴;$ ({x_0},{y_0}) $为光斑中心坐标;θ为椭圆光斑长短轴相对四象限探测器坐标系xy轴的偏移角。圆形高斯光斑能量分布也可以用该函数来表示。

2.2 基于椭圆高斯光斑的无穷积分定位算法

根据以上椭圆形光斑能量分布模型,再结合四象限探测器的象限宽度半径R,同时将探测器光敏面的盲区半宽度d考虑在内,通过式(4)可以更加精确地推导出椭圆光斑在四象限探测器各象限的光能量[11]

$ \begin{gathered} {P_A} = \displaystyle\int_d^R {\displaystyle\int_d^R {{E_{}}(x,y){\text{d}}x{\text{d}}y} } \\ {P_B} = \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_d^R {{E_{}}(x,y){\text{d}}x{\text{d}}y} } \\ {P_C} = \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_{ - R}^{ - d} {{E_{}}(x,y){\text{d}}x{\text{d}}y} } \\ {P_D} = \displaystyle\int_d^R {\displaystyle\int_{ - R}^{ - d} {{E_{}}(x,y){\text{d}}x{\text{d}}y} } \end{gathered} $ (4)

将式(4)代入式(1),可得到光斑中心位置相对于四象限探测器中心的解算表达式

$ \begin{aligned} \mathop x\limits^ \wedge =&\; \dfrac{{({P_A} + {P_D}) - ({P_B} + {P_C})}}{{{P_A} + {P_B} + {P_C} + {P_D}}} =\\& \dfrac{{\bigg[\displaystyle\int_d^R {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_d^R {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y\bigg]} } - \bigg[\displaystyle\int_{ - R}^{ - d} {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} + } \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } \bigg]}}{{\displaystyle\int_d^R {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} + } \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_d^R {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } }} \\ \mathop y\limits^ \wedge =&\; \dfrac{{({P_A} + {P_B}) - ({P_C} + {P_D})}}{{{P_A} + {P_B} + {P_C} + {P_D}}} =\\& \dfrac{{\bigg[\displaystyle\int_d^R {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} \bigg]} - \bigg[\displaystyle\int_{ - R}^{ - d} {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_d^R {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } \bigg]}}{{\displaystyle\int_d^R {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_d^R {E(x,y){\text{d}}x{\text{d}}y} + } \displaystyle\int_{ - R}^{ - d} {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } + \displaystyle\int_d^R {\displaystyle\int_{ - R}^{ - d} {E(x,y){\text{d}}x{\text{d}}y} } }} \end{aligned}$ (5)

式(5)属于超越方程,无法求解。高斯光斑在光敏面外的光强很弱,可以忽略不计,将积分的上下限转化成无穷,可以对方程进行求解,得到的表达式为[12]

$ \begin{gathered} \mathop x\limits^ \wedge = {\text{erf}}\left(\dfrac{{\sqrt 2 }}{{{r_x}}}{x_0}\right) \\ \mathop y\limits^ \wedge = {\text{erf}}\left(\dfrac{{\sqrt 2 }}{{{r_y}}}{y_0}\right) \\ \end{gathered} $ (6)

式中,$ {\text{erf}}(\alpha ) = \dfrac{2}{{\sqrt {\text{π }} }}\displaystyle\int_0^\alpha {{{\text{e}}^{ - {t ^2}}}{\text{d}}t} $,为误差函数,其中t为积分运算的中间变量。对式(6)两边取反函数,可得到关于$ \mathop x\limits^ \wedge $$ \mathop y\limits^ \wedge $的近似解。

同理,x0y0的表达式为

$ \begin{gathered} {x_0} = \dfrac{{{\text{er}}{{\text{f}}^{ - 1}}(\mathop x\limits^ \wedge ){r_x}}}{{\sqrt 2 }} \\ {y_0} = \dfrac{{{\text{er}}{{\text{f}}^{ - 1}}(\mathop y\limits^ \wedge ){r_y}}}{{\sqrt 2 }} \\ \end{gathered} $ (7)

可将式(7)中的光斑中心位置近似表达式改写为

$ \begin{gathered} {x_0} = \dfrac{{{\text{er}}{{\text{f}}^{ - 1}}(\mathop x\limits^ \wedge ){r_x}}}{{\sqrt 2 }} = g(\mathop x\limits^ \wedge ) \times {r_x} \\ {y_0} = \dfrac{{{\text{er}}{{\text{f}}^{ - 1}}(\mathop y\limits^ \wedge ){r_x}}}{{\sqrt 2 }} = g(\mathop y\limits^ \wedge ) \times {r_y} \\ \end{gathered} $ (8)

式中,$ g(\mathop x\limits^ \wedge ) = {\text{er}}{{\text{f}}^{ - 1}}(\mathop x\limits^ \wedge )/\sqrt 2 $,是仅关于$ \mathop x\limits^ \wedge $的函数,可通过查表得到。但它未考虑四象限探测器光敏面外环境的影响,所以其误差较大。为了提高四象限探测器检测精度和线性检测范围,引入补偿因子[13]$ \eta $对行函数进行拟合。光斑中心位置的解析表达式为

$ \begin{gathered} {x_\theta } = g(\mathop x\limits^ \wedge ) \times {r_x} \times {\eta _x}({r_x},R,d,\theta ) \\ {y_\theta } = g(\mathop y\limits^ \wedge ) \times {r_y} \times {\eta _y}({r_y},R,d,\theta ) \\ \end{gathered} $ (9)

$ \eta $中引入影响因素 $ {r_x} $$ {r_y} $,可将式(9)后两项合并,得

$ \begin{gathered} {x_\theta } = g(\mathop x\limits^ \wedge ) \times {\eta _x}({r_x},R,d,\theta ) \\ {y_\theta } = g(\mathop y\limits^ \wedge ) \times {\eta _y}({r_y},R,d,\theta ) \\ \end{gathered} $ (10)

为了得到补偿因子$ {\eta _x}、{\eta _y} $的函数,假设椭圆高斯光斑照射在半径为R,盲区宽度为2d的四象限探测器光敏面上。将光斑中心$ (X{}_i,{Y_i}) $$ (- \mu ,0) $移动到$ (\mu ,0) $,步长为$ {\sigma _{\mathrm{s}}} $,记录每一步中四象限输出电流值,将真实值$ (X{}_i,{Y_i}) $和解算值$ (\mathop x\limits^ \wedge ,\mathop y\limits^ \wedge ) $一一映射。采用最小二乘法,建立位置检测误差的数学模型

$ \begin{gathered} I({\eta _x}) = {\| {{{\text{δ}}_x}} \|^2} = \displaystyle\sum\limits_{i = 1}^N {\left[ {x(\mathop x\limits^ \wedge ,{\eta _x}) - {X_i}} \right]} \\ I({\eta _y}) = {\| {{{\text{δ}}_y}} \|^2} = \displaystyle\sum\limits_{i = 1}^N {\left[ {y(\mathop y\limits^ \wedge ,{\eta _y}) - {Y_i}} \right]} \\ \end{gathered} $ (11)

对等式两边求导,得到

$ \begin{gathered} \dfrac{{\partial I}}{{\partial {\eta _x}}} = 2\displaystyle\sum\limits_{i = 1}^N {{g^2}(\mathop x\limits^ \wedge )} \times {\eta _x} - 2\displaystyle\sum\limits_{i = 1}^N {g(\mathop x\limits^ \wedge )} \times {X_i} \\ \dfrac{{\partial I}}{{\partial {\eta _y}}} = 2\displaystyle\sum\limits_{i = 1}^N {{g^2}(\mathop y\limits^ \wedge )} \times {\eta _y} - 2\displaystyle\sum\limits_{i = 1}^N {g(\mathop y\limits^ \wedge )} \times {Y_i} \\ \end{gathered} $ (12)

$ \dfrac{{\partial I}}{{\partial {\eta _{x,y}}}} $= 0,计算出最优$ {\eta _x}、{\eta _y} $

$ {\eta _x} = \dfrac{{\displaystyle\sum\limits_{i = 1}^N {g(\mathop x\limits^ \wedge )} \times {X_i}}}{{\displaystyle\sum\limits_{i = 1}^N {{g^2}(\mathop x\limits^ \wedge )} }},\;\;{\eta _y} = \dfrac{{\displaystyle\sum\limits_{i = 1}^N {g(\mathop y\limits^ \wedge )} \times {Y_i}}}{{\displaystyle\sum\limits_{i = 1}^N {{g^2}(\mathop y\limits^ \wedge )} }} $ (13)

本文以R = 3.8 mm,d = 0.021 mm的四象限探测器为例进行仿真分析,该定位算法也适用于其他四象限探测器。在实际应用中,选定好合适的四象限探测器和光源后,保持探测器和光源的距离不变,就可将测量系统中四象限探测器的Rd和光斑的$ {r_x} $$ {r_y} $视为固定值。当入射光斑的长短轴分别为3 mm和2 mm时,设定不同偏移角$ \theta $,则补偿因子$ {\eta _x}、{\eta _y} $是仅关于$ \theta $的函数。由图4可知,长轴与四象限探测器坐标系中x轴重合,短轴与y轴重合的椭圆光斑绕中心点逆时针旋转时,长短轴与四象限探测器坐标轴的偏移角将越来越大,x轴的补偿因子会随之减小,而y轴的补偿因子会随之增大。

图 4 x轴和y轴补偿因子与偏移角的关系曲线 Figure 4 The relationship between the x-axis and y-axis compensation factors and the offset angle

图4可知,补偿因子$ {\eta _x}、{\eta _y} $是关于$ \theta $的函数,通过五次多项式进行拟合,计算式为

$ \;\begin{aligned} & {\eta _x} = 1.470 \;2 - 1.268 \;53 \times {10^{ - 4}} \times \theta - 1.043\; 73 \times {10^{ - 4}} \times\\ &\;\; {\theta ^2} - 7.738 \;96 \times {10^{ - 7}} \times {\theta ^3} + 1.801 \;7 \times {10^{ - 8}} \times {\theta ^4} - \\ &\;\; 4.336\; 46 \times {10^{ - 11}} \times {\theta ^5} \\ &{\eta _y} = 0.970 \;53 - 2.331 \;88 \times {10^{ - 4}} \times \theta + 2.243\; 8 \times {10^{ - 4}} \times \\ &\;\; {\theta ^2} - 1.598\; 69 \times {10^{ - 6}} \times {\theta ^3} - 8.841 \;77 \times {10^{ - 9}} \times {\theta ^4} + \\ &\;\; 7.597\; 71 \times {10^{ - 11}} \times {\theta ^5} \end{aligned}$ (14)

在其他因素都确定的情况下,根据四象限探测器输出的$ (\mathop x\limits^ \wedge ,\mathop y\limits^ \wedge ) $,及式(14)求出的补偿因子就可求出光斑中心位置$ ({x_\theta },{y_\theta }) $,其拟合表达式为

$ \begin{aligned} {x}_\theta=& {g}(\stackrel{\wedge }{x})\times (1.470\;2-1.268\;53\times {10}^{-4}\times \theta -\\ & 1.043\;73 \times {10}^{-4} \times {\theta }^{2} - 7.738\;96 \times {10}^{-7}\times {\theta }^{3} +\\ & 1.801\;7 \times {10}^{-8} \times {\theta }^{4}-4.336\;46\times {10}^{-11}\times {\theta }^{5})\\ {y}_\theta=& {g}(\stackrel{\wedge }{y})\times (0.970\;53-2.331\;88\times {10}^{-4}\times \theta +\\ & 2.243\;8 \times {10}^{-4} \times {\theta }^{2} - 1.598\;69\times {10}^{-6}\times {\theta }^{3} -\\ & 8.841\;77 \times {10}^{-9} \times {\theta }^{4} + 7.597\;71 \times {10}^{-11}\times {\theta }^{5}) \end{aligned}$ (15)

由式(15)可知,对于同一套测试系统,在四象限探测器和光源确定的情况下,只需做一组标定实验就可以确定光斑中心位置与偏移角的关系。这不仅能减少计算量,还能使定位精度达到微米量级。

仿真计算了偏移角分别为0°、30°、45°和60°(见图5)时,椭圆光斑沿xy轴移动时的定位算法误差。图6所示为,椭圆光斑沿x轴移动时的定位算法误差。由图可知,当偏移角分别为0°、30°、45°和60°时,4条误差曲线均关于原点对称,且x轴的定位算法误差及最大误差值均随偏移角的增大而增大。在(0,0.75) mm区间内,定位算法误差随偏移角增大而增大。图7是椭圆光斑沿y轴移动时的定位算法误差,曲线的变化趋势与x轴的相同,但在(0,0.5) mm区间内,y轴的定位算法误差随偏移角的增大而逐渐减小。

图 5 椭圆光斑在四象限探测器光敏面的4种方位图 Figure 5 Four orientation maps of elliptical spots on the photosensitive surface of four quadrant detectors

图 6 椭圆光斑x轴定位算法误差 Figure 6 Error in x-axis positioning algorithm for elliptical spots

图 7 椭圆光斑y轴定位算法误差 Figure 7 Error in y-axis positioning algorithm for elliptical spots
3 实验与结果分析

为了验证椭圆光斑模型无穷积分拟合算法的有效性和精度,设计了基于四象限探测器的光斑位置检测系统。它包括波长为620 nm的激光器,直径为7.8 mm的光敏面,盲区为0.042 mm的四象限探测器(Thorlabs,QPD80A)以及二维精密位移台。系统还包括信号采集和数据处理模块,其中采集卡(VKINGING,VK702N)的本底噪声为0.12 mV。图8为检测系统示意图,激光器发出的光束经光学透镜和孔径光阑后,形成长轴为3mm,短轴为2 mm的椭圆光斑测试光束。将四象限探测器固定安装于微米级二维位移台上,可实现xy轴方向的精密移动。

图 8 光斑位置检测系统示意图 Figure 8 Schematic diagram of spots position detection system

仿真验证了基于椭圆高斯光斑的定位算法。采用图8所示实验平台,通过手动旋转平台(最小刻度为10′)调整角度,当椭圆光斑长轴与四象限探测器光敏面坐标系x轴呈0°、30°、45°和60°夹角时,进行了光斑长轴和短轴的标定实验。将光斑中心从(−1 mm,0)移动到(1 mm,0),步长为10 μm,在每个位移点采集四象限探测器的输出电流值。通过式(1)的解算位移值和真实位移值建立映射关系,标定光斑x轴补偿因子。y轴补偿因子则通过二维位移台将光斑中心从(0,−0.8 mm)移动到(0,0.8 mm),步长为10 μm,进行算法标定。接着,将光斑中心从(−1 mm,0)移动到(1 mm,0),从(0,−0.8 mm)移动到(0,0.8 mm),步长为20 μm,在每个位移点采集四象限探测器的输出电流值。利用输出电流值及标定实验获得的补偿因子定位光斑位置。将定位算法的计算结果与光斑真实位置进行比对,以验证算法的定位精度。

图9所示为静态遮光条件下,测试系统的四象限探测器输出功率谱密度,采集卡的采集频率为1 Hz。在采集范围内,测得系统最大噪声为$ 3.79 \times {10^{ - 5}} $ mm。

图 9 系统输出功率谱密度 Figure 9 System output power spectral density

图10所示为偏移角为45°时x轴定位算法补偿前后的误差曲线,图中小三角形标识曲线为定位算法计算值与真实值之间的误差。由图6图7所示仿真结果可知,定位误差曲线在负半轴和正半轴呈对称,所以本文主要分析正半轴区间(0,1) mm内定位算法的误差,并采用均方根误差(root mean squared error,RMSE)Erms来描述定位精度。$ {E_{{\text{rms}}}} = \sqrt {\dfrac{1}{N}{{\displaystyle\sum\limits_{i = 1}^N {\left( {{X_i} - X} \right)} ^2}}} $N为定位次数,$ {X_i} $为光斑定位算法计算值,X为光斑移动真实值。在(0,1) mm区间内,补偿前定位算法x轴的Erms为8.159 5 μm。由图6可知,偏移角为45°时,仿真计算x轴的Erms为2.375 μm。定位算法误差曲线的变化趋势和仿真结果大体相同,验证了本文算法的可行性。补偿前算法的固定误差为微米量级,为提高光斑定位精度,需对标定实验得出的误差值进行补偿。图10中小圆点标识的为补偿后x轴误差曲线,其Erms为0.219 3 μm,相对于补偿前算法精度提高了97.3%。同理,图11y轴定位算法补偿前后的误差曲线,图中小三角形标识曲线为定位算法计算值与真实值之间的误差。在(0,0.75) mm区间内,定位算法误差曲线趋势与图7所示仿真结果相似,验证了椭圆无穷积分算法的可行性。补偿前定位算法y轴的Erms为7.019 2 μm。由图7可知,偏移角为45°时,仿真计算y轴的Erms为0.964 μm。图11中小圆点标识的为补偿后y轴误差曲线,其Erms为0.267 6 μm,相对于补偿前的算法精度提高了96.2%。理论上,修正后的Erms应该为0,但由于系统处于光照不稳定环境,杂光进入等原因会使得系统噪声误差增大。在静态遮光条件下,系统最大噪声误差为3.79 ×10−5 mm,所以补偿后的误差精度为亚微米量级,x轴和y轴的测量精度已经达到了船用轴承形变量测量标准[14]

图 10 偏移角为45°时椭圆光斑长轴(x轴)定位算法补偿前后误差 Figure 10 Error before and after compensation of the elliptical spot long axis (x-axis) localization algorithm at an offset angle of 45°

图 11 偏移角为45°时椭圆光斑短轴(y轴)定位算法补偿前后误差 Figure 11 Error before and after compensation of the elliptical spot short axis (y-axis) localization algorithm at an offset angle of 45°

表1所示为不同偏移角时,补偿前后定位算法的均方根误差。由结果可知,在x轴方向偏移角越大,均方根误差越大;在y轴方向,偏移角越大,均方根误差越小。这与图6图7所示仿真结果相同。本文提出的椭圆无穷积分算法在补偿后,x轴和y轴方向的Erms相对于补偿前降低了94.83%~97.80%。

表 1 椭圆光斑定位算法补偿前后均方根误差比较 Table 1 Comparison of root mean square error between the elliptical spot detection algorithms before and after compensation
4 结 论

本文提出基于椭圆高斯模型的无穷积分拟合定位算法,通过仿真计算椭圆光斑长短轴与探测器坐标系坐标轴间的偏移角,验证了算法对任意偏移角度的适应性;在固定光源与四象限探测器的条件下,通过标定实验建立了光斑中心坐标关于偏移角的函数模型;进一步通过补偿修正将检测精度提升至10-4 mm,满足船用轴承形变测试精度。未来在椭圆光斑定位精度的研究中需对信号放大处理电路[15]进行重点讨论,因为在小信号的处理过程中电磁干扰会显著降低定位精度,优化算法和抗干扰设计是后续的核心研究方向。

参考文献
[1] 林志琦, 李会杰, 郎永辉, 等. 用四象限光电探测器获得光斑参数[J]. 光学精密工程, 2009, 17(4): 764–770. DOI:10.3321/j.issn:1004-924X.2009.04.012
[2] 秦立存, 贺伟. 基于四象限探测器的激光光斑中心定位算法[J]. 应用激光, 2021, 41(3): 561–568.
[3] 胡贤龙, 周世椿. 几种四象限探测器测角算法的分析研究[J]. 激光与红外, 2007, 37(6): 546–547,551. DOI:10.3969/j.issn.1001-5078.2007.06.017
[4] 高紫俊, 董丽丽, 孟丽艳, 等. 四象限探测器高精度定位算法研究[J]. 光电子·激光, 2013, 24(12): 2314–2321.
[5] 吴佳彬, 陈云善, 高世杰, 等. 高精度近红外光斑位置检测模型研究[J]. 红外与激光工程, 2016, 45(7): 0717001.
[6] 周子云, 高云国, 邵帅, 等. 采用四象限探测器的光斑中心定位算法[J]. 计算机测量与控制, 2014, 22(7): 2154–2156. DOI:10.3969/j.issn.1671-4598.2014.07.048
[7] 刁宽, 刘晓军, 徐龙, 等. 四象限探测器光斑定位精度影响因素研究[J]. 华中科技大学学报(自然科学版), 2022, 50(4): 14–18.
[8] YU J W, LI Q, LI H W, et al. High-precision light spot position detection in low SNR condition based on quadrant detector[J]. Applied Sciences, 2019, 9(7): 1299. DOI:10.3390/app9071299
[9] 苟晔鹏, 刘星, 刘强, 等. 基于Infinite integral的四象限探测器光斑位置检测算法[J]. 激光与红外, 2021, 51(9): 1249–1256. DOI:10.3969/j.issn.1001-5078.2021.09.023
[10] 蔡贵霞. 四象限激光定位测量技术研究[D]. 南京: 南京理工大学, 2018.
[11] 张辉, 陈云善, 耿天文, 等. 四象限探测器位置检测精度的主要影响因素研究[J]. 中国激光, 2015, 42(12): 298–306.
[12] 西安电子科技大学. 一种椭圆高斯分布光斑质心的高精度定位方法: 202210612824.9[P]. 2022−09−09.
[13] WANG X, SU X Q, LIU G Z, et al. Investigation of high-precision algorithm for the spot position detection for four-quadrant detector[J]. Optik, 2020, 203: 163941. DOI:10.1016/j.ijleo.2019.163941
[14] 刘祺霖, 欧阳武, 闫琦隆. 舰船推进轴系轴承载荷识别与标定方法[J]. 船舶力学, 2023, 27(7): 1075–1083. DOI:10.3969/j.issn.1007-7294.2023.07.011
[15] WANG X, SU X Q, LIU G Z, et al. Research on photoelectric signal preprocessing of four-quadrant detector in free space optical communication system[C]//Proceedings of 2020 IEEE 5th International Conference on Signal and Image Processing (ICSIP). Nanjing: IEEE, 2020: 628 − 632.