Motor control method and device and vehicle

By differentiating and deflecting the stator current and d-axis current of the permanent magnet synchronous motor in the tracking differentiator, the target current value is directly calculated, which solves the problem of high complexity of the existing control strategy and is easily affected by parameter changes, and improves the efficiency System robustness and stability.

CN118589934APending Publication Date: 2024-09-03BYD CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410537685.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing permanent magnet synchronous motor control strategy has high computational complexity and is easily affected by changes in motor parameters, affecting system robustness.

Method used

By performing tracking differentiation and partial derivation of the stator current and d-axis current in the tracking differentiator, the target d-axis current value and q-axis current value are directly calculated, simplifying the control structure and avoiding the influence of changes in motor parameters.

Benefits of technology

The computational complexity is reduced, the robustness and solution accuracy of the system are improved, the impact of noise is reduced, and the stability of motor control is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118589934A
    Figure CN118589934A
Patent Text Reader

Abstract

The invention provides a motor control method and device and a vehicle, and the method relates to the field of motor control, and the method comprises the steps: obtaining the stator current of a motor; determining a target d-axis current value of the motor according to the stator current; determining a target q-axis current value of the motor according to the target d-axis current value; and controlling the motor to operate according to the target d-axis current value and the target q-axis current value. According to the method provided by the invention, the complex control structure of the motor can be simplified, the influence of the parameter change of the motor on the system is avoided, and the robustness of the system is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of motor control, and in particular to a motor control method, device and vehicle. Background Art

[0002] Permanent magnet synchronous motors have been widely used in the field of new energy vehicles in recent years due to their advantages such as small size, high speed and large torque output. In order to achieve efficient control of permanent magnet synchronous motors, the maximum torque current ratio control strategy is often used.

[0003] The existing control strategies have high computational complexity, occupy additional storage resources, and are easily affected by changes in motor parameters, affecting the robustness of the motor. Summary of the invention

[0004] The present application provides a motor control method, device and vehicle, which can at least partially solve the above problems, simplify the complex control structure of the motor, avoid the impact of motor parameter changes on the system, and enhance the robustness of the system.

[0005] In a first aspect, an embodiment of the present application provides a motor control method, comprising:

[0006] Obtaining the stator current of the motor;

[0007] Determining a target d-axis current value of the motor according to the stator current;

[0008] Determining a target q-axis current value of the motor according to the target d-axis current value;

[0009] The operation of the motor is controlled according to the target d-axis current value and the target q-axis current value.

[0010] It can be seen that in the embodiment of the present application, the target d-axis current value is obtained by the calculation module according to the stator current calculation, the calculation module includes a tracking differentiator, and the calculation module runs in the controller; the target q-axis current value is obtained by the calculation module according to the target d-axis current calculation; the motor operation is controlled by the target d-axis current value and the target q-axis current value. In the traditional scheme, the target d-axis current value and the target q-axis current value are obtained by dynamically relying on the motor parameters, complex operation logic and multiple calculation steps, which are easily affected by the changes in the motor parameters, and the calculation complexity is high, and additional storage resources are occupied. In the present application, the stator current and the d-axis current are directly tracked and differentiated in the tracking differentiator and the partial derivative is calculated, so that the target d-axis current value and the target q-axis current value can be obtained. The complex control structure of the motor is simplified, the influence of the changes in the motor parameters on the system is avoided, and the robustness of the system is enhanced.

[0011] Based on the first aspect, in a possible implementation, determining a target d-axis current value of the motor according to the stator current includes:

[0012] Obtaining the d-axis current of the motor;

[0013] The stator current and the d-axis current are tracked and differentiated by a tracking differentiator to obtain the target d-axis current value.

[0014] It can be seen that the use of a tracking differentiator to solve the differential in this application can avoid the noise amplification problem that may be introduced in the direct differential operation, and improve the accuracy and stability of the solution. In addition, the process of using a tracking differentiator to solve the target d-axis current value can avoid the impact of motor parameter changes on the system and enhance the robustness of the system.

