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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000004364 calculation method Methods 0.000 claims abstract description 19
- 230000033228 biological regulation Effects 0.000 claims description 20
- 230000009466 transformation Effects 0.000 claims description 14
- 230000008859 change Effects 0.000 claims description 13
- 238000004804 winding Methods 0.000 claims description 4
- 102100031172 C-C chemokine receptor type 1 Human genes 0.000 claims description 3
- 101710149814 C-C chemokine receptor type 1 Proteins 0.000 claims description 3
- 102100031151 C-C chemokine receptor type 2 Human genes 0.000 claims description 3
- 101710149815 C-C chemokine receptor type 2 Proteins 0.000 claims description 3
- 102100024167 C-C chemokine receptor type 3 Human genes 0.000 claims description 3
- 101710149862 C-C chemokine receptor type 3 Proteins 0.000 claims description 3
- 101001068136 Homo sapiens Hepatitis A virus cellular receptor 1 Proteins 0.000 claims description 3
- 101000831286 Homo sapiens Protein timeless homolog Proteins 0.000 claims description 3
- 101000752245 Homo sapiens Rho guanine nucleotide exchange factor 5 Proteins 0.000 claims description 3
- 102100021688 Rho guanine nucleotide exchange factor 5 Human genes 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 3
- 238000013139 quantization Methods 0.000 claims description 3
- 230000003068 static effect Effects 0.000 claims description 3
- 230000001105 regulatory effect Effects 0.000 claims 1
- 230000001052 transient effect Effects 0.000 abstract description 6
- 238000011217 control strategy Methods 0.000 description 4
- 230000001133 acceleration Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
Images
Landscapes
- Control Of Ac Motors In General (AREA)
Abstract
Description
技术领域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时刻的电流调节输出量 The current regulation output at time k is calculated by formula (1):
其中,Ke为模糊比例控制器的量化因子;Among them, Ke is the quantization factor of the fuzzy proportional controller;
步骤3:PID控制器根据步骤2中速度偏差en(k)和速度偏差变化量ecn(k)通过公式(2)计算得出电流调节输出量 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):
其中,kp、ki、kd为PID控制器控制参数;为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; 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)的切换函数计算电流调节输出量和的输出权重,根据公式(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) and The output weight of is calculated according to formula (5) to obtain the final current regulation output iq * (k);
f2(x)=1-f1(x) (4)f 2 (x) = 1 - f 1 (x) (4)
其中x的取值为速度偏差en(k),f1(x)为的权重,f2(x)为的权重;a、b为常数,根据实际操作经验选取。The value of x is the speed deviation en (k), and f 1 (x) is The weight of f 2 (x) is 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);
式中,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时刻的电流调节输出量 The current regulation output at time k is calculated by formula (1):
其中,Ke为模糊比例控制器的量化因子;Among them, Ke is the quantization factor of the fuzzy proportional controller;
步骤3:PID控制器根据步骤2中速度偏差en(k)和速度偏差变化量ecn(k)通过公式(2)计算得出电流调节输出量 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):
其中,kp、ki、kd为PID控制器控制参数;为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; 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)的切换函数计算电流调节输出量和的输出权重,输出权重与速度偏差关系曲线图的如图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) and 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);
f2(x)=1-f1(x) (4)f 2 (x) = 1 - f 1 (x) (4)
其中x的取值为速度偏差en(k),f1(x)为的权重,f2(x)为的权重;a、b为常数,根据实际操作经验选取。The value of x is the speed deviation e n (k), and f 1 (x) is The weight of f 2 (x) is 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);
式中,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)
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) |
-
2022
- 2022-11-18 CN CN202211444656.3A patent/CN115913012A/en active Pending
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 |