Motor closed loop detection circuit and method
By combining the open-loop path and the prediction path of the motor, a closed-loop detection module is used to achieve smooth closed-loop switching of sensorless motors, which solves the problems of motor jitter and CPU occupation during the switching process and improves detection efficiency and reliability.
Patent Information
- Application Number
- CN202211236581.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-10
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-10-10
Smart Images

Figure CN117914210B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of motor control, and in particular to a closed-loop detection circuit and method for motors. Background Technology
[0002] Sensorless motors are widely used in motor control due to their low cost and high reliability. Sensorless motors typically use speed / angle estimation based on the motor's fundamental wave model or observer-type algorithms to calculate their angle and speed. However, when the motor is stationary or at low speeds, the back electromotive force of a sensorless motor is too small, resulting in a low signal-to-noise ratio, making it difficult for such algorithms to estimate the correct angle and speed. Conventional starting methods are divided into three stages: rotor initial positioning, open-loop speed control with closed-loop current control, and closed-loop speed control with closed-loop current control. The transition from open-loop to closed-loop speed control involves a significant difference between the electrical angle of the sensorless motor and the estimated electrical angle, which must be switched from the accumulated angle in the open loop. Direct switching between these two angles can cause abrupt changes in angle, resulting in current pulsation and speed fluctuations.
[0003] To address the aforementioned switching jitter issue, one approach involves reducing the difference between the motor's open-loop cumulative angle and estimated position angle by exponentially decaying the amplitude of the quadrature-axis current after the motor reaches current closed-loop and speed open-loop operation. A threshold range is set for this difference; when the angle difference falls within this range, it is considered close to zero, indicating a smooth rotor load, and the closed-loop operation phase is initiated. However, this switching disrupts the system's operational balance, potentially leading to motor step loss. Furthermore, maintaining steady-state operation requires a lengthy current regulation process, heavily reliant on the CPU and consuming significant CPU resources, placing high demands on CPU frequency. Therefore, developing a novel motor closed-loop detection method that avoids the risk of step loss, improves detection efficiency, and avoids excessive CPU resource consumption has become a pressing issue for those skilled in the art.
[0004] It should be noted that the above introduction to the technical background is only for the purpose of providing a clear and complete explanation of the technical solutions of this application and facilitating understanding by those skilled in the art. It should not be assumed that these technical solutions are known to those skilled in the art simply because they have been described in the background section of this application. Summary of the Invention
[0005] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a motor closed-loop detection circuit and method to solve the problems of slow speed, low efficiency, high CPU resource consumption, and risk of step loss in the prior art.
[0006] To achieve the above and other related objectives, the present invention provides a motor closed-loop detection circuit, the motor closed-loop detection circuit comprising at least:
[0007] Motor open-loop path, motor prediction path and closed-loop detection module;
[0008] The motor open-loop path provides an open-loop angle increment, and the open-loop angle is calculated based on the open-loop angle increment;
[0009] The motor prediction path estimates the motor angle increment based on the motor's sampled signal to obtain the estimated angle increment, and calculates the estimated angle based on the estimated angle increment.
[0010] The closed-loop detection module is connected to the output terminals of the motor open-loop path and the motor prediction path. When the open-loop angle increment and the estimated angle increment are equal n times consecutively within one electrical cycle, a first closed-loop flag signal is output. The first closed-loop flag signal is fed back to the motor open-loop path to adjust the open-loop angle increment. The updated open-loop angle is compared with the estimated angle. When the open-loop angle is equal to the estimated angle, a second closed-loop flag signal is output, completing the closed-loop detection and entering closed-loop control. Here, n is a natural number greater than or equal to 1.
[0011] Optionally, the motor open-loop path includes an open-loop angle increment generation module and an open-loop angle calculation module; the open-loop angle increment generation module provides the open-loop angle increment; the open-loop angle calculation module is connected to the output terminal of the open-loop angle increment generation module, and calculates the open-loop angle of the current cycle based on the open-loop angle of the previous cycle and the open-loop angle increment of the current cycle.
[0012] Alternatively, the open-loop angle increment generation module includes an increment generation unit and a multiplier; the increment generation unit outputs the open-loop angle increment; the multiplier receives the output signal of the increment generation unit, and when the first closed-loop flag signal is valid, multiplies the open-loop angle increment with a preset multiple to adjust the open-loop angle increment.
[0013] Alternatively, the increment generation unit includes a first adder; the first adder performs an addition operation on the open-loop angle increment of the previous cycle and the angle increment of the current cycle to obtain the open-loop angle increment of the current cycle.
[0014] Alternatively, the open-loop angle calculation module includes a second adder, which performs addition operations on the open-loop angle of the previous cycle and the open-loop angle increment of the current cycle.
[0015] Optionally, the motor prediction path includes a sliding mode observer, a phase-locked loop (PLL), and an angle estimation module. The sliding mode observer observes the motor energy based on the sampled signal. The PLL is connected to the output of the sliding mode observer and extracts the estimated angle increment based on the motor energy observed by the sliding mode observer and the sine and cosine feedback signals of the estimated angle in the previous cycle. The angle estimation module is connected to the output of the PLL and calculates the estimated angle of the current cycle based on the estimated angle of the previous cycle and the estimated angle increment of the current cycle, and generates the sine and cosine feedback signals of the estimated angle.
[0016] Alternatively, the angle estimation module includes a third adder and a sine and cosine calculation unit; the third adder performs addition operations on the estimated angle of the previous cycle and the estimated angle increment of the current cycle; the sine and cosine calculation unit receives the output signal of the third adder and performs sine and cosine calculations on the estimated angle output by the third adder, respectively.
[0017] Optionally, the closed-loop detection module includes a comparison unit and a logic unit; the input of the comparison unit is connected to the output of the motor open-loop path and the motor prediction path, and compares the high k bits of the open-loop angle increment with the estimated angle increment one-to-one, and compares the high k bits of the open-loop angle with the estimated angle one-to-one; the logic unit is connected to the output of the comparison unit, and outputs the first closed-loop flag signal when the corresponding bits of the open-loop angle increment and the estimated angle increment are equal n times consecutively within one electrical cycle, and immediately outputs the second closed-loop flag signal when the corresponding bits of the open-loop angle and the estimated angle are equal; where k is a natural number greater than or equal to 1.
[0018] Alternatively, the motor closed-loop detection circuit further includes a calculation module, which is connected to the motor open-loop path, the motor prediction path, and the closed-loop detection module. The calculations in the motor open-loop path, the motor prediction path, and the closed-loop detection module are completed by reusing the calculation units in the calculation module.
[0019] To achieve the above and other related objectives, the present invention provides a motor closed-loop detection method, which includes at least:
[0020] The open-loop angle increment and the estimated angle increment are obtained and compared respectively; when the open-loop angle increment and the estimated angle increment are equal for n consecutive times within one electrical cycle, a first closed-loop flag signal is generated; where n is a natural number greater than or equal to 1.
[0021] The open-loop angle increment is adjusted under the trigger of the first closed-loop flag signal. When the open-loop angle is equal to the estimated angle, a second closed-loop flag signal is generated. The second closed-loop flag signal is a signal that allows the motor to switch from open-loop to closed-loop.
[0022] Optionally, the method for comparing the open-loop angle increment with the estimated angle increment includes: performing a one-to-one comparison of the high k bits of the open-loop angle increment and the estimated angle increment n times consecutively within one electrical cycle; the method for comparing the open-loop angle with the estimated angle includes: performing a one-to-one comparison of the high k bits of the open-loop angle and the estimated angle; where k is a natural number greater than or equal to 1.
[0023] Alternatively, the method for adjusting the open-loop angle increment includes: increasing the original open-loop angle increment by a multiple, satisfying the following relationship:
[0024] Δθ′=X*Δθ;
[0025] Where Δθ′ is the updated open-loop angle increment; Δθ is the original open-loop angle increment; and X is a preset multiple, greater than 1.
[0026] As described above, the motor closed-loop detection circuit and method of the present invention have the following beneficial effects:
[0027] 1. The motor closed-loop detection circuit and method of the present invention are implemented by hardware circuit and reuse the existing motor open-loop path and motor prediction path. Only one multiplier, one adder and one set of comparators are needed to realize the closed-loop detection function. The structure is simple and the cost is low.
[0028] 2. The calculation of each module in the motor closed-loop detection circuit and method of the present invention reuses the devices in the calculation unit library, further reducing costs.
[0029] 3. The motor closed-loop detection circuit and method of the present invention achieve closed-loop detection by comparing the open-loop angle increment, the open-loop angle and the corresponding estimated value. The method is simple, easy to implement and has a fast closed-loop speed.
[0030] 4. In the motor closed-loop detection circuit and method of the present invention, the angle incremental closed-loop detection and the angle cross closed-loop switching detection use the same closed-loop detection circuit, realizing two-level closed-loop function with minimal area consumption.
[0031] 5. In the motor closed-loop detection circuit and method of the present invention, the motor prediction path is implemented by hardware circuit, which does not occupy CPU resources and has low power consumption during motor operation. Attached Figure Description
[0032] Figure 1 The diagram shown is a structural schematic of a motor closed-loop detection circuit according to the present invention.
[0033] Figure 2 The diagram shown is a structural schematic of the open-loop angle increment generation module of the present invention.
[0034] Figure 3 The diagram shown is a schematic representation of the phase-locked loop of the present invention.
[0035] Figure 4 The diagram shown is a structural schematic of the closed-loop detection module of the present invention.
[0036] Figure 5 The diagram shown is another structural schematic of the motor closed-loop detection circuit of the present invention.
[0037] Figure 6 The diagram shown is a flowchart of the motor closed-loop detection method of the present invention.
[0038] Figure 7 The diagram shown illustrates the principle of the motor closed-loop detection method of the present invention.
[0039] Component designation explanation
[0040] 1. Open-loop circuit of the motor
[0041] 11 Open-loop angle increment generation module
[0042] 111 Incremental Generation Unit
[0043] 112 Multipliers
[0044] 12 Open-loop angle calculation module
[0045] 2 Motor Prediction Path
[0046] 21 Sliding Mode Observer
[0047] 22 Phase-locked Loop
[0048] 221 First Multiplication Unit
[0049] 222 Second Multiplication Unit
[0050] 223 The Fourth Adder
[0051] 224 PI error calculation unit
[0052] 225 The Fifth Adder
[0053] 226 First Filter
[0054] 227 Second Filter
[0055] 23 Angle Estimation Module
[0056] 3 Closed-loop detection module
[0057] 31 Comparison Unit
[0058] 32 logic units
[0059] 321 and the door
[0060] 322 Accumulator Counter
[0061] 4. Calculation Module
[0062] 41 Adders
[0063] 42 Multipliers
[0064] 43 Sine and Cosine Calculation Unit
[0065] 44 comparator groups Detailed Implementation
[0066] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.
[0067] Please see Figures 1 to 7 It should be noted that the illustrations provided in this embodiment are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0068] Example 1
[0069] like Figure 1 As shown, this embodiment provides a motor closed-loop detection circuit, which includes:
[0070] Motor open-loop path 1, motor prediction path 2 and closed-loop detection module 3.
[0071] like Figure 1 As shown, the motor open-loop path 1 provides an open-loop angle increment Δθ, and calculates the open-loop angle θ based on the open-loop angle increment Δθ.
[0072] Specifically, in this embodiment, the motor open-loop path 1 includes an open-loop angle increment generation module 11 and an open-loop angle calculation module 12. The open-loop angle increment generation module 11 provides an open-loop angle increment Δθ. The open-loop angle calculation module 12 is connected to the output terminal of the open-loop angle increment generation module 11 and calculates the open-loop angle based on the open-loop angle θ of the previous cycle.n-1 The open-loop angle increment Δθ of the current cycle n Calculate the open-loop angle θ of the current cycle. n .
[0073] More specifically, such as Figure 2 As shown, in this embodiment, the open-loop angle increment generation module 11 includes an increment generation unit 111 and a multiplier 112. The increment generation unit 111 outputs the open-loop angle increment Δθ, which can be positive or negative. As an example, the open-loop angle increment Δθ is a constant value set as needed. As another example, if the open-loop angle increment Δθ increases or decreases sequentially with time, then the increment generation unit 111 includes a first adder, which performs an operation on the open-loop angle increment Δθ of the previous cycle. n-1 and the current cycle angle plus increment Δ 2 θ (angle increment) represents the rate at which the angle increment increases, i.e., the acceleration of the angle increase, Δ 2 (θ represents acceleration and does not imply a squared relationship with Δθ.) An addition operation is performed to obtain the open-loop angular increment Δθ for the current cycle. n , i.e., Δθ n =Δθ n-1 +Δ 2 θ, the angle plus increment Δ 2 θ can be a constant value or it can increase or decrease sequentially over time; and the angle is increased by an increment Δ 2 θ can be positive or negative, and when the angle is increased by an increment Δ 2 When θ is positive, the open-loop angle increment Δθ increases; when the angle increment Δθ is positive, the open-loop angle increment increases. 2 When θ is negative, the open-loop angle increment Δθ decreases. The multiplier 112 receives the output signal of the increment generation unit 111, and when the first closed-loop flag signal CL1 is valid, it performs a multiplication operation between the open-loop angle increment Δθ and a preset multiple X to adjust the open-loop angle increment Δθ.
[0074] More specifically, as an example, the open-loop angle calculation module 12 includes a second adder, which calculates the open-loop angle θ of the previous cycle. n-1 and the open-loop angle increment Δθ of the current cycle n Perform addition, i.e., θ n =θ n-1 +Δθ n .
[0075] It should be noted that the open-loop angle increment generation module 11 and the open-loop angle calculation module 12 can store the data of the previous cycle and the preset data through the setting register, which will not be described in detail here.
[0076] like Figure 1 As shown, the motor prediction path 2 estimates the motor angle increment based on the motor's sampled signal to obtain the predicted angle increment. And based on the estimated angle increment The estimated angle was calculated.
[0077] Specifically, in this embodiment, the motor prediction path 2 includes a sliding mode observer 21, a phase-locked loop 22, and an angle estimation module 23. The sliding mode observer 21 observes the motor energy based on the sampled signal. The phase-locked loop 22 is connected to the output of the sliding mode observer 21 and extracts the estimated angle increment based on the motor energy observed by the sliding mode observer 21 and the sine and cosine feedback signals of the estimated angle from the previous cycle. The angle estimation module 23 is connected to the output terminal of the phase-locked loop 22, and estimates the angle based on the previous cycle. Incremental from the perspective of the current cycle Calculate the estimated angle of the current cycle And generate a sinusoidal feedback signal of the estimated angle. Sum and cosine feedback signals
[0078] More specifically, the sliding mode observer 21 acquires the current and voltage signals of the sampled signal after coordinate transformation, thereby observing the motor energy. As an example, the sampled signal is a three-phase current sampling signal of the motor (in practice, only two phases need to be sampled at least; the third phase can be calculated). The sampled signal is subjected to a Clark transform to obtain the current in the α-β coordinate system, then a Park transform is performed on the current in the α-β coordinate system to obtain the current and voltage in the dq coordinate system, and finally an inverse Park transform is performed on the voltage in the dq coordinate system to obtain the voltage in the α-β coordinate system. The sliding mode observer 21 observes and predicts the motor energy in the α-β coordinate system based on the current and voltage in the α-β coordinate system. and The motor energy includes information about the motor angle and angular velocity. The sliding mode observer 21 is a hardware circuit; any circuit structure capable of observing the motor energy is applicable to this invention, and will not be described in detail here.
[0079] More specifically, the phase-locked loop 22 is used to extract the motor angle increment; such as Figure 3 As shown, as an example, the phase-locked loop 22 includes a first multiplication unit 221, a second multiplication unit 222, a fourth adder 223, a PI error calculation unit 224 (as an example, the PI error calculation unit 224 is a proportional-integral converter with upper limit control), and a fifth adder 225. The first multiplier 221 converts motor energy... The inverted cosine feedback signal of the estimated angle Multiplication; the second multiplier 222 multiplies the motor energy sinusoidal feedback signal with the predicted angle The fourth adder 223 adds the output signals of the first multiplication unit 221 and the second multiplication unit 222 to obtain the estimated energy error Δe; the PI error calculation unit 224 extracts the error of the estimated angle increment based on the energy error Δe; the fifth adder 225 adds the error of the estimated angle increment to the previous estimated angle increment. Adding them together, we get the estimated angle increment for this experiment. In another implementation of the present invention, the phase-locked loop 22 further includes a first filter 226 and a second filter 227, which are respectively connected to the input terminals of the first multiplication unit 221 and the second multiplication unit 222, to perform a first-order digital low-pass filter on the input motor energy to obtain the filtered value of the motor energy. and The phase-locked loop 22 is a hardware circuit. Any circuit structure that can obtain the estimated angle increment is applicable to the present invention and is not limited to this embodiment.
[0080] More specifically, the angle estimation module 23 includes a third adder and a sine / cosine calculation unit. The third adder calculates the predicted angle for the previous cycle. and the estimated increment of the current cycle. Perform addition, that is The sine and cosine calculation unit receives the output signal from the third adder, and performs sine and cosine calculations on the estimated angle output by the third adder to obtain the sine feedback signal of the estimated angle. Sum and cosine feedback signals The angle estimation module 23 is implemented using hardware circuitry.
[0081] It should be noted that in this embodiment, the motor open-loop path 1 is the original path in the motor control system, used to realize motor starting; the motor prediction path 2 is the original path in the motor control system, used to realize motor closed-loop control. This invention achieves closed-loop detection based on the output signals of the motor open-loop path 1 and the motor prediction path 2, greatly simplifying the structure and saving costs by reusing existing components.
[0082] like Figure 1 As shown, the closed-loop detection module 3 is connected to the output terminals of the motor open-loop path 1 and the motor prediction path 2, and the closed-loop angle increment Δθ is compared with the predicted angle increment. When the values are equal n times consecutively within a one-cycle range, a first closed-loop flag signal CL1 is output, and the first closed-loop flag signal CL1 is fed back to the motor open-loop path 1 to adjust the open-loop angle increment Δθ; and the updated open-loop angle θ is compared with the estimated angle. A comparison is made when the open-loop angle θ is compared with the estimated angle. When they are equal, the second closed-loop flag signal CL2 is output to complete the closed-loop detection and enter the closed-loop control; n is a natural number greater than or equal to 1, for example, n = 7.
[0083] Specifically, such as Figure 4 As shown, in this embodiment, the closed-loop detection module 3 includes a comparison unit 31 and a logic unit 32. The input terminal of the comparison unit 31 is connected to the output terminals of the motor open-loop path 1 and the motor prediction path 2, and compares the open-loop angle increment and the open-loop angle with their corresponding estimated values. The logic unit 32 is connected to the output terminal of the comparison unit 31. When the corresponding bits of the open-loop angle increment and the estimated angle increment are equal for n consecutive times within one electrical cycle, the logic unit 32 outputs the first closed-loop flag signal CL1. When the corresponding bits of the open-loop angle and the estimated angle are equal, the logic unit 32 outputs the second closed-loop flag signal CL2.
[0084] More specifically, as an example, the comparison unit 31 includes k comparators, each comparing the high k bits of the open-loop angle increment with the estimated angle increment, and each high k bits of the open-loop angle with the estimated angle. Each angle increment and angle is m bits of data, where k is a natural number greater than or equal to 1 (and less than or equal to m). A larger k value results in higher accuracy for loop closure detection, but also increases the difficulty of loop closure. The value of k can be chosen to balance accuracy and difficulty of loop closure depending on specific needs. In this example, if m is greater than 9, then k is selected as less than or equal to 9 (when k is 9, the accuracy is approximately 1° and loop closure can be achieved); if m is less than or equal to 9, then k is selected as less than or equal to m. The comparison unit 31 is time-division multiplexed and used for angle increment loop closure detection and angle crossover loop closure switching detection, respectively.
[0085] More specifically, as an example, the logic unit 32 includes an AND gate 321 and an accumulator counter 322. When the comparison results of the corresponding bits of the open-loop angle increment and the estimated angle increment are both high, the AND gate 321 outputs a high level; the accumulator counter 322 accumulates the high level output by the AND gate 321. When the number of consecutive accumulations of the high level output by the AND gate 321 reaches n, the first closed-loop flag signal CL1 is valid. When the comparison results of the corresponding bits of the open-loop angle and the estimated angle are both high, the AND gate 321 outputs a high level, and the second closed-loop flag signal CL2 is valid. In practical use, the logic unit 32 can use any logic circuit that can implement the logic of the present invention, and is not limited to this embodiment. The first closed-loop flag signal CL1 output by the logic unit 32 is fed back to the motor open-loop path 1 to trigger the adjustment of the open-loop angle increment Δθ, so that the open-loop angle θ is equal to the estimated angle. Intersecting.
[0086] The motor closed-loop detection circuit of the present invention achieves closed-loop detection by comparing the open-loop angle increment, the open-loop angle and the corresponding estimated value. The method is simple, easy to implement and has a fast closed-loop speed. Moreover, the angle increment closed-loop detection and the angle cross closed-loop switching detection use the same closed-loop detection circuit, realizing two-level closed-loop function with minimal area consumption.
[0087] Example 2
[0088] like Figure 5 As shown, this embodiment provides a motor closed-loop detection circuit. The difference from the first embodiment is that this embodiment uses a reused computing unit library to realize the operation and comparison of each module.
[0089] Specifically, such as Figure 5 As shown, the motor closed-loop detection circuit includes a calculation module 4, which is connected to the motor open-loop path 1, the motor prediction path 2, and the closed-loop detection module 3. The calculation module 4 contains various calculation units, including but not limited to an adder 41, a multiplier 42, a sine / cosine calculation unit 43, and a comparator group 45. Any calculation unit required by the motor closed-loop detection circuit can be set in the calculation module 4. The motor open-loop path 1, the motor prediction path 2, and the closed-loop detection module 3 do not require calculation and / or comparison devices. The signal to be calculated and / or compared is input into the calculation module 4 for processing, and the processed signal is fed back to the corresponding path or module. Therefore, the calculation units in each path and module can be time-division multiplexed, thereby saving area and cost.
[0090] The other structures and principles are the same as in Embodiment 1, and will not be described in detail here.
[0091] Example 3
[0092] like Figure 6 As shown, this embodiment provides a motor closed-loop detection method. In this example, the motor closed-loop detection method is implemented based on the motor closed-loop detection circuit of Embodiment 1 or Embodiment 2. In actual use, any hardware or software capable of implementing this method is applicable. The motor closed-loop detection method includes:
[0093] 1) Obtain the open-loop angle increment Δθ and the estimated angle increment respectively. And compare; when the open-loop angle increment Δθ is compared with the estimated angle increment The first closed-loop flag signal CL1 is generated when the values are equal n times consecutively within a range of one electrical cycle.
[0094] Specifically, the open-loop angle increment Δθ is obtained. Δθ can be a preset constant value or a value that changes with time. In this example, the open-loop angle increment Δθ increases sequentially with time, satisfying: Δθ n =Δθ n-1 +Δ 2 θ, where the angle plus increment Δ 2 θ can be set to a constant value or a variable value as needed.
[0095] Specifically, in this embodiment, the estimated angle increment is obtained. The method includes: performing coordinate transformation on the sampled signal of the motor, thereby obtaining the current and voltage in the α-β coordinate system through Clark transform, Park transform, and inverse Park transform, and then analyzing the motor energy in the α-β coordinate system. and Observations were conducted based on the motor energy. and the sinusoidal feedback signal of the predicted angle Cosine feedback signal The estimated angle increment is obtained through a phase-locked loop. In practical applications, any method that can estimate the angle increment of the motor is applicable to this invention, and is not limited to this embodiment.
[0096] Specifically, the open-loop angle increment Δθ is compared with the estimated angle increment. In this embodiment, the open-loop angle increment Δθ and the estimated angle increment are compared. Both are m-bit data signals, and the open-loop angle increment Δθ and the estimated angle increment are... The high k bits are compared one-to-one, and the comparison result is output. k is a natural number greater than or equal to 1 and less than m. As an example, k is less than or equal to 9 (that is, the minimum deviation of the angle or angle increment between the open-loop value and the estimated value can be set to (360 / 512)°). When the open-loop angle increment Δθ is compared with the estimated angle increment... When the corresponding bit (high k bit) is equal n times consecutively within one electrical cycle, it indicates that the open-loop angle increment Δθ is equal to the estimated angle increment. If they are equal, the first closed-loop flag signal CL1 is generated. Here, n is a natural number greater than or equal to 1; in this example, n is 7.
[0097] Specifically, such as Figure 7 As shown, when the open-loop angle increment Δθ is different from the estimated angle increment... When the values are equal n times consecutively within one electrical cycle, the first closed-loop flag signal CL1 is generated. At this time, the open-loop operating speed of the motor is the same as the speed predicted by the motor observation path, and the change curves of the open-loop angle (dashed line) and the predicted angle (solid line) are parallel.
[0098] 2) Adjust the open-loop angle increment Δθ under the triggering of the first closed-loop flag signal CL1. When the open-loop angle θ is close to the estimated angle... When they are equal, a second closed-loop flag signal CL2 is generated. The second closed-loop flag signal CL2 is a signal that allows the motor to switch from open loop to closed loop.
[0099] Specifically, when the first closed-loop flag signal CL1 is valid, the open-loop angle increment Δθ is adjusted. As an example, the method for adjusting the open-loop angle increment Δθ includes increasing the original open-loop angle increment Δθ by a factor satisfying the following relationship:
[0100] Δθ′=X*Δθ;
[0101] Where Δθ′ is the updated open-loop angle increment; Δθ is the original open-loop angle increment. X is a preset multiple, which is greater than 1 in this example. In actual use, X can also be set to less than 1, so that when the open-loop angle θ is different from the estimated angle... Intersection is sufficient, such as Figure 7 As shown.
[0102] Specifically, after the first closed-loop flag signal CL1 becomes valid, the open-loop angle θ and the estimated angle are compared. In this embodiment, the open-loop angle θ and the estimated angle are compared. Both are m-bit data signals, and the open-loop angle θ and the estimated angle are... The high k bits are compared one-to-one, and the comparison result is output. k is a natural number greater than or equal to 1 and less than m. For example, k is less than or equal to 9. When the open-loop angle θ is compared with the estimated angle... When the corresponding bits (high k bits) are all equal, it indicates that the open-loop angle θ is equal to the estimated angle. If the values are equal, the second closed-loop flag signal CL2 is generated. When the second closed-loop flag signal CL2 is valid, the motor can be controlled to enter the closed-loop control stage.
[0103] The motor closed-loop detection method of the present invention adopts a hierarchical closed-loop mode, which has high reliability and fast closed-loop speed.
[0104] In summary, this invention provides a motor closed-loop detection circuit and method, comprising: a motor open-loop path, a motor prediction path, and a closed-loop detection module; the motor open-loop path provides an open-loop angle increment and calculates the open-loop angle based on the open-loop angle increment; the motor prediction path estimates the angle increment of the motor based on the motor's sampled signal to obtain a predicted angle increment, and calculates the predicted angle based on the predicted angle increment; the closed-loop detection module is connected to the output terminals of the motor open-loop path and the motor prediction path, outputs a first closed-loop flag signal when the open-loop angle increment and the predicted angle increment are equal n times consecutively within one electrical cycle, feeds the first closed-loop flag signal back to the motor open-loop path to adjust the open-loop angle increment; and compares the updated open-loop angle with the predicted angle, outputs a second closed-loop flag signal when the open-loop angle is equal to the predicted angle, completes the closed-loop detection, and enters closed-loop control. The motor closed-loop detection circuit and method of this invention are implemented using hardware circuitry and reuse existing motor open-loop and motor prediction paths. Only simple computation and comparison devices are needed to achieve closed-loop detection, resulting in a simple structure and low cost. The calculations of each module reuse devices from a computational unit library, further reducing costs. Closed-loop detection is achieved by comparing the open-loop angle increment and the open-loop angle with the corresponding predicted value; the method is simple, easy to implement, and has a fast closing speed. The angle increment closed-loop detection and angle cross-loop switching detection use the same closed-loop detection circuit, achieving a two-stage closed-loop function with minimal area consumption. The motor prediction path is implemented using hardware circuitry, does not occupy CPU resources, and results in low motor power consumption. Therefore, this invention effectively overcomes the various shortcomings of existing technologies and has high industrial application value.
[0105] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A closed-loop detection circuit for a motor, characterized in that, The motor closed-loop detection circuit includes at least: Motor open-loop path, motor prediction path and closed-loop detection module; The motor open-loop path provides an open-loop angle increment, and the open-loop angle is calculated based on the open-loop angle increment; The motor prediction path estimates the motor angle increment based on the motor's sampled signal to obtain the estimated angle increment, and calculates the estimated angle based on the estimated angle increment. The closed-loop detection module is connected to the output terminals of the motor open-loop path and the motor prediction path. It performs a one-to-one comparison between the open-loop angle increment and the high k bits of the estimated angle increment within one electrical cycle n times. When the corresponding bits of the open-loop angle increment and the estimated angle increment are equal n times consecutively within one electrical cycle, a first closed-loop flag signal is output. This first closed-loop flag signal is fed back to the motor open-loop path to adjust the open-loop angle increment. The module then performs a one-to-one comparison between the updated open-loop angle and the high k bits of the estimated angle. When all corresponding bits of the open-loop angle and the estimated angle are equal, a second closed-loop flag signal is output, completing the closed-loop detection and entering closed-loop control. Here, n is a natural number greater than or equal to 1, and k is a natural number greater than or equal to 1.
2. The motor closed-loop detection circuit according to claim 1, characterized in that: The motor open-loop path includes an open-loop angle increment generation module and an open-loop angle calculation module; the open-loop angle increment generation module provides the open-loop angle increment; the open-loop angle calculation module is connected to the output terminal of the open-loop angle increment generation module and calculates the open-loop angle of the current cycle based on the open-loop angle of the previous cycle and the open-loop angle increment of the current cycle.
3. The motor closed-loop detection circuit according to claim 2, characterized in that: The open-loop angle increment generation module includes an increment generation unit and a multiplier; the increment generation unit outputs the open-loop angle increment; the multiplier receives the output signal of the increment generation unit, and when the first closed-loop flag signal is valid, it performs a multiplication operation on the open-loop angle increment with a preset multiple to adjust the open-loop angle increment.
4. The motor closed-loop detection circuit according to claim 3, characterized in that: The increment generation unit includes a first adder; the first adder performs an addition operation on the open-loop angle increment of the previous cycle and the angle increment of the current cycle to obtain the open-loop angle increment of the current cycle.
5. The motor closed-loop detection circuit according to claim 2, characterized in that: The open-loop angle calculation module includes a second adder, which performs addition operations on the open-loop angle of the previous cycle and the open-loop angle increment of the current cycle.
6. The motor closed-loop detection circuit according to claim 1, characterized in that: The motor prediction path includes a sliding mode observer, a phase-locked loop, and an angle estimation module; The sliding mode observer observes the motor energy based on the sampled signal; the phase-locked loop is connected to the output of the sliding mode observer and extracts the estimated angle increment based on the motor energy observed by the sliding mode observer and the sine and cosine feedback signals of the estimated angle of the previous cycle. The angle estimation module is connected to the output of the phase-locked loop. It calculates the estimated angle of the current cycle based on the estimated angle of the previous cycle and the incremental estimated angle of the current cycle, and generates sine and cosine feedback signals of the estimated angle.
7. The motor closed-loop detection circuit according to claim 6, characterized in that: The angle estimation module includes a third adder and a sine and cosine calculation unit; the third adder performs addition operations on the estimated angle of the previous cycle and the estimated angle increment of the current cycle; the sine and cosine calculation unit receives the output signal of the third adder and performs sine and cosine calculations on the estimated angle output by the third adder, respectively.
8. The motor closed-loop detection circuit according to claim 1, characterized in that: The closed-loop detection module includes a comparison unit and a logic unit. The input of the comparison unit is connected to the output of the motor open-loop path and the motor prediction path. It compares the high k bits of the open-loop angle increment with the estimated angle increment, and compares the high k bits of the open-loop angle with the estimated angle. The logic unit is connected to the output of the comparison unit. When the corresponding bits of the open-loop angle increment and the estimated angle increment are equal n times consecutively within one electrical cycle, it outputs the first closed-loop flag signal. When the corresponding bits of the open-loop angle and the estimated angle are equal, it outputs the second closed-loop flag signal. Here, k is a natural number greater than or equal to 1.
9. The motor closed-loop detection circuit according to any one of claims 1-8, characterized in that: The motor closed-loop detection circuit also includes a calculation module, which is connected to the motor open-loop path, the motor prediction path, and the closed-loop detection module. The calculations in the motor open-loop path, the motor prediction path, and the closed-loop detection module are completed by reusing the calculation units in the calculation module.
10. A closed-loop detection method for a motor, characterized in that, The motor closed-loop detection method includes at least the following: The open-loop angle increment and the estimated angle increment are obtained and compared respectively; when the open-loop angle increment and the estimated angle increment are equal for n consecutive times within one electrical cycle, a first closed-loop flag signal is generated; where n is a natural number greater than or equal to 1. The open-loop angle increment is adjusted under the trigger of the first closed-loop flag signal. When the open-loop angle is equal to the estimated angle, a second closed-loop flag signal is generated. The second closed-loop flag signal is a signal that allows the motor to switch from open-loop to closed-loop. The method for comparing the open-loop angle increment with the estimated angle increment includes: performing a one-to-one comparison of the high k bits of the open-loop angle increment and the estimated angle increment n times consecutively within one electrical cycle; the method for comparing the open-loop angle with the estimated angle includes: performing a one-to-one comparison of the high k bits of the open-loop angle and the estimated angle; where k is a natural number greater than or equal to 1.
11. The motor closed-loop detection method according to claim 10, characterized in that: The method for adjusting the open-loop angle increment includes: increasing the original open-loop angle increment by a multiple, satisfying the following relationship: ; in, This is the updated open-loop angle increment; X is the original open-loop angle increment; X is a preset multiple, greater than 1.
Citation Information
Patent Citations
Sensorless vector control device and method for non-salient pole type permanent magnet synchronous motor
CN103997270A
Sensorless control method and device of permanent magnet synchronous motor
CN106374793A