[0015] Based on the first aspect, in a possible implementation, the tracking and differentiating the stator current and the d-axis current by a tracking differentiator to obtain the target d-axis current value includes:

[0016] Obtaining a differential relationship between the stator current and time;

[0017] Obtaining the differential relationship between the d-axis current and time;

[0018] A target d-axis current value is obtained according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time.

[0019] It can be seen that in the embodiment of the present application, the differential relationship between the stator current and time is obtained by inputting the stator current into the tracking differentiator, and the differential relationship between the d-axis current and time is obtained by inputting the d-axis current into the tracking differentiator. According to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time, the target d-axis current value is obtained. Compared with the traditional scheme, the present application directly tracks the differentiator calculation, has low calculation complexity, and does not require parameters of motor parameters, thereby avoiding the impact of motor parameter changes on the system and enhancing the system robustness.

[0020] Based on the first aspect, in a possible implementation, acquiring a target d-axis current value according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time includes:

[0021] Obtaining a partial derivative relationship between the stator current and the d-axis current according to a differential relationship between the stator current and time and a differential relationship between the d-axis current and time;

[0022] Setting the partial derivative relationship result to zero, and obtaining the target time for minimizing the stator current value;

[0023] The target d-axis current value is determined according to the target time.

[0024] It can be seen that in the embodiment of the present application, the differential relationship between the stator current and time and the differential relationship between the d-axis current and time t are used to indirectly solve the partial derivative relationship between the stator current and the d-axis current, thereby avoiding the noise amplification caused by directly using the stator current to differentiate the d-axis current, reducing the impact of noise and improving the accuracy of the solution.

[0025] Based on the first aspect, in a possible implementation manner, determining the target d-axis current value through the target time includes:

[0026] The target time is introduced into the differential relationship between the d-axis current and time to obtain the target d-axis current value.

[0027] Based on the first aspect, in a possible implementation, determining a target q-axis current value of the motor according to the target d-axis current value includes:

[0028] The target d-axis current value is input into the established relationship expression between the d-axis current and the q-axis current to obtain the target q-axis current value.

[0029] Based on the first aspect, in a possible implementation manner, before inputting the target d-axis current value into the established relationship expression between the d-axis current and the q-axis current, the method further includes:

[0030] Acquire parameters of the motor, and establish a relationship expression between the d-axis current and the q-axis current through the parameters;

[0031] The parameters include the number of pole pairs, flux linkage, inductance and electromagnetic torque of the motor.

[0032] In a second aspect, an embodiment of the present application provides a motor control device, which runs in a controller and includes:

[0033] An acquisition module, used for acquiring the stator current of the motor;

[0034] A calculation module, including a tracking differentiator, and the calculation module runs in the controller;

[0035] The calculation module is used to determine the target d-axis current value of the motor according to the stator current;

[0036] The calculation module is also used to determine the target q-axis current value of the motor according to the target d-axis current value;

[0037] The control module is used to control the operation of the motor through the target d-axis current value and the target q-axis current value.

[0038] Based on the second aspect, in a possible implementation, the acquisition module is used to acquire a d-axis current of the motor;

[0039] The calculation module is used to track and differentiate the stator current and the d-axis current through a tracking differentiator to obtain the target d-axis current value.

[0040] Based on the second aspect, in a possible implementation, the calculation module is used to obtain a differential relationship between the stator current and time;

[0041] Obtaining the differential relationship between the d-axis current and time;

[0042] A target d-axis current value is obtained according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time.

[0043] Based on the second aspect, in a possible implementation, the calculation module is used to obtain a partial derivative relationship between the stator current and the d-axis current according to a differential relationship between the stator current and time and a differential relationship between the d-axis current and time;

[0044] Setting the partial derivative relationship result to zero, and obtaining the target time for minimizing the stator current value;

