CN105573121B - A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment - Google Patents

A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment Download PDF

Info

Publication number
CN105573121B
CN105573121B CN201610028359.9A CN201610028359A CN105573121B CN 105573121 B CN105573121 B CN 105573121B CN 201610028359 A CN201610028359 A CN 201610028359A CN 105573121 B CN105573121 B CN 105573121B
Authority
CN
China
Prior art keywords
self
particle
gain
weight
motor
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.)
Active
Application number
CN201610028359.9A
Other languages
Chinese (zh)
Other versions
CN105573121A (en
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.)
Nanchang University
Original Assignee
Nanchang University
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 Nanchang University filed Critical Nanchang University
Priority to CN201610028359.9A priority Critical patent/CN105573121B/en
Publication of CN105573121A publication Critical patent/CN105573121A/en
Application granted granted Critical
Publication of CN105573121B publication Critical patent/CN105573121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B13/00Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
    • G05B13/02Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
    • G05B13/04Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators
    • G05B13/041Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric involving the use of models or simulators in which a variable is automatically adjusted to optimise the performance

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

一种力反馈设备自主调节自重平衡机构控制算法,通过将改进简单粒子优化算法、PID控制器和线性系统的叠加相结合,用于实时的控制力反馈交互设备的自主调节自重平衡机构的平衡块在平衡机构上的位置,实现力反馈交互设备的自主调节自重平衡机构的控制,有效降低力反馈交互设备的手臂机构重力对人手的所造成影响。本发明能够自动找到准确的PID控制器参数,线性叠加简化了自主调节自重平衡机构控制系统建模手段,此外,为了克服PID控制器中微分信号引入所造成的高频振动,在控制器的微分项上串联一阶低通滤波器,可平滑系统输出响应的振动,消除自主调节自重平衡机构的平衡块所产生的振荡。

A self-adjusting self-weight balance mechanism control algorithm for force feedback equipment. By combining the improved simple particle optimization algorithm, PID controller and linear system superposition, it is used to control the balance block of the self-adjusting self-weight balance mechanism of force feedback interactive equipment in real time. The position on the balance mechanism realizes the self-adjustment control of the self-weight balance mechanism of the force feedback interactive device, and effectively reduces the influence of the gravity of the arm mechanism of the force feedback interactive device on the human hand. The present invention can automatically find accurate PID controller parameters, and the linear superposition simplifies the modeling method of the self-adjusting self-weight balance mechanism control system. In addition, in order to overcome the high-frequency vibration caused by the introduction of the differential signal in the PID controller, the differential signal in the controller A first-order low-pass filter connected in series on the item can smooth the vibration of the output response of the system and eliminate the vibration generated by the balance weight of the self-adjusting self-weight balance mechanism.

Description

一种力反馈设备自主调节自重平衡机构控制算法A control algorithm for self-adjusting self-weight balance mechanism of force feedback equipment

技术领域technical field

本发明属于人机接触交互技术领域,涉及一种力反馈设备自主调节自重平衡机构控制算法。The invention belongs to the technical field of human-machine contact and interaction, and relates to a control algorithm of a force feedback device for self-adjusting self-weight balance mechanism.

背景技术Background technique

在力反馈交互设备中,对设备进行重力补偿是非常关键的问题,在现有的技术中,力反馈设备的重力补偿方法分为有源重力补偿和无源重力补偿两种,其中有源重力补偿方法针对串联连杆机构,采用电机激励装置对各关节的重力进行补偿,由于电机或者激励装置要提供一部分力矩用于抵消重力,必然减小了电机或者激励装置所产生的反馈力,而且也使得系统控制变得复杂,有可能导致系统的不稳定。针对串联连杆机构,采用的无源质量配重重力补偿,额外增加了力反馈设备的转动惯量和摩擦,影响了力反馈设备系统的动态响应。基于此,李春泉发明了一种自主调节自重平衡的力反馈设备(已授权发明专利201110229208.7),该力反馈设备通过实时控制自主调节自重平衡机构的平衡块在平衡杆上的位置,实现对力反馈设备的自动重力补偿。In the force feedback interactive device, it is very important to compensate the gravity of the device. In the existing technology, the gravity compensation method of the force feedback device is divided into two types: active gravity compensation and passive gravity compensation. The compensation method is aimed at the series link mechanism, using the motor excitation device to compensate the gravity of each joint. Since the motor or the excitation device must provide a part of the torque to offset the gravity, the feedback force generated by the motor or the excitation device must be reduced, and it is also It makes the system control complicated and may lead to the instability of the system. For the series link mechanism, the passive mass counterweight gravity compensation adopted additionally increases the moment of inertia and friction of the force feedback device, which affects the dynamic response of the force feedback device system. Based on this, Li Chunquan invented a force feedback device that can automatically adjust the self-weight balance (authorized invention patent 201110229208.7). Automatic gravity compensation of the device.

为了实时控制平衡块在平衡杆上的位置,对力反馈设备的自主调节自重平衡机构建模后,采用PID(Proportion Integral Derivative)控制器控制平衡块在平衡杆上的位置。几个经典的PID调节规则如Ziegler-Nichols规则、Cohen-Coon方法和IAE方法已经被使用来获取期望的PID参数。然而,使用这些方法费时,获得最优或者是近似最优的PID参数非常困难。鉴于此,一些人工智能算法,如Genetic Algorithms(GA)、Simulated Annealing(SA)算法和Particle Swarm Optimization(PSO)算法用于调节PID控制的参数。GA常常比SA算法更快。PSO算法是一种模仿鸟捕食的群体智能行为的全局优化算法,常用于寻找全局最优,该方法与GA算法相类似。这两种算法都随机产生初始解,随后通过进化迭代,找到全局最优解。两者的区别在于:与GA算法相比较,PSO算法没有明确的选择,交叉和变异操作,PSO算法的迭代搜索过程仅仅取决于前面所有迭代次数中的粒子个体最优值和全体粒子的最优值,再用这些最优值来更新下一次迭代的粒子信息。因此,PSO算法调节参数更少,计算代价更低,收敛速度更快,鲁棒性更好。因此,我们采用了一种我们已提出的改进简单粒子优化算法(Modified Simple Particle Swarm Optimization Algorithm)用于调节PID算法参数。与PSO算法相比较,改进简单粒子优化算法更简单,更易于实现,收敛速度更快,收敛精度更高,稳定性更好,能在更短的计算时间内获得更优收敛值。In order to control the position of the balance weight on the balance bar in real time, after modeling the self-adjusting self-weight balance mechanism of the force feedback device, a PID (Proportion Integral Derivative) controller is used to control the position of the balance weight on the balance bar. Several classic PID tuning rules such as Ziegler-Nichols rule, Cohen-Coon method and IAE method have been used to obtain desired PID parameters. However, it is time-consuming to use these methods, and it is very difficult to obtain optimal or nearly optimal PID parameters. In view of this, some artificial intelligence algorithms, such as Genetic Algorithms (GA), Simulated Annealing (SA) algorithm and Particle Swarm Optimization (PSO) algorithm are used to adjust the parameters of PID control. GA is often faster than SA algorithm. The PSO algorithm is a global optimization algorithm that imitates the swarm intelligence behavior of bird predation. It is often used to find the global optimum. This method is similar to the GA algorithm. Both algorithms randomly generate initial solutions, and then find the global optimal solution through evolutionary iterations. The difference between the two is: compared with the GA algorithm, the PSO algorithm has no clear choice, crossover and mutation operations, and the iterative search process of the PSO algorithm only depends on the individual optimal value of the particles and the optimal value of all particles in all previous iterations. value, and then use these optimal values to update the particle information of the next iteration. Therefore, the PSO algorithm has fewer adjustment parameters, lower calculation cost, faster convergence speed and better robustness. Therefore, we adopted a modified simple particle optimization algorithm (Modified Simple Particle Swarm Optimization Algorithm) that we have proposed to adjust the parameters of the PID algorithm. Compared with the PSO algorithm, the improved simple particle optimization algorithm is simpler, easier to implement, faster convergence speed, higher convergence accuracy, better stability, and can obtain better convergence values in a shorter calculation time.

