Motor parameter identification method, motor controller, vehicle and storage medium
By obtaining and processing current parameters in PMSM and constructing multiple identification equations, the problem of mismatch in the number of parameters is solved, and precise control of PMSM and the stability of the electric drive system are achieved.
Patent Information
- Application Number
- CN202411309997.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-11-08
AI Technical Summary
The existing motor parameter identification method has the problem of mismatch in the number of parameters in the permanent magnet synchronous motor (PMSM), which leads to poor control effect and poor stability of the electric drive system under high-speed operating conditions, making it difficult to resist external interference.
By obtaining the current working parameters of the PMSM, combining the given straight-axis current, intersection-axis current and predefined injection current, the expected voltage is determined, and the current current is adaptively filtered to construct identification equations related to identification parameters to ensure identification The number of equations is no less than the number of parameters, thereby achieving accurate identification.
It improves the accuracy of motor parameter identification, realizes accurate control of PMSM, reduces the hardware cost of the electric drive system, and enhances the stability and anti-interference ability of the system.
Smart Images

Figure CN118920944A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method for identifying motor parameters, a motor controller, a vehicle and a storage medium. Background Art
[0002] With the continuous development of new energy technologies, the loading capacity of electric drive systems is constantly increasing. High-speed electric drive has attracted widespread attention because it can effectively reduce the cost of electric drive, but it also increases the difficulty of control accordingly. Under high-speed conditions, the motor has a high electrical frequency, low system damping, and a relatively large delay introduced by the digital system, resulting in poor stability of the electric drive system and weak ability to resist external interference, making it very easy to lose control under the influence of external interference.
[0003] Motor controllers designed in the discrete domain (such as current controllers) can effectively solve the above problems. However, the design of the control parameters of the motor controller is directly related to the motor parameters, and the motor parameters will change with the changes in the motor operating conditions. Therefore, if you want to achieve good control performance, you need to obtain accurate parameters of the motor in the full range of operating conditions.
[0004] However, most of the current parameter identification methods are based on the steady-state equations of the motor, usually two voltage equations. When facing permanent magnet synchronous motors (PMSM), especially built-in PMSMs, the number of parameters that need to be identified is large, and the number of voltage equations is far less than the number of parameters that need to be identified, resulting in deviations in the identification results and affecting the control effect of the electric drive system. Summary of the invention
[0005] The present invention provides a motor parameter identification method, a motor controller, a vehicle and a storage medium, which can improve the identification accuracy of the identification parameters, thereby achieving precise control of the PMSM, while reducing the hardware cost of the electric drive system.
[0006] According to one aspect of the present invention, a method for identifying motor parameters is provided, which is applied to a motor controller, wherein the motor controller is electrically connected to a built-in permanent magnet synchronous motor (PMSM); the method comprises:
[0007] Obtaining the operating parameters of the PMSM in the current control cycle, wherein the operating parameters include the current direct-axis current, the current quadrature-axis current, and the current electrical angular frequency;
[0008] Determine a first desired direct-axis voltage and a second desired direct-axis voltage according to a current direct-axis current, a given direct-axis current and a predefined injected direct-axis current; and determine a first desired quadrature-axis voltage and a second desired quadrature-axis voltage according to a current quadrature-axis current, a given quadrature-axis current and a predefined injected quadrature-axis current;
[0009] Adaptively filter the current direct-axis current and the current quadrature-axis current to determine a first direct-axis component, a second direct-axis component, a first quadrature-axis component, and a second quadrature-axis component;
[0010] Constructing identification equations related to identification parameters according to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage, the second expected quadrature-axis voltage, the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component, and the current electrical angular frequency, wherein the identification parameters include the direct-axis inductance, the quadrature-axis inductance, the motor resistance, and the motor flux of the PMSM, and the number of identification equations is not less than the number of identification parameters;
[0011] According to the identification parameters of the previous control cycle, the identification equation is solved using a preset algorithm to obtain the identification parameters of the current control cycle.
[0012] According to another aspect of the present invention, a motor controller is provided, the motor controller comprising:
[0013] at least one processor; and a memory in communication with the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the motor parameter identification method according to any embodiment of the present invention.
[0015] According to another aspect of the present invention, a vehicle is provided, comprising a motor controller according to any embodiment of the present invention, and a built-in permanent magnet synchronous motor (PMSM); wherein the motor controller is electrically connected to the PMSM.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the motor parameter identification method of any embodiment of the present invention when executed.
[0017] The technical solution of the embodiment of the present invention obtains the working parameters of the PMSM in the current control cycle, and then determines four expected voltages by combining the given direct-axis current, the given quadrature-axis current and the predefined injected direct-axis current and injected quadrature-axis current; then the current direct-axis current and the current quadrature-axis current are adaptively filtered to determine four components; finally, based on the four expected voltages, the four components and the current electrical angular frequency, an identification equation related to the identification parameters is constructed, and the identification equation is solved to obtain the identification parameters of the current control cycle. In the first aspect, the motor parameter identification method provided by the present invention introduces the predefined injected direct-axis current and the injected quadrature-axis current on the direct axis and the quadrature-axis respectively, and further determines the first expected direct-axis voltage corresponding to the given direct-axis current, the second expected direct-axis voltage corresponding to the injected direct-axis current, the first expected quadrature-axis voltage corresponding to the given quadrature-axis current, and the second expected quadrature-axis voltage corresponding to the injected quadrature-axis current. Accordingly, the current direct-axis current and the current quadrature-axis current are adaptively filtered to obtain the first direct-axis component, the second direct-axis component, the first quadrature-axis component and the second quadrature-axis component. As a result, more known quantities are involved in the construction of the identification equations, so that the number of identification equations is not less than the number of identification parameters, and a solution for accurately determining the identification parameters is given at the theoretical level. Secondly, the adaptive filtering of the current direct-axis current and the current quadrature-axis current can achieve the purpose of accurately extracting a signal of a certain frequency from the mixed signal without affecting the amplitude and phase of the signal itself, thereby ensuring the accuracy of subsequent identification. Thirdly, since the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM, precise control of the PMSM can be achieved based on the identification parameters. In addition, the motor resistance and motor flux can be used to accurately estimate the temperature rise of the stator winding and the rotor permanent magnet, eliminating the temperature sensor buried in the stator winding to reduce the hardware cost of the electric drive system.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a flow chart of a method for identifying motor parameters provided in the first embodiment of the present invention;
[0021] Figure 2 1 is a flow chart of a method for identifying motor parameters provided in Embodiment 2 of the present invention;
[0022] Figure 3 is a schematic diagram of a motor controller controlling a PMSM provided by a second embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of a differential result including interference provided by the second embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of filtering a differential result provided by Embodiment 2 of the present invention;
[0025] Figure 6 is a schematic diagram of an adaptive filtering and parameter identification provided by the second embodiment of the present invention;
[0026] Figure 7 is a calculation diagram of an adaptive filtering provided by the second embodiment of the present invention;
[0027] Figure 8 is a principle diagram of a least squares method provided in the second embodiment of the present invention;
[0028] Fig. 9 1 is a schematic diagram of the structure of a motor parameter identification device provided in Embodiment 3 of the present invention;
[0029] Fig.10 is a schematic structural diagram of another motor parameter identification device provided in Embodiment 3 of the present invention;
[0030] Fig.11 is a structural schematic diagram of a motor controller provided by a fourth embodiment of the present invention;
[0031] Fig.12 It is a structural schematic diagram of a vehicle provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] Embodiment 1
[0035] Figure 1 This is a flow chart of a method for identifying motor parameters provided in the first embodiment of the present invention. This embodiment is applicable to the case of determining the identification parameters of a built-in PMSM. The method can be executed by a motor parameter identification device. The motor parameter identification device can be implemented in the form of hardware and / or software. The motor parameter identification device can be configured in a motor controller (such as a current controller). The motor controller and the built-in PMSM are electrically connected. Optionally, the motor controller and the built-in PMSM can both be set in the vehicle. Figure 1 As shown, the method includes:
[0036] S110, obtaining operating parameters of the PMSM in the current control cycle, wherein the operating parameters include a current direct-axis current, a current quadrature-axis current, and a current electrical angular frequency.
[0037] In the present invention, the vehicle can be any vehicle with an electric drive system. The vehicle includes at least a motor controller and a PMSM. The PMSM can drive the vehicle, and the motor controller is used to control the PMSM. Specifically, the motor controller can be a current controller, and the PMSM can be a built-in PMSM. The built-in PMSM can embed permanent magnetic materials inside the motor rotor. Compared with the surface-mounted PMSM, the built-in PMSM has a wider range of applications due to its advantages such as weak magnetic field speed increase, high rotor structure strength, and additional use of magnetic resistance torque.
[0038] The motor parameter identification method provided by the present invention can be executed periodically according to the control cycle, and the duration of the control cycle can be determined according to actual needs or the hardware conditions of the motor controller. For example, the duration of the control cycle is 1ms, 10ms, 50ms, 100ms, 500ms, 1s, 3s, 5s, etc. For example, assuming that the hardware conditions of the motor controller are relatively good (such as faster calculation), the control cycle can be set to be relatively short; assuming that the user has relatively high requirements for the driving experience of the vehicle, the control cycle can also be set to be relatively short.
[0039] The current control cycle is the control cycle corresponding to the current execution of the motor parameter identification method, and the previous control cycle is the control cycle before the current control cycle. Therefore, the current control cycle and the previous control cycle are relative concepts in time.
[0040] In one embodiment, the operating parameters include a current direct-axis current, a current quadrature-axis current, and a current electrical angular frequency. The current direct-axis current is the actual current associated with the direct axis in the current control period, the current quadrature-axis current is the actual current associated with the quadrature axis in the current control period, and the current electrical angular frequency is the electrical angular frequency of the PMSM in the current control period. Specifically, the operating parameters can be obtained by sampling the PMSM and processing the sampled data.
[0041] Optionally, the operating parameters may also include motor speed, motor torque and power demand.
[0042] S120, determining a first desired direct-axis voltage and a second desired direct-axis voltage according to a current direct-axis current, a given direct-axis current and a predefined injected direct-axis current; and determining a first desired quadrature-axis voltage and a second desired quadrature-axis voltage according to a current quadrature-axis current, a given quadrature-axis current and a predefined injected quadrature-axis current.
[0043] The given direct-axis current and the given quadrature-axis current respectively represent the given currents of the direct-axis and the quadrature-axis of the PMSM during normal operation, and are usually direct currents under steady-state conditions. The given direct-axis current and the given quadrature-axis current may be predefined or determined based on the sampled data of the PMSM, and the embodiment of the present invention does not impose any specific restrictions on this.
[0044] The injected direct axis current and the injected quadrature axis current represent predefined alternating currents additionally injected into the direct axis and the quadrature axis, respectively. The additional alternating currents injected into the direct axis and the quadrature axis can be realized by injecting dynamic signals into the direct axis and the quadrature axis currents, and the dynamic signals can be step signals, triangular wave signals, sine wave signals, etc.
[0045] The first desired direct-axis voltage is the direct-axis voltage corresponding to the given direct-axis current, which can be understood as the voltage required to control the current to be equal to the given direct-axis current; the second desired direct-axis voltage is the direct-axis voltage corresponding to the injected direct-axis current, which can be understood as the voltage required to control the current to be equal to the injected direct-axis current. Similarly, the first desired quadrature-axis voltage is the quadrature-axis voltage corresponding to the given quadrature-axis current, which can be understood as the voltage required to control the current to be equal to the given quadrature-axis current; the second desired quadrature-axis voltage is the quadrature-axis voltage corresponding to the injected quadrature-axis current, which can be understood as the voltage required to control the current to be equal to the injected quadrature-axis current.
[0046] The motor controller is usually provided with a linear controller (PI controller) and a resonant controller. The first desired direct-axis voltage and the first desired quadrature-axis voltage can be determined by the linear controller, and the second desired direct-axis voltage and the second desired quadrature-axis voltage can be determined by the resonant controller.
[0047] In addition, in step S120, there is no order of execution between "determining the first expected direct-axis voltage and the second expected direct-axis voltage" and "determining the first expected quadrature-axis voltage and the second expected quadrature-axis voltage", that is, they can be executed simultaneously or in sequence. When "determining the first expected direct-axis voltage and the second expected direct-axis voltage" and "determining the first expected quadrature-axis voltage and the second expected quadrature-axis voltage" are executed simultaneously, the efficiency of parameter identification can be improved.
[0048] S130 , adaptively filter the current direct-axis current and the current quadrature-axis current to determine a first direct-axis component, a second direct-axis component, a first quadrature-axis component, and a second quadrature-axis component.
[0049] The process of performing adaptive filtering on the current direct-axis current / the current quadrature-axis current can be understood as the process of extracting specific components (such as actual alternating current information) from the current direct-axis current / the current quadrature-axis current.
[0050] In one embodiment, the motor controller can first perform adaptive filtering on the current direct-axis current and the current quadrature-axis current respectively to determine the second direct-axis component and the second quadrature-axis component; then deduct the second direct-axis component from the current direct-axis current to obtain the first direct-axis component, and deduct the second quadrature-axis component from the current quadrature-axis current to obtain the first quadrature-axis component.
[0051] It should be noted that there is no order of execution between steps S120 and S130 in this embodiment, that is, step S120 may be executed first, and then step S130; step S130 may be executed first, and then step S120; or steps S120 and S130 may be executed simultaneously.
[0052] S140. Construct identification equations related to identification parameters based on the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage, the second expected quadrature-axis voltage, the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component and the current electrical angular frequency, wherein the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM, and the number of identification equations is not less than the number of identification parameters.
[0053] Since the PMSM in the present invention is a built-in PMSM, the direct-axis inductance and quadrature-axis inductance of the built-in PMSM are not equal, so the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM, a total of four parameters. The four expected voltages are determined by the above step S120, the four components are determined by step S130, and the current electrical angular frequency is added, a total of 9 known parameters. Using these nine known parameters, at least 4 identification equations related to the identification parameters can be established, thereby avoiding the problem of deviation in the identification results caused by the number of identification equations being less than the number of identification parameters.
[0054] S150 , according to the identification parameters of the previous control cycle, using a preset algorithm to solve the identification equation to obtain the identification parameters of the current control cycle.
[0055] The identification parameters of the previous control cycle are the identification parameters determined by the motor controller when executing the motor parameter identification method provided by the present invention in the previous control cycle. By solving the identification equation according to the identification parameters of the previous control cycle, iterative optimization of the identification parameters can be achieved, thereby continuously improving the identification accuracy.
[0056] The preset algorithm may be any algorithm capable of solving the identification equation, such as a least squares algorithm, an improved least squares algorithm, and the like.
[0057] Optionally, the motor controller may also store a distribution range of identification parameters. After obtaining the identification parameters of the current control cycle, it may also be determined whether the identification parameters of the current control cycle are within the corresponding distribution range to filter out obvious erroneous values and verify the identification results.
[0058] In this way, the identification accuracy of the identification parameters can be improved, thereby achieving precise control of the PMSM, while reducing the hardware cost of the electric drive system.
[0059] Embodiment 2
[0060] Figure 2 It is a flow chart of a method for identifying motor parameters provided in the second embodiment of the present invention. On the basis of the above-mentioned first embodiment, taking the preset algorithm as the least squares method as an example, the identification process of obtaining motor parameters provided in this embodiment is specifically described. Figure 3This is a schematic diagram of a motor controller controlling a PMSM provided by a second embodiment of the present invention. Figure 3 The structure in the dotted box is a built-in PMSM, and the motor controller is electrically connected to the built-in PMSM. Figure 2 As shown, the method includes:
[0061] S201 . Sample the PMSM to obtain the three-phase current signal and motor position signal of the PMSM in the current control cycle.
[0062] The motor parameter identification method provided by the present invention can be executed periodically according to the control cycle, and the duration of the control cycle can be determined according to actual needs or the hardware conditions of the motor controller. For example, the duration of the control cycle is 1ms, 10ms, 50ms, 100ms, 500ms, 1s, 3s, 5s, etc. When the hardware conditions of the motor controller are relatively good (such as faster calculation) or the user has higher requirements for the driving experience of the vehicle, the control cycle can be set to be relatively short, so that accurate control of the PMSM can be achieved; conversely, when the control cycle is relatively long, the requirements for the hardware conditions of the motor controller will be reduced accordingly, thereby saving production costs.
[0063] The current control cycle and the previous control cycle are relative concepts in time. For example, assuming that the duration of the control cycle is 1s and the current time is 12:00:00, then 11:59:59-12:00:00 is the previous control cycle, and 12:00:00-12:00:01 is the current control cycle. When the time reaches 12:00:01, 12:00:00-12:00:01 becomes the previous control cycle, and 12:00:01-12:00:02 is the current control cycle, and so on.
[0064] The motor controller can sample the PMSM to determine the working condition of the PMSM in the current control cycle and its related signals, such as the three-phase current signal and the motor position signal of the PMSM in the current control cycle.
[0065] Optionally, the above-mentioned related signals may also include the motor speed, motor torque and power demand of the PMSM.
[0066] S202 , performing Clarke transformation and Park transformation on the three-phase current signal to obtain a current direct-axis current and a current quadrature-axis current.
[0067] In one embodiment, the three-phase current signal is a current signal of the PMSM in a three-phase coordinate system. Generally, the third phase can be obtained without doubt by taking two phases of the three-phase current signal.
[0068] The current direct-axis current i can be obtained by performing Clarke transformation and Park transformation on the three-phase current signal. d and the current quadrature axis current i q The current direct axis current i d is the actual current related to the direct axis in the current control cycle, and the current quadrature axis current i q It is the actual current related to the quadrature axis in the current control cycle.
[0069] S203, calculating the differential result of the motor position signal with respect to time, and filtering the differential result to obtain the current electrical angular frequency.
[0070] The electrical angular frequency is usually equal to the differential result of the motor position signal with respect to time. However, in differential calculations, due to the complex electromagnetic environment of the actual system, interference is inevitable during sampling, transmission, and digital-to-analog conversion. Even if hardware filtering of the signal is taken into account during hardware design, all interference cannot be eliminated, resulting in the actual current waveform containing a wealth of high-frequency interference components, which affects the identification accuracy of subsequent identification parameters. Figure 4 It is a schematic diagram of a differential result including interference provided by the second embodiment of the present invention.
[0071] In order to solve this problem, the present invention can filter the differential result at the software level, which can be achieved by using a low-pass filter, a notch filter, a high-pass filter, a band-pass filter, etc. The cut-off frequency is between the useful signal frequency and the switching frequency. The lower the cut-off frequency, the better the filtering effect. Figure 5 2 is a schematic diagram of filtering the differential result provided by the second embodiment of the present invention. Figure 4 and Figure 5 It can be seen that the signal is relatively stable after filtering, and the differential amplitude of the signal with respect to time is also significantly reduced, which significantly reduces the impact on the identification accuracy of the identification parameters.
[0072] The motor controller calculates the differential result of the motor position signal with respect to time and filters the differential result to obtain the current electrical angular frequency ω.
[0073] S204: Determine a given direct-axis current and a given quadrature-axis current according to the motor speed, motor torque and power requirement.
[0074] Given the direct axis current i d1 * And given quadrature axis current i q1 * They represent the given current of the direct axis and quadrature axis during normal operation of the PMSM, which are usually DC under steady-state conditions.
[0075] In one embodiment, a mapping table or an operation relationship between the motor speed-torque-power requirement and the given direct-axis current and the given quadrature-axis current may be preset in the motor controller, so that when the motor speed, motor torque and power requirement of the PMSM are determined, the given direct-axis current i is determined by looking up the table or substituting in numerical calculations. d1 * And given quadrature axis current i q1 * .
[0076] S205 , obtaining a predefined alternating current angular frequency, a current amplitude and phase injected into the direct axis, and a current amplitude and phase injected into the quadrature axis.
[0077] S206, determining the injected direct axis current according to the angular frequency of the alternating current and the amplitude and phase of the current injected into the direct axis; and determining the injected quadrature axis current according to the angular frequency of the alternating current and the amplitude and phase of the current injected into the quadrature axis.
[0078] Combining steps S205 and S206, it can be seen that the injected direct axis current i d2 * and the injected quadrature axis current i q2 * They represent the predefined additional AC currents injected into the direct axis and quadrature axis respectively. d2 * and the injected quadrature axis current i q2 * This can be achieved by injecting dynamic signals into the direct-axis and quadrature-axis currents. The dynamic signals may be step signals, triangular wave signals, sine wave signals, and the like.
[0079] Exemplarily, the motor controller may obtain a predefined AC power angular frequency ω a , the current amplitude I1 and phase θ1 injected into the direct axis, and the current amplitude I2 and phase θ2 injected into the quadrature axis. AC angular frequency ω a Indicates the injected direct axis current i d2 * and the injected quadrature axis current i q2 * The angular frequency of the alternating current between .
[0080] It is understandable that the above parameters can be predefined, fixed parameters, or can be defined for each control cycle. In addition, the current amplitude I1 injected into the direct axis and the current amplitude I2 injected into the quadrature axis can be the same or different, and the phase θ1 injected into the direct axis and the phase θ2 injected into the quadrature axis can be the same or different.
[0081] Specifically, the injected direct axis current i d2 * =I1sin(ωa t+θ1); inject quadrature axis current i q2 * =I2cos(ω a t+θ2).
[0082] S207 . Determine a direct-axis error according to the current direct-axis current, the given direct-axis current, and the injected direct-axis current.
[0083] S208 , inputting the direct-axis error into the first linear controller and the first resonant controller for processing respectively, to obtain a first desired direct-axis voltage corresponding to the given direct-axis current and a second desired direct-axis voltage corresponding to the injected direct-axis current.
[0084] Combined with steps S207-S208, it can be seen that the first desired direct-axis voltage is the direct-axis voltage corresponding to the given direct-axis current, which can be understood as the voltage required to control the current to be equal to the given direct-axis current; the second desired direct-axis voltage is the direct-axis voltage corresponding to the injected direct-axis current, which can be understood as the voltage required to control the current to be equal to the injected direct-axis current.
[0085] Specific combination Figure 3 It can be seen that Kc is the bandwidth of the current loop and 1 / s represents the integrator. Figure 3 Kc to the first desired direct axis voltage u d1 / First desired quadrature axis voltage u q1 The part can be equivalent to a PI controller, which is used to achieve the given direct-axis current i d1 * And given quadrature axis current i q1 * The control of the first desired direct axis voltage u d1 and the first desired quadrature axis voltage u q1 The control current is equal to the given direct axis current i d1 * And given quadrature axis current i q1 * The resonant controller is used to control the injected direct-axis current i d2 * and the injected quadrature axis current i q2 * These two AC signals, namely the second desired direct-axis voltage u d2 and the second desired quadrature axis voltage u q2 The control current is equal to the injected direct axis current i d2 * and the injected quadrature axis current i q2 * The voltage required. It should also be noted that Figure 3 Medium d is the direct-axis inductance of the PMSM, L qis the quadrature-axis inductance of PMSM, R is the motor resistance of PMSM, ψ f is the motor flux of PMSM, u d is the voltage applied to the direct axis by the motor controller, u q The voltage applied to the quadrature axis by the motor controller.
[0086] That is to say, two linear controllers (PI controllers) and two resonant controllers are usually provided in the motor controller. The linear controller and the resonant controller can respectively realize the given direct axis current i d1 * And given quadrature axis current i q1 * , inject direct axis current i d2 * and the injected quadrature axis current i q2 * These two sets of current control.
[0087] In one embodiment, the direct axis error is equal to a given direct axis current i d1 * With the injected direct axis current i d2 * After summing, it is then added to the current direct axis current i d The direct axis error is input into the first linear controller and the first resonant controller for processing, and the given direct axis current i can be obtained. d1 * The corresponding first desired direct axis voltage u d1 and the injected direct axis current i d2 * The corresponding second desired direct axis voltage u d2 .
[0088] S209: Determine a quadrature-axis error according to the current quadrature-axis current, the given quadrature-axis current and the injected quadrature-axis current.
[0089] S210, inputting the quadrature-axis error into the second linear controller and the second resonant controller for processing respectively, to obtain a first desired quadrature-axis voltage corresponding to a given quadrature-axis current and a second desired quadrature-axis voltage corresponding to an injected quadrature-axis current.
[0090] In combination with steps S209-S210, it can be seen that the first desired quadrature-axis voltage is the quadrature-axis voltage corresponding to the given quadrature-axis current, which can be understood as the voltage required to control the current to be equal to the given quadrature-axis current; the second desired quadrature-axis voltage is the quadrature-axis voltage corresponding to the injected quadrature-axis current, which can be understood as the voltage required to control the current to be equal to the injected quadrature-axis current.
[0091] In one embodiment, the quadrature axis error is equal to a given quadrature axis current i q1 * With the injected quadrature axis current iq2 * After summing, it is then combined with the current quadrature axis current i q The quadrature axis error is input into the second linear controller and the second resonant controller for processing, and the given quadrature axis current i can be obtained. q1 * The corresponding first desired quadrature axis voltage u q1 and the injected quadrature axis current i q2 * The corresponding second desired quadrature axis voltage u q2 .
[0092] It should be noted that there is no order of execution between steps S207-S208 and S209-S210 in this embodiment. That is, steps S207-S208 may be executed first, and then steps S209-S210; steps S209-S210 may be executed first, and then steps S207-S208; steps S207-S208 and S209-S210 may also be executed simultaneously.
[0093] S211, obtaining a predefined alternating current angular frequency, and calculating an integral result of the alternating current angular frequency with respect to time.
[0094] S212, calculating the second direct-axis component according to the integration result, the current direct-axis current and the injected direct-axis current; and calculating the first direct-axis component according to the current direct-axis current and the second direct-axis component.
[0095] S213, calculating the second quadrature-axis component according to the integration result, the current quadrature-axis current and the injected quadrature-axis current; and calculating the first quadrature-axis component according to the current quadrature-axis current and the second quadrature-axis component.
[0096] Figure 6 FIG. 1 is a schematic diagram of an adaptive filtering and parameter identification method provided by the second embodiment of the present invention. Figure 6 As shown, the adaptive filtering achieves the purpose of signal extraction, that is, the signal of a specific frequency is extracted from the mixed signal, corresponding to the present invention, which is to extract the signal with a frequency of ω from the direct-axis and quadrature-axis currents detected. a The current (the second direct axis component and the second quadrature axis component injected into the direct axis and the quadrature axis) is then deducted from the current direct axis current and the current quadrature axis current to obtain the current (the first direct axis component and the second direct axis component) obtained according to the motor speed and torque requirements. The four expected voltages corresponding to the four components are obtained through the above S207-210.
[0097] Figure 7 This is a calculation diagram of an adaptive filtering provided in Embodiment 2 of the present invention. Figure 7 The second quadrature axis component i is shown in the example of the quadrature axis. q2The extraction process, z -1 Indicates the delay of one control cycle.
[0098] The second quadrature axis component i q2 is equal to the sum of the third value and the fourth value; the third value is the injected quadrature axis current i q2 * The current quadrature axis current i q The difference and ω a The product of the sine value of the integral result is integrated and then multiplied by ω a The fourth value is the product of the sine value of the integral result; q2 * The current quadrature axis current i q The difference and ω a The product of the cosine value of the integral result is integrated and then multiplied by ω a The product of the cosine values of the integral result.
[0099] The first quadrature axis component i q1 Equal to the current quadrature axis current i q The second quadrature axis component i q2 The difference.
[0100] Similarly, the second direct axis component i d2 is equal to the sum of the first value and the second value; the first value is the injected direct axis current i d2 * The direct axis current i d The difference and ω a The product of the sine value of the integral result is integrated and then multiplied by ω a The second value is the product of the sine value of the integral result; the second value is the injected direct axis current i d2 * With the current direct axis current i d The difference and ω a The product of the cosine value of the integral result is integrated and then multiplied by ω a The product of the cosine values of the integral result.
[0101] The first straight axis component i d1 Equal to the current direct axis current i d With the second direct axis component i d2 The difference.
[0102] S214. Construct identification equations related to identification parameters according to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage, the second expected quadrature-axis voltage, the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component and the current electrical angular frequency, wherein the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM, and the number of identification equations is not less than the number of identification parameters.
[0103] Since the above steps have determined the first desired direct-axis voltage u d1 , the second desired direct axis voltage u d2 , the first desired quadrature axis voltage u q1 , the second desired quadrature axis voltage u q2 , the first straight axis component i d1 , the second direct axis component i d2 , the first quadrature axis component i q1 , the second quadrature axis component i q2 and the current electrical angular frequency ω, a total of 9 known parameters, so the voltage equations of the PMSM at any time and under any operating conditions can be used as an identification method.
[0104] In one embodiment, the number of identification equations is four.
[0105] The identification equation is Among them, L d is the direct-axis inductance of the PMSM, L q is the quadrature-axis inductance of PMSM, R is the motor resistance of PMSM, ψ f is the motor flux of PMSM.
[0106] Since the number of identification equations is 4 and the number of identification parameters is also 4, it is certain that a unique solution can be found to make the equations valid, and a solution for accurately determining the identification parameters is given at the theoretical level.
[0107] S215. According to the identification equation, construct the input matrix, reference signal matrix and identification matrix of the least squares method, wherein the input matrix is related to the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component and the current electrical angular frequency, the reference signal matrix is related to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage and the second expected quadrature-axis voltage, and the identification matrix is related to the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM.
[0108] Specifically, the present invention can use the least square method to solve the identification equation. Figure 8 This is a schematic diagram of the least squares method provided in the second embodiment of the present invention. The least squares method is a mathematical optimization method that finds the best function match for the data by minimizing the sum of squares of the errors. The least squares method can solve the identification parameters of the built-in PMSM under any working condition, and can be iterated in each control cycle, with a high identification speed and good parameter tracking performance.
[0109] Specifically, the motor controller can construct an input matrix, a reference signal matrix and an identification matrix of a least square method according to the identification equation.
[0110] The input matrix Reference signal matrix d(n) = [u d1 u q1 u d2 u q2 ] T ; Identification matrix w(n) = [RL d L q ψ f ] T . n represents the current control cycle.
[0111] S216: Obtain the covariance matrix of the previous control cycle, and determine the intermediate variables of the current control cycle according to the covariance matrix of the previous control cycle.
[0112] Specifically, the intermediate variables of the current control cycle Among them, n-1 represents the previous control cycle, λ is the forgetting factor, and P(n-1) is the covariance matrix of the previous control cycle.
[0113] The forgetting factor λ takes values between 0 and 1. The larger the value of λ, the greater the influence of previous data on the current recognition result, the slower the recognition speed, but the relatively stable recognition result; the smaller the value of λ, the smaller the influence of previous data on the current recognition result, the faster the recognition speed, but the greater the fluctuation of the recognition result.
[0114] It should also be noted that when the current control cycle is the first control cycle, the previous control cycle does not actually exist. Therefore, P(0) can be defined as a very small initial value for the normal determination of the intermediate variables of the current control cycle.
[0115] S217: Determine the iterative relationship of the identification matrices of adjacent control periods according to the intermediate variables, input matrix and reference signal matrix of the current control period.
[0116] Specifically, the iteration relationship is w(n)=w T (n-1)+k(n)ξ(n). Among them, ξ(n)=d(n)-w T (n-1)u(n).
[0117] S218, substituting the identification parameters of the previous control cycle into the iterative relationship to obtain the identification parameters of the current control cycle.
[0118] Substituting the identification parameters of the previous control cycle into the iterative relationship, the identification parameters of the current control cycle can be obtained.
[0119] Optionally, the motor controller may also store a distribution range of identification parameters. After obtaining the identification parameters of the current control cycle, it may also be determined whether the identification parameters of the current control cycle are within the corresponding distribution range to filter out obvious erroneous values and verify the identification results.
[0120] S219, determining the covariance matrix of the current control cycle according to the covariance matrix of the previous control cycle, the intermediate variables of the current control cycle and the input matrix.
[0121] Optionally, after determining the intermediate variables of the current control cycle, the covariance matrix of the current control cycle may also be used to provide a data basis for executing the motor parameter identification method provided by the present invention in the next control cycle.
[0122] Specifically, the covariance matrix of the current control cycle P(n) = λ -1 P(n-1)-λ -1 k(n)u T (n)P(n-1); where n represents the current control cycle, n-1 represents the previous control cycle, λ is the forgetting factor, P(n-1) is the covariance matrix of the previous control cycle, k(n) is the intermediate variable of the current control cycle, and u T (n) is the transpose of the input matrix.
[0123] S220 . Determine control parameters according to the identification parameters of the current control cycle, and control the PMSM to operate according to the control parameters.
[0124] Optionally, after obtaining the identification parameters of the current control cycle, control parameters may be determined, and the PMSM may be controlled to operate according to the control parameters. In this way, the PMSM may be controlled.
[0125] The control parameters include at least the voltage u applied by the motor controller to the direct axis d and the voltage u applied to the quadrature axis by the motor controller q .
[0126] The technical solution of the embodiment of the present invention obtains the working parameters of the PMSM in the current control cycle, and then determines four expected voltages by combining the given direct-axis current, the given quadrature-axis current and the predefined injected direct-axis current and injected quadrature-axis current; then the current direct-axis current and the current quadrature-axis current are adaptively filtered to determine four components; finally, based on the four expected voltages, the four components and the current electrical angular frequency, an identification equation related to the identification parameters is constructed, and the identification equation is solved to obtain the identification parameters of the current control cycle. In the first aspect, the motor parameter identification method provided by the present invention introduces the predefined injected direct-axis current and the injected quadrature-axis current on the direct axis and the quadrature-axis respectively, and further determines the first expected direct-axis voltage corresponding to the given direct-axis current, the second expected direct-axis voltage corresponding to the injected direct-axis current, the first expected quadrature-axis voltage corresponding to the given quadrature-axis current, and the second expected quadrature-axis voltage corresponding to the injected quadrature-axis current. Accordingly, the current direct-axis current and the current quadrature-axis current are adaptively filtered to obtain the first direct-axis component, the second direct-axis component, the first quadrature-axis component and the second quadrature-axis component. As a result, more known quantities are involved in the construction of the identification equations, so that the number of identification equations is not less than the number of identification parameters, and a solution for accurately determining the identification parameters is given at the theoretical level. Secondly, the adaptive filtering of the current direct-axis current and the current quadrature-axis current can achieve the purpose of accurately extracting a signal of a certain frequency from the mixed signal without affecting the amplitude and phase of the signal itself, thereby ensuring the accuracy of subsequent identification. Thirdly, since the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM, precise control of the PMSM can be achieved based on the identification parameters. In addition, the motor resistance and motor flux can be used to accurately estimate the temperature rise of the stator winding and the rotor permanent magnet, eliminating the temperature sensor buried in the stator winding to reduce the hardware cost of the electric drive system.
[0127] Embodiment 3
[0128] Fig. 9 FIG. 1 is a schematic diagram of the structure of a motor parameter identification device provided by Embodiment 3 of the present invention. Fig. 9 As shown, the device includes: a parameter acquisition module 901, a determination module 902, an adaptive filtering module 903, an equation construction module 904, and a solution module 905.
[0129] The parameter acquisition module 901 is used to acquire the operating parameters of the PMSM in the current control cycle, wherein the operating parameters include the current direct-axis current, the current quadrature-axis current and the current electrical angular frequency;
[0130] A determination module 902 is configured to determine a first desired direct-axis voltage and a second desired direct-axis voltage according to a current direct-axis current, a given direct-axis current, and a predefined injected direct-axis current; and to determine a first desired quadrature-axis voltage and a second desired quadrature-axis voltage according to a current quadrature-axis current, a given quadrature-axis current, and a predefined injected quadrature-axis current;
[0131] An adaptive filtering module 903 is used to perform adaptive filtering on the current direct-axis current and the current quadrature-axis current to determine a first direct-axis component, a second direct-axis component, a first quadrature-axis component, and a second quadrature-axis component;
[0132] an equation building module 904, for building an identification equation related to the identification parameters according to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage, the second expected quadrature-axis voltage, the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component, and the current electrical angular frequency, wherein the identification parameters include the direct-axis inductance, the quadrature-axis inductance, the motor resistance, and the motor flux of the PMSM, and the number of the identification equations is not less than the number of the identification parameters;
[0133] The solving module 905 is used to solve the identification equation according to the identification parameters of the previous control cycle using a preset algorithm to obtain the identification parameters of the current control cycle.
[0134] Optionally, the parameter acquisition module 901 is specifically used to sample the PMSM to obtain the three-phase current signal and motor position signal of the PMSM in the current control cycle; perform Clarke transform and Park transform on the three-phase current signal to obtain the current direct-axis current and the current quadrature-axis current; calculate the differential result of the motor position signal with respect to time, and filter the differential result to obtain the current electrical angular frequency.
[0135] Optionally, the operating parameters also include motor speed, motor torque and power demand;
[0136] The determination module 902 is also used to determine a given direct-axis current and a given quadrature-axis current according to the motor speed, motor torque and power requirement; obtain a predefined alternating current angular frequency, a current amplitude and phase injected into the direct axis, and a current amplitude and phase injected into the quadrature axis; determine the injected direct-axis current according to the alternating current angular frequency and the current amplitude and phase injected into the direct axis; and determine the injected quadrature-axis current according to the alternating current angular frequency and the current amplitude and phase injected into the quadrature axis.
[0137] Optionally, determination module 902 is specifically used to determine a direct-axis error based on a current direct-axis current, a given direct-axis current and an injected direct-axis current; input the direct-axis error into a first linear controller and a first resonant controller for processing, respectively, to obtain a first desired direct-axis voltage corresponding to the given direct-axis current and a second desired direct-axis voltage corresponding to the injected direct-axis current; determine a quadrature-axis error based on a current quadrature-axis current, a given quadrature-axis current and an injected quadrature-axis current; input the quadrature-axis error into a second linear controller and a second resonant controller for processing, respectively, to obtain a first desired quadrature-axis voltage corresponding to the given quadrature-axis current and a second desired quadrature-axis voltage corresponding to the injected quadrature-axis current.
[0138] Optionally, the adaptive filtering module 903 is specifically used to obtain a predefined alternating current angular frequency and calculate the integral result of the alternating current angular frequency with respect to time; calculate the second direct-axis component based on the integral result, the current direct-axis current and the injected direct-axis current; and calculate the first direct-axis component based on the current direct-axis current and the second direct-axis component; calculate the second quadrature-axis component based on the integral result, the current quadrature-axis current and the injected quadrature-axis current; and calculate the first quadrature-axis component based on the current quadrature-axis current and the second quadrature-axis component.
[0139] Optionally, the second direct-axis component is equal to the sum of the first value and the second value; the first value is the product of the difference between the injected direct-axis current and the current direct-axis current and the sine value of the integration result, which is then integrated and then multiplied by the sine value of the integration result; the second value is the product of the difference between the injected direct-axis current and the current direct-axis current and the cosine value of the integration result, which is then integrated and then multiplied by the cosine value of the integration result;
[0140] The first direct-axis component is equal to the difference between the current direct-axis current and the second direct-axis component;
[0141] The second quadrature axis component is equal to the sum of the third value and the fourth value; the third value is the product of the difference between the injected quadrature axis current and the current quadrature axis current and the sine value of the integration result, which is then integrated and then multiplied by the sine value of the integration result; the fourth value is the product of the difference between the injected quadrature axis current and the current quadrature axis current and the cosine value of the integration result, which is then integrated and then multiplied by the cosine value of the integration result;
[0142] The first quadrature-axis component is equal to the difference between the current quadrature-axis current and the second quadrature-axis component.
[0143] Optionally, the number of identification equations is 4;
[0144] The identification equation is
[0145] Among them, u d1 is the first desired direct axis voltage, u d2 is the second desired direct axis voltage, u q1 is the first desired quadrature axis voltage, u q2is the second desired quadrature axis voltage, i d1 is the first straight axis component, i d2 is the second direct axis component, i q1 is the first quadrature axis component, i q2 is the second axis component, ω is the current electrical angular frequency, L d is the direct-axis inductance of the PMSM, L q is the quadrature-axis inductance of PMSM, R is the motor resistance of PMSM, ψ f is the motor flux of PMSM.
[0146] Optionally, the preset algorithm is the least squares method;
[0147] Solution module 905 is specifically used to construct an input matrix, a reference signal matrix and an identification matrix of the least squares method according to the identification equation, wherein the input matrix is related to the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component and the current electrical angular frequency, the reference signal matrix is related to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage and the second expected quadrature-axis voltage, and the identification matrix is related to the direct-axis inductance, quadrature-axis inductance, motor resistance and motor flux of the PMSM; obtain the covariance matrix of the previous control cycle, and determine the intermediate variables of the current control cycle according to the covariance matrix of the previous control cycle; determine the iterative relationship of the identification matrices of adjacent control cycles according to the intermediate variables, the input matrix and the reference signal matrix of the current control cycle; substitute the identification parameters of the previous control cycle into the iterative relationship to obtain the identification parameters of the current control cycle.
[0148] Optional, input matrix
[0149] Reference signal matrix d(n) = [u d1 u q1 u d2 u q2 ] T ;
[0150] Identification matrix w(n) = [RL d L q ψ f ] T ;
[0151] Intermediate variables of the current control cycle
[0152] The iteration relationship is w(n)=w T (n-1)+k(n)ξ(n);
[0153] Where n represents the current control cycle, n-1 represents the previous control cycle, λ is the forgetting factor, P(n-1) is the covariance matrix of the previous control cycle, ξ(n) = d(n)-w T (n-1)u(n).
[0154] Optionally, the solving module 905 is further used to determine the covariance matrix of the current control cycle according to the covariance matrix of the previous control cycle, the intermediate variables of the current control cycle and the input matrix.
[0155] Optionally, the covariance matrix of the current control cycle P(n) = λ -1 P(n-1)-λ -1 k(n)u T (n)P(n-1);
[0156] Where n represents the current control cycle, n-1 represents the previous control cycle, λ is the forgetting factor, P(n-1) is the covariance matrix of the previous control cycle, k(n) is the intermediate variable of the current control cycle, and u T (n) is the transpose of the input matrix.
[0157] Optional, combined Fig. 9 , Fig.10 FIG. 1 is a schematic diagram of the structure of another motor parameter identification device provided in Embodiment 3 of the present invention. Fig.10 As shown, the device also includes: a control module 906.
[0158] The control module 906 is used to determine the control parameters according to the identification parameters of the current control cycle, and control the PMSM to operate according to the control parameters.
[0159] The motor parameter identification device provided in the embodiment of the present invention can execute the motor parameter identification method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0160] Embodiment 4
[0161] Fig.11 is a schematic diagram of the structure of a motor controller provided by Embodiment 4 of the present invention. The motor controller is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0162] like Fig.11As shown, the motor controller 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the motor controller 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0163] A number of components in the motor controller 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the motor controller 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0164] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the motor parameter identification method.
[0165] Fig.12 Schematic diagram of the structure of a vehicle provided by the fourth embodiment of the present invention. Fig.12 As shown, the vehicle includes the motor controller 10 described in the above embodiment, and the PMSM 20 ; the motor controller 10 is electrically connected to the PMSM 20 .
[0166] The PMSM 20 can realize driving of the vehicle, and the motor controller 10 is used to control the PMSM 20. Specifically, the motor controller 10 may be a current controller, and the PMSM 20 may be a built-in PMSM.
[0167] In some embodiments, the method for identifying motor parameters may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the motor controller 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for identifying motor parameters described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method for identifying motor parameters in any other appropriate manner (e.g., by means of firmware).
[0168] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0169] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0170] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0171] To provide interaction with a user, the systems and techniques described herein may be implemented on a motor controller having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the motor controller. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0172] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0173] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0174] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the method provided by any embodiment of the present invention when executed by a processor.
[0175] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0176] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0177] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for identifying motor parameters, characterized in that: Applied to a motor controller, the motor controller is electrically connected to a built-in permanent magnet synchronous motor PMSM; the method comprises: Acquire operating parameters of the PMSM in a current control cycle, wherein the operating parameters include a current direct-axis current, a current quadrature-axis current, and a current electrical angular frequency; Determine a first desired direct-axis voltage and a second desired direct-axis voltage according to the current direct-axis current, the given direct-axis current and the predefined injected direct-axis current; and determine a first desired quadrature-axis voltage and a second desired quadrature-axis voltage according to the current quadrature-axis current, the given quadrature-axis current and the predefined injected quadrature-axis current; Performing adaptive filtering processing on the current direct-axis current and the current quadrature-axis current respectively to determine a first direct-axis component, a second direct-axis component, a first quadrature-axis component, and a second quadrature-axis component; constructing an identification equation related to identification parameters according to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage, the second expected quadrature-axis voltage, the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component, and the current electrical angular frequency, wherein the identification parameters include the direct-axis inductance, quadrature-axis inductance, motor resistance, and motor flux of the PMSM, and the number of the identification equations is not less than the number of the identification parameters; According to the identification parameters of the previous control cycle, the identification equation is solved using a preset algorithm to obtain the identification parameters of the current control cycle.
2. The method for identifying motor parameters according to claim 1, characterized in that: The obtaining of the operating parameters of the PMSM in the current control cycle includes: Sampling the PMSM to obtain a three-phase current signal and a motor position signal of the PMSM in a current control cycle; Performing Clarke transformation and Park transformation on the three-phase current signal to obtain the current direct-axis current and the current quadrature-axis current; The differential result of the motor position signal with respect to time is calculated, and the differential result is filtered to obtain the current electrical angular frequency.
3. The method for identifying motor parameters according to claim 1, characterized in that: The operating parameters also include motor speed, motor torque and power demand; after obtaining the operating parameters of the PMSM in the current control cycle, it also includes: Determining the given direct-axis current and the given quadrature-axis current according to the motor speed, the motor torque and the power requirement; Obtaining a predefined alternating current angular frequency, a current amplitude and phase injected into a direct axis, and a current amplitude and phase injected into a quadrature axis; The injected direct axis current is determined according to the AC angular frequency and the current amplitude and phase injected into the direct axis; and the injected quadrature axis current is determined according to the AC angular frequency and the current amplitude and phase injected into the quadrature axis.
4. The method for identifying motor parameters according to claim 1 or 3, characterized in that: determining a first expected direct-axis voltage and a second expected direct-axis voltage according to the current direct-axis current, a given direct-axis current and a predefined injected direct-axis current; And determining a first expected quadrature-axis voltage and a second expected quadrature-axis voltage according to the current quadrature-axis current, the given quadrature-axis current and the predefined injected quadrature-axis current, comprising: Determining a direct-axis error according to the current direct-axis current, the given direct-axis current and the injected direct-axis current; Inputting the direct-axis error into a first linear controller and a first resonant controller for processing respectively, to obtain the first desired direct-axis voltage corresponding to the given direct-axis current and the second desired direct-axis voltage corresponding to the injected direct-axis current; Determining a quadrature-axis error according to the current quadrature-axis current, the given quadrature-axis current and the injected quadrature-axis current; The quadrature-axis error is input into a second linear controller and a second resonant controller for processing respectively, so as to obtain the first desired quadrature-axis voltage corresponding to the given quadrature-axis current and the second desired quadrature-axis voltage corresponding to the injected quadrature-axis current.
5. The method for identifying motor parameters according to claim 1, characterized in that: The adaptive filtering is performed on the current direct-axis current and the current quadrature-axis current respectively to determine a first direct-axis component, a second direct-axis component, a first quadrature-axis component, and a second quadrature-axis component, including: Obtaining a predefined alternating current angular frequency, and calculating an integral result of the alternating current angular frequency over time; Calculating the second direct-axis component according to the integration result, the current direct-axis current and the injected direct-axis current; and calculating the first direct-axis component according to the current direct-axis current and the second direct-axis component; The second quadrature-axis component is calculated according to the integration result, the current quadrature-axis current and the injected quadrature-axis current; and the first quadrature-axis component is calculated according to the current quadrature-axis current and the second quadrature-axis component.
6. The method for identifying motor parameters according to claim 5, characterized in that: The second direct-axis component is equal to the sum of the first value and the second value; the first value is the product of the difference between the injected direct-axis current and the current direct-axis current and the sine value of the integration result, integrated and then multiplied by the sine value of the integration result; The second value is the product of the difference between the injected direct-axis current and the current direct-axis current and the cosine value of the integration result, integrated and then multiplied by the cosine value of the integration result; The first direct-axis component is equal to the difference between the current direct-axis current and the second direct-axis component; The second quadrature axis component is equal to the sum of the third value and the fourth value; The third value is the product of the difference between the injected quadrature-axis current and the current quadrature-axis current and the sine value of the integration result, integrated and then multiplied by the sine value of the integration result; The fourth value is the product of the difference between the injected quadrature-axis current and the current quadrature-axis current and the cosine value of the integration result, integrated and then multiplied by the cosine value of the integration result; The first quadrature-axis component is equal to a difference between the current quadrature-axis current and the second quadrature-axis component.
7. The method for identifying motor parameters according to claim 1, characterized in that: The number of identification equations is 4; The identification equation is Among them, u d1 is the first desired direct axis voltage, u d2 is the second desired direct axis voltage, u q1 is the first desired quadrature axis voltage, u q2 is the second desired quadrature axis voltage, i d1 is the first straight axis component, i d2 is the second direct axis component, i q1 is the first quadrature axis component, i q2 is the second axis component, ω is the current electrical angular frequency, L d is the direct-axis inductance of the PMSM, L q is the quadrature-axis inductance of the PMSM, R is the motor resistance of the PMSM, ψ f is the motor flux of the PMSM.
8. The method for identifying motor parameters according to claim 7, characterized in that: The preset algorithm is the least square method; the identification parameters of the previous control cycle are solved by using the preset algorithm to obtain the identification parameters of the current control cycle, including: According to the identification equation, construct an input matrix, a reference signal matrix and an identification matrix of a least square method, wherein the input matrix is related to the first direct-axis component, the second direct-axis component, the first quadrature-axis component, the second quadrature-axis component and the current electrical angular frequency, the reference signal matrix is related to the first expected direct-axis voltage, the second expected direct-axis voltage, the first expected quadrature-axis voltage and the second expected quadrature-axis voltage, and the identification matrix is related to the direct-axis inductance of the PMSM, the quadrature-axis inductance, the motor resistance and the motor flux; Obtaining a covariance matrix of a previous control cycle, and determining an intermediate variable of a current control cycle according to the covariance matrix of the previous control cycle; Determining an iterative relationship of the identification matrix in adjacent control cycles according to the intermediate variables of the current control cycle, the input matrix and the reference signal matrix; Substitute the identification parameters of the previous control cycle into the iterative relationship to obtain the identification parameters of the current control cycle.
9. The method for identifying motor parameters according to claim 8, characterized in that: The input matrix The reference signal matrix d(n) = [u d1 u q1 u d2 u q2 ] T ; The identification matrix w(n)=[RL d L q ψ f ] T ; The intermediate variable of the current control cycle The iterative relationship is w(n)=w T (n-1)+k(n)ξ(n); Where n represents the current control cycle, n-1 represents the previous control cycle, λ is the forgetting factor, P(n-1) is the covariance matrix of the previous control cycle, ξ(n) = d(n)-w T (n-1)u(n).
10. The method for identifying motor parameters according to claim 8, characterized in that: After determining the intermediate variables of the current control cycle, it also includes: The covariance matrix of the current control cycle is determined according to the covariance matrix of the previous control cycle, the intermediate variables of the current control cycle and the input matrix.
11. The method for identifying motor parameters according to claim 10, characterized in that: The covariance matrix of the current control cycle P(n)=λ -1 P(n-1)-λ -1 k(n)u T (n)P(n-1); Where n represents the current control cycle, n-1 represents the previous control cycle, λ is the forgetting factor, P(n-1) is the covariance matrix of the previous control cycle, k(n) is the intermediate variable of the current control cycle, and u T (n) is the transpose of the input matrix.
12. The method for identifying motor parameters according to claim 1, characterized in that: After obtaining the identification parameters of the current control cycle, it also includes: According to the identification parameters of the current control cycle, control parameters are determined, and the PMSM is controlled to operate according to the control parameters.
13. A motor controller, characterized in that: The motor controller comprises: at least one processor; and a memory in communication with the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the motor parameter identification method according to any one of claims 1 to 12.
14. A vehicle, characterized in that: It comprises a motor controller as claimed in claim 13, and a built-in permanent magnet synchronous motor (PMSM); wherein the motor controller is electrically connected to the PMSM.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the motor parameter identification method according to any one of claims 1 to 12 when executed.
Citation Information
Cited By
Permanent magnet synchronous motor all-electrical parameter on-line identification method and device based on complex waves
CN121530247A
Permanent magnet synchronous motor full electrical parameter online identification method and device based on composite wave
CN121530247B