[0045] The target d-axis current value is determined according to the target time.

[0046] Based on the second aspect, in a possible implementation, the calculation module is used to introduce the target time into the differential relationship between the d-axis current and time to obtain the target d-axis current value.

[0047] Based on the second aspect, in a possible implementation, the calculation module is used to input the target d-axis current value into an established relationship expression between the d-axis current and the q-axis current to obtain the target q-axis current value.

[0048] Based on the second aspect, in a possible implementation process, the acquisition module is used to acquire parameters of the motor, and establish a relationship expression between the d-axis current and the q-axis current through the parameters;

[0049] The parameters include the number of pole pairs, flux linkage, inductance and electromagnetic torque of the motor.

[0050] Each functional module in the second aspect is used to implement the method described in the first aspect and the possible implementation manner of the first aspect.

[0051] In a third aspect, an embodiment of the present application provides a motor controller comprising a memory and a processor, wherein the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to implement the method described in the above-mentioned first aspect and any possible implementation method of the first aspect.

[0052] In a fourth aspect, an embodiment of the present application provides a computer storage medium comprising program instructions, which, when executed by a motor controller, causes the motor controller to execute the method described in the first aspect and any possible implementation of the first aspect.

[0053] In a fifth aspect, an embodiment of the present application provides a motor drive system, including a motor control device, to implement the method described in the above-mentioned first aspect and any possible implementation manner of the first aspect.

[0054] In a sixth aspect, the present application provides a computer program product, including program instructions, and when the computer program product is executed by a motor controller, the motor controller is used to execute the method described in the first aspect and any possible implementation of the first aspect. The computer program product can be a software installation package, and when it is necessary to use the method provided by any possible design of the first aspect, the computer program product can be downloaded and executed on the controller to implement the method described in the first aspect and any possible implementation of the first aspect.

[0055] In a seventh aspect, the present application provides a vehicle, including a motor drive system and a motor, wherein the motor drive system is used to execute the method described in the first aspect and any possible implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0058] Figure 1 It is a system architecture diagram provided by this application;

[0059] Figure 2 It is a flow chart of a motor control method provided by the present application;

[0060] Figure 3 It is a structural schematic diagram of a motor control device provided by the present application;

[0061] Figure 4 It is a structural schematic diagram of a motor controller provided by the present application;

[0062] Figure 5 It is a structural schematic diagram of a vehicle provided by the present application. DETAILED DESCRIPTION

[0063] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0064] It should be noted that the terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0065] It should be noted that when used in this specification and the appended claims, the terms "comprises" and any of their variations are intended to cover non-exclusive inclusions. For example, a system, product or device including a series of units / devices is not limited to the listed units / devices, but may optionally include units / devices not listed, or may also optionally include other units / devices inherent to these products or devices.

[0066] It will also be understood that the term “if” may be interpreted as “when” or “upon” or “in response to determining” or “in response to detecting” or “in the event of…” depending on the context.

[0067] Before introducing the embodiments of the present application, the technical terms involved in the embodiments of the present application are first introduced.

[0068] Permanent magnet synchronous motor: a synchronous motor that uses permanent magnets as the excitation source. Its excitation system usually consists of permanent magnets, and the magnetic field generated by these magnets does not require an external power supply to maintain, so it is called permanent magnet. In contrast, traditional synchronous motors usually require an external power supply to provide excitation.

[0069] The structure of a permanent magnet synchronous motor usually includes a stator and a rotor. The stator usually has a winding (inductor) to generate a rotating magnetic field, while the rotor is equipped with permanent magnets. When the winding on the stator is energized, the magnetic field generated by the permanent magnet interacts with the magnetic field of the stator, causing the rotor to rotate.

[0070] Permanent magnet synchronous motors generally have the advantages of high efficiency, high power density, fast response speed and good dynamic characteristics, so they are widely used in electric vehicles, industrial drives and wind power generation.

