Vehicle motor control method and device, vehicle and storage medium
By constructing the motor speed and current error sliding mode surface, combined with mathematical models and exponential approaching laws, the reference current is calculated for sliding mode control, which solves the chattering problem of the permanent magnet synchronous motor sliding mode control algorithm in autonomous vehicles and improves the system's performance. Robustness and stability.
Patent Information
- Application Number
- CN202410591295.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-08-23
AI Technical Summary
The sliding mode control algorithm of permanent magnet synchronous motors in autonomous vehicles has a chattering problem, resulting in poor response characteristics and failure to meet accuracy requirements.
Construct the motor speed sliding mode surface and the motor Q-axis current error sliding mode surface, calculate the current assembly sliding mode surface based on these sliding mode surfaces, and determine the assembly sliding mode surface at the target time based on the preset mathematical model and exponential approach law. , thereby calculating the reference current of the Q-axis of the motor and performing sliding mode control.
Through this method, the robustness and stability of the system are improved, the chattering problem is solved, and the accuracy and response speed of motor speed vector control are improved.
Smart Images

Figure CN118539800A
Abstract
Description
Technical Field
[0001] The present application relates to the field of motor control technology, and in particular to a control method, device, vehicle and storage medium for a vehicle motor. Background Art
[0002] Permanent magnet synchronous motors are favored by car companies for their high efficiency, high power density, high torque, fast response characteristics and low maintenance costs. They are widely used in automobiles and are one of the most important automotive parts. Therefore, how to improve their response characteristics has become a top priority. Sliding mode control is a commonly used nonlinear control with fast response and strong robustness. It has strong robustness to system parameter changes, external disturbances and modeling errors. By introducing the sliding surface, sliding mode control can force the system state to move on the sliding surface, so that the system has a certain resistance to uncertainty. At the same time, sliding mode control can usually achieve fast system response. By designing a suitable sliding surface and control law, sliding mode control can transfer the system state to the sliding surface in a limited time, thereby achieving fast tracking and robust control. However, the sliding mode control algorithm also has limitations: when the state of the system moves to the vicinity of the sliding surface, it is difficult to strictly slide along the sliding surface toward the equilibrium point, but it crosses back and forth on both sides of the sliding surface, resulting in chattering. This will slow down the convergence of the target state and fail to meet the accuracy requirements. Summary of the invention
[0003] The present application provides a vehicle motor control method, device, vehicle and storage medium to solve the problems such as jitter and the like existing in the sliding mode control algorithm in the motor speed vector control of an autonomous driving vehicle.
[0004] The first aspect of the present application provides a method for controlling a vehicle motor, comprising the following steps: constructing a motor speed sliding surface and a motor Q-axis current error sliding surface; calculating a current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and determining the assembly sliding surface at a target moment according to the current assembly sliding surface, a preset mathematical model and a preset exponential tending law; calculating a reference current of the motor Q-axis according to the assembly sliding surface at the target moment, and performing sliding mode control on the permanent magnet synchronous motor according to the reference current of the motor Q-axis.
[0005] Optionally, the preset mathematical model is:
[0006]
[0007]
[0008]
[0009] Among them, ud 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
[0010] Optionally, the preset exponential approach law is:
[0011]
[0012]
[0013] in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s 1 is the motor speed sliding surface, s 2 is the motor Q-axis current error sliding surface, η 1 , η 2 , ε 1 , ε 2 is the reaching law control coefficient.
[0014] Optionally, the calculating the current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface includes: calculating the current assembly sliding surface using a sliding surface calculation formula, wherein the sliding surface calculation formula is:
[0015] s=cs 1 +(1-c)s 2 ;
[0016] Where c is the control coefficient of the total sliding surface, 0 <c<1。
[0017] Optionally, the reference current of the Q axis is:
[0018]
[0019] Among them, s is the total sliding surface, c is the control coefficient of the total sliding surface, T is the prediction time,
[0020] A second aspect of the present application provides a control device for a vehicle motor, comprising: a construction module, used to construct a motor speed sliding surface and a motor Q-axis current error sliding surface; a calculation module, used to calculate a current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and determine the assembly sliding surface at a target moment according to the current assembly sliding surface, a preset mathematical model and a preset exponential tending law; a control module, used to calculate a reference current of the motor Q-axis according to the assembly sliding surface at the target moment, and perform sliding mode control on the permanent magnet synchronous motor according to the reference current of the motor Q-axis.
[0021] Optionally, the preset mathematical model is:
[0022]
[0023]
[0024]
[0025] Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
[0026] Optionally, the preset exponential approach law is:
[0027]
[0028]
[0029] in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s 1 is the motor speed sliding surface, s 2 is the motor Q-axis current error sliding surface, η 1 , η 2 , ε 1 , ε 2 is the reaching law control coefficient.
[0030] Optionally, the calculation module is further used to calculate the current assembly sliding surface using a sliding surface calculation formula, wherein the sliding surface calculation formula is:
[0031] s=cs 1 +(1-c)s 2 ;
[0032] Where c is the control coefficient of the total sliding surface, 0 <c<1。
[0033] Optionally, the reference current of the motor Q axis is:
[0034]
[0035] Among them, s is the total sliding surface, c is the control coefficient of the total sliding surface, T is the prediction time,
[0036] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle motor control method as described in the above embodiment.
[0037] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the vehicle motor control method as described in the above embodiment.
[0038] In the above implementation, the motor speed sliding surface and the motor Q-axis current error sliding surface are constructed, the current assembly sliding surface is calculated based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and the assembly sliding surface at the target time is determined according to the current assembly sliding surface, a preset mathematical model and a preset exponential approach law, the reference current of the motor Q-axis is calculated according to the assembly sliding surface at the target time, and the permanent magnet synchronous motor is subjected to sliding mode control according to the reference current of the motor Q-axis. In this way, the jitter problem and other problems existing in the sliding mode control algorithm in the motor speed vector control of the autonomous driving vehicle are solved, the robustness and stability of the system are improved, and it has high practical value and application prospects.
[0039] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0041] Figure 1 A flow chart of a method for controlling a vehicle motor according to an embodiment of the present application;
[0042] Figure 2A schematic diagram of a control process of a permanent magnet synchronous motor according to an embodiment of the present application;
[0043] Figure 3 is a schematic diagram of a control device for a vehicle motor according to an embodiment of the present application;
[0044] Figure 4 It is a schematic diagram of a vehicle structure according to an embodiment of the present application.
[0045] Description of reference numerals:
[0046] 10 - control device for a vehicle motor; 100 - building module; 200 - calculation module and 300 - control module. DETAILED DESCRIPTION
[0047] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0048] The following describes the vehicle motor control method, device, vehicle and storage medium of the embodiment of the present application with reference to the accompanying drawings. In view of the jitter problem of the sliding mode control algorithm in the motor speed vector control of the autonomous driving vehicle mentioned in the above background technology, the present application provides a vehicle motor control method, in which a motor speed sliding mode surface and a motor Q-axis current error sliding mode surface are constructed, and the current assembly sliding mode surface is calculated based on the motor speed sliding mode surface and the motor Q-axis current error sliding mode surface, and the assembly sliding mode surface at the target time is determined according to the current assembly sliding mode surface, a preset mathematical model and a preset exponential approach law, and the reference current of the motor Q-axis is calculated according to the assembly sliding mode surface at the target time, and the permanent magnet synchronous motor is slidingly controlled according to the reference current of the motor Q-axis. As a result, the jitter problem and other problems existing in the sliding mode control algorithm in the motor speed vector control on the autonomous driving vehicle are solved, the robustness and stability of the system are improved, and it has high practical value and application prospects.
[0049] Specifically, Figure 1 A schematic flow chart of a method for controlling a vehicle motor provided in an embodiment of the present application.
[0050] like Figure 1 As shown, the control method of the vehicle motor includes the following steps:
[0051] To achieve high performance control of permanent magnet synchronous motors, such as Figure 2 As shown, the motor is given a reference speed w ref The q-axis current i is obtained through the speed loop controller q , The vector control of the d-axis current i d The two-phase rotating coordinate qd axis current passes through the current loop controller to obtain the dq axis voltage u q 、u d After the inverse Park coordinate transformation, the two-phase stationary coordinate α-β axis voltage u is obtained α 、u β , and then the three-phase stationary coordinate a, b, c axis current i is obtained through vector pulse width modulation SVPWM and inverter a 、i b 、i c , feedback link a 、i b 、i c Through Clarke transformation and Park transformation, we can get i d ,i q Feedback to the current loop controller, the motor speed detects the actual motor speed w m , and fed back to the speed loop controller to realize the double closed-loop control of the permanent magnet synchronous motor. The embodiment of the present application improves the sliding mode predictive controller.
[0052] Specifically, in step S101, a motor speed sliding surface and a motor Q-axis current error sliding surface are constructed.
[0053] Before constructing the motor speed sliding surface and the motor Q-axis current error sliding surface, for the permanent magnet synchronous motor PMSM, first assume that: the winding current is a symmetrical three-phase sinusoidal current, the motor eddy current and hysteresis loss are ignored, the stator magnetic field is sinusoidally distributed, harmonics and saturation are not considered, the rotor has no damping winding, and the permanent magnet conductivity is zero. Through coordinate transformation, it is converted from a three-phase stationary coordinate system to a two-phase stationary coordinate system, and then from a two-phase stationary coordinate system to a two-phase rotating coordinate system. A mathematical model is established based on the two-phase rotating coordinate system d-q, and the stator voltage equation is as follows:
[0054]
[0055]
[0056] Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance; P n is the pole pair number, w m is the actual motor speed; f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
[0057] For PMSM motors, the rotor field oriented control method can achieve better control effects. d = 0. Without considering the viscous friction coefficient, the motion equation of the permanent magnet synchronous motor is as follows:
[0058]
[0059] Further define the control variables of the PMSM system:
[0060] x 1 =w ref -w m
[0061]
[0062] but:
[0063]
[0064]
[0065] Expanding the system gives the state space expression:
[0066]
[0067]
[0068] Among them, in some embodiments, the preset mathematical model is:
[0069]
[0070]
[0071]
[0072] Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
[0073] Furthermore, it should be understood that sliding mode control is a robust control method, the core idea of which is to introduce a sliding variable or sliding mode, and adjust the system state so that the system state can move within the range of the sliding mode. In sliding mode control, a sliding mode function or sliding mode surface is first designed, which can be a linear function, a nonlinear function or a function of other forms. The sliding mode surface is characterized by a high slope or tangent near zero, and can control the system state within the expected state range. The key to sliding mode control is to adjust the control input so that the system state slides quickly on the sliding mode surface.
[0074] The sliding mode in sliding mode control is an ideal mode. It does not depend on the actual parameters and disturbances of the system during design. Therefore, it has the advantage of insensitivity to parameter disturbances, which enables the sliding mode control to maintain the stability and performance of the system in the presence of parameter changes and external interference. The sliding mode switching surface is the boundary of the sliding mode mode. The behavior of the system will change on the sliding mode switching surface. By adjusting the control input, the system state slides along the sliding mode switching surface to achieve control of the system state. One of the advantages of sliding mode control is that it is relatively simple to implement. It does not require an in-depth understanding of the system model. It only needs to design the sliding mode mode and the sliding mode switching surface. This makes sliding mode control highly feasible and practical in practical applications. In addition, sliding mode control has a fast response speed and can adjust the system state to the expected state within a limited time. The fast response performance of sliding mode control gives it certain advantages in applications that require fast and accurate control of the system state.
[0075] In summary, sliding mode control is a robust control method based on sliding mode, which adjusts the system state to achieve sliding of the system state on the sliding mode switching surface. Sliding mode control has the advantages of insensitivity to parameter disturbances and simple implementation, which enables it to maintain stability and performance in the presence of parameter disturbances and external interference. Sliding mode control has high flexibility and strong robustness, and has broad application prospects in practical applications.
[0076] Further, for the motor control problem mentioned in the embodiment of the present application, the motor speed sliding surface and the motor Q-axis current error sliding surface are designed:
[0077] s 1 =c 1 x 1 +c 2 x 2 ;
[0078]
[0079] In the formula, is the actual motor current.
[0080] In step S102, the current assembly sliding surface is calculated based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and the assembly sliding surface at the target time is determined according to the current assembly sliding surface, a preset mathematical model and a preset exponential reaching law.
[0081] Optionally, in some embodiments, the current assembly sliding surface is calculated based on the motor speed sliding surface and the motor Q-axis current error sliding surface, including: calculating the current assembly sliding surface using a sliding surface calculation formula, wherein the sliding surface calculation formula is:
[0082] s=cs 1 +(1-c)s 2 ;
[0083] Where c is the control coefficient of the total sliding surface, 0 <c<1。
[0084] In some embodiments, the preset exponential approach law is:
[0085]
[0086]
[0087] in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s 1 is the motor speed sliding surface, s 2 is the motor Q-axis current error sliding surface, η 1 , η 2 , ε 1 , ε 2 is the reaching law control coefficient.
[0088] Furthermore, by taking the derivative of the motor speed sliding surface and the motor Q-axis current error sliding surface, we can obtain:
[0089]
[0090]
[0091] In order to achieve precise tracking control of the motor speed and the motor current at the same time, the total sliding surface that can simultaneously approximate the two sub-sliding surfaces is designed to obtain the current total sliding surface s.
[0092] In step S103, a reference current of the motor Q-axis is calculated according to the assembly sliding mode surface at the target time, and sliding mode control is performed on the permanent magnet synchronous motor according to the reference current of the motor Q-axis.
[0093] Optionally, in some embodiments, the reference current of the Q axis is:
[0094]
[0095] Among them, s is the total sliding surface, c is the control coefficient of the total sliding surface, T is the prediction time,
[0096] Specifically, the current assembly sliding surface s is expanded to obtain:
[0097]
[0098] make The relationship between the derivative of the reference current and the derivative of the actual current is as follows:
[0099]
[0100] The reaching law of the sliding surface is further designed, and the preset exponential reaching law is as follows:
[0101]
[0102]
[0103] The total sliding surface predicted after event T is expressed as:
[0104]
[0105] In order to minimize the sliding surface at the prediction time T, the objective function can be constructed as follows:
[0106]
[0107] By taking the derivative of the objective function, we can get:
[0108]
[0109] in:
[0110]
[0111] so:
[0112] s(t+T)=0;
[0113] Right now:
[0114]
[0115] So we have:
[0116]
[0117] The derivative of the reference current of the motor q axis is obtained as follows:
[0118]
[0119] Thus, the reference current of the motor q axis is obtained:
[0120]
[0121] Finally, the sliding mode predictive controller performs sliding mode control on the permanent magnet synchronous motor according to the reference current of the motor Q axis.
[0122] Therefore, by designing the motor speed sliding surface and the current sliding surface, the two sliding surfaces are merged into the total sliding surface to improve the parameter adjustment efficiency, so that the motor speed error and current error can be quickly converged. If the idea of prediction is not introduced, the permanent magnet synchronous motor speed vector control can also be realized, but due to the lack of monitoring of the sliding surface value at time T, the convergence speed will be slow.
[0123] According to the vehicle motor control method proposed in the embodiment of the present application, a motor speed sliding surface and a motor Q-axis current error sliding surface are constructed, the current assembly sliding surface is calculated based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and the assembly sliding surface at the target moment is determined according to the current assembly sliding surface, a preset mathematical model and a preset exponential approach law, the reference current of the motor Q-axis is calculated according to the assembly sliding surface at the target moment, and the permanent magnet synchronous motor is subjected to sliding mode control according to the reference current of the motor Q-axis. In this way, the jitter problem and other problems existing in the sliding mode control algorithm in the motor speed vector control on the autonomous driving vehicle are solved, the robustness and stability of the system are improved, and it has high practical value and application prospects.
[0124] Next, the control device for a vehicle motor according to an embodiment of the present application will be described with reference to the accompanying drawings.
[0125] Figure 3 It is a block diagram of a control device for a vehicle motor according to an embodiment of the present application.
[0126] like Figure 3 As shown, the vehicle motor control device 10 includes: a construction module 100 , a calculation module 200 and a control module 300 .
[0127] Among them, the construction module 100 is used to construct the motor speed sliding surface and the motor Q-axis current error sliding surface; the calculation module 200 calculates the current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and determines the assembly sliding surface at the target time according to the current assembly sliding surface, a preset mathematical model and a preset exponential tending law; the control module 300 is used to calculate the reference current of the motor Q-axis according to the assembly sliding surface at the target time, and perform sliding mode control on the permanent magnet synchronous motor according to the reference current of the motor Q-axis.
[0128] Optionally, in some embodiments, the preset mathematical model is:
[0129]
[0130]
[0131]
[0132] Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
[0133] Optionally, in some embodiments, the preset exponential approach law is:
[0134]
[0135]
[0136] in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s 1 is the motor speed sliding surface, s 2 is the motor Q-axis current error sliding surface, η 1 , η 2 , ε 1 , ε 2 is the reaching law control coefficient.
[0137] Optionally, in some embodiments, the calculation module 200 is further used to calculate the current assembly sliding surface using a sliding surface calculation formula, wherein the sliding surface calculation formula is:
[0138] s=cs 1 +(1-c)s 2 ;
[0139] Where c is the control coefficient of the total sliding surface, 0 <c<1。
[0140] Optionally, in some embodiments, the reference current of the motor Q axis is:
[0141]
[0142] Among them, s is the total sliding surface, c is the control coefficient of the total sliding surface, T is the prediction time,
[0143] It should be noted that the above explanation of the embodiment of the vehicle motor control method is also applicable to the vehicle motor control device of this embodiment, which will not be repeated here.
[0144] According to the vehicle motor control device proposed in the embodiment of the present application, a motor speed sliding surface and a motor Q-axis current error sliding surface are constructed, the current assembly sliding surface is calculated based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and the assembly sliding surface at the target moment is determined according to the current assembly sliding surface, a preset mathematical model and a preset exponential approach law, the reference current of the motor Q-axis is calculated according to the assembly sliding surface at the target moment, and the permanent magnet synchronous motor is subjected to sliding mode control according to the reference current of the motor Q-axis. In this way, the jitter problem and other problems existing in the sliding mode control algorithm in the motor speed vector control on the autonomous driving vehicle are solved, the robustness and stability of the system are improved, and it has high practical value and application prospects.
[0145] Figure 4 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:
[0146] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .
[0147] When the processor 402 executes the program, the vehicle motor control method provided in the above embodiment is implemented.
[0148] Furthermore, the vehicle also includes:
[0149] The communication interface 403 is used for communication between the memory 401 and the processor 402 .
[0150] The memory 401 is used to store computer programs that can be executed on the processor 402 .
[0151] The memory 401 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0152] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0153] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.
[0154] The processor 402 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0155] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned vehicle motor control method when executed by a processor.
[0156] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0157] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0158] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0159] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0160] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0161] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0162] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0163] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for controlling a vehicle motor, characterized in that: The following steps are involved: Construct the motor speed sliding surface and the motor Q-axis current error sliding surface; Calculating a current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and determining an assembly sliding surface at a target time according to the current assembly sliding surface, a preset mathematical model and a preset exponential approach law; The reference current of the motor Q axis is calculated according to the assembly sliding mode surface at the target moment, and the permanent magnet synchronous motor is subjected to sliding mode control according to the reference current of the motor Q axis.
2. The method according to claim 1, characterized in that The preset mathematical model is: Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
3. The method according to claim 1, characterized in that The preset exponential approach law is: in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s1 is the motor speed sliding surface, s2 is the motor Q-axis current error sliding surface, η1, η2, ε1, ε2 are the reaching law control coefficients.
4. The method according to claim 1, characterized in that: The calculating the current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface includes: The current assembly sliding surface is calculated using a sliding surface calculation formula, wherein the sliding surface calculation formula is: S = cs1 + (1-c)s2; Where c is the control coefficient of the total sliding surface, 0 <c<1。 5. The method according to claim 1, characterized in that The reference current of the motor Q axis is: Among them, s is the total sliding surface, c is the control coefficient of the total sliding surface, T is the prediction time, 6. A control device for a vehicle motor, characterized in that: include: A construction module is used to construct a motor speed sliding surface and a motor Q-axis current error sliding surface; A calculation module, which calculates a current assembly sliding surface based on the motor speed sliding surface and the motor Q-axis current error sliding surface, and determines the assembly sliding surface at a target time according to the current assembly sliding surface, a preset mathematical model and a preset exponential approach law; A control module is used to calculate the reference current of the motor Q axis according to the assembly sliding mode surface at the target moment, and to perform sliding mode control on the permanent magnet synchronous motor according to the reference current of the motor Q axis.
7. The device according to claim 6, characterized in that The preset mathematical model is Among them, u d 、u q is the component of the stator voltage on the dq axis, i d 、i q is the component of the stator current on the dq axis, L s is the inductance, R is the stator resistance, P n is the pole pair number, w m is the actual motor speed, ψ f is the stator flux, J is the motor’s moment of inertia, T L is the load torque of the motor.
8. The device according to claim 6, characterized in that The preset exponential approach law is: in, The motor speed sliding surface after derivation is: is the derivative of the motor Q-axis current error sliding surface, s1 is the motor speed sliding surface, s2 is the motor Q-axis current error sliding surface, η1, η2, ε1, ε2 are the reaching law control coefficients.
9. A vehicle, characterized in that: Including memory and processor; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the vehicle motor control method as described in any one of claims 1-5.
10. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the vehicle motor control method as described in any one of claims 1 to 5 is implemented.
