A motor voltage compensation method and system based on high frequency signal injection
By establishing a discrete prediction model of the motor and training a neural network, the current polarity and voltage error of the motor in the zero current region are identified, which solves the problem of identifying current polarity and voltage error in motor control and improves the accuracy and stability of motor control.
Patent Information
- Application Number
- CN202211350423.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-10-31
AI Technical Summary
Existing technologies struggle to effectively identify and compensate for current polarity and voltage errors during high-frequency signal injection in the zero-current region of a motor, thus affecting the accuracy of motor control.
By acquiring the electrical parameters of the motor, a discrete prediction model is established, trained using a single-layer neural network, and the current polarity and voltage error curves are determined. Voltage compensation is then performed based on these models, taking into account influencing factors such as dead time, turn-on judgment time, turn-on voltage drop of the switching transistor, and parasitic capacitance.
This improves the accuracy of current polarity determination and the precision of voltage error curve in the zero-current region of the motor, thereby enhancing the accuracy and stability of motor control.
Smart Images

Figure CN115603636B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of motor control technology, and more specifically, to a motor voltage compensation method and system based on high-frequency signal injection. Background Art
[0002] The motor body with the characteristic of suppressing high-frequency harmonics has certain characteristics in terms of armature winding arrangement, stator and rotor tooth profiles, etc. How to understand and design the motor body that meets the control requirements is a key technical problem that needs to be solved. Summary of the invention
[0003] In view of the above problems, the present invention proposes a motor voltage compensation method based on high-frequency signal injection, comprising:
[0004] Acquiring electrical parameters of the target motor, establishing a discrete prediction model of the target motor based on the electrical parameters, and determining the current polarity of the target motor in a zero current region according to the discrete prediction model;
[0005] In the case of injecting a high-frequency signal into a target motor, determining influencing factors affecting a voltage error of the target motor, establishing a voltage error model of the target motor based on the influencing factors, and determining a voltage error curve of the target motor in the case of injecting a high-frequency signal according to the voltage error model;
[0006] Based on the current polarity of the target motor in the zero current region and the voltage error curve when a high-frequency signal is injected, the voltage value that needs to be compensated for the target motor when a high-frequency signal is injected is determined, and based on the voltage value, voltage compensation is performed on the target motor when a high-frequency signal is injected.
[0007] Optionally, establishing a discrete prediction model of the target motor based on the electrical parameters includes:
[0008] Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network;
[0009] The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor.
[0010] Optionally, the established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
[0011] Optionally, the influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
[0012] Optionally, the method further includes: decoupling the mid-base frequency part and the high frequency part of the voltage error model to determine a high frequency component expression of the voltage error, and based on the high frequency component expression, correcting the voltage error curve determined by the voltage error model.
[0013] The present invention also proposes a motor voltage compensation system based on high-frequency signal injection, comprising:
[0014] A first model building unit is configured to obtain electrical parameters of a target motor, establish a discrete prediction model of the target motor based on the electrical parameters, and determine a current polarity of the target motor in a zero current region according to the discrete prediction model;
[0015] A second model building unit, when a high-frequency signal is injected into the target motor, determines influencing factors affecting the voltage error of the target motor, establishes a voltage error model of the target motor based on the influencing factors, and determines a voltage error curve of the target motor when the high-frequency signal is injected according to the voltage error model;
[0016] The third calculation unit determines the voltage value that needs to be compensated for the target motor when the high-frequency signal is injected based on the current polarity of the target motor in the zero-current region and the voltage error curve when the high-frequency signal is injected, and performs voltage compensation on the target motor when the high-frequency signal is injected according to the voltage value.
[0017] Optionally, establishing a discrete prediction model of the target motor based on the electrical parameters includes:
[0018] Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network;
[0019] The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor.
[0020] Optionally, the established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
[0021] Optionally, the influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
[0022] Optionally, the second model building unit is also used to: decouple the mid-base frequency part and the high-frequency part of the voltage error model to determine the high-frequency component expression of the voltage error, and based on the high-frequency component expression, correct the voltage error curve determined by the voltage error model.
[0023] In yet another aspect, the present invention further provides a computing device, comprising: one or more processors;
[0024] a processor for executing one or more programs;
[0025] When the one or more programs are executed by the one or more processors, the above-described method is implemented.
[0026] In yet another aspect, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed, the method described above is implemented.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] The present invention provides a motor voltage compensation method based on high-frequency signal injection, including: obtaining electrical parameters of a target motor, establishing a discrete prediction model of the target motor based on the electrical parameters, and determining the current polarity of the target motor in a zero current region according to the discrete prediction model; determining the influencing factors affecting the voltage error of the target motor when a high-frequency signal is injected into the target motor, establishing a voltage error model of the target motor based on the influencing factors, and determining the voltage error curve of the target motor when a high-frequency signal is injected according to the voltage error model; determining the voltage value to be compensated for the target motor when a high-frequency signal is injected based on the current polarity of the target motor in the zero current region and the voltage error curve when a high-frequency signal is injected, and performing voltage compensation on the target motor when a high-frequency signal is injected according to the voltage value. According to the present invention, an expression of a high-frequency component in the motor voltage error can be obtained, and the voltage error curve in the zero current region can be corrected based on this. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a flow chart of the method of the present invention;
[0030] Figure 2 It is a structural diagram of the system of the present invention. DETAILED DESCRIPTION
[0031] Now, exemplary embodiments of the present invention are described with reference to the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. These embodiments are provided to disclose the present invention in detail and completely and to fully convey the scope of the present invention to those skilled in the art. The terms used in the exemplary embodiments shown in the accompanying drawings are not intended to limit the present invention. In the accompanying drawings, the same units / elements are marked with the same reference numerals.
[0032] Unless otherwise specified, the terms (including technical terms) used herein have the commonly understood meanings to those skilled in the art. In addition, it is understood that the terms defined in commonly used dictionaries should be understood to have the same meanings as those in the context of the relevant fields, and should not be understood as idealized or overly formal meanings.
[0033] Embodiment 1:
[0034] The present invention proposes a motor voltage compensation method based on high-frequency signal injection, such as Figure 1 As shown, including:
[0035] Step 1: Acquire electrical parameters of a target motor, establish a discrete prediction model of the target motor based on the electrical parameters, and determine the current polarity of the target motor in a zero current region according to the discrete prediction model;
[0036] Step 2: when a high-frequency signal is injected into a target motor, determining influencing factors affecting a voltage error of the target motor, establishing a voltage error model of the target motor based on the influencing factors, and determining a voltage error curve of the target motor when the high-frequency signal is injected according to the voltage error model;
[0037] Step 3: Based on the current polarity of the target motor in the zero current region and the voltage error curve when the high-frequency signal is injected, determine the voltage value that needs to be compensated for the target motor when the high-frequency signal is injected, and perform voltage compensation on the target motor when the high-frequency signal is injected according to the voltage value.
[0038] Wherein, establishing a discrete prediction model of the target motor based on the electrical parameters includes:
[0039] Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network;
[0040] The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor.
[0041] Among them, the established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
[0042] The influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
[0043] The method further includes: decoupling the mid-base frequency part and the high frequency part of the voltage error model to determine the high frequency component expression of the voltage error, and based on the high frequency component expression, correcting the voltage error curve determined by the voltage error model.
[0044] The principles of the present invention are as follows, including:
[0045] Among the existing compensation schemes, the compensation scheme based on voltage pulse adjustment is the most widely used and most suitable for the specific application background of position sensor-free. The key points that determine the accuracy of such compensation schemes are: first, the accurate judgment of the current polarity in the zero current region, and second, the accuracy of the voltage error curve.
[0046] Regarding the first point, this project intends to design a current prediction scheme from the perspective of model prediction to solve the delay problem in digital implementation. The current prediction model can be obtained by Euler discretization of the stator current equation, but the model has strong parameter dependence. It is planned to use the adaptability of the neural network to fit the discrete function to improve the parameter robustness of the current prediction. From the perspective of reducing the computational complexity and combining the characteristics of the discrete prediction model, it is planned to select a single-layer neural network structure, treat the electrical parameter items as weight factors that need to be adjusted online, and use the predicted value of the current as the output of the neural network. The difference between the current and the sampled current is combined with the gradient descent method to train the neural network. In the specific implementation, the input items should be normalized to avoid possible numerical problems, and the influence of the learning step size on the convergence speed and prediction accuracy should be studied. In order to further improve the accuracy of current prediction, the current oversampling scheme within a single cycle is studied. The increased current sampling points help to accurately obtain the current change law under the conditions of known switch tube state and action time, thereby improving the function fitting accuracy. Regarding the second point, this project established a voltage error model that includes influencing factors such as dead time, conduction judgment time, switch tube conduction voltage drop, parasitic capacitance, etc., and designed the voltage error curve offline on this basis; studied the same-frequency fluctuation characteristics of the voltage error caused by repeated zero crossing of the high-frequency current in the zero current region when the high-frequency voltage signal was injected; by decoupling the fundamental frequency part and the high-frequency part in the voltage error model, the expression of the high-frequency component in the voltage error was obtained, and based on this, the voltage error curve in the zero current region was corrected.
[0047] The present invention also proposes a motor voltage compensation system 200 based on high frequency signal injection, such as Figure 2 As shown, including:
[0048] The first model building unit 201 acquires electrical parameters of the target motor, establishes a discrete prediction model of the target motor based on the electrical parameters, and determines the current polarity of the target motor in the zero current region according to the discrete prediction model;
[0049] The second model building unit 202 determines the influencing factors affecting the voltage error of the target motor when the high-frequency signal is injected into the target motor, establishes a voltage error model of the target motor based on the influencing factors, and determines the voltage error curve of the target motor when the high-frequency signal is injected according to the voltage error model;
[0050] The third calculation unit 203 determines the voltage value that needs to be compensated for the target motor when the high-frequency signal is injected based on the current polarity of the target motor in the zero-current region and the voltage error curve when the high-frequency signal is injected, and performs voltage compensation on the target motor when the high-frequency signal is injected according to the voltage value.
[0051] Wherein, establishing a discrete prediction model of the target motor based on the electrical parameters includes:
[0052] Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network;
[0053] The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor.
[0054] Among them, the established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
[0055] The influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
[0056] Among them, the second model building unit is also used to: decouple the mid-base frequency part and the high-frequency part of the voltage error model to determine the high-frequency component expression of the voltage error, and based on the high-frequency component expression, correct the voltage error curve determined by the voltage error model.
[0057] Embodiment 3:
[0058] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of the method in the above embodiment.
[0059] Embodiment 4:
[0060] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both a built-in storage medium in a computer device and an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of the method in the above embodiment.
[0061] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present invention may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0062] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0063] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0064] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0065] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0066] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A motor voltage compensation method based on high-frequency signal injection, characterized in that: The method comprises: Acquiring electrical parameters of the target motor, establishing a discrete prediction model of the target motor based on the electrical parameters, and determining the current polarity of the target motor in a zero current region according to the discrete prediction model; In the case of injecting a high-frequency signal into a target motor, determining influencing factors affecting a voltage error of the target motor, establishing a voltage error model of the target motor based on the influencing factors, and determining a voltage error curve of the target motor in the case of injecting a high-frequency signal according to the voltage error model; Based on the current polarity of the target motor in the zero current region and the voltage error curve when the high-frequency signal is injected, determine the voltage value of the target motor to be compensated when the high-frequency signal is injected, and perform voltage compensation on the target motor when the high-frequency signal is injected according to the voltage value; Among them, the electrical parameter items are regarded as weight factors that need to be adjusted online, and the difference between the current prediction value and the sampled current is combined with the gradient descent method to train the neural network; The step of establishing a discrete prediction model of the target motor based on the electrical parameters comprises: Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network; The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor; The influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
2. The method according to claim 1, characterized in that The established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
3. A motor voltage compensation system based on high-frequency signal injection, characterized in that: The system comprises: A first model building unit is configured to obtain electrical parameters of a target motor, establish a discrete prediction model of the target motor based on the electrical parameters, and determine a current polarity of the target motor in a zero current region according to the discrete prediction model; A second model building unit, when a high-frequency signal is injected into the target motor, determines influencing factors affecting the voltage error of the target motor, establishes a voltage error model of the target motor based on the influencing factors, and determines a voltage error curve of the target motor when the high-frequency signal is injected according to the voltage error model; A third calculation unit determines, based on the current polarity of the target motor in the zero current region and the voltage error curve when the high-frequency signal is injected, a voltage value to be compensated for the target motor when the high-frequency signal is injected, and performs voltage compensation on the target motor when the high-frequency signal is injected according to the voltage value; Among them, the electrical parameter items are regarded as weight factors that need to be adjusted online, and the difference between the current prediction value and the sampled current is combined with the gradient descent method to train the neural network; The step of establishing a discrete prediction model of the target motor based on the electrical parameters comprises: Normalizing the electrical parameters, using the normalized electrical parameters as input data of the single-layer neural network, and using the predicted value of the target motor current as output data of the single-layer neural network; The input data and the output data are simultaneously input into a single-layer neural network and trained using a gradient descent method to obtain a discrete prediction model of the target motor; The influencing factors include at least one of the following: dead time, conduction judgment time, switch tube conduction voltage drop and parasitic capacitance.
4. The system according to claim 3, characterized in that The established discrete prediction model is fitted based on the adaptability of the neural network to improve the robustness of the discrete prediction model.
5. A computer device, characterized in that: include: one or more processors; a processor for executing one or more programs; When the one or more programs are executed by the one or more processors, the method according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the method according to any one of claims 1-2 is implemented.