[0071] Motor pole pair number: refers to the number of poles on the permanent magnet synchronous motor rotor. The motor pole pair number determines the motor speed and torque characteristics. A higher motor pole pair number usually means a lower speed and higher torque, while a lower motor pole pair number usually means a higher speed and lower torque.

[0072] Magnetic flux: It is formed by the interaction between the magnetic field lines generated by the permanent magnet and the permanent magnet synchronous motor windings. The magnetic flux is a physical quantity used to describe the strength of the magnetic field. The magnitude of the magnetic flux depends on the strength of the magnetic field and the number of magnetic field lines. When the magnetic field strength is large or the magnetic field lines are dense, the value of the magnetic flux will increase accordingly.

[0073] The component of the inductance in the motor on the direct (d) axis: refers to the inductance component along the d-axis direction in the permanent magnet synchronous motor. The d-axis inductance is related to the magnetic field strength and flux linkage of the permanent magnet synchronous motor. It affects the current response and torque generation of the permanent magnet synchronous motor in the d-axis direction.

[0074] The component of the inductance in the motor on the quadrature (q) axis: refers to the inductance component along the q-axis direction in the permanent magnet synchronous motor. The q-axis inductance is related to the magnetic field strength and flux linkage of the permanent magnet synchronous motor, and it affects the current response and torque generation of the permanent magnet synchronous motor in the q-axis direction.

[0075] The component i of the stator current flowing through the motor on the d-axis d : Also known as the direct axis current, it is related to the magnetic field strength and the distribution of the magnetic flux in the d-axis direction of the motor. d The size and direction of the motor can be adjusted to adjust the magnetic field strength and the distribution of the magnetic flux in the d-axis direction, thereby achieving control of the motor torque.

[0076] The component i of the stator current flowing through the motor on the q axis is q : Also known as the quadrature axis current, it is related to the magnetic field strength and the distribution of the magnetic flux in the q-axis direction of the motor. q The size and direction of the motor can adjust the magnetic field strength and the distribution of the magnetic flux in the q-axis direction, thereby achieving control of the motor torque and magnetic field orientation.

[0077] Before introducing a motor control method provided in the present application, the system architecture involved in the method is first introduced.

[0078] See also Figure 1 , Figure 1A system architecture diagram is provided for this application, wherein the system includes a vehicle controller, a motor controller, a permanent magnet synchronous motor, a mechanical transmission device and wheels.

[0079] As the overall control center of the vehicle, the vehicle controller is responsible for receiving input signals from various components of the vehicle, including the accelerator pedal position and brake signals, and generating corresponding control signals based on these input signals, such as the electromagnetic torque of the vehicle.

[0080] The motor controller is responsible for receiving the instructions of the vehicle controller, such as the electromagnetic torque of the vehicle, and converting it into the control signal of the motor. The control signal of the motor can be a set of currents, such as i d and iq to realize the control of permanent magnet synchronous motor.

[0081] It should be noted that the motor controller also includes a tracking differentiator, which is responsible for differentiating the input signal. For example, the input signal of the tracking differentiator may be the current I that needs to flow through the motor, and the output of the tracking differentiator is the differential of the current I.

[0082] It should also be noted that the motor controller can be a DSP chip or other components that can implement the following method. This application does not make any specific restrictions on the form of the motor controller.

[0083] The permanent magnet synchronous motor adjusts the current and magnetic field distribution according to the control signal of the motor controller to generate the required torque and speed.

[0084] The mechanical transmission device converts the rotational motion of the permanent magnet synchronous motor into the linear motion of the wheel. It receives the torque and speed of the permanent magnet synchronous motor, and transmits the power of the permanent magnet synchronous motor to the wheels by transmitting the torque and speed, thereby driving the vehicle forward. The wheel, as the grounding part of the vehicle, receives the power transmitted by the mechanical transmission device and converts it into the driving power of the vehicle. The input of the wheel is the power transmitted by the mechanical transmission device, and the output is the driving power of the vehicle, which enables the vehicle to move.