发明内容Contents of the invention

本发明的目的是提出一种力反馈设备自主调节自重平衡机构控制算法。The purpose of the present invention is to propose a force feedback device self-adjusting self-weight balance mechanism control algorithm.

本发明是通过以下技术方案实现的。The present invention is achieved through the following technical solutions.

一种力反馈设备自主调节自重平衡机构控制算法,其特征在于按如下步骤:A self-adjusting self-weight balance mechanism control algorithm for force feedback equipment, characterized in that the steps are as follows:

步骤1:当力反馈设备的自主调节自重平衡机构的平衡块的重力和摩擦产生的转矩τd(S)=0时,建立以电机电枢电压为输入,以电机转角θARC1为输出的自主调节自重平衡机构的控制系统传递函数;当自主调节自重平衡机构的平衡块所受的重力和摩擦力产生的转矩τd(S)≠0时,建立以直流电机克服τd(S)力矩所需的电压U′m(S)为输入,以电机输出力矩τd(S)为输出的自主调节自重平衡机构的控制系统传递函数。Step 1: When the torque τ d (S) generated by the gravity and friction of the balance weight of the self-weight balance mechanism of the force feedback device is 0 = 0, the motor armature voltage is established As the input, the transfer function of the control system of the self-adjusting self-weight balance mechanism with the motor rotation angle θ ARC1 as the output; when the torque τ d (S) ≠ 0 generated by the gravity and friction of the balance weight of the self-adjusting self-weight balance mechanism , to establish the transfer function of the control system of the self-adjusting self-weight balance mechanism, which takes the voltage U′ m (S) required by the DC motor to overcome the torque τ d (S) as the input, and the output torque τ d (S) of the motor as the output.

步骤2:采用线性叠加原理,建立力反馈交互设备自主调节自重平衡机构的整体控制系统函数,dθARC1是直流电机的期望转角,建立平衡块在平衡杆上的期望位置与直流电机期望的转角dθARC1的函数关系式,以电机实际转角θARC1和期望转角dθARC1的误差作为自主调节自重平衡机构的整体控制系统输入,经过改进简单粒子优化PID控制算法调节后,作为直流电机电枢的输入电压Um(S),其中,U′m(S)是用以产生抵消自主调节自重平衡机构的平衡块的重力和摩擦力转矩τd(S)的所需电压,是用以驱动直流电机转动到期望转角dθARC1所需的电压;通过控制器不断调节直流电机实际转动角度θARC1和期望转角dθARC1的差值,从而不断改变电枢输入电压Um(S),使得实际转动角度θARC1逐步到达转动期望转角dθARC1;最终,直流电机的减速主动轮带动减速从动轮,减速从动轮带动驱动小轮,驱动小轮驱动平衡块到达平衡杆的期望位置 Step 2: Using the principle of linear superposition, establish the overall control system function of the force feedback interactive equipment to independently adjust the self-weight balance mechanism, d θ ARC1 is the expected rotation angle of the DC motor, and establish the expected position of the balance weight on the balance bar The functional relationship with the expected rotation angle d θ ARC1 of the DC motor, the error between the actual rotation angle θ ARC1 and the expected rotation angle d θ ARC1 of the motor is used as the input of the overall control system of the self-adjusting self-weight balance mechanism, after adjustment by the improved simple particle optimization PID control algorithm , as the input voltage U m (S) of the DC motor armature, where, U′ m (S) is used to produce the required voltage to offset the gravity and friction torque τ d (S) of the balance weight of the self-adjusting self-weight balancing mechanism, is the voltage required to drive the DC motor to the desired rotation angle d θ ARC1 ; the controller continuously adjusts the difference between the actual rotation angle θ ARC1 and the desired rotation angle d θ ARC1 of the DC motor, thereby continuously changing the armature input voltage U m ( S), so that the actual rotation angle θ ARC1 gradually reaches the desired rotation angle d θ ARC1 ; finally, the deceleration driving wheel of the DC motor drives the deceleration driven wheel, the deceleration driven wheel drives the driving small wheel, and the driving small wheel drives the balance weight to reach the expectation of the balance bar Location

步骤3:设计改进简单粒子优化PID控制算法,用于控制自主调节自重平衡机构的平衡块在平衡杆上的期望位置选用ITAE(Intergral of Time multiply by AbsoluteError)指标作为衡量改进简单粒子优化PID控制算法中的PID(Proportion IntegralDerivative)控制器的比例增益Kp,积分增益Ki,微分增益Kd是否达到最优的指标。其中,MSPSO(Modified Simple Particle Swarm Optimization)算法用用来优化控制PID的比例增益Kp,积分增益Ki和微分增益Kd参数,具体步骤如下:Step 3: Design and improve the simple particle optimization PID control algorithm, which is used to control the desired position of the balance weight of the self-adjusting self-weight balance mechanism on the balance bar The ITAE (Integral of Time multiply by Absolute Error) index is selected as an index to measure whether the proportional gain K p , integral gain K i , and differential gain K d of the PID (Proportion Integral Derivative) controller in the improved simple particle optimization PID control algorithm are optimal. . Among them, the MSPSO (Modified Simple Particle Swarm Optimization) algorithm is used to optimize the proportional gain K p , integral gain K i and differential gain K d parameters of PID control. The specific steps are as follows:

(1)在改进简单粒子优化算法中,Y=(Y1,Y2,…Yn)表示n个粒子构成一个粒子群;其中,Y表示为粒子群集合,Yi(i=1,2,…,n)表示该粒子群中第i个粒子的位置;该粒子群的每个粒子飞行位置搜索空间是一个三维向量空间,该三维位置搜索空间中每一维分别表示PID控制器的比例增益Kp,积分增益Ki和微分增益Kd;设粒子迭代总次数为N次,那么,第i个粒子在第k次迭代中位置表示为:其中,分别为第i个粒子在第k次迭代的比例增益,积分增益,微分增益;这三个参数是随机数,它们的搜索区间范围都在最小值为0,最大值为ρ(ρ>0)的区间之内。(1) In the improved simple particle optimization algorithm, Y=(Y 1 ,Y 2 ,…Y n ) means that n particles form a particle swarm; where, Y represents the set of particle swarms, and Y i (i=1,2 ,...,n) represent the position of the i-th particle in the particle swarm; the flight position search space of each particle in the particle swarm is a three-dimensional vector space, and each dimension in the three-dimensional position search space represents the proportion of the PID controller Gain K p , integral gain K i and differential gain K d ; assuming that the total number of particle iterations is N times, then the position of the i-th particle in the k-th iteration is expressed as: in, and They are the proportional gain, integral gain, and differential gain of the i-th particle at the k-th iteration; these three parameters are random numbers, and their search intervals are all at a minimum value of 0 and a maximum value of ρ (ρ>0) within the interval.

