Compressor inductance calculation method and device, compressor and storage medium
By positioning the electronic rotor in the compressor and adjusting the current control loop, and calculating the inductance value using the least squares identification algorithm, the complex problem of inductance detection in the prior art is solved, and efficient and accurate inductance value detection is achieved.
Patent Information
- Application Number
- CN202310533381.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, the compressor inductance parameter detection method is complex, and it is necessary to continuously adjust the position of the motor rotor, and the testing process is cumbersome.
By positioning the compressor electronic rotor to position zero, adjusting the d-axis current value in the current control loop, and calculating the inductance value using the least squares identification algorithm, it is possible to detect different currents without rotating the belt load and additional hardware. Inductance value.
The inductance detection method is simplified, the testing accuracy and efficiency are improved, the rotor jitter deviation caused by sudden changes in current is reduced, and the inductance value detection without rotary load is realized.
Smart Images

Figure CN118944513A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart home appliances, for example, to a method and device for calculating compressor inductance, a compressor, and a storage medium. Background Art
[0002] At present, in the motor FOC control (field-oriented control) control algorithm, since the rotor position and speed estimation depends on the motor parameters, the accuracy of the motor parameters directly affects the control performance, especially the motor inductance parameters are particularly important. However, how to obtain the motor inductance parameter value has become a difficult problem.
[0003] Related technology discloses that the inductance parameter value of the motor is often provided by the compressor manufacturer, and the method for the compressor manufacturer to detect the inductance parameter of the motor is: S1, install the stator and rotor of the motor on the test bench; S2, block the stator; S3, connect any two phases of the three-phase coil of the motor to the output end of the single-phase inverter; S4, adjust the inverter output voltage u, output current i, and record them together with the power data; S5, adjust the rotor position to the next position to block; S6, keep the output current i the same at each position, repeat steps S4 and S5 until the rotor rotates one cycle; S7, find the positions with maximum and minimum voltage according to the recorded data, and calculate L according to the following formula max and L min , L max That is L q Value, L min That is L d value,
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] When manufacturers test the compressor motor inductance, they need to constantly adjust the compressor motor rotor position, and the test method is complicated.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and device for calculating the inductance of a compressor, a compressor, and a storage medium, so that when measuring the inductance, the corresponding inductance values under different currents can be detected without the need for the compressor to rotate with actual load and additional hardware, thereby simplifying the testing method.
[0009] In some embodiments, the method includes: positioning the compressor electronic rotor to position zero; adjusting a d-axis current value in a compressor current control loop; and calculating an inductance value at a corresponding current value.
[0010] In some embodiments, the device includes: a positioning module configured to position the compressor electronic rotor to position zero; an adjustment module configured to adjust the d-axis current value in the compressor current control loop; and a calculation module configured to calculate the inductance value under the corresponding current value.
[0011] In some embodiments, the apparatus includes a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for calculating compressor inductance when running the program instructions.
[0012] In some embodiments, the compressor includes: a compressor body; the above-mentioned device for calculating the compressor inductance is installed on the compressor body.
[0013] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the above-mentioned method for calculating the compressor inductance is executed.
[0014] The method and device for calculating the inductance of a compressor, the compressor, and the storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:
[0015] The compressor motor rotor is positioned by current, and different current values in the compressor current control loop are changed to calculate the corresponding inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0016] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0018] Figure 1 is a loop block diagram of a motor control for compressor inductance calculation provided by an embodiment of the present disclosure;
[0019] Figure 2 is a schematic diagram of a method for calculating compressor inductance provided by an embodiment of the present disclosure;
[0020] Figure 3 is a schematic diagram of another method for calculating compressor inductance provided by an embodiment of the present disclosure;
[0021] Figure 4 is a schematic diagram of another method for calculating compressor inductance provided by an embodiment of the present disclosure;
[0022] Figure 5 is a schematic diagram of another method for calculating compressor inductance provided by an embodiment of the present disclosure;
[0023] Figure 6 is a schematic diagram of a device for calculating compressor inductance provided by an embodiment of the present disclosure;
[0024] Figure 7 is a schematic diagram of another device for calculating compressor inductance provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0026] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0027] Unless otherwise stated, the term "plurality" means two or more.
[0028] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0029] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0030] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0031] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.
[0032] In the disclosed embodiments, the terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.
[0033] Combination Figure 1 As shown, the motor control loop for compressor inductance calculation provided by the embodiment of the present disclosure includes a compressor current control loop. d * represents the d-axis reference current in the compressor current control loop, i q * represents the q-axis reference current in the compressor current control loop, u d * represents the d-axis reference voltage in the compressor current control loop, u q * represents the q-axis reference voltage in the compressor current control loop, i d represents the actual d-axis current in the compressor current control loop, i q Represents the actual q-axis current in the compressor current control loop.
[0034] Combination Figure 2 As shown, an embodiment of the present disclosure provides a method for calculating compressor inductance, comprising:
[0035] S201, the compressor positions the compressor electronic rotor to position zero.
[0036] S202, the compressor adjusts the d-axis current value in the compressor current control loop.
[0037] S203, the compressor calculates the inductance value under the corresponding current value.
[0038] By using the method for calculating the compressor inductance provided by the embodiment of the present disclosure, the compressor motor rotor can be positioned by current, and different current values in the compressor current control loop can be changed, thereby calculating the corresponding inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the need for the compressor to rotate with actual load and additional hardware, thereby simplifying the test method.
[0039] Optionally, the compressor positions the compressor electronic rotor to position zero, including: the compressor causes the d-axis reference current i in the compressor current control loop to d * The q-axis reference current i in the compressor current control loop is adjusted from zero to the first current value I1. q * is zero for a duration of T1. Specifically, the compressor makes the d-axis reference current i in the compressor current control loop d * Adjusting from zero to the first current value I1 includes: the compressor makes the d-axis reference current i in the compressor current control loop d * From zero linear change to the first current value I1, i d * The target value C n Every time the current loop adjustment cycle T0 changes, C n+1 =C n +I1×T0 / T1, n=0,1,2……. More specifically, the value of I1 can be 6A, the value of T1 can be 2s, and the value of T0 can be 100us. In this way, it is beneficial to position the electronic rotor of the compressor to position zero, and the rotor position remains fixed when the excitation signal is subsequently applied, thereby minimizing the deviation of the measurement result caused by the rotor jitter caused by the sudden application of current, thereby improving the test accuracy. The different current values in the compressor current control loop are changed to calculate the corresponding inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method.
[0040] Optionally, the compressor adjusts the d-axis current value in the compressor current control loop, including: the compressor sets i d * The compressor changes slowly from I1 to the second current value I2. d * Inject random current i rand , let i d * =I2+i rand . Specifically, irand The amplitude can be 0.5A, i rand =0.5A*(rand(seed n )%20),seed n =seed n-1 +1, n=0,1,2……,seed n The maximum value is 40. In this way, the compressor motor rotor is positioned by current, the d-axis current value in the compressor current control loop is changed, and a random small current change signal is injected, which is conducive to stimulating the inductance characteristics, thereby calculating the corresponding d-axis inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0041] Optionally, the compressor calculates the inductance value under the corresponding current value, including: the compressor calculates the d-axis inductance value under the corresponding current value. In this way, the compressor motor rotor is positioned by the current, and different current values in the compressor current control loop are changed, so as to calculate the corresponding d-axis inductance value. When measuring the d-axis inductance, the corresponding d-axis inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, thereby simplifying the test method.
[0042] Optionally, the compressor calculates the d-axis inductance value at the corresponding current value, including: the compressor calculates the d-axis inductance value at the corresponding current value according to a least squares identification algorithm. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding d-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the d-axis inductance value. When measuring the d-axis inductance, the corresponding d-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0043] Optionally, the compressor calculates the d-axis inductance value under the corresponding current value according to the least squares identification algorithm, including: the compressor records the injected random current i rand The corresponding current loop output V d_ref . Compressor sampling compressor phase current i u 、i v 、i w . will i u ,i v ,i w Perform 3 / 2 transformation to get i d ,i q , and i d (k+1)=i d . Compressor calculation y(k) = V d_ref (k)-R*i d(k). Compressor calculation φ T (k)=[i d (k+1)-i d (k)S(k)] T . Compressor calculation K(k)=Φ(k)P(k-1) / [1+φ T (k)P(k-1)Φ(k)]. Compressor calculation P(k)=[1-K(k)φ T (k)]P(k-1). Compressor calculation θ(k)=θ(k-1)+K(k)[y(k)-φ T (k)θ(k-1)]. Compressor iteration P(k-1)=P(k),θ(k-1)=θ(k), V d_ref (k) = V d_ref ,i d (k) = i d The compressor determines that ∈(k) = |θ(k) - θ(k-1) | < A duration T, then θ(k) is taken as the final determination value. T (k) = [L d / T s ΔV d ] Calculate the d-axis inductance L at the corresponding current value d Among them, T s is the interval time of sampling iterative calculation. Specifically, the value range of A is [0.000001H, 0.00001H], and the value range of T is [1s, +∞). More specifically, the value of A is 0.000001H, and the value of T is 1s. The value of A can be adjusted and set according to the accuracy requirements to be estimated and the sampling accuracy of the motor current, which are not listed here one by one. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding d-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the d-axis inductance value. When measuring the d-axis inductance, the corresponding d-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0044] Optionally, the compressor adjusts the d-axis current value in the compressor current control loop, including: the compressor sets i d * Slowly change from I1 to zero. In this way, the compressor motor rotor is positioned by current, and the d-axis current value in the compressor current control loop is changed, which is conducive to better injecting random small current change signals, and is conducive to better stimulating the inductance characteristics, so as to calculate the corresponding inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0045] Optionally, the compressor is set to d * After I1 changes slowly to zero, it also includes: the compressor adjusts the q-axis current value in the compressor current control loop. In this way, the compressor motor rotor is positioned by the current, the d-axis current value in the compressor current control loop is changed, and then the q-axis current value in the compressor current control loop is changed, which is conducive to better injecting random small current change signals, and is conducive to better stimulating the inductance characteristics, so as to calculate the corresponding q-axis inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method.
[0046] Optionally, the compressor adjusts the q-axis current value in the compressor current control loop, including: the compressor sets i q * Slowly change from zero to I2. The compressor moves to i q * The random current i is injected into rand , let i d * =I2+i rand . Specifically, i rand The amplitude can be 0.5A, i rand =0.5A*(rand(seed n )%20),seed n =seed n-1 +1, n=0,1,2……,seed n The maximum value is 40. In this way, the compressor motor rotor is positioned by current, the d-axis current value in the compressor current control loop is changed, and then the q-axis current value in the compressor current control loop is changed, and a random small current change signal is injected, which is conducive to better stimulating the inductance characteristics, thereby calculating the corresponding q-axis inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0047] Optionally, the compressor calculates the inductance value under the corresponding current value, including: the compressor calculates the q-axis inductance value under the corresponding current value. In this way, the compressor motor rotor is positioned by the current, and different d-axis current values and q-axis current values in the compressor current control loop are changed, so as to calculate the corresponding q-axis inductance value. When measuring the inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, thereby simplifying the test method.
[0048] Optionally, the compressor calculates the q-axis inductance value under the corresponding current value, including: the compressor calculates the q-axis inductance value under the corresponding current value according to the least squares identification algorithm. In this way, the compressor motor rotor is positioned by the current, the different d-axis current values and q-axis current values in the compressor current control loop are changed, and then the corresponding q-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the q-axis inductance value. When measuring the inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0049] Optionally, the compressor calculates the q-axis inductance value under the corresponding current value according to the least squares identification algorithm, including: the compressor records the injected random current i rand The corresponding current loop output V d_ref . Compressor sampling compressor phase current i u 、i v 、i w . will i u ,i v ,i w Perform 3 / 2 transformation to get i d ,i q , and i q (k+1)=i q . Compressor calculation y(k) = V q_ref (k)-R*i q (k). Compressor calculation φ T (k)=[i q (k+1)-i q (k)S(k)] T . Compressor calculation K(k)=Φ(k)P(k-1) / [1+φ T (k)P(k-1)Φ(k)]. Compressor calculation P(k)=[1-K(k)φ T (k)]P(k-1). Compressor calculation θ(k)=θ(k-1)+K(k)[y(k)-φ T (k)θ(k-1)]. Compressor iteration P(k-1)=P(k),θ(k-1)=θ(k), V q_ref (k) = V q_ref ,i q (k) = i q The compressor determines that ∈(k) = |θ(k) - θ(k-1) | < A duration T, then θ(k) is taken as the final determination value. T (k) = [L q / T s ΔV q ] Calculate the q-axis inductance L at the corresponding current value qAmong them, T s is the interval time of sampling iterative calculation. Specifically, the value range of A is [0.000001H, 0.00001H], and the value range of T is [1s, +∞). More specifically, the value of A is 0.000001H, and the value of T is 1s. The value of A can be adjusted and set according to the accuracy requirements to be estimated and the sampling accuracy of the motor current, which are not listed here one by one. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding q-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the q-axis inductance value. When measuring the q-axis inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0050] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for calculating the inductance of a compressor, comprising:
[0051] S301, the compressor controls the d-axis reference current i in the compressor current control loop. d * The q-axis reference current i in the compressor current control loop is adjusted from zero to the first current value I1. q * is zero and lasts for T1.
[0052] S302, compressor command i d * The current gradually changes from I1 to the second current value I2.
[0053] S303, compressor to i d * Inject random current i rand , let i d * =I2+i rand .
[0054] S304, the compressor calculates the d-axis inductance value corresponding to the current value.
[0055] The method for calculating the compressor inductance provided by the embodiment of the present disclosure can be used to help position the compressor electronic rotor to position zero, keep the rotor position fixed when the excitation signal is subsequently applied, minimize the deviation of the measurement result caused by the rotor jitter caused by the sudden application of current, and improve the test accuracy. Changing the d-axis current value in the compressor current control loop and injecting a random small current change signal can help stimulate the inductance characteristics, thereby calculating the corresponding d-axis inductance value. When measuring the d-axis inductance, the corresponding d-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method.
[0056] Optionally, the compressor calculates the d-axis inductance value at the corresponding current value according to the least squares identification algorithm, including the compressor recording the injection of random current i rand The corresponding current loop output V d_ref . Compressor sampling compressor phase current i u 、i v 、i w . will i u ,i v ,i w Perform 3 / 2 transformation to get i d ,i q , and i d (k+1)=i d . Compressor calculation y(k) = V d_ref (k)-R*i d (k). Compressor calculation φ T (k)=[i d (k+1)-i d (k)S(k)] T . Compressor calculation K(k)=Φ(k)P(k-1) / [1+φ T (k)P(k-1)Φ(k)]. Compressor calculation P(k)=[1-K(k)φ T (k)]P(k-1). Compressor calculation θ(k)=θ(k-1)+K(k)[y(k)-φ T (k)θ(k-1)]. Compressor iteration P(k-1)=P(k),θ(k-1)=θ(k), V d_ref (k) = V d_ref ,i d (k) = i d The compressor determines that ∈(k) = |θ(k) - θ(k-1) | < A duration T, then θ(k) is taken as the final determination value. T (k) = [L d / T s ΔV d ] Calculate the d-axis inductance L at the corresponding current value d Among them, T sis the interval time of sampling iterative calculation. Specifically, the value range of A is [0.000001H, 0.00001H], and the value range of T is [1s, +∞). More specifically, the value of A is 0.000001H, and the value of T is 1s. The value of A can be adjusted and set according to the accuracy requirements to be estimated and the sampling accuracy of the motor current, which are not listed here one by one. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding d-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the d-axis inductance value. When measuring the d-axis inductance, the corresponding d-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0057] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for calculating the inductance of a compressor, comprising:
[0058] S401, the compressor controls the d-axis reference current i in the compressor current control loop. d * The q-axis reference current i in the compressor current control loop is adjusted from zero to the first current value I1. q * is zero and lasts for T1.
[0059] S402, compressor command i d * Slowly change from I1 to zero.
[0060] S403, the compressor adjusts the q-axis current value in the compressor current control loop.
[0061] S404, the compressor calculates the q-axis inductance value corresponding to the current value.
[0062] The method for calculating the compressor inductance provided by the embodiment of the present disclosure can be used to help position the compressor electronic rotor to position zero, keep the rotor position fixed when the excitation signal is subsequently applied, minimize the deviation of the measurement result caused by the rotor jitter caused by the sudden application of current, and improve the test accuracy. Changing the d-axis current value in the compressor current control loop, then changing the q-axis current value in the compressor current control loop, and injecting a random small current change signal can help stimulate the inductance characteristics, thereby calculating the corresponding q-axis inductance value. When measuring the q-axis inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0063] Optionally, the compressor calculates the q-axis inductance value under the corresponding current value according to the least squares identification algorithm, including: the compressor records the injected random current irand The corresponding current loop output V d_ref . Compressor sampling compressor phase current i u 、i v 、i w . will i u ,i v ,i w Perform 3 / 2 transformation to get i d ,i q , and i q (k+1)=i q . Compressor calculation y(k) = V q_ref (k)-R*i q (k). Compressor calculation φ T (k)=[i q (k+1)-i q (k)S(k)] T . Compressor calculation K(k)=Φ(k)P(k-1) / [1+φ T (k)P(k-1)Φ(k)]. Compressor calculation P(k)=[1-K(k)φ T (k)]P(k-1). Compressor calculation θ(k)=θ(k-1)+K(k)[y(k)-φ T (k)θ(k-1)]. Compressor iteration P(k-1)=P(k),θ(k-1)=θ(k), V q_ref (k) = V q_ref ,i q (k) = i q The compressor determines that ∈(k) = |θ(k) - θ(k-1) | < A duration T, then θ(k) is taken as the final determination value. T (k) = [L q / T s ΔV q ] Calculate the q-axis inductance L at the corresponding current value q Among them, T sis the interval time of sampling iterative calculation. Specifically, the value range of A is [0.000001H, 0.00001H], and the value range of T is [1s, +∞). More specifically, the value of A is 0.000001H, and the value of T is 1s. The value of A can be adjusted and set according to the accuracy requirements to be estimated and the sampling accuracy of the motor current, which are not listed here one by one. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding q-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the q-axis inductance value. When measuring the q-axis inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0064] Combination Figure 5 As shown, the embodiment of the present disclosure provides another method for calculating the inductance of a compressor, comprising:
[0065] S501, the compressor controls the d-axis reference current i in the compressor current control loop. d * The q-axis reference current i in the compressor current control loop is adjusted from zero to the first current value I1. q * is zero and lasts for T1.
[0066] S502, compressor command i d * Slowly change from I1 to zero.
[0067] S503, compressor command i q * Slowly change from zero to I2.
[0068] S504, compressor to i q * The random current i is injected into rand , let i d * =I2+i rand .
[0069] S505, the compressor calculates the q-axis inductance value corresponding to the current value.
[0070] The method for calculating the compressor inductance provided by the embodiment of the present disclosure can be used to help position the compressor electronic rotor to position zero, keep the rotor position fixed when the excitation signal is subsequently applied, minimize the deviation of the measurement result caused by the rotor jitter caused by the sudden application of current, and improve the test accuracy. Changing the d-axis current value in the compressor current control loop, then changing the q-axis current value in the compressor current control loop, and injecting a random small current change signal can help stimulate the inductance characteristics, thereby calculating the corresponding q-axis inductance value. When measuring the q-axis inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load of the compressor rotation and additional hardware, which simplifies the test method.
[0071] Optionally, the compressor calculates the q-axis inductance value under the corresponding current value according to the least squares identification algorithm, including: the compressor records the injected random current i rand The corresponding current loop output V d_ref . Compressor sampling compressor phase current i u 、i v 、i w . will i u ,i v ,i w Perform 3 / 2 transformation to get i d ,i q , and i q (k+1)=i q . Compressor calculation y(k) = V q_ref (k)-R*i q (k). Compressor calculation φ T (k)=[i q (k+1)-i q (k)S(k)] T . Compressor calculation K(k)=Φ(k)P(k-1) / [1+φ T (k)P(k-1)Φ(k)]. Compressor calculation P(k)=[1-K(k)φ T (k)]P(k-1). Compressor calculation θ(k)=θ(k-1)+K(k)[y(k)-φ T (k)θ(k-1)]. Compressor iteration P(k-1)=P(k),θ(k-1)=θ(k), V q_ref (k) = V q_ref ,i q (k) = i q The compressor determines that ∈(k) = |θ(k) - θ(k-1) | < A duration T, then θ(k) is taken as the final determination value. T (k) = [L q / T s ΔV q] Calculate the q-axis inductance L at the corresponding current value q Among them, T s is the interval time of sampling iterative calculation. Specifically, the value range of A is [0.000001H, 0.00001H], and the value range of T is [1s, +∞). More specifically, the value of A is 0.000001H, and the value of T is 1s. The value of A can be adjusted and set according to the accuracy requirements to be estimated and the sampling accuracy of the motor current, which are not listed here one by one. In this way, the compressor motor rotor is positioned by the current, the different current values in the compressor current control loop are changed, and then the corresponding q-axis inductance value is calculated according to the least squares identification algorithm, which is conducive to more accurate detection of the q-axis inductance value. When measuring the q-axis inductance, the corresponding q-axis inductance value under different currents can be detected without the actual load and additional hardware of the compressor rotation, which simplifies the test method and improves the test accuracy.
[0072] Combination Figure 6 As shown, the embodiment of the present disclosure provides a device 200 for calculating the inductance of a compressor, comprising a positioning module 601, an adjustment module 602 and a calculation module 603. The positioning module 601 is configured to position the electronic rotor of the compressor to position zero. The adjustment module 602 is configured to adjust the d-axis current value in the compressor current control loop. The calculation module 603 is configured to calculate the inductance value under the corresponding current value.
[0073] The device for calculating the compressor inductance provided by the embodiment of the present disclosure is used to position the compressor motor rotor through current, change different current values in the compressor current control loop, and thus calculate the corresponding inductance value. When measuring the inductance, the corresponding inductance value under different currents can be detected without the need for the compressor to rotate with actual load and additional hardware, thereby simplifying the test method.
[0074] Combination Figure 7 As shown, the embodiment of the present disclosure provides a device 300 for calculating compressor inductance, including a processor 700 and a memory 701. Optionally, the device may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the method for calculating the compressor inductance of the above embodiment.
[0075] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0076] The memory 701 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 700 executes the function application and data processing by running the program instructions / modules stored in the memory 701, that is, the method for calculating the compressor inductance in the above embodiment is implemented.
[0077] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.
[0078] The embodiment of the present disclosure provides a compressor, including: a compressor body, and the above-mentioned device 200 (300) for calculating the compressor inductance. The device 200 (300) for calculating the compressor inductance is installed on the compressor body. The installation relationship described here is not limited to placement inside the compressor, but also includes installation connections with other components of the compressor, including but not limited to physical connections, electrical connections or signal transmission connections. It can be understood by those skilled in the art that the device 200 (300) for calculating the compressor inductance can be adapted to a feasible compressor body, thereby realizing other feasible embodiments.
[0079] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above method for calculating the compressor inductance.
[0080] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0081] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0082] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0083] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0084] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0085] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for calculating compressor inductance, characterized in that: include: Position the compressor electronic rotor to position zero; Adjust the d-axis current value in the compressor current control loop; Calculate the inductance value at the corresponding current value.
2. The method according to claim 1, characterized in that Electronically position the compressor rotor to zero position, including: Let the d-axis reference current i in the compressor current control loop be d * The q-axis reference current i in the compressor current control loop is adjusted from zero to the first current value I1. q * is zero and lasts for T1.
3. The method according to claim 1, characterized in that Adjust the d-axis current value in the compressor current control loop, including: Let i d * Slowly change from I1 to a second current value I2; Xiangi d * Inject random current i rand , let i d * =I2+i rand .
4. The method according to claim 1, characterized in that Adjust the d-axis current value in the compressor current control loop, including: Let i d * Slowly change from I1 to zero.
5. The method according to claim 4, characterized in that Let i d * After I1 slowly changes to zero, it also includes: Adjust the q-axis current value in the compressor current control loop.
6. The method according to claim 5, characterized in that Adjust the q-axis current value in the compressor current control loop, including: Let i q * Slowly change from zero to I2; Xiangi q * The random current i is injected into rand , let i d * =I2+i rand .
7. A device for calculating compressor inductance, characterized in that: include: a positioning module configured to electronically position a rotor of the compressor to position zero; An adjustment module configured to adjust a d-axis current value in a compressor current control loop; The calculation module is configured to calculate the inductance value under the corresponding current value.
8. A device for calculating compressor inductance, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for calculating compressor inductance according to any one of claims 1 to 6 when running the program instructions.
9. A compressor, characterized in that: include: Compressor body; The device for calculating the compressor inductance as claimed in claim 7 or 8 is installed on the compressor body.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for calculating compressor inductance according to any one of claims 1 to 6 is executed.