[0085] The present application provides a motor control method. Figure 2 , Figure 2 A flow chart of a motor control method provided in the present application, the method includes but is not limited to the description of the following content.

[0086] S101. A motor controller obtains multiple parameters, and establishes a relationship expression between a d-axis current and a q-axis current through the multiple parameters.

[0087] The motor controller obtains multiple parameters, including the number of motor pole pairs, the component of the inductance in the motor on the direct axis, the component of the inductance in the motor on the quadrature axis, the flux linkage of the motor, and the electromagnetic torque.

[0088] Since the number of motor pole pairs is determined during the manufacturing process of the permanent magnet synchronous motor, the value of the number of motor pole pairs can be stored in the motor controller in advance; the component of the inductance in the motor on the direct axis and the component of the inductance in the motor on the quadrature axis can be obtained through a capacitor inductance resistance tester (LCR Meter, LCR) or an impedance analyzer; the magnetic flux of the motor can be obtained using a Hall effect sensor or a magnetic field measuring instrument; the electromagnetic torque of the entire vehicle can be obtained through a power analyzer.

[0089] The motor controller inputs the acquired multiple parameters into the established relational expression, and the established relational expression is as follows:

[0090]

[0091] Among them, n p is the number of motor pole pairs, is the flux linkage of the motor, L d is the component of the inductance in the motor on the direct axis, L q is the component of the inductance in the motor on the quadrature axis, T e is the electromagnetic torque, i d is the component of the motor’s stator current on the direct axis, i q is the component of the motor's stator current on the quadrature axis.

[0092] It can be seen from relational expression (1) that after the acquired parameters are input into the established relational expression, relational expression (1) becomes a relational expression between the d-axis current and the q-axis current.

[0093] The relational expression (1) is subjected to parameter transformation to obtain the transformed relational expression between the d-axis current and the q-axis current.

[0094] The relationship between the transformed d-axis current and the q-axis current is shown below:

[0095]

[0096] The explanation of each parameter in relational expression (2) has been described above and will not be repeated here for the sake of brevity of the patent.

[0097] The relationship between the stator current I flowing through the motor and the d-axis current and q-axis current is expressed as:

[0098]

[0099] If all i are found d and i q Find a set of current combinations i d and i qThe current minimizes the stator current I flowing through the motor, and the maximum torque-current ratio can be obtained, thereby achieving efficient control of the permanent magnet synchronous motor.

[0100] Since I is a positive value, in order to avoid increasing the amount of calculation due to square root extraction, the problem of minimizing I can be converted into the problem of minimizing the square of I.

[0101] According to relational expressions (2) and (3), the relational expression of the stator current I square flowing through the motor is obtained. The expression of I square only includes the d-axis current, which is a function of time t. The expression of I square is as follows:

[0102]

[0103] The explanation of each parameter in relational expression (4) has been described above and will not be repeated here for the sake of brevity of the patent.

[0104] It can be seen from the relational expression (4) that I 2 to i d Find the partial derivative, let the square of I be d The first-order derivative of is zero, and we get an i d , so that I squared takes a minimum value, thus making I squared reach a minimum.

[0105] However, when the time constant T is small enough, if we directly solve the square of I for i according to the relational expression (4), d The differential operation may amplify high-frequency noise, causing the noise to exceed the differential signal, resulting in the differential signal being submerged by the noise. This means that in the differential operation, the impact of noise may exceed the differential signal itself, making the differential result unreliable.

[0106] To solve this problem, the present application uses a tracking differentiator to solve the differential signal. The tracking differentiator has the ability to smooth the input signal and suppress high-frequency noise. By performing a differential operation on the input signal, the tracking differentiator can provide a relatively smooth output signal, thereby reducing the impact of noise.

[0107] S102, inputting I square into the first tracking differentiator to obtain the differential relationship between the stator current I and the time t.