(2)是粒子群第k次迭代中粒子i的位置,分别将代入中作为PID控制器中相应的比例增益,积分增益,微分增益,将τd(S)和dθARC1(S)作为输入激励信号,在第k次迭代中,其相应ITAE指标作为MSPSO算法的适应度值。(2) is the position of particle i in the kth iteration of the particle swarm, respectively and Substituting in as the corresponding proportional gain, integral gain, and differential gain in the PID controller, taking τ d (S) and d θ ARC1 (S) as the input excitation signal, in the kth iteration, its corresponding ITAE index is used as the MSPSO algorithm fitness value.

(3)根据粒子群中所有n个粒子从第1次开始进化迭代直到第k次进化迭代的所有的适应度值ITAE,可以找到全局最优适应度值为:其中,分别表示粒子群中全部n个粒子在k次迭代中的全局最优比例增益,全局最优积分增益,全局最优微分增益。(3) According to all the fitness values ITAE of all n particles in the particle swarm from the first evolutionary iteration to the kth evolutionary iteration, the global optimal fitness value can be found as: in, and Respectively represent the global optimal proportional gain, global optimal integral gain, and global optimal differential gain of all n particles in the particle swarm in k iterations.

(4)Yi(k+1)=λ1η1Yi(k)+λ2η2[Pg(k)-Yi(k)]作为进化迭代更新方程,表示所有n个粒子中的第i个粒子在第k+1次迭代更新;其中,ηi(i=1,2)分别表示在0~1之间的随机数,λ1和λ2各自表示认知学习率和社会学习率,两者一般取常数值1.49445。(4)Y i (k+1)=λ 1 η 1 Y i (k)+λ 2 η 2 [P g (k)-Y i (k)] is used as an evolution iteration update equation, which means that among all n particles The i-th particle of is updated at the k+1 iteration; among them, η i (i=1, 2) represent random numbers between 0 and 1, and λ 1 and λ 2 represent the cognitive learning rate and social Learning rate, the two generally take a constant value of 1.49445.

(5)边界条件约定:n个粒子所组成的粒子群,经过第k迭代计算后,第i个粒子位置Xi(k)中的某一维位置范围超出了指定的区间:该区间的最小值为0,最大值为ρ(ρ>0)。那么,第i个粒子Yi(k)位置的某一维必须被重新指定为0或者ρ(ρ>0)。假如,该维位置变量小于0,则该维位置变量指定为0;该维位置变量大于ρ(ρ>0),则该维位置变量指定为ρ(ρ>0)。(5) Boundary condition agreement: A particle swarm composed of n particles, after the k-th iterative calculation, the position range of a certain dimension in the position of the i-th particle X i (k) exceeds the specified interval: the minimum of the interval The value is 0, and the maximum value is ρ (ρ>0). Then, a certain dimension of the position of the i-th particle Y i (k) must be reassigned to 0 or ρ (ρ>0). If the position variable of this dimension is less than 0, then the position variable of this dimension is designated as 0; if the position variable of this dimension is greater than ρ (ρ>0), then the position variable of this dimension is designated as ρ (ρ>0).

(6)假如运行达到最大迭代次数,则结束迭代,找到所有进化迭代后的全局最优比例增益,全局最优积分增益,全局最优微分增益。否则,回到第(2)步继续顺序执行。最终,我们能找出最优PID控制的比例增益,积分增益,微分增益。(6) If the operation reaches the maximum number of iterations, the iteration is ended, and the global optimal proportional gain, global optimal integral gain, and global optimal differential gain after all evolutionary iterations are found. Otherwise, go back to step (2) and continue to execute sequentially. Finally, we can find out the proportional gain, integral gain and derivative gain of optimal PID control.

步骤4:为了克服PID控制器中微分信号的引入高频干扰,在PID控制器的拉氏变换中的微分项上串联了一阶低通滤波器,构成平滑系统输出响应的振动,其中,0<Ξ<1。Step 4: In order to overcome the high-frequency interference introduced by the differential signal in the PID controller, the Laplace transform of the PID controller A first-order low-pass filter is connected in series with the differential term in The vibration of the smooth system output response, where 0<Ξ<1.

本发明的优点是:将改进简单粒子优化算法与PID控制器相结合,发明了一种改进简单粒子优化PID控制算法,该算法能够自动找到准确的PID控制器参数,线性叠加原理用来简化自主调节自重平衡机构控制系统建模手段,此外,为了克服PID控制器中微分信号引入所造成的高频振动,在控制器的微分项上串联了一阶低通滤波器,用来平滑系统输出响应的振动,消除自主调节自重平衡机构的平衡块所产生的振荡效果。The advantages of the present invention are: the improved simple particle optimization algorithm is combined with the PID controller, and an improved simple particle optimization PID control algorithm is invented, which can automatically find accurate PID controller parameters, and the linear superposition principle is used to simplify autonomous Adjust the modeling method of the self-weight balance mechanism control system. In addition, in order to overcome the high-frequency vibration caused by the introduction of the differential signal in the PID controller, a first-order low-pass filter is connected in series with the differential term of the controller to smooth the system output response. vibration, eliminating the vibration effect produced by the self-adjusting balance weight of the self-weight balance mechanism.

附图说明Description of drawings

图1为力反馈设备的自主调节自重平衡机构连接图,是本发明的控制对象。图中:1为平衡杆,2为平衡块,3为钢丝绳,4为连接件,5为驱动小轮,6为减速主动轮,7为减速从动轮,8为直流电机,9为光电编码器。Fig. 1 is a connection diagram of the self-adjusting self-weight balance mechanism of the force feedback device, which is the control object of the present invention. In the figure: 1 is a balance bar, 2 is a balance weight, 3 is a wire rope, 4 is a connecting piece, 5 is a small driving wheel, 6 is a deceleration driving wheel, 7 is a deceleration driven wheel, 8 is a DC motor, and 9 is a photoelectric encoder .

图2为力反馈设备的自主调节自重平衡机构动力学分析示意图。Fig. 2 is a schematic diagram of the dynamic analysis of the self-adjusting self-weight balance mechanism of the force feedback device.

图3为图1直流电机8伺服传动原理。Fig. 3 is the servo transmission principle of the DC motor 8 in Fig. 1 .

图4为图2自主调节自重平衡位置控制原理图。Fig. 4 is a schematic diagram of self-adjusting self-weight balance position control in Fig. 2 .

图5为基于改进简单粒子优化PID控制器的自主调节自重平衡位置控制原理图。Figure 5 is a schematic diagram of the self-adjusting self-weight balance position control based on the improved simple particle optimization PID controller.

