Motor startup control method, device, electronic device and readable storage medium
Through full closed loop control and unique differential control of intelligent phase-locked loop mode, the shutdown problem during sensorless motor starts is solved, and the stable and accurate start of the motor is achieved.
Patent Information
- Application Number
- CN202410197860.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-22
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-02-22
AI Technical Summary
In the prior art, the sensorless motor is easily shut down due to high current start when starting, and cannot achieve smooth start.
The fully closed-loop control method is adopted to gradually increase the target current and target speed by obtaining the initial angle, the initial current and the initial rotation speed. The intelligent phase-locked loop mode is used for unique differential control to avoid oscillation, and to judge whether the conversion is performed based on the target speed and rotation angle. It is a normal phase-locked loop mode to achieve stable motor start-up.
It effectively avoids the shutdown problem caused by high current start-up, achieves smooth start of the motor, and improves the accuracy and stability of start-up through real-time detection and estimation of angles.
Smart Images

Figure CN118074590B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of motor control, and in particular to a motor startup control method, device, electronic device and readable storage medium. Background Art
[0002] Motors are important devices that convert electrical energy into kinetic energy. Asynchronous motors, synchronous motors, permanent magnet motors and other motors have been widely used in various industries. From milliwatt electric toothbrushes to megawatt wind power generation, aircraft engines, etc., motors are indispensable. Motor controllers are necessary equipment for motor transportation. For different motors, the control methods and means are different. In sensorless controlled motors (such as compressor motors), starting control is a difficult point. In related technologies, DC drag and open-loop starting technology are used to start the motor. When starting with a large current, the open loop is converted to a closed loop under certain conditions. At this time, it is easy to stop and a smooth start cannot be achieved. Summary of the invention
[0003] The present application provides a motor startup control method, device, electronic device and readable storage medium, which can perform full closed-loop control and achieve smooth motor startup.
[0004] The technical solution of the embodiment of the present application is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for starting and controlling a motor, the method comprising:
[0006] Obtaining an initial angle, an initial current, an initial rotation speed, a target current, and a target rotation speed, wherein the initial angle, the initial current, and the initial rotation speed are all set to 0;
[0007] According to the target current, the current value of the initial current is gradually increased, and according to the target speed, the speed value of the initial speed is gradually increased to control the increase of the initial angle to obtain an initial rotation angle;
[0008] Detect and estimate the current in real time to obtain the estimated angle;
[0009] Using a preset intelligent phase-locked loop mode to perform unique differential control on the initial rotation angle and the estimated angle to obtain a feedback angle, and using the feedback angle to control the initial rotation angle to obtain a target rotation angle;
[0010] According to the target rotation speed and the target rotation angle, it is determined whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode, and when converted to the common phase-locked loop mode, the motor is controlled to start.
[0011] In the above technical scheme, an initial angle, an initial current, an initial speed, a target current and a target speed are obtained, wherein the initial angle, the initial current and the initial speed are all set to 0; according to the target current, the current value of the initial current is gradually increased, and according to the target speed, the speed value of the initial speed is gradually increased to control the increase of the initial angle to obtain an initial rotation angle, and the current, speed and angle are increased from 0 to avoid shutdown problems caused by large current startup; the current is detected and estimated in real time to obtain an estimated angle, and real-time detection is beneficial for subsequent angle adjustment using the estimated angle to increase accuracy; the initial rotation angle and the estimated angle are uniquely differentially controlled using a preset intelligent phase-locked loop mode to obtain a feedback angle, and the initial rotation angle is controlled using the feedback angle to obtain a target rotation angle, and unique differential control is performed to avoid oscillation that affects accuracy; according to the target speed and the target rotation angle, it is determined whether the intelligent phase-locked loop mode is converted to a preset ordinary phase-locked loop mode, and when converted to the ordinary phase-locked loop mode, the motor is controlled to start, and no open loop is converted to a closed loop, and a full closed loop is started, so that stable motor startup can be achieved.
[0012] In some embodiments of the present application, the unique differential control of the initial rotation angle and the estimated angle by using a preset intelligent phase-locked loop mode to obtain a feedback angle includes:
[0013] Calculating the estimated angle and the initial rotation angle to obtain an angle error, wherein the estimated angle is greater than or equal to the initial rotation angle;
[0014] The angle error is calculated by difference calculation with a preset error feedback value to obtain the feedback angle.
[0015] In the above technical solution, the angle error is obtained by calculating the estimated angle and the initial rotation angle, and the feedback angle is obtained by using the angle error calculation, which is conducive to ensuring unique differential control and avoiding vibration.
[0016] In some embodiments of the present application, the using the feedback angle to control the initial rotation angle to obtain the target rotation angle includes:
[0017] Estimating the sub-angle variation of the feedback angle to obtain the actual rotation angle;
[0018] The initial rotation angle is updated using the actual rotation angle to obtain the target rotation angle.
[0019] In the above technical solution, the sub-angle change is estimated according to the feedback angle, and the initial rotation angle can be adjusted to ensure unique differential control and achieve full closed-loop opening, so as to start the motor stably.
[0020] In some embodiments of the present application, judging whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode according to the target rotation speed and the target rotation angle, and controlling the motor to start when the intelligent phase-locked loop mode is converted to the common phase-locked loop mode, includes:
[0021] Performing format conversion on the target rotation angle to obtain a calculation rotation speed corresponding to the target rotation angle;
[0022] Calculating the target speed and the operating speed to obtain a calculation result;
[0023] The calculation result is compared with a preset rotation speed threshold to determine whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode. If converted to the common phase-locked loop mode, the motor is controlled to start.
[0024] In the above technical solution, the format is converted first to ensure format consistency before calculation can be performed, and then the speed threshold is compared. When the conditions are met, the intelligent phase-locked loop mode is converted to the preset ordinary phase-locked loop mode to ensure smooth starting of the motor.
[0025] In some embodiments of the present application, comparing the calculation result with a preset speed threshold to determine whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode, and controlling the motor to start when converted to the common phase-locked loop mode, includes:
[0026] When the calculation result is less than the rotation speed threshold, the intelligent phase-locked loop mode is converted to the common phase-locked loop mode, and the motor is started;
[0027] When the calculation result is greater than or equal to the speed threshold, continue to execute the steps of gradually increasing the current of the initial current according to the target current, and gradually increasing the speed of the initial speed according to the target speed, so as to control the increase of the initial angle and obtain the initial rotation angle.
[0028] In the above technical solution, when the calculation result is less than the speed threshold, the target rotation angle reaches the target speed range, the intelligent phase-locked loop mode is converted to the ordinary phase-locked loop mode, the motor is started, and full closed-loop control is achieved without open-loop control. When the calculation result is greater than or equal to the speed threshold, the steps of gradually increasing the initial current according to the target current and gradually increasing the initial speed according to the target speed to control the increase of the initial angle and obtain the initial rotation angle are continued until the target rotation angle reaches the target speed range, the motor is started, and a large torque motor is started by a small current.
[0029] In some embodiments of the present application, the real-time detection and estimation of the current to obtain the estimated angle includes:
[0030] Perform three-phase current detection in real time to obtain a first detection current, a second detection current and a third detection current;
[0031] Converting the first detection current, the second detection current and the third detection current to obtain a direct-axis current and a quadrature-axis current;
[0032] The direct-axis current and the quadrature-axis current are estimated to obtain the estimated angle.
[0033] In the above technical solution, the current is detected in real time, and the detected current is converted to obtain the direct axis current and the quadrature axis current. The direct axis current and the quadrature axis current are estimated to obtain the estimated angle, which is conducive to subsequent angle adjustment based on the estimated angle to increase accuracy. In addition, the current is detected in real time until the target rotation angle reaches the target speed range, and the motor is started, and a large torque motor is started by a small current.
[0034] In some embodiments of the present application, converting the first detection current, the second detection current, and the third detection current to obtain a direct-axis current and a quadrature-axis current includes:
[0035] Decomposing the first detection current, the second detection current and the third detection current by using a preset Clark transformation to obtain a first decomposed current and a second decomposed current;
[0036] The first decomposed current and the second decomposed current are rotated by using a preset Park transformation to obtain the direct-axis current corresponding to the first decomposed current and the quadrature-axis current corresponding to the second decomposed current.
[0037] In the above technical solution, the current is first decomposed using Clark transformation, and then rotationally decomposed using Park transformation to obtain direct-axis current and quadrature-axis current, providing input data for subsequent angle estimation.
[0038] In a second aspect, an embodiment of the present application provides a motor startup control device, the device comprising:
[0039] A data acquisition module, used to acquire an initial angle, an initial current, an initial rotation speed, a target current and a target rotation speed, wherein the initial angle, the initial current and the initial rotation speed are all set to 0;
[0040] A data increasing module, used to gradually increase the current value of the initial current according to the target current, and gradually increase the speed value of the initial speed according to the target speed, so as to control the increase of the initial angle and obtain an initial rotation angle;
[0041] A data detection module is used to detect the current in real time to obtain the detected current, and to estimate the detected current to obtain the estimated angle;
[0042] A feedback calculation module, used to perform unique differential control on the initial rotation angle and the estimated angle using a preset intelligent phase-locked loop mode to obtain a feedback angle, and use the feedback angle to control the initial rotation angle to obtain a target rotation angle;
[0043] The starting judgment module is used to judge whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode according to the target rotation speed and the target rotation angle, and control the motor to start when it is converted to the common phase-locked loop mode.
[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a user interface and a network interface, wherein the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods provided in the first aspect above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the methods provided in the first aspect is executed.
[0046] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
[0047] 1. The current value of the initial current is gradually increased according to the target current, and the speed value of the initial speed is gradually increased according to the target speed to control the increase of the initial angle, obtain the initial rotation angle, detect and estimate the current in real time, obtain the estimated angle, and use the intelligent phase-locked loop mode for unique differential control to avoid oscillation. Then, according to the target speed and target rotation angle, it is determined whether the intelligent phase-locked loop mode is converted to the preset ordinary phase-locked loop mode. Therefore, the problem of easy shutdown and inability to start smoothly caused by DC drag and open-loop starting technology in related technologies is effectively solved. By setting a small current at the beginning, gradually increasing the current, speed and angle, and using the intelligent phase-locked loop for unique differential control to avoid jitter, and then determining whether to convert the intelligent phase-locked loop mode to the ordinary phase-locked loop mode, a full closed-loop start is achieved, and the motor is started stably.
[0048] 2. By updating the rotation angle, an accurate target rotation angle is obtained to ensure stable starting of the motor.
[0049] 3. Detect the current in real time until the target rotation angle reaches the target speed range, and then start the motor, achieving high torque motor starting through small current. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flowchart of a motor startup control method provided by an embodiment of the present application;
[0051] Figure 2 yes Figure 1 A schematic flow chart of a sub-step of step S300;
[0052] Figure 3 yes Figure 2 A schematic flow chart of a sub-step of step S320;
[0053] Figure 4 yes Figure 1 A schematic flow chart of a sub-step of step S400;
[0054] Figure 5 yes Figure 1 Another sub-step flow chart of step S400;
[0055] Figure 6 yes Figure 1 A schematic flow chart of a sub-step of step S500;
[0056] Figure 7 yes Figure 6 A schematic flow chart of a sub-step of step S530;
[0057] Figure 8 It is a schematic diagram of the overall flow of a motor startup control method provided by an embodiment of the present application;
[0058] Fig. 9 It is a structural schematic diagram of a motor start control device provided by an embodiment of the present application;
[0059] Fig.10 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0061] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.
[0062] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0063] In the related art, DC drag and open-loop starting technology use DC pulling technology to force the rotor position to a predetermined angle, and then use a larger current to gradually apply current from 0-1000rpm (rpm means revolutions per minute, Revolutions Per Minute) in the open loop to increase the speed. When the speed is increased to more than 1000rpm, it is switched to closed-loop control. The above method has a large drag current, a large open-loop starting current, and it is easy to lose step and shut down when the open-loop switches to the closed loop. High-frequency injection and open-loop starting technology can also be used. The initial position of the rotor is found by the high-frequency injection method, and a larger current is used to gradually apply current from 0-1000rpm in the open loop to increase the speed. When the speed is increased to more than 1000rpm, it is switched to closed-loop control. The high-frequency injection noise of the above method is large, the open-loop starting current is large, and the open-loop switching to the closed loop is easy to lose step and shut down. Both of the above methods are large-current open-loop starting, and then the open loop is converted to a closed loop, which is easy to cause a loss of step and shut down.
[0064] Based on this, the embodiments of the present application provide a motor starting control method, device, electronic device and readable storage medium, wherein the motor starting control method first obtains the initial angle, initial current, initial speed, target current and target speed, wherein the initial angle, initial current and initial speed are all set to 0; according to the target current, the current value of the initial current is gradually increased, and according to the target speed, the speed value of the initial speed is gradually increased to control the increase of the initial angle to obtain the initial rotation angle, and the current, speed and angle are increased from 0 to avoid the shutdown problem caused by high current starting; the current is detected and estimated in real time to obtain an estimated Angle, through real-time detection, is conducive to the subsequent use of estimated angles for angle adjustment to increase accuracy; the preset intelligent phase-locked loop mode is used to perform unique differential control on the initial rotation angle and the estimated angle to obtain the feedback angle, and the feedback angle is used to control the initial rotation angle to obtain the target rotation angle. By performing unique differential control, oscillation is avoided to affect accuracy; according to the target speed and target rotation angle, it is determined whether the intelligent phase-locked loop mode is converted to the preset ordinary phase-locked loop mode. When converted to the ordinary phase-locked loop mode, the motor is controlled to start, and the open loop is converted to a closed loop. The full closed loop starts, which can achieve stable motor startup.
[0065] It should be noted that the motor startup control method can be applied to compressor motors and other sensorless controlled motors. The motor startup control method is used to smoothly start the sensorless controlled motor.
[0066] The technical solution provided in the embodiments of the present application is further described below in conjunction with the accompanying drawings.
[0067] Reference Figure 1 , Figure 1 The present invention is a flowchart of a motor startup control method provided by an embodiment of the present invention. The motor startup control method is applied to a motor startup control device, and the motor startup control method is executed by a processor in an electronic device or a readable storage medium. The motor startup control method includes steps S100, S200, S300, S400, and S500.
[0068] Step S100, obtaining an initial angle, an initial current, an initial rotation speed, a target current and a target rotation speed, wherein the initial angle, the initial current and the initial rotation speed are all set to 0.
[0069] In one embodiment, the initial angle, initial current, initial speed, target current and target speed are parameter settings when the motor is not turned on. The initial values of the initial angle, initial current and initial speed are all set to 0, that is, the initial angle is 0 degrees, the initial current is 0 amperes, and the initial speed is 0 Hz. The target current is the preset maximum current value allowed for startup, the preset maximum current is the preset coefficient multiplied by the protection current, the protection current is the rated current, generally 30 amperes, and different motor models have different protection currents, which are determined according to the motor model and are not described here. Among them, the preset coefficient is 0.8; the target speed is the preset speed supported by the startup platform, the preset speed is the preset coefficient multiplied by the maximum speed, the maximum speed is generally 120 Hz, and different motor models have different supported speeds, which are determined according to the motor model and are not described here. Since the initial current is 0, it is a small current startup, which can avoid the current overshoot problem caused by the large current. And the initial angle, initial current, and initial speed all increase from 0 to facilitate the subsequent full closed-loop startup so that the motor starts stably.
[0070] Step S200, gradually increasing the current value of the initial current according to the target current, and gradually increasing the speed value of the initial speed according to the target speed, so as to control the increase of the initial angle and obtain the initial rotation angle.
[0071] In one embodiment, according to step S100, the initial current is 0, and the initial current is gradually increased according to the target current. The current value is increased with the target current as the target, which can avoid excessive current and safety problems. And according to the target speed, the initial speed is gradually increased, and the speed value is increased with the target speed as the target, which can ensure safe startup. Since there is a mutual correspondence between the current, speed and angle, the increase in the current value and the speed value increases the initial angle. The initial angle is continuously increased to obtain the initial rotation angle, which is conducive to subsequent calculations to obtain the target rotation angle and improve the calculation accuracy. It should be noted that the initial rotation angle is the angle change amount increased relative to the initial angle. Since the initial angle is 0, the increased angle change amount is equal to the initial rotation angle.
[0072] Step S300, detecting and estimating the current in real time to obtain an estimated angle.
[0073] In one embodiment, since the initial angle will also increase when the initial current increases and the initial speed increases, the initial rotation angle obtained at this time is the actual rotation angle, which may have errors. Therefore, the current is detected in real time, and a current sensor can be used to detect the current in real time, and then the detected current is estimated to obtain an estimated angle. The estimated angle is the increased angle that can be achieved by the theoretically increased current and increased speed. By obtaining the estimated angle, it is helpful to improve the accuracy of the angle according to the estimated angle later.
[0074] like Figure 2 As shown, the current is detected and estimated in real time to obtain the estimated angle, including but not limited to the following steps:
[0075] Step S310, performing three-phase current detection in real time to obtain a first detection current, a second detection current and a third detection current.
[0076] In some embodiments of the present application, a three-phase current sensor is used to monitor the three-phase current of the motor in real time. The three-phase current sensor includes three current sensors, which can directly read the values of the three-phase current to obtain a first detection current, a second detection current, and a third detection current. The first detection current is represented as Ia, the second detection current is represented as Ib, and the third detection current is represented as Ic. By performing three-phase current detection, the current conversion is performed later to obtain an estimated angle.
[0077] Step S320 , converting the first detection current, the second detection current and the third detection current to obtain a direct-axis current and a quadrature-axis current.
[0078] In some embodiments of the present application, in order to perform angle estimation, the first detection current Ia, the second detection current Ib, and the third detection current Ic obtained in step S310 are converted, that is, the current is decomposed into an active component and a reactive component to obtain a direct-axis current and a quadrature-axis current. The direct-axis current is represented as Id, and the quadrature-axis current is represented as Iq. By obtaining the direct-axis current and the quadrature-axis current, it is convenient for subsequent estimation to obtain an estimated angle.
[0079] like Figure 3 As shown, the first detection current, the second detection current and the third detection current are converted to obtain the direct-axis current and the quadrature-axis current, including but not limited to the following steps:
[0080] Step S321 , using a preset Clark transformation to decompose the first detection current, the second detection current and the third detection current to obtain a first decomposed current and a second decomposed current.
[0081] In some embodiments of the present application, the preset Clark transformation is a method for converting a three-phase AC signal into a two-phase signal, and the first detection current, the second detection current and the third detection current are decomposed by the preset Clark transformation, and the current is decomposed into an active component and a reactive component, and trigonometric functions or complex operations can be used for decomposition to obtain a first decomposed current and a second decomposed current. The specific Clark transformation decomposes the three-phase current, which will not be described in detail here.
[0082] Step S322: using a preset Park transformation to rotate the first decomposed current and the second decomposed current to obtain a direct-axis current corresponding to the first decomposed current and a quadrature-axis current corresponding to the second decomposed current.
[0083] In some embodiments of the present application, the first decomposed current and the second decomposed current obtained in step S321 are stationary values on the coordinate axis, and then the first decomposed current and the second decomposed current are decomposed into the rotating dq coordinate axis using the preset Park to obtain the d-axis current and the q-axis current, wherein the d-axis current is the direct-axis current corresponding to the first decomposed current, and the q-axis current is the quadrature-axis current corresponding to the second decomposed current. The DC current and the quadrature-axis current are obtained to provide input data for subsequent angle estimation.
[0084] Step S330, estimating the direct-axis current and the quadrature-axis current to obtain an estimated angle.
[0085] In some embodiments of the present application, the direct-axis current and the quadrature-axis current are estimated by FOC control according to the direct-axis current and the quadrature-axis current obtained in step S320 to obtain an estimated angle, which is conducive to improving the accuracy of the rotation angle according to the estimated angle. Specifically, the direct-axis current Id can be regarded as a sine signal, and the quadrature-axis current Iq can be regarded as a cosine signal, and the direct-axis current and the quadrature-axis current are estimated by using an inverse trigonometric function to obtain an estimated angle.
[0086] Step S400, using a preset intelligent phase-locked loop mode to perform unique differential control on the initial rotation angle and the estimated angle to obtain a feedback angle, and using the feedback angle to control the initial rotation angle to obtain a target rotation angle.
[0087] In one embodiment, the preset intelligent phase-locked loop mode is the feedback control of the phase-locked loop, and the unique differential control means that the angle is increased in one direction, which can avoid vibration caused by the reverse direction. The initial rotation angle and the estimated angle are input, and the intelligent phase-locked loop mode is used to perform unique differential control on the initial rotation angle and the estimated angle to obtain the feedback angle. The unique differential control can avoid the oscillation problem. Then, the initial rotation angle is controlled according to the feedback angle, so that the rotation angle approaches the estimated angle to obtain the target rotation angle.
[0088] like Figure 4 As shown, the unique differential control of the initial rotation angle and the estimated angle is performed using a preset intelligent phase-locked loop mode to obtain a feedback angle, including but not limited to the following steps:
[0089] Step S410, calculating the estimated angle and the initial rotation angle to obtain an angle error, wherein the estimated angle is greater than or equal to the initial rotation angle.
[0090] In some embodiments of the present application, the estimated angle and the initial rotation angle are calculated, specifically, the estimated angle is subtracted from the initial rotation angle, and the angle difference is the angle error. In actual situations, the initial rotation angle is the actual angle with a large error, and the estimated angle is the angle under ideal conditions with a small error, and the estimated angle is greater than or equal to the initial rotation angle. This makes the initial rotation angle close to the estimated angle, increasing the accuracy of the rotation angle.
[0091] Step S420, performing a difference calculation between the angle error and a preset error feedback value to obtain a feedback angle.
[0092] In some embodiments of the present application, the preset error feedback value is a value set by professionals as needed to adjust the angle error and improve the accuracy of the rotation angle. The angle error and the preset error feedback value are calculated by difference, specifically, the angle error is subtracted from the error feedback value to obtain the feedback angle, which is conducive to the subsequent use of the feedback angle to control the rotation angle and obtain the target rotation angle.
[0093] Exemplarily, the preset error feedback value is 0. Since the estimated angle is greater than or equal to the initial rotation angle, the angular error of the estimated angle minus the initial rotation angle is greater than or equal to 0, ensuring that when the initial angle gradually increases, it can increase in one direction, avoiding vibration problems caused by the reverse increase.
[0094] like Figure 5 As shown, the feedback angle is used to control the initial rotation angle to obtain the target rotation angle, including but not limited to the following steps:
[0095] Step S430, estimating the sub-angle variation of the feedback angle to obtain the actual rotation angle.
[0096] In some embodiments of the present application, according to the feedback angle obtained in step S420, the sub-angle change is estimated using the feedback angle. Since the rotation angle rotates toward an angle through unique differential control, the feedback angle is a value greater than or equal to 0. When the feedback angle is greater than or equal to 0, it indicates that the initial rotation angle has not reached the estimated angle and needs to be adjusted to increase the angle. A low-pass filter can be used to estimate the sub-angle change of the feedback angle to obtain an estimated angle increase. The initial angle is added to the estimated angle increase to obtain the actual rotation angle, which is conducive to subsequent angle updates based on the actual rotation angle. Among them, the actual rotation angle is the angle adjusted by the unique differential control of the intelligent phase-locked loop, and the accuracy is relatively high.
[0097] In other embodiments of the present application, when the feedback angle is less than 0, it indicates that the initial rotation angle exceeds the estimated angle and needs to be adjusted to reduce the angle. A low-pass filter can also be used to estimate the sub-angle change of the feedback angle to obtain the estimated angle reduction to ensure the unique differential control function of the intelligent phase-locked loop.
[0098] Step S440: Update the initial rotation angle using the actual rotation angle to obtain a target rotation angle.
[0099] In some embodiments of the present application, according to the actual rotation angle obtained in step S430, the actual rotation angle is the angle adjusted by the intelligent phase-locked loop, which ensures unique differential control and accuracy. The initial rotation angle is updated using the actual rotation angle, specifically, the initial rotation angle is replaced by the actual rotation angle, and the actual rotation angle is used as the initial rotation angle. On this basis, the angle is continued to increase to obtain the target rotation angle. This is conducive to determining whether the motor is started according to the target rotation angle.
[0100] Step S500, judging whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode according to the target rotation speed and the target rotation angle, and controlling the motor to start when it is converted to the common phase-locked loop mode.
[0101] In one embodiment, the target rotation speed and the target rotation angle are calculated, and whether the intelligent phase-locked loop mode is converted to the ordinary phase-locked loop mode is determined based on the calculation result. When the intelligent phase-locked loop mode is converted to the ordinary phase-locked loop mode, the motor is controlled to start; when the intelligent phase-locked loop mode is not converted to the ordinary phase-locked loop mode, it indicates that the motor starting conditions have not been met, and the intelligent phase-locked loop mode control continues.
[0102] like Figure 6 As shown, according to the target speed and the target rotation angle, it is determined whether the intelligent phase-locked loop mode is converted to the preset common phase-locked loop mode. When the intelligent phase-locked loop mode is converted, the motor is controlled to start, including but not limited to the following steps:
[0103] Step S510, converting the target rotation angle into a format to obtain a calculation rotation speed corresponding to the target rotation angle.
[0104] In some embodiments of the present application, since the units of the target conversion and the target rotation angle are different, direct comparison and calculation cannot be performed. Therefore, the target rotation angle is first formatted and converted into data in the same data format as the target rotation speed, and the operation speed corresponding to the target rotation angle is obtained, so that subsequent calculations can be performed based on the operation speed. Among them, the target rotation angle is divided by time to obtain a data format consistent with the target rotation speed. Angles and rotation speeds can be converted to each other, which will not be elaborated here.
[0105] In other embodiments of the present application, the target speed may be formatted and converted into data in a data format consistent with the target rotation angle to obtain a calculation angle corresponding to the target speed, so as to perform subsequent calculations based on the calculation angle. The following steps are described by formatting the target rotation angle to obtain the calculation speed as an example. The steps of formatting the target speed and the target rotation angle are similar and will not be repeated here.
[0106] Step S520, calculating the target speed and the calculated speed to obtain a calculation result.
[0107] In some embodiments of the present application, the target speed and the operating speed are calculated by difference, and the target speed can be subtracted from the operating speed, or the operating speed can be subtracted from the target speed to obtain a calculation result. It should be noted that the calculation result obtained should be a positive number. When the calculated difference is a negative value, the absolute value is taken, and the result after the absolute value is taken as the calculation result, which is conducive to the subsequent comparison of the calculation result with the preset speed threshold, so as to determine whether to perform a mode conversion.
[0108] Step S530, comparing the calculation result with a preset speed threshold value to determine whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode, and in the case of converting to the common phase-locked loop mode, controlling the motor to start.
[0109] In some embodiments of the present application, the preset speed threshold is a preset coefficient multiplied by the maximum speed supported by the platform, and the preset coefficient can be 0.01, or can be adjusted according to needs, which will not be described in detail here. By comparing the calculation result with the speed threshold, it is determined whether to control the motor to start according to the comparison result.
[0110] like Figure 7As shown, the calculation result is compared with the preset speed threshold to determine whether the intelligent phase-locked loop mode is converted to the preset common phase-locked loop mode. When the intelligent phase-locked loop mode is converted to the common phase-locked loop mode, the motor is controlled to start, including but not limited to the following steps:
[0111] Step S531, when the calculation result is less than the speed threshold, the intelligent phase-locked loop mode is converted to the normal phase-locked loop mode, and the motor is started.
[0112] In some embodiments of the present application, when the calculated result is less than the speed threshold, it indicates that the speed at this time has reached the condition for starting the motor, and the intelligent phase-locked loop mode is converted to the ordinary phase-locked loop mode, entering the proportional integral PI control mode, and the motor starts stably.
[0113] Step S532, when the calculation result is greater than or equal to the speed threshold, continue to execute the steps of gradually increasing the initial current according to the target current, and gradually increasing the initial speed according to the target speed, so as to control the increase of the initial angle and obtain the initial rotation angle.
[0114] In some embodiments of the present application, when the calculation result is greater than or equal to the speed threshold, it indicates that the speed at this time has not reached the motor starting condition, so the current and speed continue to be increased, and the initial current is gradually increased according to the target current, and the speed is gradually increased according to the target speed to control the initial angle increase and obtain the initial rotation angle. The steps are performed until the mode conversion conditions are met and the motor is started.
[0115] like Figure 8 As shown, Figure 8The overall flow diagram of the motor starting control method provided by the embodiment of the present application is shown. First, the initial angle, initial current, and initial speed are obtained, and the initial angle, initial current, and initial speed are all set to 0. According to the target current, the current of the initial current is gradually increased, and according to the target speed, the speed of the initial speed is gradually increased to control the increase of the initial angle to obtain the initial rotation angle, the current is detected in real time, and the estimated angle is estimated. The rotor angle is calculated for the estimated angle and the initial rotation angle using the intelligent phase-locked loop mode, so that the angle increases in one direction to obtain the target rotation angle, the target rotation angle is formatted to obtain the operating speed corresponding to the target rotation angle, so that the format is consistent, and then the target speed is calculated, and the calculation result is compared with the preset speed threshold. When the calculation result is less than the speed threshold, the intelligent phase-locked loop mode is converted to the ordinary phase-locked loop mode, and the motor is started; when the calculation result is greater than or equal to the speed threshold, the steps of gradually increasing the current of the initial current according to the target current and gradually increasing the speed of the initial speed according to the target speed to control the increase of the initial angle to obtain the initial rotation angle are continued. By setting a small current at the beginning, gradually increasing the current, speed and angle, and using the intelligent phase-locked loop for unique differential control to avoid jitter, it is determined whether to convert the intelligent phase-locked loop mode to the ordinary phase-locked loop mode to achieve full closed-loop start-up and stably start the motor.
[0116] like Fig. 9 As shown, the embodiment of the present application provides a motor starting control device, wherein the motor starting control device 100 obtains an initial angle, an initial current, an initial speed, a target current and a target speed through a data acquisition module 110, wherein the initial angle, the initial current and the initial speed are all set to 0; and then the data increase module 120 is used to gradually increase the current value of the initial current according to the target current, and to gradually increase the speed value of the initial speed according to the target speed, so as to control the increase of the initial angle, obtain the initial rotation angle, and increase the current, speed and angle from 0 to avoid the shutdown problem caused by high current starting; the current is detected in real time through the data detection module 130 to obtain the detection current, and the detection current is An estimation is performed to obtain an estimated angle, which is conducive to the subsequent use of the estimated angle for angle adjustment to increase accuracy; the feedback calculation module 140 is then used to use the preset intelligent phase-locked loop mode to perform unique differential control on the initial rotation angle and the estimated angle to obtain the feedback angle, and the feedback angle is used to control the initial rotation angle to obtain the target rotation angle. By performing unique differential control, oscillation is avoided to affect the accuracy; finally, the judgment start module 150 is used to judge whether the intelligent phase-locked loop mode is converted to the preset ordinary phase-locked loop mode according to the target speed and the target rotation angle. When converted to the ordinary phase-locked loop mode, the motor is controlled to start, and the open loop is converted to a closed loop. The full closed loop is started, which can achieve stable motor startup.
[0117] It should be noted that the data acquisition module 110 is connected to the data addition module 120, the data addition module 120 is connected to the data detection module 130, the data detection module 130 is connected to the feedback calculation module 140, and the feedback calculation module 140 is connected to the judgment start module 150. The above-mentioned motor start control method is applied to the motor start control device 100, which sets a small current at the beginning, gradually increases the current, speed and angle, and uses an intelligent phase-locked loop to perform unique differential control to avoid jitter, and then determines whether to convert the intelligent phase-locked loop mode to the ordinary phase-locked loop mode to achieve full closed-loop opening and stably start the motor.
[0118] It should also be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0119] The present application also discloses an electronic device. Fig.10 , Fig.10 The electronic device 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0120] The communication bus 502 is used to realize the connection and communication between these components.
[0121] The user interface 503 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.
[0122] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0123] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.
[0124] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. Refer to Fig.10 , the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program of a motor startup control method.
[0125] exist Fig.10In the electronic device 500 shown, the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call the application program of a motor startup control method stored in the memory 505, and when executed by one or more processors 501, the electronic device 500 executes one or more methods in the above-mentioned embodiments. It should be noted that for the aforementioned method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.
[0126] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0127] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0129] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.
[0131] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, those skilled in the art will easily think of other embodiments of the present disclosure.
[0132] This application is intended to cover any variation, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the art not described in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A motor startup control method, characterized in that: The method comprises: Obtaining an initial angle, an initial current, an initial rotation speed, a target current, and a target rotation speed, wherein the initial angle, the initial current, and the initial rotation speed are all set to 0; According to the target current, the current value of the initial current is gradually increased, and according to the target speed, the speed value of the initial speed is gradually increased to control the increase of the initial angle to obtain an initial rotation angle; Detect and estimate the current in real time to obtain the estimated angle; Using a preset intelligent phase-locked loop mode to perform unique differential control on the initial rotation angle and the estimated angle to obtain a feedback angle, and using the feedback angle to control the initial rotation angle to obtain a target rotation angle; According to the target rotation speed and the target rotation angle, determining whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode, and in the case of converting to the common phase-locked loop mode, controlling the motor to start; The using the feedback angle to control the initial rotation angle to obtain a target rotation angle includes: Estimating the sub-angle variation of the feedback angle to obtain the actual rotation angle; The initial rotation angle is updated using the actual rotation angle to obtain the target rotation angle.
2. The method according to claim 1, characterized in that The method of using a preset intelligent phase-locked loop mode to perform unique differential control on the initial rotation angle and the estimated angle to obtain a feedback angle includes: Calculating the estimated angle and the initial rotation angle to obtain an angle error, wherein the estimated angle is greater than or equal to the initial rotation angle; The angle error is calculated by difference calculation with a preset error feedback value to obtain the feedback angle.
3. The method according to claim 1, characterized in that The method of determining whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode according to the target rotation speed and the target rotation angle, and controlling the motor to start when the intelligent phase-locked loop mode is converted to the common phase-locked loop mode, comprises: Performing format conversion on the target rotation angle to obtain a calculation rotation speed corresponding to the target rotation angle; Calculating the target speed and the operating speed to obtain a calculation result; The calculation result is compared with a preset rotation speed threshold to determine whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode. If converted to the common phase-locked loop mode, the motor is controlled to start.
4. The method according to claim 3, characterized in that The step of comparing the calculation result with a preset speed threshold value to determine whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode, and controlling the motor to start when the mode is converted to the common phase-locked loop mode, includes: When the calculation result is less than the rotation speed threshold, the intelligent phase-locked loop mode is converted to the common phase-locked loop mode, and the motor is started; When the calculation result is greater than or equal to the speed threshold, continue to execute the steps of gradually increasing the current of the initial current according to the target current, and gradually increasing the speed of the initial speed according to the target speed, so as to control the increase of the initial angle and obtain the initial rotation angle.
5. The method according to claim 1, characterized in that The real-time detection and estimation of the current to obtain the estimated angle includes: Perform three-phase current detection in real time to obtain a first detection current, a second detection current and a third detection current; Converting the first detection current, the second detection current and the third detection current to obtain a direct-axis current and a quadrature-axis current; The direct-axis current and the quadrature-axis current are estimated to obtain the estimated angle.
6. The method according to claim 5, characterized in that The converting the first detection current, the second detection current and the third detection current to obtain a direct-axis current and a quadrature-axis current includes: Decomposing the first detection current, the second detection current and the third detection current by using a preset Clark transformation to obtain a first decomposed current and a second decomposed current; The first decomposed current and the second decomposed current are rotated by using a preset Park transformation to obtain the direct-axis current corresponding to the first decomposed current and the quadrature-axis current corresponding to the second decomposed current.
7. A motor starting control device, characterized in that: The device comprises: A data acquisition module, used to acquire an initial angle, an initial current, an initial rotation speed, a target current and a target rotation speed, wherein the initial angle, the initial current and the initial rotation speed are all set to 0; A data increasing module, used to gradually increase the current value of the initial current according to the target current, and gradually increase the speed value of the initial speed according to the target speed, so as to control the increase of the initial angle and obtain an initial rotation angle; A data detection module is used to detect the current in real time to obtain the detected current, and to estimate the detected current to obtain the estimated angle; A feedback calculation module, used to perform unique differential control on the initial rotation angle and the estimated angle using a preset intelligent phase-locked loop mode to obtain a feedback angle, and use the feedback angle to control the initial rotation angle to obtain a target rotation angle; A starting judgment module, used for judging whether the intelligent phase-locked loop mode is converted to a preset common phase-locked loop mode according to the target rotation speed and the target rotation angle, and controlling the motor to start when the intelligent phase-locked loop mode is converted to the common phase-locked loop mode; The feedback calculation module is specifically used to estimate the sub-angle change of the feedback angle to obtain the actual rotation angle; and use the actual rotation angle to update the initial rotation angle to obtain the target rotation angle.
8. An electronic device, characterized in that: The electronic device (500) comprises a processor (501), a memory (505), a user interface (503), a communication bus (502) and a network interface (504), wherein the processor (501), the memory (505), the user interface (503) and the network interface (504) are respectively connected to the communication bus (502), the memory (505) is used to store instructions, the user interface (503) and the network interface (504) are used to communicate with other devices, and the processor (501) is used to execute the instructions stored in the memory (505) so that the electronic device (500) executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 6 is performed.
