Motor current adjustment method, computer device and storage medium
By obtaining the voltage and current phase angles of the motor, determining the load angle, and adjusting the current, the problem of severe heat generation in stepper motors is solved, and static stable operation and low heat generation of the motor under different load conditions are achieved.
Patent Information
- Application Number
- CN202311841787.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-28
AI Technical Summary
Stepper motors suffer from severe overheating during operation, which affects their efficiency and reliability.
By obtaining the phase angle between the motor's voltage and current, the current load angle is determined, and the current is adjusted based on the phase angle, the applied voltage value, and the applied current value to obtain the target current value to drive the motor and reduce heat generation.
This technology enables the motor to operate stably under different load conditions, reduces the heat generated by the motor, and improves the motor's operating efficiency and reliability.
Smart Images

Figure CN117879431B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method for adjusting the current of an electric motor, a computer device, and a storage medium. Background Technology
[0002] A stepper motor is an incremental motor that can directly convert electrical pulse signals into angular or linear displacement. Its displacement is only related to the number of input pulses, and the error of each step does not accumulate. Therefore, controlling the stepper motor can be achieved simply by counting the input pulses. Control systems built using stepper motors have advantages such as simple structure, reliable operation, and convenient maintenance. These advantages make them widely used in manufacturing, automated office equipment, and home appliances.
[0003] Compared to permanent magnet synchronous motors, stepper motor control systems are more cost-effective. Although stepper motors are limited by their structure and control methods, their control precision can still meet the needs of most scenarios. However, low cost inevitably comes with drawbacks; current stepper motors suffer from severe overheating issues. Summary of the Invention
[0004] Therefore, it is necessary to provide a current adjustment method, computer equipment, and storage medium for a motor that can reduce motor heating, in order to address the above-mentioned technical problems.
[0005] A method for adjusting the current of an electric motor, the method comprising:
[0006] Obtain the phase angle between the voltage and current of the motor;
[0007] Obtain the operating voltage and operating current values of the motor;
[0008] The current load angle of the motor is determined based on the phase angle, the applied voltage value, and the applied current value;
[0009] The target current value of the motor is obtained by adjusting the current based on the current load angle.
[0010] The motor is driven to operate based on the target current value. A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of an embodiment of a current adjustment method for each motor.
[0011] A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of an embodiment of a current adjustment method for each motor.
[0012] The aforementioned motor current adjustment method, computer equipment, and storage medium address the issue that the load on the motor changes during operation, resulting in a change in the current load angle. The optimal current value, or target current value, varies depending on the current load angle. Therefore, current adjustment is necessary based on the current load angle. In this embodiment, the current load angle of the motor is determined based on the phase angle, applied voltage, and applied current value, and the current is then adjusted to obtain the target current value. Driving the motor based on this target current allows it to achieve static stability, and the target current value can drive the current load while minimizing motor heat generation. Attached Figure Description
[0013] Figure 1 This is an application environment diagram of a motor current adjustment method in one embodiment;
[0014] Figure 2 This is a flowchart illustrating a method for adjusting the current of a motor in one embodiment;
[0015] Figure 3 This is a schematic diagram of a first count value CNT1 and a second count value CNT2 in one embodiment;
[0016] Figure 4 This is a schematic diagram illustrating the derivation and calculation of the load angle in one embodiment;
[0017] Figure 5 This is a schematic diagram illustrating the calculation of the applied current value in one embodiment;
[0018] Figure 6 This is a circuit diagram of the H-bridge circuit, motor, and sampling resistor in one embodiment;
[0019] Figure 7 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0020] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.
[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0022] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of this application are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly. The connection can be a direct connection or an indirect connection.
[0023] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. If the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.
[0024] The terms "first," "second," etc., used in this application may be used herein to describe various data, but such data are not limited by these terms. These terms are only used to distinguish one data from another. For example, without departing from the scope of this application, a first count value may be referred to as a second count value, and similarly, a second count value may be referred to as a first count value. Both the first count value and the second count value are count values, but they are not the same count value.
[0025] It is understood that the term "connection" in the following embodiments should be understood as "electrical connection," "communication connection," etc., if the connected circuits, modules, units, etc., have electrical signal or data transmission with each other.
[0026] The current adjustment method for motors provided in this application can be applied to, for example... Figure 1 In the application environment. Figure 1 This diagram illustrates the application environment of a motor current adjustment method in one embodiment. It can be applied to, for example... Figure 1 In the application environment. Figure 1 This diagram illustrates the application environment of a motor current adjustment method in one embodiment. The computer device 110 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, portable wearable devices, microcontrollers, and FPGAs (Field Programmable Gate Arrays). The motor 120 can specifically be a stepper motor. In this embodiment, the motor current adjustment method is applied to the computer device 110.
[0027] In one embodiment, such as Figure 2The diagram shown is a flowchart of a motor current adjustment method in one embodiment, taking an application to a computer device as an example, and includes the following steps:
[0028] Step 202: Obtain the phase angle between the voltage and current of the motor.
[0029] In a motor, there is a phase difference between the voltage and the current; this phase difference is called the phase angle. Generally, the voltage phase precedes the current phase.
[0030] Specifically, before acquiring the operating current value of the motor during operation, the computer device can acquire the instantaneous current value set and the instantaneous voltage value set of the motor, and determine the phase angle between the voltage and current of the motor based on the instantaneous voltage value set and the instantaneous current value set. Alternatively, the computer device can determine the phase difference between the instantaneous voltage value of zero and the instantaneous current value of zero, that is, obtain the phase angle between the voltage and current of the motor.
[0031] Step 204: Obtain the operating voltage and operating current values of the motor.
[0032] Specifically, the applied voltage value refers to the voltage applied to the motor. The applied voltage value can be the applied voltage amplitude, peak-to-peak value, effective value, or peak value, etc. The applied voltage value is the current applied voltage value.
[0033] The applied current value refers to the current value generated when an applied voltage is applied to a motor. Similarly, the applied current value can be the applied current amplitude, peak-to-peak value, effective value, or peak value, etc. The applied current value is the current applied current value.
[0034] Step 206: Determine the current load angle of the motor based on the phase angle, applied voltage value, and applied current value.
[0035] The current load angle refers to the motor's load angle at the current moment. The load angle is an important parameter of the motor; it refers to the angle between the load current and the motor terminal voltage when the motor supplies power to the load. A larger load angle results in greater motor output power, but also lower motor operating efficiency.
[0036] Specifically, the computer equipment determines the angle between the motor's load current and the motor's current voltage, i.e., the phase angle, based on the phase angle, the applied voltage value, and the applied current value. Here, both the load current and the current voltage are vectors.
[0037] Step 208: Adjust the current based on the current load angle to obtain the target current value of the motor.
[0038] Specifically, the target current value can be applied to the operating current value of the motor, that is, the value of the current flowing through the motor. For example, when the load angle increases, the input current of the motor is increased to obtain the target current value; when the load angle decreases, the input current of the motor is decreased to obtain the target current value.
[0039] Step 210: Drive the motor to run based on the target current value.
[0040] Specifically, the computer device outputs a target current value, causing the power supply device to output a current corresponding to the target current value and input it to the H-bridge circuit to drive the motor. The computer device can also return to the steps of obtaining the motor's operating voltage and current values, continuously adjusting the target current value as the motor runs.
[0041] In the above-described current adjustment method, the load on the motor changes during operation, thus changing the current load angle. The optimal current value, i.e., the target current value, also differs depending on the current load angle. Therefore, current adjustment is required based on the current load angle. In this embodiment, the current load angle of the motor is determined based on the phase angle, the applied voltage value, and the applied current value, and then the current is adjusted to obtain the target current value of the motor. Driving the motor based on this target current can make the motor achieve static stability, and this target current value can drive the current load with low motor heat generation, reducing motor overheating.
[0042] In one embodiment, obtaining the phase angle between the voltage and current of the motor includes:
[0043] The counting begins when the instantaneous voltage of the motor reaches the operating voltage value and stops when the instantaneous current of the motor is lower than the current threshold, thus obtaining the first count value.
[0044] Counting begins when the instantaneous current value is higher than the current threshold and stops when the instantaneous current value is lower than the current threshold, thus obtaining the second count value.
[0045] The phase angle between the motor's voltage and current is determined based on the first and second count values.
[0046] The first count value, CNT1, is the duration from when the instantaneous voltage reaches the applied voltage value to when the instantaneous current value falls below the current threshold. The second count value, CNT2, is the duration from when the instantaneous current value exceeds the current threshold to when counting stops. Both the first and second count values can be count values or angle values.
[0047] Specifically, if the motor is driven by a given voltage, the applied voltage value is known, while the applied current value is unknown and needs to be calculated. Therefore, counting begins when the instantaneous voltage value reaches the applied voltage value, while the current value is calculated using a threshold value. Figure 3 The diagram illustrates a first count value CNT1 and a second count value CNT2 in one embodiment. The computer device acquires the instantaneous voltage value of the motor. It begins counting when the instantaneous voltage value reaches the operating voltage value and stops counting when the instantaneous current value is below a current threshold, thus obtaining the first count value CNT1. The computer device begins counting when the instantaneous current value is above the current threshold and stops counting when the instantaneous current value is below the current threshold, thus obtaining the second count value CNT2. The computer obtains the phase angle between the motor's voltage and current by subtracting half of the second count value from the first count value.
[0048] In this embodiment, the traditional method of measuring phase difference requires adding a separate comparator to detect the current zero-crossing point. However, this embodiment starts counting when the instantaneous voltage value reaches the operating voltage value and stops counting when the instantaneous current value is lower than the current threshold to obtain a first count value; and starts counting when the instantaneous current value is higher than the current threshold and stops counting when the instantaneous current value is lower than the current threshold to obtain a second count value. That is, it is not necessary to detect the current zero-crossing point, and the phase angle of the motor can be determined even when the operating current value of the motor is unknown, which reduces the cost of the motor and provides high data accuracy.
[0049] In one embodiment, determining the phase angle between the motor's voltage and current based on a first count value and a second count value includes:
[0050]
[0051] Where △θ represents the phase angle between the voltage and current of the motor, CNT1 represents the first count value, CNT2 represents the second count value, and CNT0 represents the cycle count value of the motor.
[0052] In this embodiment, the phase angle of the motor is determined by the first count value and the second count value, without the need to detect the current zero crossing point. Furthermore, the phase angle of the motor can be determined even when the operating current value of the motor is unknown, which reduces the cost of the motor and provides high data accuracy.
[0053] In one embodiment, determining the current load angle of the motor based on the phase angle, the applied voltage value, and the applied current value includes:
[0054]
[0055] Where β represents the current load angle, Δθ represents the phase angle, and U s Indicates the applied voltage value, i s The value represents the applied current, inductor represents the phase inductance of the motor, R represents the phase resistance of the motor, and ω represents the electric angular velocity.
[0056] Specifically, such as Figure 4The diagram shown illustrates the derivation and calculation of the load angle in one embodiment. Lq is the q-axis inductance, Iq is the q-axis current, and Id is the d-axis current. Other parameters have been explained and will not be repeated here.
[0057] Let Δθ = θ - β, where Δθ is the phase angle between voltage and current, β is the load angle (the angle between the motor voltage and the d-axis), and θ is the angle between the motor voltage vector and the d-axis. Then:
[0058]
[0059] Simplify to obtain
[0060] (U s ·cos△θ-R·i s )·cosβ+(ω·Lq·i s -U s ·sin△θ)·sinβ=0
[0061] therefore:
[0062]
[0063] The q-axis inductance can be considered as the phase inductance of the motor, therefore:
[0064]
[0065] In this embodiment, the load angle calculated in the above manner can accurately reflect the load condition of the motor, enabling load detection and revealing the motor's operating status.
[0066] In one embodiment, the current adjustment method for the motor further includes:
[0067] Specifically, the current load angle after compensation is determined as follows: A compensation coefficient is obtained, which is used to compensate R·i. s Terms.
[0068]
[0069] Here, coef is the compensation coefficient. The compensation coefficient is determined through the debugging of each motor, and the specific value can be between 1.2 and 1.35.
[0070] In this embodiment, since errors exist in various variables during actual debugging, leading to unreasonable calculation results, a compensation coefficient is used to adjust R·i. s By compensating for this, a more accurate load angle can be obtained.
[0071] In one embodiment, adjusting the current based on the current load angle to obtain the target current value of the motor includes:
[0072] Obtain the load angle threshold; the load angle threshold is the load angle at which the motor reaches static stability.
[0073] When the current load angle is greater than the load angle threshold, the current value is increased based on the previous target current value to obtain the target current value of the motor;
[0074] When the current load angle is less than the load angle threshold, the current value is reduced based on the previous target current value to obtain the target current value of the motor.
[0075] The previous target current value can refer to the current value input to the motor in the previous stage, or it can refer to the current value applied.
[0076] Specifically, the load angle threshold is the load angle at which the motor reaches static stability. For example, the load angle threshold is... The load angle threshold is pre-stored in the computer device. When the current load angle is greater than the load angle threshold, the load angle difference between the current load angle and the load angle threshold is determined. Proportional-integral (PI) control is applied to this load angle difference to increase the current value based on the previous target current value, thus obtaining and updating the target current value. Similarly, when the current load angle is less than the load angle threshold, the load angle difference between the current load angle and the load angle threshold is determined. PI control is applied to this load angle difference to decrease the current value based on the previous target current value, thus obtaining and updating the target current value.
[0077] For example, if the previous target current value is A1, the target current value is A2, and the load angle threshold is... Current load angle β. One possibility is that the current load angle β is greater than... This indicates that the current load on the motor is relatively high, requiring an increase in the current value. Therefore, the target current value is A1+X1, which is determined based on the proportional-integral control processing of the PI controller. Alternatively, the current load angle β is less than... This indicates that the current load on the motor is relatively small, and the current value needs to be reduced. Therefore, the target current value is A1-X2, and the value of A1-X2 is determined based on the proportional-integral control processing of the PI controller.
[0078] Optionally, when the current load angle is greater than the load angle threshold, the computer device can quantitatively increase the current value based on the previous target current value to obtain and update the target current value. The same applies to the case where the current load angle is less than the target current value, and will not be elaborated further.
[0079] Optionally, when the current load angle is greater than the load angle threshold, the computer device can proportionally increase the current value based on the previous target current value to obtain and update the target current value. The same applies to the case where the current load angle is less than the threshold, and will not be elaborated further.
[0080] In this embodiment, the current regulation method for the motor further includes: detecting the fluctuation range of the motor load angle; when the fluctuation range is large, resetting the integral term in the proportional-integral control processing to zero. Resetting the integral term to zero can avoid error accumulation and improve the accuracy of the load angle.
[0081] In this embodiment, the load constantly changes during motor operation, and since the current load cannot be directly known, it is represented by the load angle. An increase in load leads to an increase in the load angle. Different current load angles require different current current values to reach the next load angle threshold. Therefore, load changes cause changes in the load angle, ultimately requiring continuous adjustment of the target current value. When the current load angle is greater than the load angle threshold, the load is large, requiring an increase in the current value. When the current load angle is less than the load angle threshold, the load is small, requiring a decrease in the current value. Therefore, the target current value is the current value required to maintain the motor's current load angle at the load angle threshold. At this point, the motor achieves static stability, can drive the current load, and significantly reduces system heat generation. Furthermore, when the load is too large, the motor loses synchronization; updating and adjusting the target current value can prevent this.
[0082] In one embodiment, the target current value is greater than both the user-input current value and the minimum operating current of the motor. The computer device acquires the user-input current value and the minimum operating current of the motor; when the target current value is less than either the user-input current value or the minimum operating current of the motor, the target current value is set to the larger of the two values. By limiting the minimum target current value, the normal operation of the motor can be guaranteed.
[0083] In one embodiment, obtaining the applied current value includes:
[0084] Obtain the current comparison threshold;
[0085] The reference duration corresponding to when the absolute value of the instantaneous current value of the motor during operation is greater than the current comparison threshold;
[0086] The reference angle corresponding to the current comparison threshold when determining the instantaneous current value based on the reference duration;
[0087] The applied current value is determined based on the reference angle and the current comparison threshold.
[0088] Wherein, the current comparison threshold i th It is pre-stored in the computer device and configured as needed. The absolute value of instantaneous current refers to the absolute value of the instantaneous current at that moment.
[0089] Specifically, when the motor is running, the counter starts timing when the absolute value of the instantaneous current of the motor is greater than the current comparison threshold, and stops timing when the absolute value of the instantaneous current of the motor reaches or falls below the current comparison threshold, thus obtaining the reference duration CNTa. The reference duration can be represented in the form of a count value, etc.
[0090] The reference angle θ corresponding to the current comparison threshold is determined based on the reference duration and the half-wave period of the motor. c :
[0091]
[0092] like Figure 5 The diagram shown is a schematic diagram for calculating the active current value in one embodiment. Figure 5 The current comparison threshold i is shown in the figure. th Reference angle θ c The meaning of θ can be understood as the reference angle θ. c It can also be with Figure 5 The point on the other side that is symmetrical to the midpoint.
[0093] The applied current value i can then be determined based on the ratio of the current comparison threshold to the reference angle. s :
[0094]
[0095] Optionally, when the motor is a two-phase motor, the instantaneous current value during motor operation can be either of the two phases.
[0096] In this embodiment, the switching on and off of the transistors in the H-bridge circuit will cause disturbances, making the current data during this period inaccurate. Therefore, it is necessary to delay the sampling for a period of time to determine the active current value. By setting a current comparison threshold and calculating the active current value based on it, the influence of the transistor switching can be avoided, thereby making the obtained active current value more accurate.
[0097] In one embodiment, such as Figure 6 The diagram shown is a schematic of the H-bridge circuit, motor, and sampling resistor in one embodiment. Figure 6 One end of the sampling resistor is connected to the drain of the two lower transistors in the H-bridge, and the other end is grounded. The voltage across the sampling resistor is the applied voltage value. The instantaneous current value is calculated by sampling the current flowing through the sampling resistor while the motor is running. The instantaneous voltage value is obtained by sampling the voltage across the sampling resistor while the motor is running. This is understandable. Figure 6The electronic components used in the H-bridge circuit are not limited to the transistors shown in the diagram; they can also be MOSFETs or field-effect transistors, etc. After obtaining the instantaneous current and voltage values, the computer can calculate the phase angle between the motor's voltage and current, as well as the motor's operating current value, thereby obtaining the motor's current load angle. Based on the current load angle, the current is adjusted to obtain the motor's target current value.
[0098] In this embodiment, the traditional method may sample the motor circuit, but this sampling method requires a differential method, which is costly. However, by sampling the current through the resistor in this embodiment, only one comparator is needed for current sampling, which can greatly save costs compared to the method of multiple resistors, and has little impact on the current amplitude.
[0099] In one embodiment, a method for adjusting the current of a motor includes:
[0100] Step (a1): When the instantaneous voltage value of the motor reaches the operating voltage value, counting begins and stops when the instantaneous current value of the motor is lower than the current threshold, thus obtaining the first count value.
[0101] Step (a2) involves starting to count when the instantaneous current value is higher than the current threshold and stopping counting when the instantaneous current value is lower than the current threshold, thereby obtaining the second count value.
[0102] Step (a3): Determine the phase angle between the motor's voltage and current based on the first and second count values.
[0103]
[0104] Where △θ represents the phase angle between voltage and current, CNT1 represents the first count value, CNT2 represents the second count value, and CNT0 represents the motor cycle count value.
[0105] Step (a4): Obtain the current comparison threshold.
[0106] Step (a5) is to count the reference duration corresponding to the absolute value of the instantaneous current value of the motor being greater than the current comparison threshold.
[0107] Step (a6) determines the reference angle corresponding to the current comparison threshold when the instantaneous current value is determined based on the reference duration.
[0108] Step (a7) determines the applied current value based on the reference angle and the current comparison threshold.
[0109] Step (a8) is to obtain the operating voltage value of the motor.
[0110] Step (a9): Determine the current load angle of the motor based on the phase angle, applied voltage value, and applied current value.
[0111]
[0112] Where β represents the current load angle, Δθ represents the phase angle, and U s Indicates the applied voltage value, i s The value represents the applied current, inductor represents the phase inductance of the motor, R represents the phase resistance of the motor, ω represents the electric angular velocity, and coef represents the compensation coefficient.
[0113] Step (a10) is to obtain the load angle threshold; the load angle threshold is the load angle when the motor reaches static stability.
[0114] Step (a11): When the current load angle is greater than the load angle threshold, increase the current value based on the previous target current value to obtain the target current value.
[0115] Step (a12): When the current load angle is less than the load angle threshold, reduce the current value based on the previous target current value to obtain the target current value.
[0116] Step (a13) drives the motor to run based on the target current value; the target current value is greater than the current value input by the user and the minimum current for the motor to operate.
[0117] In this embodiment, the load on the motor changes during operation, thus changing the current load angle. The optimal current value, i.e., the target current value, also differs depending on the current load angle. Therefore, current adjustment is required based on the current load angle. In this embodiment, the current load angle of the motor is determined based on the phase angle, the applied voltage value, and the applied current value, and the current is then adjusted to obtain the target current value of the motor. Driving the motor based on this target current allows the motor to achieve static stability, and this target current value can drive the current load with low motor heat generation, reducing motor overheating.
[0118] It should be understood that, although the above Figure 2 In the flowchart, the steps are shown sequentially according to the arrows, and the steps (a1) to (a13) are shown sequentially according to their numbers. However, these steps are not necessarily executed in the order indicated by the arrows or numbers. Unless explicitly stated herein, there is no strict order requirement for the execution of these steps; they can be executed in other orders. Figure 2 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.
[0119] In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for adjusting the current of a motor. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0120] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0121] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the above-described method embodiments.
[0122] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method embodiments.
[0123] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the above method embodiments.
[0124] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes described in the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0125] The above description is only a preferred embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made based on the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for adjusting the current of a motor, characterized in that, The method includes: Obtain the phase angle between the voltage and current of the motor; Obtain the operating voltage and operating current values of the motor; The current load angle of the motor is determined based on the phase angle, the applied voltage value, and the applied current value; the current load angle is... in, Indicates the current load angle. This indicates the phase angle. This indicates the applied voltage value. This indicates the value of the applied current. This represents the phase inductance of the motor. The phase resistance of the motor is represented by ω, and the electric angular velocity is represented by ω. Obtain the load angle threshold; the load angle threshold is the load angle at which the motor reaches static stability. When the current load angle is greater than the load angle threshold, the current value is increased based on the previous target current value to obtain the target current value of the motor; When the current load angle is less than the load angle threshold, the current value is reduced based on the previous target current value to obtain the target current value of the motor; The motor is driven to run based on the target current value.
2. The method according to claim 1, characterized in that, The acquisition of the phase angle between the voltage and current of the motor includes: Counting begins when the instantaneous voltage value of the motor reaches the applied voltage value and stops when the instantaneous current value of the motor is lower than the current threshold, thus obtaining a first count value; Counting begins when the instantaneous current value is higher than the current threshold and stops when the instantaneous current value is lower than the current threshold, thus obtaining a second count value; The phase angle between the voltage and current of the motor is determined based on the first count value and the second count value.
3. The method according to claim 2, characterized in that, Determining the phase angle between the voltage and current of the motor based on the first count value and the second count value includes: in, This represents the phase angle between the voltage and current of the motor. This represents the first count value. This represents the second count value. This represents the cycle count value of the motor.
4. The method according to claim 1, characterized in that, The method further includes: Obtain the compensation coefficient, which is used to compensate for the Terms.
5. The method according to claim 1, characterized in that, The target current value is greater than the current value input by the user and the minimum operating current of the motor.
6. The method according to any one of claims 1 to 5, characterized in that, Obtain the applied current value, including: Obtain the current comparison threshold; The reference duration corresponding to when the absolute value of the instantaneous current value of the motor during operation is greater than the current comparison threshold; The reference angle corresponding to the instantaneous current value when the reference duration is used to determine the current comparison threshold; The applied current value is determined based on the reference angle and the current comparison threshold.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Current control method and device, electronic equipment and storage medium
CN114421839A
Grid-connected converter control method, grid-connected converter, grid-connected system and storage medium
CN114629184A