具体实施方式Detailed ways

本发明将结合附图作进一步说明。The present invention will be further described in conjunction with accompanying drawings.

如图1所示,自主调节自重平衡机构由平衡杆1、平衡块2、钢丝绳3、连接件4、驱动小轮5、减速主动轮6、减速从动轮7、直流电机8和光电编码器9构成。平衡块2安装在平衡杆1上,两者接触非常光滑,摩擦很小,平衡块2能够沿着平衡杆2的两个方向运动。平衡杆1通过连接件4固定在力反馈设备上。平衡块驱动减速主动轮6安装在直流电机8上,与直流电机8同轴转动,平衡块驱动减速主动轮6通过钢丝绳带动平衡块驱动减速从动轮7运动,平衡块驱动减速从动轮7带动驱动小轮5与其同轴转动。As shown in Figure 1, the self-adjusting self-weight balance mechanism consists of a balance bar 1, a balance weight 2, a steel wire rope 3, a connecting piece 4, a small driving wheel 5, a deceleration driving wheel 6, a deceleration driven wheel 7, a DC motor 8 and a photoelectric encoder 9 constitute. The balance weight 2 is installed on the balance pole 1 , the contact between the two is very smooth, the friction is very small, and the balance weight 2 can move along the two directions of the balance pole 2 . The balance pole 1 is fixed on the force feedback device through the connecting piece 4 . The balance weight drives the deceleration driving wheel 6 to be installed on the DC motor 8 and rotates coaxially with the DC motor 8. The balance weight drives the deceleration driving wheel 6 to drive the balance weight to drive the deceleration driven wheel 7 to move through the steel wire rope, and the balance weight drives the deceleration driven wheel 7 to drive Steamboat 5 rotates coaxially with it.

为了便于描述,将图1中的力反馈设备的自主调节自重平衡机构,简化为图2自主调节自重平衡机构动力学分析示意图。For the convenience of description, the self-adjusting self-weight balance mechanism of the force feedback device in Fig. 1 is simplified to the dynamic analysis diagram of the self-adjusting self-weight balance mechanism in Fig. 2 .

如图2所示,平衡块2的质量为mb,所受重力为Gb,钢丝绳3对平衡块的作用力为Fp,所受的摩擦力为Ff3,平衡块2在平衡杆上1距离o2瞬时位置为lb,瞬时速度为瞬时加速度平衡块2在平衡杆1上向Qo2和o2Q方向滑动的动力学方程为::As shown in Figure 2, the mass of the balance weight 2 is m b , the gravity is G b , the force exerted by the wire rope 3 on the balance weight is Fp, and the friction force is Ff 3 , the balance weight 2 is on the balance bar 1 The instantaneous position at distance o 2 is l b , and the instantaneous velocity is Instantaneous acceleration The dynamic equation of the balance weight 2 sliding in the direction of Qo 2 and o 2 Q on the balance pole 1 is:

减速主动轮6的半径r1与减速从动轮7的半径r2的比值为1/N,驱动小轮5的转动半径为r3。减速主动轮6嵌套在直流电机8的转轴上,与直流电机8转轴同轴转动,视为整体,它们的转角相同,记为θARC1。驱动小轮5的转角与减速从动轮7也同轴转动,视为整体,转角也相同,转角记为θARC2。转角θARC1和θARC2之间的数学关系为:The ratio of the radius r 1 of the reduction driving wheel 6 to the radius r 2 of the reduction driven wheel 7 is 1/N, and the turning radius of the small driving wheel 5 is r 3 . The deceleration driving wheel 6 is nested on the rotating shaft of the DC motor 8, and rotates coaxially with the rotating shaft of the DC motor 8, regarded as a whole, and their rotation angles are the same, denoted as θ ARC1 . The rotation angle of the small driving wheel 5 and the reduction driven wheel 7 also rotate coaxially, and they are regarded as a whole, and the rotation angle is also the same, and the rotation angle is recorded as θ ARC2 . The mathematical relationship between the rotation angles θ ARC1 and θ ARC2 is:

驱动小轮5通过钢丝绳3拉动平衡块2在平衡杆1上运动,平衡块2在平衡杆上的位置记为lb,直流电机8转角θARC1和驱动小轮5的转角θARC2的数学关系为:The driving small wheel 5 pulls the balance weight 2 to move on the balance pole 1 through the steel wire rope 3, the position of the balance weight 2 on the balance pole is recorded as l b , the mathematical relationship between the rotation angle θ ARC1 of the DC motor 8 and the rotation angle θ ARC2 of the driving small wheel 5 for:

直流电机8及减速主动轮6作为整体,其转动惯量为J1。减速从动轮7与驱动小轮5是同轴转动,也可以看作为一整体,其转动惯量为J2The DC motor 8 and the deceleration driving wheel 6 are taken as a whole, and their moment of inertia is J 1 . The deceleration driven wheel 7 and the driving small wheel 5 rotate coaxially, and can also be regarded as a whole, and its moment of inertia is J 2 .

将减速从动轮7和驱动小轮5作为整体,进行受力分析,可得Taking the deceleration driven wheel 7 and the driving small wheel 5 as a whole, and carrying out force analysis, it can be obtained

其中,τ2是直流电机8和减速主动轮6对减速从动轮7与驱动小轮5整体的作用力矩,B2表示减速从动轮7与驱动小轮5整体所受的粘滞摩擦系数,平衡块2通过钢丝绳3对驱动小轮5和减速从动轮7的作用力为cFp,该力与Fp互为作用力与反作用力。Among them, τ2 is the acting moment of the DC motor 8 and the reduction driving wheel 6 on the reduction driven wheel 7 and the driving small wheel 5 as a whole; The acting force of the block 2 on the driving small wheel 5 and the deceleration driven wheel 7 through the steel wire rope 3 is c Fp, and this force and Fp are acting force and reaction force each other.

如图3所示,将直流电机8和减速主动轮6作为整体进行分析,由基尔霍夫定理,电枢控制直流电机的关系如下:As shown in Figure 3, the DC motor 8 and the deceleration driving wheel 6 are analyzed as a whole. According to Kirchhoff's theorem, the relationship between the armature control DC motor is as follows:

其中,Um,Im,Lm和Rm分别表示直流电机8的电枢回路中的电压,电流,电感和电阻,Ke称为直流电机8的电势常数。Among them, U m , I m , L m and R m represent the voltage, current, inductance and resistance in the armature circuit of the DC motor 8 respectively, and K e is called the potential constant of the DC motor 8 .

直流电机8输出转矩τ1与电枢回路电流Im关系为:The relationship between the output torque τ1 of the DC motor 8 and the armature circuit current Im is:

τ1=K1Im (7)τ 1 =K 1 I m (7)

其中,K1是直流电机8的力矩常数。Wherein, K 1 is the torque constant of the DC motor 8 .

考虑直流电机8机械特性,根据牛顿定律,可求出直流电机8转矩方程:Considering the mechanical characteristics of the DC motor 8, according to Newton's law, the torque equation of the DC motor 8 can be obtained:

