Motor control method, control device, controller, compressor and household appliance
By predicting the feedback current phase delay based on the sampling time and control operation time in multiple pairs of extremely low stack thickness motors, calculating the target phase compensation amount, and performing phase compensation on the motor current, the problem of motor control lag is solved, the control performance is improved, and the avoidance of To increase manufacturing costs.
Patent Information
- Application Number
- CN202410613692.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-27
AI Technical Summary
The control carrier ratio of many pairs of extremely low stack thickness motors is small in the high speed range, resulting in large angle errors estimated without position sensing, resulting in control lag, reducing the working performance of the motor, and increasing the control carrier ratio will increase manufacturing costs.
By predicting the phase delay of the feedback current based on the sampling time and the control operation time when the carrier ratio is less than a certain range, calculating the target phase compensation amount, phase compensation is performed on the motor current to improve control performance.
Without increasing application costs, it reduces current control overshoot, improves motor control performance, and ensures smooth operation of the motor in the low carrier ratio range.
Smart Images

Figure CN118554835A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motor control, and in particular to a motor control method, a controller, a motor control device, a compressor and a household appliance. Background Art
[0002] Compressors with multiple pairs of extremely low stacked motors have the obvious characteristic of low prices. Especially for the refrigeration industry with large shipments, the price advantage can bring great benefits to refrigeration equipment manufacturers. Therefore, compressors with multiple pairs of extremely low stacked motors are widely used in the home appliance industry.
[0003] However, in the process of motor control, multiple pairs of extremely low stack thickness motors also bring about the problem of small control carrier ratio in the high speed range. As the number of control points decreases when the motor rotates one circle, the angle error estimated without position sensing is large, resulting in control lag and reduced motor performance. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to provide a motor control method, which predicts the magnitude of the feedback current phase delay according to the sampling time and the control operation time, and / or according to the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, so as to determine the target phase compensation amount to perform phase compensation on the motor current, thereby achieving the purpose of reducing current control overshoot and improving control performance without increasing the application cost.
[0005] The second object of the present invention is to provide a controller.
[0006] The third objective of the present invention is to provide a motor control device.
[0007] A fourth object of the present invention is to provide a compressor.
[0008] A fifth objective of the present invention is to provide a household appliance.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a motor control method, which includes: in the current carrier cycle, using a single resistor sampling method to sample the phase current of the motor, and determining the sampling time of the phase current, as well as determining the feedback speed and carrier ratio of the motor; when the carrier ratio is less than a first preset carrier ratio and greater than a second preset carrier ratio, determining the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, determining the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio; determining the motor current based on the target phase compensation amount and the phase current, and controlling the motor based on the motor current.
[0010] According to the motor control method of the embodiment of the present invention, first, in the current carrier cycle, the phase current of the motor is sampled by a single resistor sampling method, and the sampling time of the phase current is determined, and the feedback speed and carrier ratio of the motor are determined. When the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, the target phase compensation amount of the motor current is determined based on the sampling time and the control operation time, and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, wherein the second preset carrier ratio is less than the first preset carrier ratio, the motor current is determined based on the target phase compensation amount and the phase current, and the motor is controlled based on the motor current. Thus, the method can predict the magnitude of the feedback current phase delay according to the sampling time and the control operation time, and / or according to the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, so as to determine the target phase compensation amount to perform phase compensation on the motor current, thereby achieving the purpose of reducing current control overshoot and improving control performance without increasing application cost.
[0011] In addition, the motor control method according to the above embodiment of the present invention may also have the following additional technical features:
[0012] According to one embodiment of the present invention, a target phase compensation amount of a motor current is determined based on a sampling time and a control operation time, including: determining a current sampling phase compensation amount based on the sampling time and the control operation time; determining a target phase compensation amount based on the current sampling phase compensation amount and the control operation time.
[0013] According to one embodiment of the present invention, a target phase compensation amount is determined based on a sampling time, a control operation time, a feedback speed and the number of pole pairs of a motor, including: determining a current sampling phase compensation amount based on the sampling time and the control operation time; determining a leading current phase compensation amount based on the feedback speed and the number of pole pairs; and determining a target phase compensation amount based on the current sampling phase compensation amount, the leading current phase compensation amount and the control operation time.
[0014] According to one embodiment of the present invention, determining the current sampling phase compensation amount based on the sampling time and the control operation time includes: determining the compensation weight based on the sampling time and the control operation time; determining the current sampling phase compensation amount based on the compensation weight, the sampling time and the control operation time.
[0015] According to one embodiment of the present invention, the sampling moments include a first sampling moment and a second sampling moment, and the compensation weight is determined based on the sampling moments and the control operation moments, including: obtaining a first difference between one half of the control operation moment and the average of the first sampling moment and the second sampling moment; when the first difference is less than or equal to a preset threshold, determining the compensation weight to be a first compensation weight; when the first difference is greater than the preset threshold, determining the compensation weight to be a second compensation weight; wherein the second compensation weight is greater than the first compensation weight.
[0016] According to one embodiment of the present invention, a current sampling phase compensation amount is determined based on a compensation weight, a sampling time, and a control operation time, including: obtaining a sum of a first sampling time and a second sampling time, and a product of the sum and the compensation weight to obtain a first phase compensation amount; obtaining a difference between the control operation time and the first phase compensation amount to obtain a current sampling phase compensation amount.
[0017] According to an embodiment of the present invention, determining a target phase compensation amount based on a current sampling phase compensation amount and a control operation time includes: obtaining a ratio of the current sampling phase compensation amount to the control operation time to obtain the target phase compensation amount.
[0018] According to one embodiment of the present invention, the leading current phase compensation amount is determined based on the feedback speed and the pole pair number, including: determining the pole pair number influence coefficient based on the pole pair number; wherein the pole pair number influence coefficient is greater than 1; obtaining the ratio of the feedback speed to the given speed of the motor and the product of the ratio and the pole pair number influence coefficient to obtain the leading current phase compensation amount.
[0019] According to one embodiment of the present invention, a target phase compensation amount is determined based on a current sampling phase compensation amount, an advanced current phase compensation amount and a control operation time, including: obtaining a product of the current sampling phase compensation amount and the advanced current phase compensation amount and a ratio thereof to the control operation time to obtain a target phase compensation amount.
[0020] According to one embodiment of the present invention, the motor current is determined based on the target phase compensation amount and the phase current, including: performing coordinate transformation on the phase current to obtain the α-axis current and β-axis current of the current carrier cycle; determining the rotor angle increase of the current carrier cycle based on the α-axis current and β-axis current of the current carrier cycle, and the α-axis voltage and β-axis voltage of the previous carrier cycle; determining the motor current phase of the current carrier cycle based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle, and the target phase compensation amount; determining the motor current of the current carrier cycle based on the motor current phase of the current carrier cycle, and the α-axis current and β-axis current of the current carrier cycle.
[0021] According to one embodiment of the present invention, the motor current phase of the current carrier cycle is determined based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle and the target phase compensation, including: obtaining the product of the rotor angle increment of the current carrier cycle and the target phase compensation, and the sum of the product and the motor rotor angle of the previous carrier cycle, to obtain the motor current phase of the current carrier cycle.
[0022] According to one embodiment of the present invention, based on the motor current phase of the current carrier cycle, and the α-axis current and β-axis current of the current carrier cycle, the motor current of the current carrier cycle is determined, including: based on the motor current phase of the current carrier cycle, the α-axis current and the β-axis current of the current carrier cycle are coordinate transformed to obtain the d-axis current and the q-axis current of the current carrier cycle; wherein the motor current includes the d-axis current and the q-axis current.
[0023] According to one embodiment of the present invention, controlling a motor based on a motor current includes: obtaining a DC bus voltage of a current carrier cycle; performing weak magnetic control on the motor based on the DC bus voltage of the current carrier cycle to obtain a d-axis given current of the current carrier cycle, and performing speed loop control on the motor based on a given speed and a feedback speed of the motor to obtain a q-axis given current of the current carrier cycle; performing current loop control on the motor based on the d-axis given current, the q-axis given current, the d-axis current and the q-axis current of the current carrier cycle to obtain a d-axis voltage and a q-axis voltage of the current carrier cycle; determining the motor rotor angle of the current carrier cycle based on the motor rotor angle of the previous carrier cycle and the rotor angle increment of the current carrier cycle, and performing coordinate conversion on the d-axis voltage and the q-axis voltage of the current carrier cycle based on the motor rotor angle of the current carrier cycle to obtain an α-axis voltage and a β-axis voltage of the current carrier cycle; and controlling the motor based on the α-axis voltage and the β-axis voltage of the current carrier cycle.
[0024] According to an embodiment of the present invention, the control operation time is the overflow interrupt of the current carrier cycle.
[0025] According to one embodiment of the present invention, the number of pole pairs of the motor is greater than or equal to 5, and the stacking thickness of the motor is less than or equal to 27 nm.
[0026] To achieve the above objectives, a second embodiment of the present invention proposes a controller, including: a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the above motor control method is implemented.
[0027] According to the controller of the embodiment of the present invention, when the processor executes the program, the above-mentioned motor control method is implemented. Based on the above-mentioned motor control method, the purpose of reducing current control overshoot and improving motor control performance can be achieved without increasing application costs.
[0028] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a motor control device, which includes: a current sampling module, which is used to sample the phase current of the motor using a single resistor sampling method in the current carrier cycle, and determine the sampling time of the phase current; a position observer, which is used to determine the feedback speed of the motor; a phase compensation module, which is used to determine the carrier ratio of the motor, and when the carrier ratio is less than a first preset carrier ratio and greater than a second preset carrier ratio, determine the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, determine the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio; a control module, which is used to determine the motor current based on the target phase compensation amount and the phase current, and control the motor based on the motor current.
[0029] According to the motor control device of the embodiment of the present invention, the current sampling module uses a single resistor sampling method to sample the phase current of the motor in the current carrier cycle, and determines the sampling time of the phase current, determines the feedback speed of the motor through the position observer, determines the carrier ratio of the motor through the phase compensation module, and determines the target phase compensation amount of the motor current based on the sampling time and the control operation time when the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, wherein the second preset carrier ratio is less than the first preset carrier ratio, and the control module determines the motor current based on the target phase compensation amount and the phase current, and controls the motor based on the motor current. Thus, the device predicts the magnitude of the feedback current phase delay according to the sampling time and the control operation time, and / or according to the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, so as to determine the target phase compensation amount to perform phase compensation on the motor current, thereby achieving the purpose of reducing current control overshoot and improving control performance without increasing application cost.
[0030] To achieve the above-mentioned purpose, a fourth aspect of the present invention provides a compressor, including the above-mentioned controller, or the above-mentioned motor control device.
[0031] According to the compressor of the embodiment of the present invention, based on the above-mentioned controller, or based on the above-mentioned motor control device, the working control performance of the compressor is improved without increasing the application cost.
[0032] To achieve the above-mentioned purpose, a fifth aspect of the present invention provides a household appliance, including the above-mentioned controller, or the above-mentioned motor control device, or the above-mentioned compressor.
[0033] According to the household appliance of the embodiment of the present invention, based on the above-mentioned controller, or the above-mentioned motor control device, or the above-mentioned compressor, the working performance of the household appliance is improved without increasing the application cost.
[0034] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of a motor control method according to an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of sampling time and control time according to an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of a 5-pole-to-carrier ratio and a rotation speed according to an embodiment of the present invention;
[0038] Figure 4 is a schematic diagram of a position observer-free device according to an embodiment of the present invention;
[0039] Figure 5 A schematic diagram of a motor sensorless drive system according to an embodiment of the present invention;
[0040] Figure 6 is a current compensation flow chart according to a specific embodiment of the present invention;
[0041] Figure 7 A current compensation effect diagram according to a specific embodiment of the present invention;
[0042] Figure 8 is a block diagram of a controller according to an embodiment of the present invention;
[0043] Fig. 9 is a connection diagram of a motor control device according to an embodiment of the present invention;
[0044] Fig.10 is a block diagram of a compressor according to an embodiment of the present invention;
[0045] Fig.11 is a block diagram of a compressor according to another embodiment of the present invention;
[0046] Fig.12 is a block diagram of a household appliance according to an embodiment of the present invention;
[0047] Fig.13 is a block diagram of a household appliance according to another embodiment of the present invention;
[0048] Fig.14 FIG. 4 is a block diagram of a household appliance according to another embodiment of the present invention. DETAILED DESCRIPTION
[0049] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0050] The motor control method, controller, motor control device, compressor and household appliance provided in the embodiments of the present invention are described below with reference to the accompanying drawings.
[0051] Single resistor sampling has the characteristic of low cost and is commonly used in sensorless motor control in the home appliance industry. However, single resistor sampling requires a sampling window time. After sampling is completed, it enters carrier control and uses the sampled current during the window time as feedback to control the motor, resulting in a control delay between the window time and the control moment.
[0052] In addition, compressors using multiple pairs of extremely low stacked motors are obviously inexpensive, especially for the refrigeration industry with large shipments, and the price advantage can bring great benefits to refrigeration equipment manufacturers. However, multiple pairs of extremely low stacked motors also bring the problem of small carrier ratio in high speed range control. Because the number of control points decreases when the motor rotates one circle, the angle error of position sensor estimation becomes larger, and the control lag of sensorless control module is also caused.
[0053] In the related art, the problem caused by the above-mentioned multiple pairs of extremely low stack thickness motors is solved by increasing the control carrier ratio. However, increasing the control carrier ratio means that the heat generated by the control board hardware increases. In actual applications, in order to meet the heat demand, components with greater heat margin need to be used, which increases the manufacturing cost of the product.
[0054] Therefore, when designing the control algorithm for multiple pairs of extremely low stacking motors, how to solve the control problem of low carrier ratio without increasing the control carrier ratio is the key to whether compressors with multiple pairs of extremely low stacking motors can be fully promoted. At the same time, current control based on single resistor sampling, as part of sensorless control, also determines whether multiple pairs of extremely low stacking motors can run smoothly. However, in the case of low carrier ratio, the calculation method usually introduces phase delay, making it difficult for sensorless control to respond correctly according to the feedback current, resulting in motor overcurrent tripping.
[0055] In order to solve the above technical problems, the present application predicts the magnitude of the feedback current phase delay in the low carrier ratio range based on the sampling time and the control operation time, and / or based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, and calculates the current phase based on the calculation result to perform leading phase compensation on the current, thereby achieving the purpose of reducing current control overshoot and improving control performance.
[0056] The motor control method of the present application is described in detail below with reference to the accompanying drawings.
[0057] Figure 1 is a flow chart of a motor control method according to an embodiment of the present invention.
[0058] like Figure 1 As shown, the motor control method of the embodiment of the present invention may include:
[0059] S1, in the current carrier cycle, the single resistor sampling method is used to sample the phase current of the motor, and the sampling time of the phase current is determined, as well as the feedback speed spd_fb and the carrier ratio of the motor are determined;
[0060] S2, when the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, determine the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, determine the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio;
[0061] S3, determining the motor current based on the target phase compensation amount and the phase current, and controlling the motor based on the motor current.
[0062] Specifically, combined Figure 2As shown, in the current carrier cycle, two phases are selected for current sampling according to the pulse width length of the three phases u, v, and w of the vector control, so as to complete the successful sampling of the phase current of two phases through a single resistor, and further calculate the phase current of the other phase based on the two phase currents obtained by sampling. Assume that the phase current Iu of the u phase is sampled at time T1, and the phase current Iv of the v phase is sampled at time T2, and the phase current Iw of the w phase is calculated by the phase current Iu of the u phase and the phase current Iv of the v phase, and the control operation time is the overflow interruption point of the current carrier cycle, that is, Ts. Among them, a control operation is performed once in each carrier cycle, and the time interval between adjacent control operation times is a carrier cycle.
[0063] The feedback speed spd_fb of the motor can be determined based on the position observer in the control system. The carrier ratio of the motor can be calculated based on the ratio of the total number of pulses output per fundamental wave (triangular wave) and the contained sinusoidal modulation wave in the modulation, that is, the ratio of the two frequencies. The motor feedback mechanical frequency f_spd_fb can also be determined by the feedback speed spd_fb of the motor, and the carrier frequency fv can be determined according to the carrier period. The carrier ratio is calculated according to the formula f_spd_fb*pp / fv, where pp is the number of pole pairs of the motor.
[0064] When the carrier ratio is greater than or equal to the first preset carrier, it is determined that the application environment is in a high carrier ratio and no phase compensation is required for the motor current; when the carrier ratio is less than the first preset carrier, it is determined that the application environment is in a low carrier ratio and in order to ensure smooth control of the motor, a phase compensation operation is required for the motor current, as follows:
[0065] When the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, the target phase compensation amount of the motor current is determined based on the sampling time (T1, T2) and the control operation time Ts; when the carrier ratio is less than the second preset carrier ratio, the target phase compensation amount of the motor current can be determined based on the sampling time (T1, T2) and the control operation time Ts by adjusting the weight coefficient, or other control strategies can be used to determine the target phase compensation amount of the motor current.
[0066] The carrier ratio and speed attenuation of the 5-pole motor are as follows: Figure 3As shown, when the carrier ratio is less than or equal to the second preset carrier ratio, the feedback speed spd_fb and the number of pole pairs pp of the motor are introduced. At this time, the target phase compensation amount is determined based on the sampling time (T1, T2), the control operation time Ts, the feedback speed spd_fb and the number of pole pairs pp of the motor. When the carrier ratio is less than the first preset carrier and greater than the second preset carrier ratio, the target phase compensation amount can be determined based on the sampling time (T1, T2), the control operation time Ts, the feedback speed spd_fb and the number of pole pairs pp of the motor by adjusting the weight coefficient, or other control strategies can be used to determine the target phase compensation amount of the motor current.
[0067] For example, when the carrier ratio is less than the first preset carrier and is in a low carrier ratio application scenario, if the carrier ratio is greater than 13, the target phase compensation amount of the motor current is determined based on the sampling time and the control operation time; if the carrier ratio is less than or equal to 13, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor.
[0068] Then, the phase of the sampled current is compensated according to the determined target phase compensation amount, and the current loop control is performed with the motor current after phase compensation.
[0069] This embodiment can be applied to the current phase compensation of low-carrier single-resistance sampling in the sensorless control system of a low-stack multi-pole compressor, for example, the number of pole pairs of the motor is greater than or equal to 5, and the stack thickness of the motor is less than or equal to 27nm. This embodiment determines different target phase compensation amounts by the interval in which the carrier ratio is located to meet the phase compensation requirements under different carrier ratios, and improves the control performance without increasing any cost, so that it can exert the design performance of the product under the condition of low carrier ratio close to discrete control, and even realize smooth motor control on products with unbalanced loads such as compressors.
[0070] In one embodiment of the present invention, the target phase compensation amount of the motor current is determined based on the sampling time and the control operation time, including: determining the current sampling phase compensation amount Ts_Current_Delay based on the sampling time (T1, T2) and the control operation time Ts; determining the target phase compensation amount based on the current sampling phase compensation amount Ts_Current_Delay and the control operation time Ts.
[0071] Specifically, when the carrier ratio is less than the first preset carrier and greater than the second preset carrier ratio, the current sampling phase compensation amount Ts_Current_Delay is first determined according to the time relationship between the sampling moments T1, T2 and the control operation moment Ts. For example, when the time difference between the sampling moments T1, T2 and the control operation moment Ts is large, it is considered that there is a large control delay, and a larger current sampling phase compensation amount Ts_Current_Delay is determined; when the time difference between the sampling moments T1, T2 and the control operation moment Ts is small, it is considered that there is a small control delay, and a smaller current sampling phase compensation amount Ts_Current_Delay is determined. Then, the target phase compensation amount is calculated based on the current sampling phase compensation amount Ts_Current_Delay and the control operation moment Ts to meet the target current phase compensation effect.
[0072] The current sampling phase compensation amount Ts_Current_Delay can be determined by looking up a table based on a preset mapping relationship of sampling time-control operation time-current sampling phase compensation amount, or can be obtained based on a preset calculation formula, without specific limitation.
[0073] In one embodiment of the present invention, a target phase compensation amount is determined based on a sampling time, a control operation time, a feedback speed and the number of pole pairs of a motor, including: determining a current sampling phase compensation amount Ts_Current_Delay based on the sampling time (T1, T2) and the control operation time Ts; determining a leading current phase compensation amount Spd_Lead_Factor based on the feedback speed spd_fb and the number of pole pairs pp; and determining a target phase compensation amount based on the current sampling phase compensation amount Ts_Current_Delay, the leading current phase compensation amount Spd_Lead_Factor and the control operation time Ts.
[0074] That is to say, when the carrier ratio is less than the second preset carrier ratio, the magnitude of the current phase delay is further predicted based on the feedback speed spd_fb, and the leading current phase compensation amount Spd_Lead_Factor is determined in combination with the pole pair number pp. The leading current phase compensation amount Spd_Lead_Factor is combined with the sampling time (T1, T2) and the control operation time Ts to obtain the target phase compensation amount, thereby performing phase compensation on the motor current.
[0075] Among them, the current sampling phase compensation amount Ts_Current_Delay can be determined by looking up the table based on the preset mapping relationship of sampling time-control operation time-current sampling phase compensation amount, or it can be obtained based on a preset calculation formula, without specific restrictions. The leading current phase compensation amount Spd_Lead_Factor can be determined by looking up the table based on the preset mapping relationship of feedback speed-pole pair number-leading current phase compensation amount, or it can be calculated based on a preset calculation formula, without specific restrictions.
[0076] In one embodiment of the present invention, the current sampling phase compensation amount Ts_Current_Delay is determined based on the sampling time (T1, T2) and the control operation time Ts, including: determining the compensation weight based on the sampling time (T1, T2) and the control operation time Ts; determining the current sampling phase compensation amount Ts_Current_Delay based on the compensation weight, the sampling time (T1, T2) and the control operation time Ts.
[0077] Specifically, in the single-resistance sampling process, there will be two sampling moments (T1, T2), and the two-phase phase currents will be sampled respectively. On the one hand, there is a time difference between the two sampling moments, and on the other hand, there will be a time difference between the two sampling moments and the control operation moment Ts. Therefore, the compensation weight is determined based on the time deviation between the sampling moment (T1, T2) and the control operation moment Ts. The current sampling phase compensation amount Ts_Current_Delay is calculated by the compensation weight, the two sampling moments (T1, T2) and the control operation moment Ts to improve the phase compensation effect.
[0078] In one embodiment of the present invention, the sampling moments include a first sampling moment T1 and a second sampling moment T2, and the compensation weight is determined based on the sampling moments (T1, T2) and the control operation moment Ts, including: obtaining a first difference between half of the control operation moment Ts and the average of the first sampling moment T1 and the second sampling moment T2; when the first difference is less than or equal to a preset threshold, determining the compensation weight to be the first compensation weight; when the first difference is greater than the preset threshold, determining the compensation weight to be the second compensation weight; wherein the second compensation weight is greater than the first compensation weight.
[0079] Specifically, the preset threshold is used to evaluate the time deviation between the control operation time Ts and the sampling time (T1, T2), which can be determined according to actual conditions. For example, the preset threshold is Ts / 4, which is one quarter of the control operation time Ts.
[0080] Combination Figure 2As shown, the first difference is Ts / 2-(T1+T2) / 2. If Ts / 2-(T1+T2) / 2 is less than Ts / 4, it is considered that the time difference between the sampling time (T1, T2) and the control operation time Ts is small, and a smaller first compensation weight is selected. The first compensation weight can be selected from 0.1 to 0.4; if Ts / 2-(T1+T2) / 2 is greater than or equal to Ts / 4, it is considered that the time difference between the sampling time (T1, T2) and the control operation time Ts is large, and a larger second compensation weight is selected, wherein the second compensation weight can be 0.7.
[0081] In one embodiment of the present invention, the current sampling phase compensation amount Ts_Current_Delay is determined based on the compensation weight, the sampling time (T1, T2) and the control operation time Ts, including: obtaining the sum of the first sampling time T1 and the second sampling time T2 and the product of the compensation weight to obtain the first phase compensation amount; obtaining the difference between the control operation time Ts and the first phase compensation amount to obtain the current sampling phase compensation amount Ts_Current_Delay.
[0082] That is, in the embodiment of determining the current sampling phase compensation amount based on the compensation weight, sampling time and control operation time, the current sampling phase compensation amount is calculated by the following formula:
[0083] Ts_Current_Delay = Ts - ((T2 + T1) * compensation weight)
[0084] Wherein, Ts_Current_Delay represents the current sampling phase compensation amount, Ts represents the control operation time, T2 represents the second sampling time, and T1 represents the first sampling time.
[0085] In one embodiment of the present invention, determining a target phase compensation amount based on the current sampling phase compensation amount Ts_Current_Delay and the control operation time Ts includes: obtaining a ratio of the current sampling phase compensation amount Ts_Current_Delay to the control operation time Ts to obtain the target phase compensation amount.
[0086] That is, in the embodiment of determining the current sampling phase compensation amount based on the compensation weight, sampling time and control operation time,
[0087] Target phase compensation amount = Ts_Current_Delay / Ts
[0088] Among them, Ts_Current_Delay represents the current sampling phase compensation amount, and Ts represents the control operation time.
[0089] In one embodiment of the present invention, the leading current phase compensation amount Spd_Lead_Factor is determined based on the feedback speed spd_fb and the pole pair number pp, including: determining the pole pair number influence coefficient based on the pole pair number pp; wherein the pole pair number influence coefficient is greater than 1; obtaining the ratio of the feedback speed spd_fb to the given speed spd_tar of the motor and the product of the ratio and the pole pair number influence coefficient to obtain the leading current phase compensation amount Spd_Lead_Factor.
[0090] Specifically, in an embodiment in which the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed, and the number of pole pairs of the motor, the leading current phase compensation amount can be determined by the following formula:
[0091] Spd_Lead_Factor=(spd_fb / spd_tar)*(pp / (pp-1))
[0092] Among them, Spd_Lead_Factor represents the leading current phase compensation amount, spd_fb represents the feedback speed, spd_tar represents the given speed, pp / (pp-1) represents the pole pair number influence coefficient, wherein 1 is a preset value, which can be specifically determined according to the pole pair number PP. For example, the preset value can also be selected as 0.5, 1.2, 2, etc., without specific limitation. It can be understood that the preset value should be greater than 0 to ensure that the pole pair number influence coefficient is greater than 1 to ensure leading compensation, and the larger the preset value, the larger the pole pair number influence coefficient; the smaller the preset value, the smaller the pole pair number influence coefficient.
[0093] In one embodiment of the present invention, a target phase compensation amount is determined based on the current sampling phase compensation amount Ts_Current_Delay, the leading current phase compensation amount Spd_Lead_Factor and the control operation time Ts, including: obtaining the product of the current sampling phase compensation amount Ts_Current_Delay and the leading current phase compensation amount Spd_Lead_Factor and the ratio of the product to the control operation time Ts to obtain the target phase compensation amount.
[0094] That is, in the embodiment where the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed, and the number of pole pairs of the motor,
[0095] Target phase compensation amount = Ts_Current_Delay*Spd_Lead_Factor / Ts
[0096] Among them, Ts_Current_Delay represents the current sampling phase compensation amount, Spd_Lead_Factor represents the leading current phase compensation amount, and Ts represents the control operation time.
[0097] In one embodiment of the present invention, the motor current is determined based on the target phase compensation amount and the phase currents (Iu, Iv and Iw), including: performing coordinate transformation on the phase currents (Iu, Iv and Iw) to obtain the α-axis current Iα and the β-axis current Iβ of the current carrier cycle; based on the α-axis current Iα and the β-axis current Iβ of the current carrier cycle, and the α-axis voltage Vα of the previous carrier cycle * and β-axis voltage Vβ * , determine the rotor angle increase Δθ of the current carrier cycle; determine the motor current phase θ(n) of the current carrier cycle based on the rotor angle increase Δθ of the current carrier cycle, the motor rotor angle θ(n-1) of the previous carrier cycle and the target phase compensation amount; determine the motor current phase θ(n) of the current carrier cycle based on the motor current phase θ(n) of the current carrier cycle, and the α-axis current Iα and β-axis current Iβ of the current carrier cycle.
[0098] Specifically, the three-phase currents (Iu, Iv and Iw) are determined by the current sampling module based on single resistor sampling, and the three-phase currents (Iu, Iv and Iw) are subjected to Clark transformation to obtain the α-axis current Iα and the β-axis current Iβ of the current carrier cycle, as shown in FIG. Figure 4 As shown, the position observer is based on the α-axis current Iα, β-axis current Iβ of the current carrier cycle, and the α-axis voltage Vα of the previous carrier cycle. * and β-axis voltage Vβ * The rotor angle increase Δθ of the current carrier cycle is obtained. The rotor angle increase Δθ of the current carrier cycle is phase compensated by the calculated target phase compensation amount, and the motor current phase θ(n) of the current carrier cycle is determined in combination with the motor rotor angle of the previous carrier cycle. Then, according to the motor current phase θ(n) of the current carrier cycle, the α-axis current Iα and the β-axis current Iβ of the current carrier cycle are Park transformed to obtain the motor current of the current carrier cycle, complete the phase compensation action of the motor current, and perform current loop control on the compensated motor current.
[0099] In one embodiment of the present invention, the motor current phase θ(n) of the current carrier cycle is determined based on the rotor angle increase θ(n) of the current carrier cycle, the motor rotor angle θ(n-1) of the previous carrier cycle and the target phase compensation amount, including: obtaining the product of the rotor angle increment θ(n) of the current carrier cycle and the target phase compensation amount, and the sum of the rotor angle θ(n-1) of the previous carrier cycle to obtain the motor current phase θ(n) of the current carrier cycle.
[0100] That is to say, the motor current phase of the current carrier cycle is calculated by the following formula:
[0101] θ(n)=θ(n-1)+(Δθ)*target phase compensation amount
[0102] Among them, θ(n) represents the motor current phase of the current carrier cycle, θ(n-1) represents the motor rotor angle of the previous carrier cycle, and Δθ represents the rotor angle increment of the current carrier cycle.
[0103] Specifically, when the carrier ratio is greater than or equal to the first preset carrier ratio, there is no need to perform phase compensation on the current, and the motor current phase of the current carrier cycle is:
[0104] θ(n)=θ(n-1)+(Δθ)
[0105] When the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, the current phase is compensated based on the sampling time and the control operation time, and the motor current phase of the current carrier cycle is:
[0106] θ(n)=θ(n-1)+(Δθ)*Ts_Current_Delay / Ts
[0107] Among them, Ts_Current_Delay represents the current sampling phase compensation amount determined based on the sampling time and the control operation time, and Ts represents the control operation time.
[0108] When the carrier ratio is less than the second preset carrier ratio, the current phase is compensated based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor. The motor current phase of the current carrier cycle is:
[0109] θ(n)=θ(n-1)+(Δθ)*Ts_Current_Delay*Spd_Lead_Factor / Ts
[0110] Wherein, Spd_Lead_Factor represents the leading current phase compensation amount determined based on the feedback speed and the number of pole pairs.
[0111] In one embodiment of the present invention, based on the motor current phase θ(n) of the current carrier cycle, and the α-axis current Iα and the β-axis current Iβ of the current carrier cycle, the motor current of the current carrier cycle is determined, including: based on the motor current phase θ(n) of the current carrier cycle, the α-axis current Iα and the β-axis current Iβ of the current carrier cycle are coordinate transformed to obtain the d-axis current Id and the q-axis current Iq of the current carrier cycle; wherein the motor current includes the d-axis current Id and the q-axis current Iq.
[0112] That is to say, after the three-phase currents Iu, Iv, and Iw are converted into the α-axis current Iα and the β-axis current Iβ of the current carrier period through the Clark transformation, the α-axis current Iα and the β-axis current Iβ of the current carrier period are Park transformed by calculating the motor current phase θ(n) of the current carrier period to obtain the d-axis current Id and the q-axis current Iq of the current carrier period, so as to complete the phase compensation of the motor current.
[0113] Specifically, the d-axis current Id and q-axis current Iq of the current carrier cycle are calculated by the following formula:
[0114] Id=Iαcosθ(n)+Iβsinθ(n)
[0115] Iq=Iαsinθ(n)+Iβcosθ(n)
[0116] Among them, Id represents the d-axis current of the current carrier cycle, Iα represents the α-axis current of the current carrier cycle, Iβ represents the β-axis current of the current carrier cycle, θ(n) represents the motor current phase of the current carrier cycle, and Iq represents the q-axis current of the current carrier cycle.
[0117] In one embodiment of the present invention, controlling a motor based on a motor current includes: obtaining a DC bus voltage of a current carrier cycle; performing weak magnetic control on the motor based on the DC bus voltage of the current carrier cycle to obtain a d-axis given current of the current carrier cycle, and performing speed loop control on the motor based on a given speed spd_tar and a feedback speed spd_fb of the motor to obtain a q-axis given current of the current carrier cycle; performing current loop control on the motor based on a d-axis given current, a q-axis given current, a d-axis current Id, and a q-axis current Iq of the current carrier cycle to obtain a d-axis voltage Vd and a q-axis voltage Vq of the current carrier cycle; determining a motor rotor angle of the current carrier cycle based on a motor rotor angle θ(n-1) of a previous carrier cycle and a rotor angle increment Δθ of the current carrier cycle, and performing coordinate transformation on the d-axis voltage Vd and the q-axis voltage Vq of the current carrier cycle based on the motor rotor angle of the current carrier cycle to obtain an α-axis voltage Vα and a β-axis voltage Vβ of the current carrier cycle; and controlling the motor based on the α-axis voltage Vα and the β-axis voltage Vβ of the current carrier cycle.
[0118] Specifically, combined Figure 5 As shown, the motor sensorless control system obtains the three-phase current of the motor based on single resistor sampling through the current sampling module, and feeds back the sampling time to the phase compensation module, performs Clark transformation on the three-phase current to obtain the α-axis current Iα and β-axis current Iβ of the current carrier cycle, and sends them to the position observer and Park transformation module respectively.
[0119] The position observer is based on the α-axis current Iα and β-axis current Iβ of the current carrier cycle and the α-axis voltage Vα of the previous carrier cycle. * and β-axis voltage Vβ * The calculated feedback speed spd_fb is given to the speed loop, which generates the q-axis given current of the current carrier cycle based on the given speed spd_tar and the feedback speed spd_fb. At the same time, the sampled DC bus voltage and voltage limit circle of the current carrier cycle are input into the weak magnetic loop, which generates the d-axis given current of the current carrier cycle based on the DC bus voltage and voltage limit circle.
[0120] In addition, the speed loop outputs the speed compensation coefficient spd_fb / spd_tar to the phase compensation module. The phase compensation module determines whether to perform advanced phase compensation based on the speed based on the interval of the carrier ratio, and then determines the target phase compensation amount. Specifically, when the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, the target phase compensation amount of the motor current is determined at the sampling time and the control operation time; when the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor.
[0121] The position observer calculates the motor current phase θ(n) of the current carrier cycle based on the target phase compensation amount, performs Park transformation on the α-axis current Iα and β-axis current Iβ of the current carrier cycle based on the motor current phase θ(n) of the current carrier cycle, and outputs the d-axis current Id and q-axis current Iq of the current carrier cycle.
[0122] The current loop receives the d-axis given current and q-axis given current of the current carrier cycle and the d-axis current Id and q-axis current Iq of the current carrier cycle obtained by park transformation, and outputs the d-axis voltage Vd and q-axis voltage Vq of the current carrier cycle.
[0123] According to the motor rotor angle θ(n-1) of the previous carrier cycle and the rotor angle increment Δθ of the current carrier cycle, the motor rotor angle of the current carrier cycle is determined to be θ(n-1)+(Δθ), and according to the motor rotor angle θ(n-1)+(Δθ) of the current carrier cycle, the d-axis voltage Vd and the q-axis voltage Vq of the current carrier cycle are inversely Park transformed to obtain the α-axis voltage Vα and the β-axis voltage Vβ of the current carrier cycle, and then the α-axis voltage Vα and the β-axis voltage Vβ of the current carrier cycle are inversely Clark transformed to obtain the u-phase voltage Vu, the v-phase voltage Vv and the w-phase voltage Vw of the current carrier cycle.
[0124] The SVPWM (Space Vector Pulse Width Modulation) module outputs control pulses based on the u-phase voltage Vu, v-phase voltage Vv and w-phase voltage Vw of the current carrier cycle to control the motor.
[0125] As a specific embodiment of the present application, Figure 6 As shown, the motor control method may include the following steps:
[0126] S101, in the current carrier cycle, the phase currents Iu, Iv and Iw of the motor are sampled by a single resistor sampling method, and the sampling times T1 and T2 of the phase currents, the feedback speed spd_fb of the motor and the carrier ratio are determined.
[0127] S102, determine whether the carrier ratio is less than a first preset carrier ratio. If yes, execute step S103; if no, execute step S104.
[0128] S103, determine whether the carrier ratio is less than a second preset carrier ratio. If yes, execute step S109; if no, execute step S120.
[0129] S104, performing coordinate transformation on the phase currents Iv, Iu and Iw to obtain the α-axis current Iα and the β-axis current Iβ of the current carrier cycle.
[0130] S105 , determining the rotor angle increase Δθ of the current carrier cycle based on the α-axis current Iα and the β-axis current Iβ of the current carrier cycle and the α-axis voltage Vα and the β-axis voltage Vβ of the previous carrier cycle.
[0131] S106, calculating the motor current phase θ(n)=θ(n-1)+(Δθ) of the current carrier cycle.
[0132] S107, calculate Id=Iαcosθ(n)+Iβsinθ(n) and Iq=Iαsinθ(n)+Iβcosθ(n).
[0133] S108, the d-axis current Id and the q-axis current Iq of the current carrier cycle control the motor.
[0134] S109, calculating the first difference = Ts / 2-(T1+T2) / 2.
[0135] S110, determine whether the first difference is less than Ts / 4. If yes, execute step S111; if no, execute step S112.
[0136] S111, determine that the compensation weight is a first compensation weight. Execute step S113.
[0137] S112: Determine the compensation weight as a second compensation weight.
[0138] S113, calculating the current sampling phase compensation amount Ts_Current_Delay=Ts-((T2+T1)*compensation weight).
[0139] S114, determining a pole pair number influence coefficient based on the pole pair number;
[0140] S115, calculate the leading current phase compensation amount Spd_Lead_Factor=(spd_fb / spd_tar)*(pp / pp-1).
[0141] S116, calculate the target phase compensation amount = Ts_Current_Delay*Spd_Lead_Factor / Ts.
[0142] S117, performing coordinate transformation on the phase currents Iv, Iu and Iw to obtain the α-axis current Iα and the β-axis current Iβ of the current carrier cycle.
[0143] S118, determining the rotor angle increase Δθ of the current carrier cycle based on the α-axis current Iα and the β-axis current Iβ of the current carrier cycle and the α-axis voltage Vα and the β-axis voltage Vβ of the previous carrier cycle.
[0144] S119, calculate the motor current phase θ(n) of the current carrier cycle = θ(n-1) + (Δθ) * target phase compensation amount. Execute step S107.
[0145] S120, calculating the first difference = Ts / 2-(T1+T2) / 2.
[0146] S121, determine whether the first difference is less than Ts / 4. If yes, execute step S122; if no, execute step S123.
[0147] S122, determine the compensation weight as the first compensation weight. Execute step S124.
[0148] S123: Determine the compensation weight as a second compensation weight.
[0149] S124, calculating the current sampling phase compensation amount Ts_Current_Delay=Ts-((T2+T1)*compensation weight).
[0150] S125, calculate the target phase compensation amount = Ts_Current_Delay / Ts. Execute step S117.
[0151] The multi-pair low stacking motor has the advantage of low cost, but due to the increase in the number of pole pairs, it is difficult to develop in the field of household appliances with low carrier ratio control. The most important manifestation is that it is difficult to exert the design performance of the product under the condition of low carrier ratio close to discrete control, especially for products with unbalanced load such as compressors. To this end, this application proposes a current phase compensation method for single resistor sampling, which can improve the control performance without increasing any cost. Figure 7 This is the current effect diagram before and after compensation of the current loop control. Figure 7 It can be seen that under the same load, the current amplitude after compensation is smaller, the current margin is larger, and it is not easy to cause the motor to trip due to overcurrent.
[0152] In summary, according to the motor control method of the embodiment of the present invention, first, in the current carrier cycle, the single resistor sampling method is used to sample the phase current of the motor, and the sampling time of the phase current is determined, and the feedback speed and carrier ratio of the motor are determined. When the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, the target phase compensation amount of the motor current is determined based on the sampling time and the control operation time, and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, wherein the second preset carrier ratio is less than the first preset carrier ratio, the motor current is determined based on the target phase compensation amount and the phase current, and the motor is controlled based on the motor current. Therefore, the method can predict the magnitude of the feedback current phase delay according to the sampling time and the control operation time, and / or according to the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, so as to determine the target phase compensation amount to perform phase compensation on the motor current, thereby achieving the purpose of reducing current control overshoot and improving control performance without increasing application cost.
[0153] Corresponding to the above embodiment, the present invention also proposes a controller.
[0154] like Figure 8 As shown, the controller 100 of the embodiment of the present invention includes: a memory 110, a processor 120, and a program stored in the memory 110 and executable on the processor 120. When the processor 120 executes the program, the above-mentioned motor control method is implemented.
[0155] According to the controller of the embodiment of the present invention, when the processor executes the program, the above-mentioned motor control method is implemented. Based on the above-mentioned motor control method, the purpose of reducing current control overshoot and improving motor control performance can be achieved without increasing application costs.
[0156] Corresponding to the above embodiment, the present invention further proposes a motor control device.
[0157] like Fig. 9As shown, the motor control device according to the embodiment of the present invention may include: a current sampling module 10 , a position observer 20 , a phase compensation module 30 and a control module 40 .
[0158] Among them, the current sampling module 10 is used to sample the phase current of the motor using a single resistor sampling method in the current carrier cycle, and determine the sampling time of the phase current. The position observer 20 is used to determine the feedback speed of the motor. The phase compensation module 30 is used to determine the carrier ratio of the motor, and when the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, determine the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, determine the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio. The control module 40 is used to determine the motor current based on the target phase compensation amount and the phase current, and control the motor based on the motor current.
[0159] According to one embodiment of the present invention, the phase compensation module 30 determines the target phase compensation amount of the motor current based on the sampling time and the control operation time, and is specifically used to: determine the current sampling phase compensation amount based on the sampling time and the control operation time; determine the target phase compensation amount based on the current sampling phase compensation amount and the control operation time.
[0160] According to one embodiment of the present invention, the phase compensation module 30 determines the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, and is specifically used to: determine the current sampling phase compensation amount based on the sampling time and the control operation time; determine the leading current phase compensation amount based on the feedback speed and the number of pole pairs; determine the target phase compensation amount based on the current sampling phase compensation amount, the leading current phase compensation amount and the control operation time.
[0161] According to one embodiment of the present invention, the phase compensation module 30 determines the current sampling phase compensation amount based on the sampling time and the control operation time, and is specifically used to: determine the compensation weight based on the sampling time and the control operation time; determine the current sampling phase compensation amount based on the compensation weight, the sampling time and the control operation time.
[0162] According to one embodiment of the present invention, the sampling moment includes a first sampling moment and a second sampling moment, and the phase compensation module 30 determines the compensation weight based on the sampling moment and the control operation moment, and is specifically used to: obtain a first difference between one half of the control operation moment and the average of the first sampling moment and the second sampling moment; when the first difference is less than or equal to a preset threshold, determine the compensation weight to be the first compensation weight; when the first difference is greater than the preset threshold, determine the compensation weight to be the second compensation weight; wherein the second compensation weight is greater than the first compensation weight.
[0163] According to one embodiment of the present invention, the phase compensation module 30 determines the current sampling phase compensation amount based on the compensation weight, the sampling time and the control operation time, and is specifically used to: obtain the sum of the first sampling time and the second sampling time, and the product of the compensation weight to obtain the first phase compensation amount; obtain the difference between the control operation time and the first phase compensation amount to obtain the current sampling phase compensation amount.
[0164] According to an embodiment of the present invention, the phase compensation module 30 determines the target phase compensation amount based on the current sampling phase compensation amount and the control operation time, and is specifically used to: obtain the ratio of the current sampling phase compensation amount to the control operation time to obtain the target phase compensation amount.
[0165] According to one embodiment of the present invention, the phase compensation module 30 determines the leading current phase compensation amount based on the feedback speed and the pole pair number, and is specifically used to: determine the pole pair number influence coefficient based on the pole pair number; wherein the pole pair number influence coefficient is greater than 1; obtain the ratio of the feedback speed to the given speed of the motor, and the product of the ratio and the pole pair number influence coefficient to obtain the leading current phase compensation amount.
[0166] According to one embodiment of the present invention, the phase compensation module 30 determines the target phase compensation amount based on the current sampling phase compensation amount, the leading current phase compensation amount and the control operation time, and is specifically used to: obtain the product of the current sampling phase compensation amount and the leading current phase compensation amount, and the ratio with the control operation time to obtain the target phase compensation amount.
[0167] According to one embodiment of the present invention, the control module 40 determines the motor current based on the target phase compensation amount and the phase current, and is specifically used to: perform coordinate transformation on the phase current to obtain the α-axis current and β-axis current of the current carrier cycle; determine the rotor angle increase of the current carrier cycle based on the α-axis current and β-axis current of the current carrier cycle, and the α-axis voltage and β-axis voltage of the previous carrier cycle; determine the motor current phase of the current carrier cycle based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle, and the target phase compensation amount; determine the motor current of the current carrier cycle based on the motor current phase of the current carrier cycle, and the α-axis current and β-axis current of the current carrier cycle.
[0168] According to one embodiment of the present invention, the control module 40 determines the motor current phase of the current carrier cycle based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle and the target phase compensation amount, and is specifically used to: obtain the product of the rotor angle increment of the current carrier cycle and the target phase compensation amount, and the sum of the rotor angle of the previous carrier cycle to obtain the motor current phase of the current carrier cycle.
[0169] According to one embodiment of the present invention, the control module 40 determines the motor current of the current carrier cycle based on the motor current phase of the current carrier cycle, and the α-axis current and β-axis current of the current carrier cycle, and is specifically used to: based on the motor current phase of the current carrier cycle, perform coordinate transformation on the α-axis current and β-axis current of the current carrier cycle to obtain the d-axis current and q-axis current of the current carrier cycle; wherein the motor current includes the d-axis current and the q-axis current.
[0170] According to one embodiment of the present invention, the control module 40 controls the motor based on the motor current, and is specifically used to: obtain the DC bus voltage of the current carrier cycle; perform weak magnetic control on the motor based on the DC bus voltage of the current carrier cycle to obtain the d-axis given current of the current carrier cycle, and perform speed loop control on the motor based on the given speed and feedback speed of the motor to obtain the q-axis given current of the current carrier cycle; perform current loop control on the motor based on the d-axis given current, q-axis given current, d-axis current and q-axis current of the current carrier cycle to obtain the d-axis voltage and q-axis voltage of the current carrier cycle; determine the motor rotor angle of the current carrier cycle based on the motor rotor angle of the previous carrier cycle and the rotor angle increment of the current carrier cycle, and perform coordinate transformation on the d-axis voltage and q-axis voltage of the current carrier cycle based on the motor rotor angle of the current carrier cycle to obtain the α-axis voltage and β-axis voltage of the current carrier cycle; control the motor based on the α-axis voltage and β-axis voltage of the current carrier cycle.
[0171] According to an embodiment of the present invention, the control operation time is the overflow interrupt of the current carrier cycle.
[0172] According to one embodiment of the present invention, the number of pole pairs of the motor is greater than or equal to 5, and the stacking thickness of the motor is less than or equal to 27 nm.
[0173] It should be noted that for details not disclosed in the motor control device of the embodiment of the present invention, please refer to the details disclosed in the motor control method of the above embodiment of the present invention, and the details will not be repeated here.
[0174] According to the motor control device of the embodiment of the present invention, the current sampling module uses a single resistor sampling method to sample the phase current of the motor in the current carrier cycle, and determines the sampling time of the phase current, determines the feedback speed of the motor through the position observer, determines the carrier ratio of the motor through the phase compensation module, and determines the target phase compensation amount of the motor current based on the sampling time and the control operation time when the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, wherein the second preset carrier ratio is less than the first preset carrier ratio, and the control module determines the motor current based on the target phase compensation amount and the phase current, and controls the motor based on the motor current. Thus, the device predicts the magnitude of the feedback current phase delay according to the sampling time and the control operation time, and / or according to the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor, so as to determine the target phase compensation amount to perform phase compensation on the motor current, thereby achieving the purpose of reducing current control overshoot and improving control performance without increasing application cost.
[0175] Corresponding to the above embodiment, the present invention also proposes a compressor.
[0176] like Fig.10 As shown, the compressor 200 of the embodiment of the present invention includes the controller 100 described above, or as shown in FIG. Fig.11 As shown, the compressor 200 according to the embodiment of the present invention includes the above-mentioned motor control device 300 .
[0177] According to the compressor of the embodiment of the present invention, based on the above-mentioned controller, or based on the above-mentioned motor control device, the working performance of the compressor is improved and smooth control of the compressor is achieved without increasing the application cost.
[0178] Corresponding to the above embodiment, the present invention also proposes a household appliance.
[0179] like Fig.12 As shown, the household appliance 1000 of the embodiment of the present invention includes the controller 100 described above, or as Fig.13 As shown, the household appliance 1000 of the embodiment of the present invention includes the motor control device 300 as described above, or as Fig.14 As shown, the household appliance 1000 of the embodiment of the present invention includes the above-mentioned compressor 200. The household appliance 1000 may be a refrigerator, a washing machine, an air conditioner, etc.
[0180] According to the household appliance of the embodiment of the present invention, based on the above-mentioned controller, or the above-mentioned motor control device, or the above-mentioned compressor, the working performance of the household appliance is improved without increasing the application cost.
[0181] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0182] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0183] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0184] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0185] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0186] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A motor control method, It is characterized in that The method comprises: In the current carrier cycle, a single resistor sampling method is used to sample the phase current of the motor, and a sampling time of the phase current is determined, as well as a feedback speed and a carrier ratio of the motor; When the carrier ratio is less than the first preset carrier ratio and greater than the second preset carrier ratio, determining the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, When the carrier ratio is less than or equal to the second preset carrier ratio, the target phase compensation amount is determined based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio; The motor current is determined based on the target phase compensation amount and the phase current, and the motor is controlled based on the motor current.
2. The method according to claim 1, It is characterized in that The step of determining the target phase compensation amount of the motor current based on the sampling time and the control operation time includes: Determine a current sampling phase compensation amount based on the sampling time and the control operation time; The target phase compensation amount is determined based on the current sampling phase compensation amount and the control operation time.
3. The method according to claim 1, It is characterized in that The determining the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor includes: Determine a current sampling phase compensation amount based on the sampling time and the control operation time; Determining a leading current phase compensation amount based on the feedback speed and the pole pair number; The target phase compensation amount is determined based on the current sampling phase compensation amount, the leading current phase compensation amount, and the control operation time.
4. The method according to claim 2 or 3, It is characterized in that The determining of the current sampling phase compensation amount based on the sampling time and the control operation time includes: Determining a compensation weight based on the sampling time and the control operation time; The current sampling phase compensation amount is determined based on the compensation weight, the sampling time, and the control operation time.
5. The method according to claim 4, It is characterized in that The sampling time includes a first sampling time and a second sampling time, and determining the compensation weight based on the sampling time and the control operation time includes: Obtaining a first difference between one half of the control operation time and an average of the first sampling time and the second sampling time; When the first difference is less than or equal to a preset threshold, determining the compensation weight to be a first compensation weight; When the first difference is greater than the preset threshold, the compensation weight is determined to be a second compensation weight; wherein the second compensation weight is greater than the first compensation weight.
6. The method according to claim 5, It is characterized in that The determining the current sampling phase compensation amount based on the compensation weight, the sampling time and the control operation time includes: Obtaining a sum of the first sampling time and the second sampling time and a product of the sum and the compensation weight to obtain a first phase compensation amount; The current sampling phase compensation amount is obtained by acquiring a difference between the control operation time and the first phase compensation amount.
7. The method according to claim 2, It is characterized in that The determining the target phase compensation amount based on the current sampling phase compensation amount and the control operation time includes: The ratio of the current sampling phase compensation amount to the control operation time is obtained to obtain the target phase compensation amount.
8. The method according to claim 3, It is characterized in that The determining of the leading current phase compensation amount based on the feedback speed and the pole pair number includes: Determining a pole pair number influence coefficient based on the pole pair number; wherein the pole pair number influence coefficient is greater than 1; The leading current phase compensation amount is obtained by obtaining a ratio of the feedback speed to the given speed of the motor and a product of the ratio and the pole pair number influence coefficient.
9. The method according to claim 3 or 8, It is characterized in that The determining the target phase compensation amount based on the current sampling phase compensation amount, the leading current phase compensation amount and the control operation time includes: The target phase compensation amount is obtained by obtaining the product of the current sampling phase compensation amount and the leading current phase compensation amount and the ratio of the control operation time.
10. The method according to claim 1, It is characterized in that The determining the motor current based on the target phase compensation amount and the phase current comprises: Performing coordinate transformation on the phase current to obtain the α-axis current and the β-axis current of the current carrier cycle; Determine the rotor angle increase of the current carrier cycle based on the α-axis current and the β-axis current of the current carrier cycle and the α-axis voltage and the β-axis voltage of the previous carrier cycle; Determine the motor current phase of the current carrier cycle based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle and the target phase compensation amount; The motor current of the current carrier cycle is determined based on the motor current phase of the current carrier cycle and the α-axis current and the β-axis current of the current carrier cycle.
11. The method according to claim 10, It is characterized in that The step of determining the motor current phase of the current carrier cycle based on the rotor angle increase of the current carrier cycle, the motor rotor angle of the previous carrier cycle, and the target phase compensation amount includes: The product of the rotor angle increment of the current carrier cycle and the target phase compensation amount and the sum of the motor rotor angle of the previous carrier cycle are obtained to obtain the motor current phase of the current carrier cycle.
12. The method according to claim 10, It is characterized in that The determining the motor current of the current carrier cycle based on the motor current phase of the current carrier cycle and the α-axis current and the β-axis current of the current carrier cycle includes: Based on the motor current phase of the current carrier cycle, coordinate transformation is performed on the α-axis current and the β-axis current of the current carrier cycle to obtain the d-axis current and the q-axis current of the current carrier cycle; wherein the motor current includes the d-axis current and the q-axis current.
13. The method according to claim 12, It is characterized in that The controlling the motor based on the motor current comprises: Obtaining the DC bus voltage of the current carrier cycle; Performing magnetic weakening control on the motor based on the DC bus voltage of the current carrier cycle to obtain a d-axis given current of the current carrier cycle, and performing speed loop control on the motor based on the given speed of the motor and the feedback speed to obtain a q-axis given current of the current carrier cycle; Based on the d-axis given current, the q-axis given current, the d-axis current and the q-axis current of the current carrier cycle, the motor is subjected to current loop control to obtain the d-axis voltage and the q-axis voltage of the current carrier cycle; Based on the motor rotor angle of the previous carrier cycle and the rotor angle increment of the current carrier cycle, determine the motor rotor angle of the current carrier cycle, and based on the motor rotor angle of the current carrier cycle, perform coordinate transformation on the d-axis voltage and the q-axis voltage of the current carrier cycle to obtain the α-axis voltage and the β-axis voltage of the current carrier cycle; The motor is controlled based on the α-axis voltage and the β-axis voltage of the current carrier cycle.
14. The method according to claim 1, It is characterized in that The control operation time is the overflow interruption point of the current carrier cycle.
15. The method according to claim 1, It is characterized in that The number of pole pairs of the motor is greater than or equal to 5, and the stacking thickness of the motor is less than or equal to 27 nm.
16. A controller, It is characterized in that include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the motor control method according to any one of claims 1 to 15 is implemented.
17. A motor control device, It is characterized in that The device comprises: A current sampling module, used to sample the phase current of the motor using a single resistor sampling method in the current carrier cycle, and determine the sampling time of the phase current; A position observer, used to determine a feedback speed of the motor; A phase compensation module, used to determine the carrier ratio of the motor, and when the carrier ratio is less than a first preset carrier ratio and greater than a second preset carrier ratio, determine the target phase compensation amount of the motor current based on the sampling time and the control operation time; and / or, when the carrier ratio is less than or equal to the second preset carrier ratio, determine the target phase compensation amount based on the sampling time, the control operation time, the feedback speed and the number of pole pairs of the motor; wherein the second preset carrier ratio is less than the first preset carrier ratio; A control module is used to determine the motor current based on the target phase compensation amount and the phase current, and control the motor based on the motor current.
18. A compressor, It is characterized in that Includes the controller according to claim 16, or the motor control device according to claim 17.
19. A household appliance, It is characterized in that It comprises the controller according to claim 16, or the motor control device according to claim 17, or the compressor according to claim 18.