[0108] The tracking differentiator is used to perform differential operation on the input signal and is located in the motor controller. It can amplify the rate of change of the input signal and output the corresponding differential signal. The differential equation of the first tracking differentiator is as follows:

[0109]

[0110] Where r is the velocity factor, For tracking I squared, is the derivative of I squared;

[0111] It should be noted that the speed factor r is used to adjust the magnification of the rate of change of the input signal in the output signal. When the value of r is large, the slight change of the input signal will be more amplified in the output signal, thereby enhancing the effect of the differential operation. Conversely, when the value of r is small, the differential change of the input signal is less amplified in the output signal.

[0112] The selection of r needs to comprehensively consider factors such as system stability, noise suppression capability, and dynamic range of the output signal. The optimal r value can be determined by experiments and simulations to meet the performance requirements of the system. In this application, the value of r is not specifically limited.

[0113] Using I squared as the input signal of the first tracking differentiator, the differential relationship between I squared and time t can be obtained.

[0114] S103 , input the d-axis current into the second tracking differentiator to obtain the differential relationship between the d-axis current and time t.

[0115] The d-axis current is a function of time t. By using the d-axis current as an input signal of the second tracking differentiator, the differential of the d-axis current and time t can be obtained through the second tracking differentiator.

[0116] The differential equation for the second tracking differentiator is as follows:

[0117]

[0118] in, For tracking d variable, for i d The derivative of a variable.

[0119] S104. Obtain a target d-axis current value according to the differential relationship between the stator current I and the time t and the differential relationship between the d-axis current and the time t.

[0120] The differential relationship between the stator current I and time t is divided by the differential relationship between the d-axis current and time t to obtain the partial derivative relationship between the stator current I and the d-axis current. The partial derivative relationship between the stator current I and the d-axis current is set to zero to obtain the target time t1 at which the stator current I takes the minimum value.

[0121] Since the d-axis current is a function of t, the target time t1 is introduced into the differential relationship between the d-axis current and time t to obtain the target d-axis current value. Substituting the obtained target d-axis current value into the relational expression (2), the target q-axis current value can be solved.

[0122] S105 . Control the motor operation according to the target d-axis current value and the target q-axis current value.

[0123] By solving the target d-axis current value and the target q-axis current value, the torque and magnetic field of the permanent magnet synchronous motor can be adjusted, thereby controlling the operation of the permanent magnet motor.

[0124] It can be seen that in the embodiment of the present application, the target d-axis current value is obtained by the calculation module according to the stator current calculation, the calculation module includes a tracking differentiator, and the calculation module runs in the controller; the target q-axis current value is obtained by the calculation module according to the target d-axis current calculation; the motor operation is controlled by the target d-axis current value and the target q-axis current value. In the traditional scheme, the target d-axis current value and the target q-axis current value are obtained by dynamically relying on the motor parameters, complex operation logic and multiple calculation steps, which are easily affected by the changes in the motor parameters, and the calculation complexity is high, and additional storage resources are occupied. In the present application, the stator current and the d-axis current are directly tracked and differentiated in the tracking differentiator and the partial derivative is calculated, so that the target d-axis current value and the target q-axis current value can be obtained. The complex control structure of the motor is simplified, the influence of the changes in the motor parameters on the system is avoided, and the robustness of the system is enhanced.

[0125] The present application provides a motor control device, see Figure 3 , Figure 3 This is a schematic diagram of the structure of a motor control device 300 provided in the present application. The motor control device 300 can be configured as a motor controller. The motor control device 300 includes:

[0126] The acquisition module 310 is used to acquire the stator current of the motor;

[0127] A calculation module 320, including a tracking differentiator, and the calculation module 320 runs in the motor controller;

[0128] The calculation module 320 is used to determine the target d-axis current value of the motor according to the stator current;

[0129] The calculation module 320 is also used to determine a target q-axis current value of the motor according to the target d-axis current value;