其中,J1和B1分别表示直流电机8转子的转动惯量和粘滞摩擦系数。将式(1)~(5)代入式(8)中,可得直流电机8输出力矩τ1和电机转角θARC1之间的微分方程:Among them, J 1 and B 1 represent the moment of inertia and viscous friction coefficient of the DC motor 8 rotor, respectively. Substituting equations (1)-(5) into equation (8), the differential equation between the output torque τ1 of the DC motor 8 and the motor rotation angle θARC1 can be obtained:

其中,J表示等效到直流电机8上整个系统总的转动惯量,B表示等效到直流电机8上整个系统总的粘滞摩擦系数,τd表示自主调节自重平衡机构的平衡块所受的重力和摩擦力产生的转矩(或者表示为抵消平衡块2运动时所受的重力和摩擦力所需的转矩),分别表示如下:Among them, J represents the total moment of inertia of the entire system equivalent to the DC motor 8, B represents the total viscous friction coefficient of the entire system equivalent to the DC motor 8, and τ d represents the force on the balance weight of the self-adjusting self-weight balance mechanism. The torque produced by gravity and friction (or expressed as the torque required to counteract the gravity and friction that the balance weight 2 is subjected to when moving) is expressed as follows respectively:

通过控制直流电机8输出力矩τ1可获得所需的电机转角θARC1,再根据式(3)和(4)可得lb=r3θARC1/N,从而可控制平衡块2在平衡杆1上的位置lbThe required motor rotation angle θ ARC1 can be obtained by controlling the output torque τ 1 of the DC motor 8, and then according to formulas (3) and (4), l b = r 3 θ ARC1 /N can be obtained, so that the balance weight 2 can be controlled on the balance bar position l b on 1.

对式(7),(8)和(9)进行拉普拉斯变换可得(10),(11)和(12):Laplace transform of equations (7), (8) and (9) can be obtained as (10), (11) and (12):

Um(S)=Im(S)Rm+SLmIm(s)+SKeθARC1(S) (10)U m (S) = I m (S) R m + SL m I m (s) + SK e θ ARC1 (S) (10)

其中,Um(S),Im(S)和θARC1(S)分别表示Um,Im和θARC1的拉普拉斯变换。Wherein, U m (S), I m (S) and θ ARC1 (S) represent the Laplace transforms of U m , I m and θ ARC1 respectively.

τ1(S)=K1Im(S) (11)τ 1 (S) = K 1 I m (S) (11)

其中,τ1(S)表示τ1的拉氏变换。Among them, τ 1 (S) represents the Laplace transform of τ 1 .

τ1(S)=S2ARC1(S)+SBθARC1(S)+τd(S) (12)τ 1 (S)=S 2ARC1 (S)+SBθ ARC1 (S)+τ d (S) (12)

其中:τd(S)表示τd的拉氏变换。Among them: τ d (S) represents the Laplace transform of τ d .

再将式(11)和(12)代入式(10)中整理,可得:Substituting equations (11) and (12) into equation (10) to sort out, we can get:

当设τd(S)=0时,此时,将式(13)重新整理,可得如下自主调节自重平衡机构的控制系统的传递函数:When τ d (S) = 0, at this time, Rearranging formula (13), the transfer function of the control system for self-adjusting self-weight balance mechanism can be obtained as follows:

当转矩τd(S)≠0时,直流电机8产生克服平衡块2所受重力和摩擦力力矩τd(S)所需的电压值为U′m(S),这样就建立了U′m(S)与τd(S)的输入输出方关系式为:When the torque τ d (S) ≠ 0, the DC motor 8 produces the voltage value U′ m (S) required to overcome the gravity and friction torque τ d (S) of the balance weight 2, thus establishing U The input-output relationship between ′ m (S) and τ d (S) is:

结合式(14)和式(15),采用线性叠加原理,可以构建出自主调节自重平衡机构的整体控制系统如图4所示。dθARC1是直流电机8期望转角,根据式(4)可将平衡块的期望位置转换成为期望的关节角度dθARC1。这样,电机8实际转角θARC1和期望转角dθARC1的误差作为控制器的输入,Um(S)作为控制器的输出用于提供直流电机8电枢的输入电压,用于驱动直流电机不断向期望转角dθARC1靠近。这样,通过控制器不断调节直流电机8期望转角dθARC1与实际转角θARC1的差值,从而不断改变电枢输入电压Um(S),使得实际转角θARC1逐步到达转动期望转角dθARC1。最终,直流电机8带动减速主动轮6,减速主动轮6通过钢丝绳带动减速从动轮7,减速从动轮7带动驱动小轮5同轴转动,驱动小轮5带动钢丝绳3,钢丝绳3驱动平衡块2到达平衡杆1的期望位置 Combining Equation (14) and Equation (15), and adopting the principle of linear superposition, the overall control system of the self-adjusting self-weight balance mechanism can be constructed, as shown in Figure 4. d θ ARC1 is the expected rotation angle of the DC motor 8, and the expected position of the balance weight can be calculated according to formula (4) Convert to the desired joint angle d θ ARC1 . In this way, the error between the actual rotation angle θ ARC1 of the motor 8 and the expected rotation angle d θ ARC1 is used as the input of the controller, and U m (S) is used as the output of the controller to provide the input voltage of the armature of the DC motor 8 for driving the DC motor continuously. Approach to the desired rotation angle d θ ARC1 . In this way, the controller continuously adjusts the difference between the expected rotation angle d θ ARC1 and the actual rotation angle θ ARC1 of the DC motor 8, thereby continuously changing the armature input voltage U m (S), so that the actual rotation angle θ ARC1 gradually reaches the desired rotation angle d θ ARC1 . Finally, the DC motor 8 drives the deceleration driving wheel 6, the deceleration driving wheel 6 drives the deceleration driven wheel 7 through the wire rope, the deceleration driven wheel 7 drives the driving small wheel 5 to rotate coaxially, the driving small wheel 5 drives the steel wire rope 3, and the steel wire rope 3 drives the balance weight 2 Arrive at the desired position of the balance pole 1

在图4中,自主调节自重平衡机构的直流伺服控制系统为线性系统,采用PID(比例微分积分)控制器进行位置控制。PID控制器的拉氏变换为:In Fig. 4, the DC servo control system of the self-adjusting self-weight balance mechanism is a linear system, and a PID (proportional-differential-integral) controller is used for position control. The Laplace transform of the PID controller is:

其中,Kp是比例增益,Ki是积分增益,Kd是微分增益。Among them, K p is the proportional gain, K i is the integral gain, and K d is the differential gain.

为了选择合理PID控制器参数,我们发明了一种改进简单粒子优化PID控制器,使用改进简单粒子算法,智能的调节PID参数,用于高效控制自主调节自重平衡机构的平衡块,该原理如图5所示。选用ITAE(Intergral of Time multiply by Absolute Error)指标作为衡量PID控制器的比例增益Kp,积分增益Ki,微分增益Kd是否达到最优的评判指标,该指标定义如下:In order to select reasonable PID controller parameters, we invented an improved simple particle optimization PID controller, which uses the improved simple particle algorithm to intelligently adjust the PID parameters, and is used to efficiently control the balance block of the self-adjusting self-weight balance mechanism. The principle is shown in the figure 5. The ITAE (Intergral of Time multiply by Absolute Error) index is selected as the evaluation index to measure whether the proportional gain K p , integral gain K i , and differential gain K d of the PID controller are optimal. The index is defined as follows:

