CN115913012A - Function type hybrid control method for driving motor of special electric vehicle - Google Patents

Function type hybrid control method for driving motor of special electric vehicle Download PDF

Info

Publication number
CN115913012A
CN115913012A CN202211444656.3A CN202211444656A CN115913012A CN 115913012 A CN115913012 A CN 115913012A CN 202211444656 A CN202211444656 A CN 202211444656A CN 115913012 A CN115913012 A CN 115913012A
Authority
CN
China
Prior art keywords
current
output
time
axis
speed
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
CN202211444656.3A
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.)
Shenyang University of Technology
Original Assignee
Shenyang University of Technology
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 Shenyang University of Technology filed Critical Shenyang University of Technology
Priority to CN202211444656.3A priority Critical patent/CN115913012A/en
Publication of CN115913012A publication Critical patent/CN115913012A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Of Ac Motors In General (AREA)

Abstract

The invention provides a functional hybrid control method for a driving motor of an electric special vehicle, which combines a fuzzy PID algorithm and a conventional PID control algorithm through a switching function to obtain the comprehensive advantages of the two control algorithms. Meanwhile, in order to reduce the calculation burden and the execution time of the controller and facilitate the engineering realization, a fuzzy proportional algorithm with the transient performance of a fuzzy PID algorithm is adopted for replacing. The operation state of the motor is studied in sections according to the operation condition of the special vehicle, and the weights of the outputs of the two control algorithms are determined by using a group of rules or an independent fuzzy algorithm, so that an additional fuzzy calculation is needed, the increased calculation time and gain constant adjustment can reduce the switching frequency of a control system, and the higher torque fluctuation condition is caused.

Description

一种电动特种车辆驱动电机的函数式混合控制方法A functional hybrid control method for driving motors of electric special vehicles

技术领域Technical Field

本发明涉及电机控制技术领域,具体涉及一种电动特种车辆驱动电机的函数式混合控制方法。The present invention relates to the technical field of motor control, and in particular to a functional hybrid control method for a driving motor of an electric special vehicle.

背景技术Background Art

永磁同步电机及其控制系统具有效率高、控制精度高、转矩密度大、转矩平稳性好及振动噪声低等特点在电动汽车领域广泛应用。电动汽车配永磁同步电机,其工作环境复杂,需频繁启动,大幅度加减速,同时考虑续航里程因素,这就需其控制系统具有系统效率高、适应能力强的特点。高性能的控制策略应用于电机控制系统,可使电机的各种潜在能力得到充分的发挥,使电机的工作性能更符合使用要求。电动特种车辆作为特殊类型的电动汽车,由于其运行、作业过程中的特殊性,对其工作过程的平稳性、效率、续航等提出了新的要求。Permanent magnet synchronous motors and their control systems are widely used in the field of electric vehicles due to their high efficiency, high control accuracy, high torque density, good torque stability, and low vibration and noise. Electric vehicles equipped with permanent magnet synchronous motors have a complex working environment and require frequent starting, large acceleration and deceleration, and considering the mileage factor. This requires their control systems to have the characteristics of high system efficiency and strong adaptability. High-performance control strategies are applied to motor control systems to fully utilize the various potential capabilities of the motor and make the motor's working performance more in line with the requirements of use. As a special type of electric vehicle, electric special vehicles have new requirements for the stability, efficiency, and endurance of their working process due to the particularity of their operation and operation.

传统电机控制技术在能耗、性能、控制性等方面存在很大的弊端,不利于提升电动特种车辆的续航、行驶安全、作业安全、舒适性方面能力,且优化电机及其控制技术也是提升电动汽车运行性能,推动电动汽车行业发展的关键。Traditional motor control technology has great drawbacks in terms of energy consumption, performance, and controllability, which is not conducive to improving the endurance, driving safety, operating safety, and comfort capabilities of electric special vehicles. Optimizing motors and their control technology is also the key to improving the operating performance of electric vehicles and promoting the development of the electric vehicle industry.

发明内容Summary of the invention

针对现有技术的不足,考虑智能算法在瞬态条件下性能优越,而PID控制器在稳态条件下性能优越。将模糊PID算法和常规PID控制算法通过切换函数进行结合可获得这两种控制算法的综合优点。为了减少控制器的计算负担和执行时间,易于工程化实现,本专利提出采用具有模糊PID算法瞬态性能的模糊比例算法代替模糊方法。同时,考虑使用一组规则或一个单独的模糊算法来确定两个控制算法的输出的权重,则需要一个额外的模糊计算,更多的计算时间,更多的增益常数调整。增加的计算量会降低控制系统开关频率,导致较高的转矩波动,本专利进一步提出切换函数式混合控制策略,设计切换函数计算输出权重控制两者输出占比。In view of the shortcomings of the prior art, it is considered that the intelligent algorithm has superior performance under transient conditions, while the PID controller has superior performance under steady-state conditions. The fuzzy PID algorithm and the conventional PID control algorithm are combined through a switching function to obtain the comprehensive advantages of the two control algorithms. In order to reduce the computational burden and execution time of the controller and facilitate engineering implementation, this patent proposes to use a fuzzy proportional algorithm with the transient performance of the fuzzy PID algorithm instead of the fuzzy method. At the same time, considering the use of a set of rules or a separate fuzzy algorithm to determine the weights of the outputs of the two control algorithms, an additional fuzzy calculation, more calculation time, and more gain constant adjustments are required. The increased amount of calculation will reduce the switching frequency of the control system, resulting in higher torque fluctuations. This patent further proposes a switching function hybrid control strategy, and designs a switching function to calculate the output weight to control the output ratio of the two.

本发明提出一种电动特种车辆驱动电机的函数式混合控制方法,包括以下步骤:The present invention provides a functional hybrid control method for a driving motor of an electric special vehicle, comprising the following steps:

步骤1:车辆启动,电机控制器上电,电机控制器通过捕获单元读取油门信号并通过计算将其转化成给定转速n*(k);同时电机控制器采集通过旋转变压器传送回来的电机转速n(k);Step 1: The vehicle starts, the motor controller is powered on, and the motor controller reads the throttle signal through the capture unit and converts it into a given speed n * (k) through calculation; at the same time, the motor controller collects the motor speed n(k) transmitted back through the rotary transformer;

步骤2:通过模糊比例控制器计算速度偏差en(k)=n*(k)-n(k)、速度偏差变化量ecn(k)=en(k)-en(k-1);其中,n*(k)表示k时刻的给定转速,en(k)表示k时刻的速度差,en(k-1)表示(k-1)时刻的速度差值;Step 2: Calculate the speed deviation en (k)=n * (k)-n(k) and the speed deviation change ecn (k)= en (k) -en (k-1) by using the fuzzy proportional controller; where n * (k) represents the given speed at time k, en (k) represents the speed difference at time k, and en (k-1) represents the speed difference at time (k-1);

通过公式(1)计算得出k时刻的电流调节输出量

Figure BDA0003949668140000021
The current regulation output at time k is calculated by formula (1):
Figure BDA0003949668140000021

Figure BDA0003949668140000022
Figure BDA0003949668140000022

其中,Ke为模糊比例控制器的量化因子;Among them, Ke is the quantization factor of the fuzzy proportional controller;

步骤3:PID控制器根据步骤2中速度偏差en(k)和速度偏差变化量ecn(k)通过公式(2)计算得出电流调节输出量

Figure BDA0003949668140000023
Step 3: The PID controller calculates the current regulation output according to the speed deviation e n (k) and the speed deviation change ec n (k) in step 2 through formula (2):
Figure BDA0003949668140000023

Figure BDA0003949668140000024
Figure BDA0003949668140000024

其中,kp、ki、kd为PID控制器控制参数;

Figure BDA0003949668140000025
为PID控制器(k-1)时刻输出的电流值;en(k)、2en(k-1)、en(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;Among them, k p , k i , k d are the control parameters of the PID controller;
Figure BDA0003949668140000025
is the current value output by the PID controller at time (k-1); en (k), 2en (k-1), and en (k-2) are the speed deviations output at time k, (k-1), and (k-2) respectively;

步骤4:根据步骤2中en(k)通过公式(3)、公式(4)的切换函数计算电流调节输出量

Figure BDA0003949668140000026
Figure BDA0003949668140000027
的输出权重,根据公式(5)计算出最终的电流调节输出量iq*(k);Step 4: Calculate the current regulation output according to e n (k) in step 2 through the switching function of formula (3) and formula (4)
Figure BDA0003949668140000026
and
Figure BDA0003949668140000027
The output weight of is calculated according to formula (5) to obtain the final current regulation output iq * (k);

Figure BDA0003949668140000028
Figure BDA0003949668140000028

f2(x)=1-f1(x) (4)f 2 (x) = 1 - f 1 (x) (4)

Figure BDA0003949668140000029
Figure BDA0003949668140000029

其中x的取值为速度偏差en(k),f1(x)为

Figure BDA00039496681400000210
的权重,f2(x)为
Figure BDA00039496681400000211
的权重;a、b为常数,根据实际操作经验选取。The value of x is the speed deviation en (k), and f 1 (x) is
Figure BDA00039496681400000210
The weight of f 2 (x) is
Figure BDA00039496681400000211
The weight of; a, b are constants, selected according to actual operation experience.

步骤5:通过电流模数(A/D)中断采集电流霍尔传感器反馈回来的电机三相电流ia、ib、ic,经数字滤波处理后,首先通过Park变换得到矢量静止坐标电流iα、iβ,再经Clarke变换得到交轴电流iq和直轴电流id;Step 5: The three-phase currents ia, ib, and ic of the motor fed back by the current Hall sensor are collected through current analog-to-digital (A/D) interruption. After digital filtering, the vector static coordinate currents i α and i β are first obtained through Park transformation, and then the quadrature axis current iq and the direct axis current id are obtained through Clarke transformation.

步骤6:交轴给定电流iq*与反馈交轴电流iq进行比较得到交轴电流偏差量eiq(k)=iq*(k)-iq(k)和交轴电流偏差变化量eciq(k)=eiq(k)-eiq(k-1),eiq(k-1)为k-1时刻的交轴电流偏差量;通过式(6)计算得出k时刻的交轴电压调节输出量uq(k);Step 6: Compare the quadrature-axis given current iq * with the feedback quadrature-axis current iq to obtain the quadrature-axis current deviation e iq (k) = iq * (k) - iq (k) and the quadrature-axis current deviation change ec iq (k) = e iq (k) - e iq (k-1), where e iq (k-1) is the quadrature-axis current deviation at time k-1; calculate the quadrature-axis voltage regulation output u q (k) at time k through formula (6);

Figure BDA00039496681400000212
Figure BDA00039496681400000212

式中,uq(k)表示k时刻的输出的交轴电压、uq(k-1)表示k-1时刻的输出的交轴电压,eiq(k)、eiq(k-1)、eiq(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;Wherein, uq (k) represents the quadrature-axis voltage output at time k, uq (k-1) represents the quadrature-axis voltage output at time k-1, eiq (k), eiq (k-1), eiq (k-2) are the speed deviations output at time k, (k-1), (k-2) respectively;

控制直轴给定电流id*=0;直轴给定电流id*与反馈直轴电流id进行比较得到直轴电流偏差量eid(k)=id*(k)-id(k)和直轴电流偏差变化量ecid(k)=eid(k)-eid(k-1);通过式(7)计算得出k时刻的直轴电压调节输出量ud(k);Control the direct axis given current id * = 0; compare the direct axis given current id * with the feedback direct axis current id to obtain the direct axis current deviation e id (k) = id * (k) - id (k) and the direct axis current deviation change ec id (k) = e id (k) - e id (k-1); calculate the direct axis voltage regulation output ud (k) at time k through formula (7);

ud(k)=ud(k-1)+kpecid(k)+kieid(k)+kd[eid(k)-2eid(k-1)+eid(k-2)] (7)u d (k)=u d (k-1)+k p ec id (k)+k i e id (k)+k d [e id (k)-2e id (k-1)+e id ( k-2)] (7)

式中,ud(k)表示k时刻的直轴电压、ud(k-1)表示k-1时刻的直轴电压,eid(k)、eid(k-1)、eid(k-2)分别为k、(k-1)、(k-2)时刻输出的电流偏差量;Wherein, ud (k) represents the direct-axis voltage at time k, ud (k-1) represents the direct-axis voltage at time k-1, eid (k), eid (k-1), and eid (k-2) are the current deviations output at time k, (k-1), and (k-2), respectively;

步骤7:将uq(k)、ud(k)经过Clarke逆变换,得到αβ轴电压uα、uβ,再通过Park逆变换计算得ua、ub、uc;最后,控制器根据三相电压ua、ub、uc值调整TIM1寄存器CCR1、CCR2、CCR3的值,以控制SVPWM模块输出六路PWM波控制信号,驱动逆变器工作,输出可变的幅值和频率到电机定子三相绕组,实现调速控制。Step 7: Perform Clarke inverse transformation on u q (k) and ud (k) to obtain αβ axis voltages u α and u β , and then calculate u a , u b , and u c through Park inverse transformation; finally, the controller adjusts the values of TIM1 registers CCR1, CCR2, and CCR3 according to the three-phase voltages u a , u b , and u c to control the SVPWM module to output six-channel PWM wave control signals, drive the inverter to work, and output variable amplitude and frequency to the three-phase winding of the motor stator to achieve speed control.

本发明的有益效果是:The beneficial effects of the present invention are:

1)高性能的控制策略应用于电机控制系统,可使电机的各种潜在能力得到充分的发挥,使电机的工作性能更符合使用要求。针对用户对特种车辆更多高性能需求以及特种车辆驱动电机复杂的运行情况,电机控制系统采用单一控制策略无法满足对驱动电机的有效控制。本发明提出改进的函数式混合控制方法。根据特种车辆运行工况将电机的运行状态分段研究,将适合各个阶段的两种控制算法通过切换函数进行综合,发挥电机高性能输出;1) High-performance control strategies are applied to motor control systems, which can fully utilize the various potential capabilities of the motor and make the motor's working performance more in line with the use requirements. In view of users' more high-performance requirements for special vehicles and the complex operating conditions of special vehicle drive motors, the motor control system cannot meet the effective control of the drive motor using a single control strategy. The present invention proposes an improved functional hybrid control method. According to the operating conditions of special vehicles, the operating state of the motor is studied in sections, and the two control algorithms suitable for each stage are integrated through switching functions to exert the high-performance output of the motor;

2)函数式混合控制方法关键在于切换函数的建立。切换函数需分配各控制算法的输出时机或权重,所以切换函数的准确性决定着控制系统的控制性能。本发明通过对各控制算法计算分析,建立切换函数。既减少了因冗余计算带来的转矩波动,又准确的确定了各算法控制器的输出占比。2) The key to the functional hybrid control method lies in the establishment of the switching function. The switching function needs to allocate the output timing or weight of each control algorithm, so the accuracy of the switching function determines the control performance of the control system. The present invention establishes a switching function by calculating and analyzing each control algorithm. It not only reduces the torque fluctuation caused by redundant calculation, but also accurately determines the output proportion of each algorithm controller.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明中电动特种车辆驱动电机的函数式混合控制器框图;FIG1 is a block diagram of a functional hybrid controller for a driving motor of an electric special vehicle in the present invention;

图2为本发明中电动车辆驱动电机矢量控制的调速系统的原理框图;FIG2 is a functional block diagram of a speed control system for a vector controlled electric vehicle drive motor according to the present invention;

图3为本发明中输出权重与速度偏差关系曲线图;FIG3 is a graph showing the relationship between output weight and speed deviation in the present invention;

图4为本发明中电动特种车辆驱动电机的函数式混合控制方法基于DSP为核心的控制器软件实现流程图。FIG. 4 is a flowchart of the functional hybrid control method of the electric special vehicle drive motor in the present invention, which is based on the controller software with DSP as the core.

具体实施方式DETAILED DESCRIPTION

下面结合附图和具体实施实例对发明做进一步说明。The invention will be further described below with reference to the accompanying drawings and specific implementation examples.

电动特种车辆运行工作时,其驱动电机经常处于启动、加速、稳速、减速等多种工作状态,并伴随各种干扰。单一控制算法很难满足各个工作状态的最优控制要求。为了保证电动特种车辆在启动、托举转运、托举作业、空载运行等各个工作状态下运行平稳,避免抖动,增强工作效率等,需考虑各个工作状态下电机的输出特性,设计符合各个阶段的速度控制算法以发挥电机最优输出性能。考虑智能算法在瞬态条件下性能优越,而PID控制器在稳态条件下性能优越。将模糊PID算法和常规PID控制算法通过切换函数进行结合可获得这两种控制算法的综合优点。同时,为了减少控制器的计算负担和执行时间,易于工程化实现,并根据模糊速度控制器的输出可知,在瞬态开始时,其值接近最大允许的输出值,且随着速度误差的减少,而减少。为进一步减少模糊算法的计算量,设计模糊比例控制器代替模糊PID控制器。模糊比例控制器是一个比例调节控制器,其增益调调节是在限制器的约束下实现,模糊比例控制器的输出与瞬态开始时模糊控制器的输出相当。When electric special vehicles are running, their drive motors are often in various working states such as starting, acceleration, steady speed, deceleration, etc., accompanied by various interferences. It is difficult for a single control algorithm to meet the optimal control requirements of each working state. In order to ensure that electric special vehicles run smoothly in various working states such as starting, lifting and transporting, lifting operation, and no-load operation, avoid jitter, and enhance work efficiency, it is necessary to consider the output characteristics of the motor in each working state, and design a speed control algorithm that meets each stage to give full play to the optimal output performance of the motor. Considering that the intelligent algorithm has superior performance under transient conditions, while the PID controller has superior performance under steady-state conditions. Combining the fuzzy PID algorithm and the conventional PID control algorithm through a switching function can obtain the comprehensive advantages of the two control algorithms. At the same time, in order to reduce the calculation burden and execution time of the controller, it is easy to implement engineering, and according to the output of the fuzzy speed controller, at the beginning of the transient, its value is close to the maximum allowable output value, and it decreases as the speed error decreases. In order to further reduce the calculation amount of the fuzzy algorithm, a fuzzy proportional controller is designed to replace the fuzzy PID controller. The fuzzy proportional controller is a proportional adjustment controller whose gain adjustment is realized under the constraint of the limiter. The output of the fuzzy proportional controller is equivalent to the output of the fuzzy controller at the beginning of the transient.

考虑使用一组规则或一个单独的模糊算法来确定两个控制算法的输出的权重,则需要一个额外的模糊计算,更多的计算时间,更多的增益常数调整。增加的计算量会降低控制系统开关频率,导致较高的转矩波动,设计切换函数计算输出权重控制两者输出占比。其控制原理框图如图1所示。Considering using a set of rules or a separate fuzzy algorithm to determine the weight of the output of the two control algorithms, an additional fuzzy calculation, more calculation time, and more gain constant adjustments are required. The increased amount of calculation will reduce the switching frequency of the control system, resulting in higher torque fluctuations. The switching function is designed to calculate the output weight to control the output ratio of the two. The control principle block diagram is shown in Figure 1.

电动特种车辆永磁同步电机控制采用空间矢量控制方式。其调速系统的原理如图2所示。该调速系统由以下五部分组成:速度环(函数式混合控制器)、两电流环控制器(电流PID控制器);坐标转换模块;空间矢量脉冲宽度调制模块;逆变器模块;位置和速度检测模块。The permanent magnet synchronous motor control of electric special vehicles adopts space vector control. The principle of its speed control system is shown in Figure 2. The speed control system consists of the following five parts: speed loop (functional hybrid controller), two current loop controllers (current PID controller); coordinate conversion module; space vector pulse width modulation module; inverter module; position and speed detection module.

控制过程:给定转速信号,与检测到的转速求差,经模糊比例控制器、常规PID控制调节后输出,同时切换函数根据转差确定两控制器的输出权重,经计算输出交轴电流分量,作为q轴电流PID调节器的给定信号iqref;同时,经过坐标变换,定子反馈电流由iabc变成id,iq;给定交轴电流iqref与变换后的交轴电流iq求差,经过电流PID调机器后输出交轴参考电压uqref;控制直轴给定电流idref=0,与变换得到的id求差,经过电流PID调节后输出直轴参考电压udref;将udref,uqref经过2r/s变换,得到αβ轴电压,再经Park逆变换计算得ua、ub、uc。最后,通过SVPWM模块输出六路PWM波控制信号,驱动逆变器工作,输出可变的幅值和频率到电机定子三相绕组。Control process: Given a speed signal, calculate the difference with the detected speed, and output it after adjustment by fuzzy proportional controller and conventional PID control. At the same time, the switching function determines the output weights of the two controllers according to the slip, and calculates and outputs the quadrature axis current component as the given signal i qref of the q-axis current PID regulator; at the same time, after coordinate transformation, the stator feedback current changes from i abc to i d , i q ; the given quadrature axis current i qref is calculated to be different from the transformed quadrature axis current i q , and the quadrature axis reference voltage u qref is output after the current PID adjustment machine; the direct axis given current i dref = 0 is controlled, and the difference is calculated with the transformed i d , and the direct axis reference voltage u dref is output after the current PID adjustment; u dref , u qref are transformed by 2r/s to obtain the αβ axis voltage, and then u a , u b , u c are calculated by Park inverse transformation. Finally, the six-way PWM wave control signal is output through the SVPWM module to drive the inverter to work and output variable amplitude and frequency to the three-phase winding of the motor stator.

本发明的设计思想是:电动特种车辆运行作业时,为了保证其运行的平稳性及各个阶段的输出性能最优,需设计符合各个阶段的控制算法。驱动电机稳速运行时,常规PID控制因其计算量少,控制结构简单,其控制性能优越。驱动电机大幅变速运行或有干扰时,模糊比例控制算法能够根据变化环境调整控制参数,控制性能优越。将模糊比例控制算法和常规PID控制算法相结合可获得这两种控制算法的综合优点。使用一组规则或一个单独的模糊算法来确定两个控制算法的输出的权重,则需要一个额外的模糊计算,更多的计算时间,更多的增益常数调整。增加的计算量会降低控制系统开关频率,导致较高的转矩波动,降低车辆运行的平稳性,为了解决这一问题,设计切换函数计算输出权重控制两算法控制器的输出占比。最终实现驱动电机的在各个状态下的控制输出性能最优,以保证电动车辆运行的加速性能、平稳性能、工作效率等输出性能。The design idea of the present invention is: when the electric special vehicle is running, in order to ensure the stability of its operation and the optimal output performance of each stage, a control algorithm that meets each stage needs to be designed. When the drive motor is running at a steady speed, the conventional PID control has excellent control performance due to its small amount of calculation and simple control structure. When the drive motor is running at a large speed change or there is interference, the fuzzy proportional control algorithm can adjust the control parameters according to the changing environment, and the control performance is excellent. Combining the fuzzy proportional control algorithm with the conventional PID control algorithm can obtain the comprehensive advantages of the two control algorithms. Using a set of rules or a separate fuzzy algorithm to determine the weight of the output of the two control algorithms requires an additional fuzzy calculation, more calculation time, and more gain constant adjustment. The increased amount of calculation will reduce the switching frequency of the control system, resulting in higher torque fluctuations and reducing the stability of the vehicle operation. In order to solve this problem, a switching function is designed to calculate the output weight to control the output ratio of the two algorithm controllers. Finally, the optimal control output performance of the drive motor in each state is achieved to ensure the output performance of the electric vehicle such as acceleration performance, stability performance, and work efficiency.

如图4所示,一种电动特种车辆驱动电机的函数式混合控制方法,包括以下步骤:As shown in FIG4 , a functional hybrid control method for a driving motor of an electric special vehicle includes the following steps:

步骤1:车辆启动,电机控制器上电,电机控制器通过捕获单元读取油门信号并通过计算将其转化成给定转速n*(k);同时电机控制器采集通过旋转变压器传送回来的电机转速n(k);Step 1: The vehicle starts, the motor controller is powered on, and the motor controller reads the throttle signal through the capture unit and converts it into a given speed n * (k) through calculation; at the same time, the motor controller collects the motor speed n(k) transmitted back through the rotary transformer;

步骤2:通过模糊比例控制器计算速度偏差en(k)=n*(k)-n(k)、速度偏差变化量ecn(k)=en(k)-en(k-1);其中,n*(k)表示k时刻的给定转速,en(k)表示k时刻的速度差,en(k-1)表示(k-1)时刻的速度差值;Step 2: Calculate the speed deviation en (k)=n * (k)-n(k) and the speed deviation change ecn (k)= en (k) -en (k-1) by using the fuzzy proportional controller; where n * (k) represents the given speed at time k, en (k) represents the speed difference at time k, and en (k-1) represents the speed difference at time (k-1);

通过公式(1)计算得出k时刻的电流调节输出量

Figure BDA0003949668140000051
The current regulation output at time k is calculated by formula (1):
Figure BDA0003949668140000051

Figure BDA0003949668140000052
Figure BDA0003949668140000052

其中,Ke为模糊比例控制器的量化因子;Among them, Ke is the quantization factor of the fuzzy proportional controller;

步骤3:PID控制器根据步骤2中速度偏差en(k)和速度偏差变化量ecn(k)通过公式(2)计算得出电流调节输出量

Figure BDA0003949668140000053
Step 3: The PID controller calculates the current regulation output according to the speed deviation e n (k) and the speed deviation change ec n (k) in step 2 through formula (2):
Figure BDA0003949668140000053

Figure BDA0003949668140000054
Figure BDA0003949668140000054

其中,kp、ki、kd为PID控制器控制参数;

Figure BDA0003949668140000055
为PID控制器(k-1)时刻输出的电流值;en(k)、2en(k-1)、en(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;Among them, k p , k i , k d are the control parameters of the PID controller;
Figure BDA0003949668140000055
is the current value output by the PID controller at time (k-1); en (k), 2en (k-1), and en (k-2) are the speed deviations output at time k, (k-1), and (k-2) respectively;

步骤4:根据步骤2中en(k)通过公式(3)、公式(4)的切换函数计算电流调节输出量

Figure BDA0003949668140000056
Figure BDA0003949668140000057
的输出权重,输出权重与速度偏差关系曲线图的如图3所示,根据公式(5)计算出最终的电流调节输出量iq*(k);Step 4: Calculate the current regulation output according to e n (k) in step 2 through the switching function of formula (3) and formula (4)
Figure BDA0003949668140000056
and
Figure BDA0003949668140000057
The output weight and the relationship curve between the output weight and the speed deviation are shown in FIG3 . The final current regulation output iq * (k) is calculated according to formula (5);

Figure BDA0003949668140000061
Figure BDA0003949668140000061

f2(x)=1-f1(x) (4)f 2 (x) = 1 - f 1 (x) (4)

Figure BDA0003949668140000062
Figure BDA0003949668140000062

其中x的取值为速度偏差en(k),f1(x)为

Figure BDA0003949668140000063
的权重,f2(x)为
Figure BDA0003949668140000064
的权重;a、b为常数,根据实际操作经验选取。The value of x is the speed deviation e n (k), and f 1 (x) is
Figure BDA0003949668140000063
The weight of f 2 (x) is
Figure BDA0003949668140000064
The weight of; a, b are constants, selected according to actual operation experience.

步骤5:通过电流模数(A/D)中断采集电流霍尔传感器反馈回来的电机三相电流ia、ib、ic,经数字滤波处理后,首先通过Park变换得到矢量静止坐标电流iα、iβ,再经Clarke变换得到交轴电流iq和直轴电流id;Step 5: The three-phase currents ia, ib, and ic of the motor fed back by the current Hall sensor are collected through current analog-to-digital (A/D) interruption. After digital filtering, the vector static coordinate currents i α and i β are first obtained through Park transformation, and then the quadrature axis current iq and the direct axis current id are obtained through Clarke transformation.

步骤6:交轴给定电流iq*与反馈交轴电流iq进行比较得到交轴电流偏差量eiq(k)=iq*(k)-iq(k)和交轴电流偏差变化量eciq(k)=eiq(k)-eiq(k-1),eiq(k-1)为k-1时刻的交轴电流偏差量;通过式(6)计算得出k时刻的交轴电压调节输出量uq(k);Step 6: Compare the quadrature-axis given current iq * with the feedback quadrature-axis current iq to obtain the quadrature-axis current deviation e iq (k) = iq * (k) - iq (k) and the quadrature-axis current deviation change ec iq (k) = e iq (k) - e iq (k-1), where e iq (k-1) is the quadrature-axis current deviation at time k-1; calculate the quadrature-axis voltage regulation output u q (k) at time k through formula (6);

Figure BDA0003949668140000065
Figure BDA0003949668140000065

式中,uq(k)表示k时刻的输出的交轴电压、uq(k-1)表示k-1时刻的输出的交轴电压,eiq(k)、eiq(k-1)、eiq(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;Wherein, uq (k) represents the quadrature-axis voltage output at time k, uq (k-1) represents the quadrature-axis voltage output at time k-1, eiq (k), eiq (k-1), eiq (k-2) are the speed deviations output at time k, (k-1), (k-2) respectively;

控制直轴给定电流id*=0;直轴给定电流id*与反馈直轴电流id进行比较得到直轴电流偏差量eid(k)=id*(k)-id(k)和直轴电流偏差变化量ecid(k)=eid(k)-eid(k-1);通过式(7)计算得出k时刻的直轴电压调节输出量ud(k);Control the direct axis given current id * = 0; compare the direct axis given current id * with the feedback direct axis current id to obtain the direct axis current deviation e id (k) = id * (k) - id (k) and the direct axis current deviation change ec id (k) = e id (k) - e id (k-1); calculate the direct axis voltage regulation output ud (k) at time k through formula (7);

ud(k)=ud(k-1)+kpecid(k)+kieid(k)+kd[eid(k)-2eid(k-1)+eid(k-2)] (7)u d (k)=u d (k-1)+k p ec id (k)+k i e id (k)+k d [e id (k)-2e id (k-1)+e id ( k-2)] (7)

式中,ud(k)表示k时刻的直轴电压、ud(k-1)表示k-1时刻的直轴电压,eid(k)、eid(k-1)、eid(k-2)分别为k、(k-1)、(k-2)时刻输出的电流偏差量;Wherein, ud (k) represents the direct-axis voltage at time k, ud (k-1) represents the direct-axis voltage at time k-1, eid (k), eid (k-1), and eid (k-2) are the current deviations output at time k, (k-1), and (k-2), respectively;

步骤7:将uq(k)、ud(k)经过Clarke逆变换,得到αβ轴电压uα、uβ,再通过Park逆变换计算得ua、ub、uc;最后,控制器根据三相电压ua、ub、uc值调整TIM1寄存器CCR1、CCR2、CCR3的值,以控制SVPWM模块输出六路PWM波控制信号,驱动逆变器工作,输出可变的幅值和频率到电机定子三相绕组,实现调速控制。Step 7: Perform Clarke inverse transformation on u q (k) and ud (k) to obtain αβ axis voltages u α and u β , and then calculate u a , u b , and u c through Park inverse transformation; finally, the controller adjusts the values of TIM1 registers CCR1, CCR2, and CCR3 according to the three-phase voltages u a , u b , and u c to control the SVPWM module to output six-channel PWM wave control signals, drive the inverter to work, and output variable amplitude and frequency to the three-phase winding of the motor stator to achieve speed control.

Claims (3)

1.一种电动特种车辆驱动电机的函数式混合控制方法,其特征在于,包括:1. A functional hybrid control method for a driving motor of an electric special vehicle, characterized by comprising: 步骤1:车辆启动,电机控制器上电,电机控制器通过捕获单元读取油门信号并通过计算将其转化成给定转速n*(k);同时电机控制器采集通过旋转变压器传送回来的电机转速n(k);Step 1: The vehicle starts, the motor controller is powered on, and the motor controller reads the throttle signal through the capture unit and converts it into a given speed n * (k) through calculation; at the same time, the motor controller collects the motor speed n(k) transmitted back through the rotary transformer; 步骤2:通过模糊比例控制器计算速度偏差en(k)=n*(k)-n(k)、速度偏差变化量ecn(k)=en(k)-en(k-1);其中,n*(k)表示k时刻的给定转速,en(k)表示k时刻的速度差,en(k-1)表示(k-1)时刻的速度差值;Step 2: Calculate the speed deviation en (k)=n * (k)-n(k) and the speed deviation change ecn (k)= en (k) -en (k-1) by using the fuzzy proportional controller; where n * (k) represents the given speed at time k, en (k) represents the speed difference at time k, and en (k-1) represents the speed difference at time (k-1); 通过公式(1)计算得出k时刻的电流调节输出量
Figure FDA0003949668130000011
The current regulation output at time k is calculated by formula (1):
Figure FDA0003949668130000011
Figure FDA0003949668130000012
Figure FDA0003949668130000012
其中,Ke为模糊比例控制器的量化因子;Among them, Ke is the quantization factor of the fuzzy proportional controller; 步骤3:PID控制器根据步骤2中速度偏差en(k)和速度偏差变化量ecn(k)通过式(2)计算得出电流调节输出量
Figure FDA0003949668130000013
Step 3: The PID controller calculates the current regulation output according to the speed deviation e n (k) and the speed deviation change ec n (k) in step 2 through equation (2):
Figure FDA0003949668130000013
Figure FDA0003949668130000014
Figure FDA0003949668130000014
其中,kp、ki、kd为PID控制器控制参数;
Figure FDA0003949668130000015
为PID控制器(k-1)时刻输出的电流值;en(k)、2en(k-1)、en(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;
Among them, k p , k i , k d are the control parameters of the PID controller;
Figure FDA0003949668130000015
is the current value output by the PID controller at time (k-1); en (k), 2en (k-1), and en (k-2) are the speed deviations output at time k, (k-1), and (k-2) respectively;
步骤4:确定电流调节输出量
Figure FDA0003949668130000016
Figure FDA0003949668130000017
的输出权重,计算出最终的电流调节输出量iq*(k);
Step 4: Determine the Current Regulated Output
Figure FDA0003949668130000016
and
Figure FDA0003949668130000017
The output weight of is used to calculate the final current regulation output iq * (k);
步骤5:通过电流模数中断采集电流霍尔传感器反馈回来的电机三相电流ia、ib、ic,经数字滤波处理后,首先通过Park变换得到矢量静止坐标电流iα、iβ,再经Clarke变换得到交轴电流iq和直轴电流id;Step 5: The three-phase currents ia, ib, and ic of the motor fed back by the current Hall sensor are collected through current analog interruption. After digital filtering, the vector static coordinate currents i α and i β are first obtained through Park transformation, and then the quadrature axis current iq and the direct axis current id are obtained through Clarke transformation. 步骤6:交轴给定电流iq*与反馈交轴电流iq进行比较得到交轴电流偏差量eiq(k)=iq*(k)-iq(k)和交轴电流偏差变化量eciq(k)=eiq(k)-eiq(k-1),eiq(k-1)为k-1时刻的交轴电流偏差量;计算得出k时刻的交轴电压调节输出量uq(k);Step 6: Compare the quadrature-axis given current iq * with the feedback quadrature-axis current iq to obtain the quadrature-axis current deviation e iq (k) = iq * (k) - iq (k) and the quadrature-axis current deviation change ec iq (k) = e iq (k) - e iq (k-1), where e iq (k-1) is the quadrature-axis current deviation at time k-1; calculate the quadrature-axis voltage regulation output u q (k) at time k; 控制直轴给定电流id*=0;直轴给定电流id*与反馈直轴电流id进行比较得到直轴电流偏差量eid(k)=id*(k)-id(k)和直轴电流偏差变化量ecid(k)=eid(k)-eid(k-1);计算得出k时刻的直轴电压调节输出量ud(k);Control the direct-axis given current id * = 0; compare the direct-axis given current id * with the feedback direct-axis current id to obtain the direct-axis current deviation e id (k) = id * (k) - id (k) and the direct-axis current deviation change ec id (k) = e id (k) - e id (k-1); calculate the direct-axis voltage regulation output ud (k) at time k; 步骤7:将uq(k),ud(k)经过Clarke逆变换,得到αβ轴电压uα、uβ,再通过Park逆变换计算得ua、ub、uc;最后,控制器根据三相电压ua、ub、uc值调整TIM1寄存器CCR1、CCR2、CCR3的值,以控制SVPWM模块输出六路PWM波控制信号,驱动逆变器工作,输出可变的幅值和频率到电机定子三相绕组,实现调速控制。Step 7: Perform Clarke inverse transformation on u q (k) and ud (k) to obtain αβ axis voltages u α and u β , and then calculate u a , u b , and u c through Park inverse transformation; finally, the controller adjusts the values of TIM1 registers CCR1, CCR2, and CCR3 according to the three-phase voltages u a , u b , and u c to control the SVPWM module to output six-channel PWM wave control signals, drive the inverter to work, and output variable amplitude and frequency to the three-phase winding of the motor stator to achieve speed control.
2.根据权利要求1所述的一种电动特种车辆驱动电机的函数式混合控制方法,其特征在于,所述步骤4中
Figure FDA0003949668130000021
的权重f1(x)、
Figure FDA0003949668130000022
的权重f2(x)计算公式如下:
2. The functional hybrid control method for a driving motor of an electric special vehicle according to claim 1, characterized in that in step 4
Figure FDA0003949668130000021
The weight f 1 (x),
Figure FDA0003949668130000022
The weight f 2 (x) is calculated as follows:
Figure FDA0003949668130000023
Figure FDA0003949668130000023
f2(x)=1-f1(x) (4)f 2 (x) = 1 - f 1 (x) (4) 最终的电流调节输出量iq*(k)表示为:The final current regulation output iq * (k) is expressed as:
Figure FDA0003949668130000024
Figure FDA0003949668130000024
其中x的取值为速度偏差en(k),f1(x)为
Figure FDA0003949668130000025
的权重,f2(x)为
Figure FDA0003949668130000026
的权重;a、b为常数。
The value of x is the speed deviation en (k), and f 1 (x) is
Figure FDA0003949668130000025
The weight of f 2 (x) is
Figure FDA0003949668130000026
The weight of ; a and b are constants.
3.根据权利要求1所述的一种电动特种车辆驱动电机的函数式混合控制方法,其特征在于,所述步骤5中交轴电压调节输出量uq(k)表示为:3. The functional hybrid control method for a driving motor of an electric special vehicle according to claim 1, characterized in that the quadrature-axis voltage regulation output u q (k) in step 5 is expressed as:
Figure FDA0003949668130000027
Figure FDA0003949668130000027
式中,uq(k)表示k时刻的输出的交轴电压、uq(k-1)表示k-1时刻的输出的交轴电压,eiq(k)、eiq(k-1)、eiq(k-2)分别为k、(k-1)、(k-2)时刻输出的速度偏差;Wherein, uq (k) represents the quadrature-axis voltage output at time k, uq (k-1) represents the quadrature-axis voltage output at time k-1, eiq (k), eiq (k-1), eiq (k-2) are the speed deviations output at time k, (k-1), (k-2) respectively; 所述直轴电压调节输出量ud(k)表示为:The direct-axis voltage regulation output ud (k) is expressed as: ud(k)=ud(k-1)+kpecid(k)+kieid(k)+kd[eid(k)-2eid(k-1)+eid(k-2)] (7)u d (k)=u d (k-1)+k p ec id (k)+k i e id (k)+k d [e id (k)-2e id (k-1)+e id ( k-2)] (7) 式中,ud(k)表示k时刻的直轴电压、ud(k-1)表示k-1时刻的直轴电压,eid(k)、eid(k-1)、eid(k-2)分别为k、(k-1)、(k-2)时刻输出的电流偏差量。In the formula, ud (k) represents the direct-axis voltage at time k, ud (k-1) represents the direct-axis voltage at time k-1, eid (k), eid (k-1), and eid (k-2) are the current deviations output at times k, (k-1), and (k-2), respectively.
CN202211444656.3A 2022-11-18 2022-11-18 Function type hybrid control method for driving motor of special electric vehicle Pending CN115913012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211444656.3A CN115913012A (en) 2022-11-18 2022-11-18 Function type hybrid control method for driving motor of special electric vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211444656.3A CN115913012A (en) 2022-11-18 2022-11-18 Function type hybrid control method for driving motor of special electric vehicle

Publications (1)

Publication Number Publication Date
CN115913012A true CN115913012A (en) 2023-04-04

Family

ID=86487512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211444656.3A Pending CN115913012A (en) 2022-11-18 2022-11-18 Function type hybrid control method for driving motor of special electric vehicle

Country Status (1)

Country Link
CN (1) CN115913012A (en)

Similar Documents

Publication Publication Date Title
Inderka et al. Control of switched reluctance drives for electric vehicle applications
JP5243869B2 (en) AC motor winding switching device and inverter device
JP3716670B2 (en) Induction motor control device
CN112217437A (en) Permanent magnet synchronous motor three-vector model prediction current control circuit and method
CN104734592A (en) Control method and system for permanent magnet synchronous motor
CN105450126A (en) Vector control method for vehicle-mounted permanent magnet synchronous motor
CN110572108A (en) Inductance model nonlinear compensation and control method and system for switched reluctance motor
CN110635740A (en) A Vector Control Method of Permanent Magnet Synchronous Motor Based on Voltage Feedforward Compensation Strategy
CN111030528B (en) Multi-ring voltage regulation control method for three-stage brushless synchronous motor
CN102412778A (en) Full speed domain torque maximizing vector control current distribution method for induction motor
CN110492807A (en) A kind of magneto field weakening control method based on voltage phase angle feedforward compensation
CN107070352B (en) A kind of Switched Reluctance Motor
CN110880900A (en) A method for torque ripple suppression of switched reluctance motors
CN109194216A (en) A kind of switched reluctance machines Direct Torque Fuzzy PI Control System and method
CN108768234A (en) It is a kind of for permanent magnet synchronous motor vector controlled based on off-line parameter identification method
CN110096077B (en) Nonsingular rapid terminal sliding mode rotating speed control method and system for switched reluctance motor
JP3672457B2 (en) Control device for permanent magnet type synchronous motor
CN112701969B (en) An Online Optimization Method for Maximum Torque-Current Ratio of Synchronous Reluctance Motor
CN115913012A (en) Function type hybrid control method for driving motor of special electric vehicle
CN111030530B (en) Flux weakening control method for permanent magnet synchronous motor
CN105629737B (en) A kind of diesel locomotive asynchronous machine internal model control method
WO2024008203A1 (en) Mining dump truck converter drive control system and algorithm
Yang et al. Torque Ripple Minimization Control of Switched Reluctance Motor Based on Online Torque Sharing Function
CN115313933A (en) Novel direct torque control method for permanent magnet synchronous motor
CN109995296B (en) An optimal control method for torque and suspension force of a bearingless switched reluctance motor

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