[0130] The control module 330 is used to control the operation of the motor through the target d-axis current value and the target q-axis current value.

[0131] In a possible implementation, the acquisition module 310 is used to acquire the d-axis current of the motor;

[0132] The calculation module 320 is used to track and differentiate the stator current and the d-axis current through a tracking differentiator to obtain a target d-axis current value.

[0133] In a possible implementation, the calculation module 320 is used to obtain a differential relationship between the stator current and time;

[0134] Obtain the differential relationship between d-axis current and time;

[0135] The target d-axis current value is obtained according to the differential relationship between the stator current I and time and the differential relationship between the d-axis current and time.

[0136] In a possible implementation, the calculation module 320 is used to obtain the partial derivative relationship between the stator current I and the d-axis current according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time;

[0137] Set the partial derivative relationship result to zero and obtain the target time that minimizes the stator current I;

[0138] The target d-axis current value is determined by the target time.

[0139] In a possible implementation, the calculation module 320 is used to introduce the target time into the differential relationship between the d-axis current and time to obtain the target d-axis current value.

[0140] In a possible implementation, the calculation module 320 is used to input the target d-axis current value into the established relationship expression between the d-axis current and the q-axis current to obtain the target q-axis current value.

[0141] In a possible implementation process, the acquisition module 310 is used to acquire parameters of the motor and establish a relationship expression between the d-axis current and the q-axis current through the parameters;

[0142] Parameters include the number of motor poles, flux linkage, inductance and electromagnetic torque.

[0143] Figure 3 The various functional modules in are used to implement Figure 2 For details of the steps of the method embodiment, please refer to Figure 2 The description of the relevant contents in the method embodiment will not be repeated here for the sake of brevity of the specification.

[0144] The present application also provides a motor controller, see Figure 4 , Figure 4 This is a schematic diagram of the structure of a motor controller 400 provided in this application, the controller is used to implement Figure 2 In the method embodiment, the motor controller 400 includes: a processor 410, a communication interface 420 and a memory 430. The processor 410, the communication interface 420 and the memory 430 can be interconnected via an internal bus 440, or can communicate via other means such as wireless transmission.

[0145] Taking the connection through bus 440 as an example, bus 440 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. Bus 440 may 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.

[0146] The processor 410 may be composed of at least one general-purpose processor, such as a CPU, or a combination of a CPU and a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The processor 410 executes various types of digital storage instructions, such as software or firmware programs stored in the memory 430, which enables the motor controller 400 to provide a wide variety of services.

[0147] The memory 430 is used to store program codes and is controlled by the processor 410 to execute the above Figure 2 For the steps described in the embodiment, please refer to the relevant description of the embodiment shown above, which will not be elaborated here.

[0148] The memory 430 may include a volatile memory, such as a RAM; the memory 430 may also include a non-volatile memory, such as a ROM, a flash memory; the memory 430 may also include a combination of the above types.

[0149] The communication interface 420 can be a wired interface (such as an Ethernet interface), an internal interface (such as a high-speed serial computer expansion bus (peripheral component interconnect express, PCIE) bus interface), a wired interface (such as an Ethernet interface) or a wireless interface (such as a cellular network interface or a wireless local area network interface) for communicating with other devices or modules.

[0150] The processor 410, communication interface 420, etc. in the motor controller 400 can implement the functions and / or various steps and methods implemented in the above-mentioned method embodiments, and for the sake of brevity, they are not repeated here. The acquisition module 310, calculation module 320, and control module 330 in the motor control device 300 can be located in the processor 410 in the motor controller 400.

[0151] Need to explain, Figure 4 This is only a possible implementation of the embodiment of the present application. In practical applications, the motor controller may also include more or fewer components, which is not limited here. For the contents not shown or described in the embodiment of the present application, please refer to the relevant description in the embodiment described in the aforementioned method, which will not be repeated here.

[0152] The present application also provides a motor drive system, including a motor control device, wherein the motor controller is used to implement Figure 2 The various steps described in the method embodiment.

[0153] The present application also provides a vehicle, including a motor drive system and a motor, the motor drive system and the motor can be connected via a bus, such as Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of a vehicle 500 provided in this application, wherein the motor drive system can be Figure 3 The motor control device 300 may also be Figure 4 The motor controller 400 is used to realize the motor drive system Figure 2 The various steps described in the method embodiment.

[0154] The present application also provides a computer storage medium, including program instructions. When the program instructions are executed by a motor controller, the motor controller executes part or all of the steps described in the above motor control method embodiment.

[0155] The present application also provides a computer program product, including program instructions. When the program instructions are executed by a controller, the motor controller executes part or all of the steps described in the above motor control method embodiment.

[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product may include code. When the computer program product is read and executed by a computer, some or all steps of the method recorded in the above method embodiment may be implemented. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium, or a semiconductor medium, etc.

[0158] The steps in the method of the embodiment of the present application can be adjusted in order, combined or deleted according to actual needs; the units in the device of the embodiment of the present application can be divided, combined or deleted according to actual needs.

[0159] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A motor control method, characterized in that: Applied to a controller, the method comprises: Get the stator current of the motor; Determining a target d-axis current value of the motor according to the stator current; Determining a target q-axis current value of the motor according to the target d-axis current value; The operation of the motor is controlled according to the target d-axis current value and the target q-axis current value.

2. The motor control method according to claim 1, characterized in that: Determining a target d-axis current value of the motor according to the stator current includes: Obtaining the d-axis current of the motor; The stator current and the d-axis current are tracked and differentiated by a tracking differentiator to obtain the target d-axis current value.

3. The motor control method according to claim 2, characterized in that: The step of tracking and differentiating the stator current and the d-axis current by a tracking differentiator to obtain the target d-axis current value comprises: Obtaining a differential relationship between the stator current and time; Obtaining the differential relationship between the d-axis current and time; The target d-axis current value is obtained according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time.

4. The motor control method according to claim 3, characterized in that: The step of obtaining the target d-axis current value according to the differential relationship between the stator current and time and the differential relationship between the d-axis current and time includes: Obtaining a partial derivative relationship between the stator current and the d-axis current according to a differential relationship between the stator current and time and a differential relationship between the d-axis current and time; Setting the partial derivative relationship result to zero, and obtaining the target time for minimizing the stator current value; The target d-axis current value is determined according to the target time.

5. The motor control method according to claim 4, characterized in that: Determining the target d-axis current value by the target time includes: The target time is introduced into the differential relationship between the d-axis current and time to obtain the target d-axis current value.

6. The motor control method according to any one of claims 1 to 5, characterized in that: Determining a target q-axis current value of the motor according to the target d-axis current value includes: The target d-axis current value is input into the established relationship expression between the d-axis current and the q-axis current to obtain the target q-axis current value.

7. The motor control method according to claim 6, characterized in that: Before inputting the target d-axis current value into the established relationship expression between the d-axis current and the q-axis current, the method further includes: Acquire parameters of the motor, and establish a relationship expression between the d-axis current and the q-axis current through the parameters; The parameters include the number of pole pairs, flux linkage, inductance and electromagnetic torque of the motor.

8. A motor control device, characterized in that: The control device runs in the controller and includes: An acquisition module, used for acquiring the stator current of the motor; A calculation module, including a tracking differentiator, and the calculation module runs in the controller; The calculation module is used to determine the target d-axis current value of the motor according to the stator current; The calculation module is also used to determine the target q-axis current value of the motor according to the target d-axis current value; A control module is used to control the operation of the motor through the target d-axis current value and the target q-axis current value.

9. A motor drive system, characterized in that: Comprising the motor control device as claimed in claim 8.

10. A vehicle, characterized in that: Comprising the motor drive system as claimed in claim 9.