其中,e(t)表示在控制系统中输出与输入的误差,t是时间变量。Among them, e(t) represents the error between output and input in the control system, and t is a time variable.

具体优化调节步骤如下:The specific optimization adjustment steps are as follows:

(1)在改进简单粒子优化算法中,Y=(Y1,Y2,…Yn)表示n个粒子构成一个粒子群;其中,Y表示为粒子群集合,Yi(i=1,2,…,n)表示该粒子群中第i个粒子的位置;该粒子群的每个粒子飞行位置搜索空间是一个3维向量空间,该三维位置搜索空间中每1维分别表示PID控制器的比例增益Kp,积分增益Ki和微分增益Kd;设粒子迭代总次数为N次,那么,第i个粒子在第k次迭代中位置表示为:其中,分别为第i个粒子在第k次迭代的比例增益,积分增益,微分增益;这三个参数是随机数,它们的搜索区间范围都在最小值为0,最大值为ρ(ρ>0)的区间之内。(1) In the improved simple particle optimization algorithm, Y=(Y 1 ,Y 2 ,…Y n ) means that n particles form a particle swarm; where, Y represents the set of particle swarms, and Y i (i=1,2 ,…,n) represent the position of the i-th particle in the particle swarm; the flight position search space of each particle in the particle swarm is a 3-dimensional vector space, and each dimension of the 3-dimensional position search space represents the PID controller’s Proportional gain K p , integral gain K i and differential gain K d ; assuming that the total number of particle iterations is N times, then the position of the i-th particle in the k-th iteration is expressed as: in, and They are the proportional gain, integral gain, and differential gain of the i-th particle at the k-th iteration; these three parameters are random numbers, and their search intervals are all at a minimum value of 0 and a maximum value of ρ (ρ>0) within the interval.

(2)是粒子群第k次迭代中每个粒子i的位置,分别将代入图5中作为PID控制器中相应的比例增益,积分增益,微分增益,将τd(S)和dθARC1(S)作为输入激励信号,在第k次迭代中,其相应ITAE指标作为改进简单粒子优化PID算法的适应度值,使用式(17)计算。(2) is the position of each particle i in the kth iteration of the particle swarm, respectively and Substitute in Figure 5 as the corresponding proportional gain, integral gain, and differential gain in the PID controller, and take τ d (S) and d θ ARC1 (S) as the input excitation signal. In the kth iteration, the corresponding ITAE index is as The fitness value of the improved simple particle optimization PID algorithm is calculated using formula (17).

(3)根据粒子群中所有n个粒子从第1次开始进化迭代直到第k次进化迭代之后所有的适应度值ITAE,找到全局最优适应度值为:其中,分别表示粒子群中全部n个粒子在k次迭代中的全局最优比例增益,全局最优积分增益,全局最优微分增益。(3) According to all the fitness values ITAE of all n particles in the particle swarm from the first evolutionary iteration to the kth evolutionary iteration, find the global optimal fitness value: in, and Respectively represent the global optimal proportional gain, global optimal integral gain, and global optimal differential gain of all n particles in the particle swarm in k iterations.

(4)Yi(k+1)=λ1η1Yi(k)+λ2η2[Pg(k)-Yi(k)]作为进化迭代更新方程,表示所有n个粒子中的第i个粒子在第k+1次迭代更新;其中,ηi(i=1,2)分别表示在0~1之间的随机数,λ1和λ2各自表示认知学习率和社会学习率,两者一般取常数值1.49445。。(4)Y i (k+1)=λ 1 η 1 Y i (k)+λ 2 η 2 [P g (k)-Y i (k)] is used as an evolution iteration update equation, which means that among all n particles The i-th particle of is updated at the k+1 iteration; among them, η i (i=1, 2) represent random numbers between 0 and 1, and λ 1 and λ 2 represent the cognitive learning rate and social Learning rate, the two generally take a constant value of 1.49445. .

(5)边界条件约定:假如由n个粒子所组成的粒子群,经过第k迭的迭代计算后,第i个粒子位置Xi(k)中的某一维位置范围超出了指定的区间:该区间的最小值为0,最大值为ρ(ρ>0)。那么第i个粒子Xi(k)位置的某一维必须被重新指定为0或者ρ(ρ>0)。假如,该维位置变量小于0,则该维位置变量指定为0;该维位置变量大于ρ(ρ>0),则该维位置变量指定为ρ(ρ>0)。(5) Boundary condition agreement: If a particle swarm composed of n particles, after the iterative calculation of the kth iteration, the position range of a certain dimension in the i-th particle position X i (k) exceeds the specified interval: The minimum value of this interval is 0, and the maximum value is ρ (ρ>0). Then a certain dimension of the position of the i-th particle Xi (k) must be reassigned to 0 or ρ (ρ>0). If the position variable of this dimension is less than 0, then the position variable of this dimension is designated as 0; if the position variable of this dimension is greater than ρ (ρ>0), then the position variable of this dimension is designated as ρ (ρ>0).

(6)假如进化迭代数达到最大迭代次数N,则结束迭代,找到所有进化迭代后的全局最优比例增益,全局最优积分增益,全局最优微分增益。否则,回到第(2)步继续顺序执行。这样,根据图5中的改进简单粒子优化PID控制算法,就能找出该系统最优PID控制的比例增益,积分增益,微分增益。(6) If the number of evolution iterations reaches the maximum number of iterations N, then end the iteration, and find the global optimal proportional gain, global optimal integral gain, and global optimal differential gain after all evolution iterations. Otherwise, go back to step (2) and continue to execute sequentially. In this way, according to the improved simple particle optimization PID control algorithm in Fig. 5, the proportional gain, integral gain and differential gain of the optimal PID control of the system can be found out.

为了克服PID中微分信号的引入高频干扰,在PID控制器的拉氏变换中的微分项上串联了一个一阶低通滤波器,构成平滑系统输出响应的振动,其中,0<Ξ<1。In order to overcome the high-frequency interference introduced by the differential signal in PID, the Laplace transform of the PID controller A first-order low-pass filter is connected in series on the differential term in The vibration of the smooth system output response, where 0<Ξ<1.

Claims (1)

1.一种力反馈设备自主调节自重平衡机构控制算法,其特征在于按如下步骤:1. A force feedback device self-adjusting self-weight balancing mechanism control algorithm, characterized in that as follows: 步骤1:当力反馈设备的自主调节自重平衡机构的平衡块的重力和摩擦产生的转矩τd(S)=0时,建立以电机电枢电压为输入,以电机转角θARC1为输出的自主调节自重平衡机构的控制系统传递函数;当自主调节自重平衡机构的平衡块所受的重力和摩擦力产生的转矩τd(S)≠0时,建立以直流电机克服τd(S)力矩所需的电压U′m(S)为输入,以电机输出力矩τd(S)为输出的自主调节自重平衡机构的控制系统传递函数;Step 1: When the torque τ d (S) generated by the gravity and friction of the balance weight of the self-weight balance mechanism of the force feedback device is 0 = 0, the motor armature voltage is established As the input, the transfer function of the control system of the self-adjusting self-weight balance mechanism with the motor rotation angle θ ARC1 as the output; when the torque τ d (S) ≠ 0 generated by the gravity and friction of the balance weight of the self-adjusting self-weight balance mechanism , establish the transfer function of the control system of the self-adjusting self-weight balance mechanism with the voltage U′ m (S) required by the DC motor to overcome the torque τ d (S) as the input and the output torque τ d (S) of the motor as the output; 步骤2:采用线性叠加原理,建立力反馈交互设备自主调节自重平衡机构的整体控制系统函数,dθARC1是直流电机的期望转角,建立平衡块在平衡杆上的期望位置与直流电机期望的转角dθARC1的函数关系式,以电机实际转角θARC1和期望转角dθARC1的误差作为自主调节自重平衡机构的整体控制系统输入,经过改进简单粒子优化PID控制算法调节后,作为直流电机电枢的输入电压Um(S),其中,U′m(S)是用以产生抵消自主调节自重平衡机构的平衡块的重力和摩擦力转矩τd(S)的所需电压,是用以驱动直流电机转动到期望转角dθARC1所需的电压;通过控制器不断调节直流电机实际转动角度θARC1和期望转角dθARC1的差值,不断改变电枢输入电压Um(S),使得实际转动角度θARC1逐步到达转动期望转角dθARC1;最终,直流电机的减速主动轮带动减速从动轮,减速从动轮带动驱动小轮,驱动小轮驱动平衡块,使平衡杆到达期望位置 Step 2: Using the principle of linear superposition, establish the overall control system function of the force feedback interactive equipment to independently adjust the self-weight balance mechanism, d θ ARC1 is the expected rotation angle of the DC motor, and establish the expected position of the balance weight on the balance bar The functional relationship with the expected rotation angle d θ ARC1 of the DC motor, the error between the actual rotation angle θ ARC1 and the expected rotation angle d θ ARC1 of the motor is used as the input of the overall control system of the self-adjusting self-weight balance mechanism, after adjustment by the improved simple particle optimization PID control algorithm , as the input voltage U m (S) of the DC motor armature, where, U′ m (S) is used to produce the required voltage to offset the gravity and friction torque τ d (S) of the balance weight of the self-adjusting self-weight balancing mechanism, is the voltage required to drive the DC motor to the desired rotation angle d θ ARC1 ; the controller continuously adjusts the difference between the actual rotation angle θ ARC1 and the desired rotation angle d θ ARC1 of the DC motor, and continuously changes the armature input voltage U m (S ), so that the actual rotation angle θ ARC1 gradually reaches the desired rotation angle d θ ARC1 ; finally, the deceleration driving wheel of the DC motor drives the deceleration driven wheel, the deceleration driven wheel drives the driving small wheel, and the driving small wheel drives the balance weight, so that the balance bar reaches the desired Location 步骤3:设计改进简单粒子优化PID控制算法,用于控制自主调节自重平衡机构的平衡块在平衡杆上的期望位置选用ITAE指标作为衡量改进简单粒子优化PID控制算法中的PID控制器的比例增益Kp,积分增益Ki和微分增益Kd是否达到最优的指标;在改进简单粒子优化PID控制算法中,改进简单粒子优化算法用来优化控制PID控制器的比例增益Kp,积分增益Ki和微分增益Kd参数,具体步骤如下:Step 3: Design and improve the simple particle optimization PID control algorithm, which is used to control the desired position of the balance weight of the self-adjusting self-weight balance mechanism on the balance bar The ITAE index is selected as the index to measure whether the proportional gain K p , the integral gain K i and the differential gain K d of the PID controller in the improved simple particle optimization PID control algorithm are optimal; in the improved simple particle optimization PID control algorithm, the improved The simple particle optimization algorithm is used to optimize the proportional gain K p , integral gain K i and differential gain K d parameters of the control PID controller. The specific steps are as follows: (1)在改进简单粒子优化算法中,Y=(Y1,Y2,…Yn)表示n个粒子构成一个粒子群;其中,Y表示为粒子群集合,Yi(i=1,2,…,n)表示该粒子群中第i个粒子的位置;该粒子群的每个粒子飞行位置搜索空间是一个三维向量空间,该三维位置搜索空间中每一维分别表示PID控制器的比例增益Kp,积分增益Ki和微分增益Kd;设粒子迭代总次数为N次,那么,第i个粒子在第k次迭代中位置表示为:其中,分别为第i个粒子在第k次迭代的比例增益,积分增益,微分增益;这三个参数是随机数,它们的搜索范围都在最小值为0,最大值为ρ的区间之内,其中,ρ>0;(1) In the improved simple particle optimization algorithm, Y=(Y 1 ,Y 2 ,…Y n ) means that n particles form a particle swarm; where, Y represents the set of particle swarms, and Y i (i=1,2 ,...,n) represent the position of the i-th particle in the particle swarm; the flight position search space of each particle in the particle swarm is a three-dimensional vector space, and each dimension in the three-dimensional position search space represents the proportion of the PID controller Gain K p , integral gain K i and differential gain K d ; assuming that the total number of particle iterations is N times, then the position of the i-th particle in the k-th iteration is expressed as: in, and are the proportional gain, integral gain, and differential gain of the i-th particle at the k-th iteration; these three parameters are random numbers, and their search ranges are all within the interval between the minimum value of 0 and the maximum value of ρ, where , ρ>0; (2)是粒子群第k次迭代中粒子i的位置,分别将作为PID控制器中相应的比例增益,积分增益,微分增益,将τd(S)和dθARC1作为输入激励信号,在第k次迭代中,其相应ITAE指标作为改进简单粒子优化算法的适应度值;(2) is the position of particle i in the kth iteration of the particle swarm, respectively and As the corresponding proportional gain, integral gain, and differential gain in the PID controller, taking τ d (S) and d θ ARC1 as the input excitation signal, in the kth iteration, its corresponding ITAE index is used as the adaptation of the improved simple particle optimization algorithm degree value; (3)根据粒子群中所有n个粒子从第1次开始进化迭代直到第k次进化迭代的所有的适应度值ITAE,可以找到全局最优适应度值为:其中,分别表示粒子群中全部n个粒子在k次迭代中的全局最优比例增益,全局最优积分增益,全局最优微分增益;(3) According to all the fitness values ITAE of all n particles in the particle swarm from the first evolutionary iteration to the kth evolutionary iteration, the global optimal fitness value can be found as: in, and Respectively represent the global optimal proportional gain, global optimal integral gain, and global optimal differential gain of all n particles in the particle swarm in k iterations; (4)Yi(k+1)=λ1η1Yi(k)+λ2η2[Pg(k)-Yi(k)]作为进化迭代更新方程,表示所有n个粒子中的第i个粒子在第k+1次迭代更新;其中,ηi(i=1,2)分别表示在0~1之间的随机数,λ1和λ2各自表示认知学习率和社会学习率,两者取常数值1.49445;(4)Y i (k+1)=λ 1 η 1 Y i (k)+λ 2 η 2 [P g (k)-Y i (k)] is used as an evolution iteration update equation, which means that among all n particles The i-th particle of is updated at the k+1 iteration; among them, η i (i=1, 2) represent random numbers between 0 and 1, and λ 1 and λ 2 represent the cognitive learning rate and social Learning rate, both take a constant value of 1.49445; (5)边界条件约定:n个粒子所组成的粒子群,经过第k次迭代计算后,第i个粒子位置Yi(k)中的某一维位置范围超出了指定的区间:该区间的最小值为0,最大值为ρ,其中,ρ>0;那么第i个粒子Yi(k)位置的某一维必须被重新指定为0或者为ρ;假如,该维位置变量小于0,则该维位置变量指定为0;假如,该维位置变量大于ρ,则该维位置变量指定为ρ;(5) Boundary condition agreement: for a particle swarm composed of n particles, after the k-th iterative calculation, the position range of a certain dimension in the position Y i (k) of the i-th particle exceeds the specified interval: The minimum value is 0, and the maximum value is ρ, where ρ>0; then a certain dimension of the position of the i-th particle Y i (k) must be redesignated as 0 or ρ; if the position variable of this dimension is less than 0, Then the position variable of this dimension is designated as 0; if the position variable of this dimension is greater than ρ, then the position variable of this dimension is designated as ρ; (6)假如运行达到最大迭代次数N,则结束迭代,找到所有进化迭代后的全局最优比例增益,全局最优积分增益,全局最优微分增益;否则,回到第(2)步继续顺序执行;最终,找出最优PID控制的比例增益,积分增益和微分增益;(6) If the operation reaches the maximum number of iterations N, then end the iteration and find the global optimal proportional gain, global optimal integral gain, and global optimal differential gain after all evolutionary iterations; otherwise, return to step (2) to continue the sequence Execute; finally, find the proportional gain, integral gain and differential gain of the optimal PID control; 步骤4:为了克服PID控制器中微分信号的引入高频干扰,在PID控制器的拉氏变换中的微分项上串联一阶低通滤波器,构成用来平滑系统输出响应的振动,其中,0<Ξ<1。Step 4: In order to overcome the high-frequency interference introduced by the differential signal in the PID controller, the Laplace transform of the PID controller A first-order low-pass filter is connected in series with the differential term in to form The vibration used to smooth the output response of the system, where 0<Ξ<1.
CN201610028359.9A 2016-01-18 2016-01-18 A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment Active CN105573121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610028359.9A CN105573121B (en) 2016-01-18 2016-01-18 A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610028359.9A CN105573121B (en) 2016-01-18 2016-01-18 A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment

Publications (2)

Publication Number Publication Date
CN105573121A CN105573121A (en) 2016-05-11
CN105573121B true CN105573121B (en) 2018-07-20

Family

ID=55883387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610028359.9A Active CN105573121B (en) 2016-01-18 2016-01-18 A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment

Country Status (1)

Country Link
CN (1) CN105573121B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970527B (en) * 2017-03-30 2020-04-10 奥克斯空调股份有限公司 PID control engineering implementation method
CN109584324B (en) * 2018-10-24 2022-12-06 南昌大学 A Reconstruction Method for Positron Emission Tomography (PET) Based on Autoencoder Network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101623864A (en) * 2009-08-13 2010-01-13 天津大学 Force feedback type master manipulator with deadweight balance property
CN102320040A (en) * 2011-08-11 2012-01-18 南昌大学 Force feedback interactive device for automatically regulating balance of dead weight
CN103406908A (en) * 2013-07-31 2013-11-27 北京邮电大学 Force feedback hand controller with three degrees of freedom rotation
US8994643B2 (en) * 2003-10-30 2015-03-31 3D Systems, Inc. Force reflecting haptic interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8994643B2 (en) * 2003-10-30 2015-03-31 3D Systems, Inc. Force reflecting haptic interface
CN101623864A (en) * 2009-08-13 2010-01-13 天津大学 Force feedback type master manipulator with deadweight balance property
CN102320040A (en) * 2011-08-11 2012-01-18 南昌大学 Force feedback interactive device for automatically regulating balance of dead weight
CN103406908A (en) * 2013-07-31 2013-11-27 北京邮电大学 Force feedback hand controller with three degrees of freedom rotation

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Design and Implementation of a haptic interface device with auto-regulation gravity;李春泉、刘小平、徐少平;《IEEE International Workshop on Haptic Audio Visual Environments and Games》;20111231;158-163 *
PID Controller Tuning using a Modified Simple Particle Swarm Optimization Algorithm;李春泉,刘小平,徐少平;《International Journal of Advancements in Computing Technology》;20120930;第4卷(第16期);1-8 *

Also Published As

Publication number Publication date
CN105573121A (en) 2016-05-11

Similar Documents

Publication Publication Date Title
Khooban Design an intelligent proportional-derivative (PD) feedback linearization control for nonholonomic-wheeled mobile robot
CN110552961A (en) Active magnetic bearing control method based on fractional order model
CN113703319A (en) Joint module inequality constraint optimal robust control method based on reinforcement learning
CN114952835A (en) Flexible joint mechanical arm neural network integral sliding mode controller design method based on disturbance observer
CN105573121B (en) A kind of autonomous adjusting dead weight balance mechanism control algolithm of force feedback equipment
Zhao et al. Feedback parameter selection for impedance control of series elastic actuators
Rios-Gutierrez et al. Efficient position control of DC Servomotor using backpropagation Neural Network
CN112947055B (en) Method for tracking and controlling displacement speed of magnetic suspension train based on echo state network
US20230305563A1 (en) Method for building controller for robot, method, device for controlling motion of robot, and robot
Perng et al. FOPID controller optimization based on SIWPSO-RBFNN algorithm for fractional-order time delay systems
Lin et al. Modified Elman neural network controller with improved particle swarm optimisation for linear synchronous motor drive
Majczak et al. Comparison of two efficient control strategies for two-wheeled balancing robot
Shamseldin et al. A new self-tuning nonlinear PID motion control for one-axis servomechanism with uncertainty consideration
Abdulla et al. Roll control system design using auto tuning LQR technique
Jie et al. RBF neural network adaptive sliding mode control based on genetic algorithm optimization
Al-Araji Design of on-line nonlinear kinematic trajectory tracking controller for mobile robot based on optimal back-stepping technique
Jiang et al. Trajectory tracking control of industrial robot manipulators using a neural network controller
CN102790582B (en) Manufacturing method of radial fuzzy neural network generalized inverse controller of bearingless asynchronous motor
Kapoor et al. Evolutionary optimized neural network (EONN) based motion control of manipulator
Demir et al. Comparison of metaheuristic optimization algorithms for quadrotor pid controllers
Abdo Stability and Control of an Inverted Pendulum Motion
Yagnamurthy et al. Modeling and control of motorized robotic arm using hybrid GA-PSO algorithm
Supriyono et al. Control of a single-link flexible manipulator using improved bacterial foraging algorithm
Pyka et al. Control stepsize optimization for tri-wheel mobile robot
CN109799765A (en) Steering engine electrohydraulic servo system intelligent control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant