Air conditioner compressor control method and device, electronic equipment and medium
By obtaining the quadrature-axis and direct-axis currents of the air-conditioning compressor for voltage compensation, the target output voltage is generated and the three-phase inverter of the air-conditioning compressor is controlled. This solves the noise and speed fluctuation problems when the air-conditioning compressor operates at low speed, and achieves a more stable operation. Good noise reduction effect and stability.
Patent Information
- Application Number
- CN202310204088.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-03
AI Technical Summary
The air conditioning compressor has serious torque pulsation when running at low speed, resulting in noise and speed fluctuations. The existing manual compensation strategy has a low degree of automation and poor noise reduction effect.
By obtaining the quadrature axis and direct axis current of the air conditioning compressor, calculate the quadrature axis and direct axis compensation voltage, perform voltage compensation, generate the target output voltage, and control the operation of the air conditioning compressor through the three-phase inverter to realize the quadrature axis and direct axis compensation. The all-round torque ripple of the shaft is canceled out.
It effectively reduces noise, improves comfort and reliability during use of the air conditioner, avoids the risk of pipeline cracking and malfunction shutdown, and improves the stability of the air conditioner operation.
Smart Images

Figure CN118589918A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of household appliances, and in particular to an air-conditioning compressor control method, device, electronic equipment and medium. Background Art
[0002] The air conditioning compressor compresses and drives the refrigerant in the air conditioning refrigerant circuit. The compressor needs to go through the suction, compression and exhaust processes in one cycle of the rotor, which causes the load of the compressor to change unevenly when it is working. Especially when running at low speed, the torque pulsation phenomenon is more serious, and the speed fluctuation is also more serious, which may cause serious noise. To alleviate this situation, manual compensation strategies are usually adopted at present. However, the existing methods are not effective in reducing noise. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an air-conditioning compressor control method, device, electronic equipment and medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for controlling an air-conditioning compressor is provided, the method comprising: obtaining a quadrature-axis current and a direct-axis current of the air-conditioning compressor; obtaining a quadrature-axis compensation voltage according to the quadrature-axis current, and obtaining a direct-axis compensation voltage according to the direct-axis current; compensating the output voltage of the air-conditioning compressor by the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage; generating a control signal according to the target output voltage, and controlling the three-phase inverter of the air-conditioning compressor by the control signal to control the air-conditioning compressor to operate according to the target output voltage.
[0005] Optionally, obtaining the cross-axis current and the direct-axis current of the air-conditioning compressor includes: obtaining the three-phase current output by the air-conditioning compressor in a three-phase stationary coordinate system; performing coordinate transformation on the three-phase current in the three-phase stationary coordinate system to obtain the cross-axis current and the direct-axis current in the cross-axis and direct-axis coordinate systems.
[0006] Optionally, obtaining the quadrature-axis compensation voltage according to the quadrature-axis current includes: obtaining the extreme value of the quadrature-axis cosine component according to the quadrature-axis current, and obtaining a first cosine compensation voltage according to the extreme value of the quadrature-axis cosine component; obtaining the extreme value of the quadrature-axis sine component according to the quadrature-axis current, and obtaining a first sinusoidal compensation voltage according to the extreme value of the quadrature-axis sine component; and calculating the sum of the first cosine compensation voltage and the first sinusoidal compensation voltage to obtain the quadrature-axis compensation voltage.
[0007] Optionally, obtaining the extreme value of the cross-axis cosine component according to the cross-axis current includes: filtering the AC component in the cross-axis current to obtain the DC component in the cross-axis current; calculating the difference between the cross-axis current and the DC component in the cross-axis current to obtain the AC component of the cross-axis current; multiplying the cosine coefficient by the AC component of the cross-axis current to obtain a first multiplication result; filtering the AC component in the first multiplication result to obtain a first filtering result; using the first filtering result as the extreme value of the cross-axis cosine component; obtaining the first cosine compensation voltage according to the extreme value of the cross-axis cosine component includes: performing PI mediation on the extreme value of the cross-axis cosine component to obtain a first mediation result, wherein the first mediation result represents the coefficient of the cosine component of the compensation voltage on the cross-axis; multiplying the first mediation result by a first compensation parameter to obtain the first cosine compensation voltage.
[0008] Optionally, obtaining the extreme value of the cross-axis sinusoidal component according to the cross-axis current includes: filtering the AC component in the cross-axis current to obtain the DC component in the cross-axis current; calculating the difference between the cross-axis current and the DC component in the cross-axis current to obtain the AC component of the cross-axis current; multiplying the sinusoidal coefficient by the AC component of the cross-axis current to obtain a second multiplication result; filtering the AC component in the second multiplication result to obtain a second filtering result; using the second filtering result as the extreme value of the cross-axis sinusoidal component; obtaining the first sinusoidal compensation voltage according to the extreme value of the cross-axis sinusoidal component includes: performing PI mediation on the extreme value of the cross-axis sinusoidal component to obtain a second mediation result, wherein the second mediation result represents the coefficient of the sinusoidal component of the compensation voltage on the cross-axis; multiplying the second mediation result by a second compensation parameter to obtain the first sinusoidal compensation voltage.
[0009] Optionally, obtaining the direct-axis compensation voltage according to the direct-axis current includes: obtaining the extreme value of the direct-axis cosine component according to the direct-axis current, and obtaining a second cosine compensation voltage according to the extreme value of the direct-axis cosine component; obtaining the extreme value of the direct-axis sine component according to the direct-axis current, and obtaining a second sinusoidal compensation voltage according to the extreme value of the direct-axis sine component; and calculating the sum of the second cosine compensation voltage and the second sinusoidal compensation voltage to obtain the direct-axis compensation voltage.
[0010] Optionally, obtaining the extreme value of the direct-axis cosine component according to the direct-axis current includes: filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current; calculating the difference between the direct-axis current and the DC component in the direct-axis current to obtain the AC component of the direct-axis current; multiplying the cosine coefficient by the AC component of the direct-axis current to obtain a third multiplication result; filtering the AC component in the third multiplication result to obtain a third filtering result; using the third filtering result as the extreme value of the direct-axis cosine component; obtaining the second cosine compensation voltage according to the extreme value of the direct-axis cosine component includes: performing PI mediation on the extreme value of the direct-axis cosine component to obtain a third mediation result, wherein the third mediation result represents the coefficient of the cosine component of the compensation voltage on the direct axis; multiplying the third mediation result by the first compensation parameter to obtain the second cosine compensation voltage.
[0011] Optionally, obtaining the extreme value of the direct-axis sinusoidal component according to the direct-axis current includes: filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current; calculating the difference between the direct-axis current and the DC component in the direct-axis current to obtain the AC component of the direct-axis current; multiplying the sinusoidal coefficient by the AC component of the direct-axis current to obtain a fourth multiplication result; filtering the AC component in the fourth multiplication result to obtain a fourth filtering result; using the fourth filtering result as the extreme value of the direct-axis sinusoidal component; obtaining the second sinusoidal compensation voltage according to the extreme value of the direct-axis sinusoidal component includes: performing PI mediation on the extreme value of the direct-axis sinusoidal component to obtain a fourth mediation result, wherein the fourth mediation result represents the coefficient of the sinusoidal component of the compensation voltage on the direct axis; multiplying the fourth mediation result by the second compensation parameter to obtain the second sinusoidal compensation voltage.
[0012] Optionally, the cosine coefficient is 2cos(kθ), and the first compensation parameter is cos(kθ+θ com ), the sine coefficient is 2sin(kθ), the second compensation parameter sin(kθ+θ com ), where k is the harmonic order of the direct axis current, k is a positive integer, θ is the mechanical angle of the rotor of the air-conditioning compressor, θ com is the phase compensation angle.
[0013] Optionally, the output voltage includes a quadrature-axis voltage and a direct-axis voltage, and the output voltage of the air-conditioning compressor is compensated by the quadrature-axis compensation voltage and the direct-axis compensation voltage. Before obtaining the target output voltage, the method further includes: obtaining the three-phase voltage of the air-conditioning compressor output in a three-phase stationary coordinate system; performing coordinate changes on the three-phase voltage in the three-phase stationary coordinate system to obtain the quadrature-axis voltage and the direct-axis voltage in the quadrature-axis and direct-axis coordinate systems.
[0014] Optionally, compensating the output voltage of the air-conditioning compressor by the cross-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage includes: compensating the cross-axis voltage by the cross-axis compensation voltage to obtain a compensated cross-axis voltage; compensating the direct-axis voltage by the direct-axis compensation voltage to obtain a compensated direct-axis voltage; performing coordinate transformation on the compensated cross-axis voltage in an cross-direct-axis coordinate system to obtain a first voltage in a two-phase stationary coordinate system; performing coordinate transformation on the compensated direct-axis voltage in an cross-direct-axis coordinate system to obtain a second voltage in a two-phase stationary coordinate system; using the first voltage as a first target output voltage, and using the second voltage as a second target output voltage.
[0015] Optionally, generating the control signal according to the target output voltage includes: generating the control signal through an SVPWM control algorithm according to the first target output voltage and the second target output voltage.
[0016] According to a second aspect of an embodiment of the present disclosure, an air-conditioning compressor control device is provided, and the air-conditioning compressor control device includes: a current acquisition module, used to acquire the quadrature-axis current and the direct-axis current of the air-conditioning compressor; a compensation voltage acquisition module, used to obtain a quadrature-axis compensation voltage according to the quadrature-axis current, and to obtain a direct-axis compensation voltage according to the direct-axis current; a compensation module, used to compensate the output voltage of the air-conditioning compressor by the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage; and a control module, used to generate a control signal according to the target output voltage, and control the three-phase inverter of the air-conditioning compressor by the control signal, so as to control the air-conditioning compressor to operate according to the target output voltage.
[0017] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to: implement the steps of the method described in the first aspect when executing the instructions.
[0018] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the air-conditioning compressor control method provided in the first aspect of the present disclosure are implemented.
[0019] The present disclosure provides an air-conditioning compressor control method, device, electronic device and medium, which first obtain the quadrature-axis current and direct-axis current of the air-conditioning compressor, and then obtain the quadrature-axis compensation voltage according to the quadrature-axis current, the quadrature-axis compensation voltage is used to compensate the quadrature axis to offset part of the torque fluctuation of the quadrature axis, and obtain the direct-axis compensation voltage according to the direct-axis current to offset part of the torque fluctuation of the direct axis; the voltage output by the air-conditioning compressor is compensated by the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage; a control signal is generated according to the target output voltage, and the three-phase inverter of the air-conditioning compressor is controlled by the control signal to control the air-conditioning compressor to output according to the target output voltage, that is, the air-conditioning compressor works according to the target output voltage, and working with the target output voltage can not only ensure the normal operation of the air-conditioning compressor, but also offset the torque fluctuation from the quadrature axis and the direct axis in all directions, reduce the speed fluctuation, and thus achieve a better noise reduction effect.
[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0022] Figure 1 is a flow chart showing a method for controlling an air-conditioning compressor according to an exemplary embodiment;
[0023] Figure 2 According to an exemplary embodiment, Figure 1 A flowchart of the steps of step S110 in FIG.
[0024] Figure 3 According to an exemplary embodiment, Figure 1 A flowchart of the steps of step S120 in FIG.
[0025] Figure 4 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S121 in FIG.
[0026] Figure 5 It is a block diagram of the process of obtaining the quadrature-axis compensation voltage;
[0027] Figure 6 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S121 in FIG.
[0028] Figure 7 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S122 in FIG.
[0029] Figure 8 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S122 in FIG.
[0030] Fig. 9 According to an exemplary embodiment, Figure 1 A flowchart of the steps of step S120 in FIG.
[0031] Fig.10 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S124 in FIG.
[0032] Fig.11 is a block diagram of the direct axis compensation voltage acquisition process;
[0033] Fig.12 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S124 in FIG.
[0034] Fig.13 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S125 in FIG.
[0035] Fig.14 According to an exemplary embodiment, Figure 3 A flowchart of the steps of step S125 in FIG.
[0036] Fig.15 It is a block diagram of the control system of the air conditioning compressor;
[0037] Fig.16 is a block diagram of an air-conditioning compressor control device according to an exemplary embodiment;
[0038] Fig.17 The invention is a block diagram of an electronic device for an air-conditioning compressor control method according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0040] The air conditioning compressor plays the role of compressing and driving the refrigerant in the air conditioning refrigerant circuit. The single-rotor compressor in the compressor has the advantages of simple structure, light weight and high reliability. Therefore, the single-rotor compressor is widely used in household variable frequency air conditioning control systems. The compressor needs to go through the suction, compression and exhaust processes in one cycle of the rotor, which causes the load of the compressor to change unbalancedly during operation, and the torque will change accordingly, which is particularly obvious for the single-rotor compressor. It can be understood that in some processes, the load of the compressor becomes higher, and the rotor speed of the compressor decreases under the same voltage; while in some processes, the load of the compressor decreases, and the rotor speed of the compressor increases under the same voltage.
[0041] When the compressor rotor is running at a low frequency, the compressor speed will fluctuate periodically due to the periodic changes in load, compression, exhaust, and intake, which will make the torque pulsation phenomenon more serious, leading to increased noise and stress, affecting the user experience, and even more seriously causing the pipes in the air conditioner to break. When the load of the compressor is relatively large and it is running at a low frequency, the load fluctuation will cause the compressor speed to fluctuate greatly, which may cause a malfunction and shutdown in severe cases.
[0042] To alleviate the above situation, torque compensation can be performed. At present, the main strategy adopted is manual compensation, that is, manually debugging the cross-axis current iq and the corresponding torque compensation angle that need to be compensated under different test conditions, and giving the cross-axis current iq with current compensation in advance to offset part of the torque fluctuation, thereby reducing noise and stress.
[0043] However, the inventors found that the current manual compensation strategy has a low degree of automation. Moreover, only the quadrature axis current iq and the corresponding angle are compensated, which can achieve a certain noise reduction purpose. However, for aging compressors or air conditioners with relatively high noise, the noise reduction effect of the existing noise reduction method needs to be improved.
[0044] After long-term research, the inventor proposed an air-conditioning compressor control method, device, electronic device and medium, which converts the problem of the studied compressor into the direct- and quadrature-axis coordinate system, and compensates for both the direct axis and the quadrature axis, thereby achieving more comprehensive compensation, offsetting some torque fluctuations, significantly alleviating speed fluctuations, reducing noise, and improving comfort and reliability during the use of air conditioners. Below, the air-conditioning compressor control method, device, electronic device and medium are described in detail.
[0045] The air conditioning compressor is a type of permanent magnet synchronous motor, and its mechanical motion equation is as follows:
[0046]
[0047] In formula (1), T eis the electromagnetic torque of the compressor, T l is the load torque of the compressor, B is the viscous friction coefficient of the compressor, w is the angular velocity of the compressor, and J is the mechanical moment of inertia.
[0048] By performing Laplace transform on formula (1), we can get formula (2), as follows:
[0049]
[0050] Formula (2) shows the relationship between torque and speed (i.e., w). From formula (2), it can be concluded that the torque fluctuation of the air-conditioning compressor will eventually cause speed fluctuation, and speed fluctuation is the external manifestation of torque fluctuation. Since the phenomenon of torque pulsation is not as simple as speed fluctuation, in the subsequent process, torque pulsation will be reflected by speed fluctuation.
[0051] The torque pulsation of the air-conditioning compressor changes periodically with the mechanical angle. When the compressor runs at a constant frequency, the electromagnetic torque T of the motor can be calculated through Fourier analysis. e Decomposed into a DC component and multiple harmonic components, as shown in formula (3):
[0052]
[0053] Where a0 is the DC component of the electromagnetic torque expansion, n is the harmonic order, and n can be 0, 1, 2, 3, etc. n is the extreme value of the cosine component corresponding to the nth harmonic after the electromagnetic torque is expanded, b n is the extreme value of the sinusoidal component corresponding to the nth harmonic after the electromagnetic torque is expanded, and θ is the mechanical angle of the rotor.
[0054] Electromagnetic torque T e The DC component in the electromagnetic torque is used to overcome the load torque, friction torque and provide angular acceleration. e Several harmonic contents in the torque will cause periodic pulsation of the torque. Therefore, the focus of the present disclosure is to compensate for the harmonics that cause the pulsation and reduce the pulsation caused by the harmonics.
[0055] The present disclosure provides an air conditioner compressor control method, which can be applied to Fig.16 The air conditioner compressor control device 200 shown in FIG. Fig.17 The electronic device 300 and the computer readable storage medium shown in the figure are applied to an electronic device as an example in this embodiment, wherein the electronic device can be a mobile terminal, a computer, a server, etc. connected to an air conditioner, and can also be a processor in the air conditioner, see Figure 1 , the air conditioning compressor control method may include the following steps:
[0056] Step S110, obtaining the quadrature-axis current and the direct-axis current of the air-conditioning compressor.
[0057] During the operation of the rotor of the compressor, in order to obtain control characteristics similar to direct current, an alternating and direct axis coordinate system is established on the rotor, and this coordinate system rotates synchronously with the rotor. The direction of the rotor magnetic field is taken as the direct axis, which is also called the d-axis. The direction perpendicular to the rotor magnetic field is taken as the quadrature axis, which is also called the q-axis. When the rotor of the air-conditioning compressor is studied in the present disclosure, the mathematical model of the rotor is converted to the alternating and direct axis coordinate system for study, and the three-phase problem is converted into a two-phase problem, so as to realize the decoupling of the d-axis and the q-axis, thereby obtaining good control characteristics.
[0058] It can be understood that in this step, the quadrature-axis current is the current component on the quadrature axis in the quadrature-direct (dq) axis coordinate system, and the direct-axis current is the current component on the direct axis in the quadrature-direct axis coordinate system.
[0059] Optionally, the air-conditioning compressor in this embodiment may be a single-rotor compressor.
[0060] Step S120 , obtaining a quadrature-axis compensation voltage according to the quadrature-axis current, and obtaining a direct-axis compensation voltage according to the direct-axis current.
[0061] Since the current and voltage on the air-conditioning compressor are positively correlated, a compensation method for the voltage can be obtained according to the obtained current, which is a compensation voltage in this embodiment. The quadrature-axis compensation voltage is obtained according to the quadrature-axis current, and the quadrature-axis compensation voltage is used to compensate the quadrature-axis voltage to offset part of the torque fluctuation of the quadrature axis. Similarly, the direct-axis compensation voltage is obtained according to the direct-axis current, and the direct-axis compensation voltage is used to compensate the direct-axis voltage to offset part of the torque fluctuation of the direct axis.
[0062] Step S130 , compensating the output voltage of the air-conditioning compressor by using the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage.
[0063] The output voltage of the air-conditioning compressor is compensated by the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain the target output voltage.
[0064] Optionally, the output voltage may be a three-phase voltage in a three-phase stationary coordinate system, and the three-phase voltage in the three-phase stationary coordinate system needs to be converted into a two-phase voltage in an AC / DC coordinate system, namely, a quadrature-axis voltage and a direct-axis voltage. The quadrature-axis voltage is compensated by a quadrature-axis compensation voltage to obtain a compensated quadrature-axis voltage. Similarly, the direct-axis voltage is compensated by a direct-axis compensation voltage to obtain a compensated direct-axis voltage. The compensated quadrature-axis voltage and the compensated direct-axis voltage are used as the target output voltage.
[0065] Step S140: Generate a control signal according to the target output voltage, and control the three-phase inverter of the air-conditioning compressor through the control signal to control the stator of the air-conditioning compressor to operate according to the target output voltage.
[0066] A control signal is generated according to the target output voltage. The control signal may include 6 signals. The on-off states of 6 switching tubes in the three-phase inverter of the air-conditioning compressor are controlled by the 6 signals to control the air-conditioning compressor to operate according to the target output voltage.
[0067] The control method of the air-conditioning compressor provided in the present embodiment first obtains the quadrature axis current and the direct axis current of the air-conditioning compressor, then obtains the quadrature axis compensation voltage according to the quadrature axis current, the quadrature axis compensation voltage is used to compensate the quadrature axis to offset part of the torque fluctuation of the quadrature axis, and the direct axis compensation voltage is obtained according to the direct axis current to offset part of the torque fluctuation of the direct axis; the voltage output by the air-conditioning compressor is compensated by the quadrature axis compensation voltage and the direct axis compensation voltage to obtain the target output voltage; a control signal is generated according to the target output voltage, and the three-phase inverter of the air-conditioning compressor is controlled by the control signal, so as to control the air-conditioning compressor to work according to the target output voltage, and the use of the target output voltage to work can not only ensure the normal operation of the air-conditioning compressor, but also offset the torque fluctuation from the quadrature axis and the direct axis in all directions, reduce the speed fluctuation, thereby achieving better noise reduction effect, reducing stress, avoiding the risk of pipeline vibration cracking, fault shutdown and other risks, improving the stability of the operation of the air-conditioning compressor, especially the stability during low-frequency operation, and improving customer experience. In addition, the present embodiment does not require the modification of the hardware of the air-conditioning compressor, and does not require additional hardware costs.
[0068] In one embodiment, the original three-phase dynamic model of the air-conditioning compressor is quite complex, and it is very difficult to decompose and sum. The original dynamic model can be simplified, that is, the original complex three-phase coordinate system is converted into an easy-to-handle two-phase coordinate system, and the original three quantities are converted into two quantities. The effect of controlling and using these two quantities is the same as the effect of controlling the original three quantities. For example, the original three-phase coordinate system can be converted into a two-phase (α-β) stationary coordinate system. The original two-phase coordinate system can also be converted into a direct-orthogonal axis coordinate system, for example, see Figure 2 , step S110 may include the following steps:
[0069] Step S111, obtaining the three-phase current output by the air-conditioning compressor in a three-phase stationary coordinate system.
[0070] The three-phase current output by the air-conditioning compressor in the three-phase stationary coordinate system is collected. The three-phase current is a three-phase alternating current. The magnitude of the three-phase current is a sinusoidal waveform that changes with time, and the phases differ by 120°.
[0071] Step S112: performing coordinate transformation on the three-phase current in the three-phase stationary coordinate system to obtain the quadrature-axis current and the direct-axis current in the quadrature-axis and direct-axis coordinate system.
[0072] In order to simplify the processing object, the three-phase current in the three-phase stationary coordinate system is converted into the two-phase current in the direct- and alternating-axis coordinate system, i.e., the direct-axis current and the three-phase current. Here, the three-phase current and the two-phase current are different representations of the current output by the air conditioner compressor.
[0073] In this embodiment, the three-phase current of the air-conditioning compressor in the original three-phase stationary coordinate system is transformed into a two-phase current in the direct axis coordinate system through coordinate transformation, thereby converting the original three-phase problem into two-phase, simplifying the subsequent processing process.
[0074] In one embodiment, see Figure 3 , step S120 includes the following steps:
[0075] Step S121 : acquiring an extreme value of a quadrature-axis cosine component according to the quadrature-axis current, and obtaining a first cosine compensation voltage according to the extreme value of the quadrature-axis cosine component.
[0076] Perform Fourier transform on the quadrature-axis current to obtain the Fourier expansion of the quadrature-axis current, as shown in formula (4):
[0077]
[0078] Among them, i q is the quadrature axis current, a q is the quadrature axis current i q The DC component, a qn is the quadrature axis current i q The extreme value of the cosine component corresponding to the nth harmonic after expansion, b qn is the quadrature axis current i q The extreme value of the sinusoidal component corresponding to the nth harmonic after expansion.
[0079] The Fourier coefficient a in formula (4) qn Characterize the cosine component of the quadrature current harmonics and extract the Fourier coefficient a in formula (4) qn As the extreme value of the quadrature cosine component. Since it is relatively complicated to directly calculate the Fourier coefficients of the current harmonics, in this implementation, a qn To extract the target, you can use Figure 4 The filtering method is extracted as follows:
[0080] Step S1211 , filtering the AC component in the quadrature-axis current to obtain the DC component in the quadrature-axis current.
[0081] The quadrature axis current i is filtered by low-pass filtering.q Filter to remove the quadrature axis current i q The AC component Keep the quadrature axis current i q The DC component in is a in formula (4) q .
[0082] Combination Figure 5 , taking n = k as an example, the quadrature axis current i q The AC component is filtered through the low-pass filter Fil1, retaining the DC component a q .
[0083] Step S1212: Calculate the difference between the quadrature-axis current and the direct current component in the quadrature-axis current to obtain the alternating current component of the quadrature-axis current.
[0084] The quadrature-axis current consists of a DC component and an AC component, such as Figure 5 , through the subtractor, calculate the quadrature axis current i q The DC component a in the quadrature axis current q The difference between q , the difference is the AC component of the quadrature axis, which can be understood as harmonics.
[0085] Step S1213: multiply the cosine coefficient by the AC component of the quadrature-axis current to obtain a first multiplication result.
[0086] Combination Figure 5 , the cosine coefficient is 2cos(kθ), and the cosine coefficient is multiplied by the AC component of the quadrature-axis current to obtain a first multiplication result, which can be expressed as the following formula (5):
[0087] 2Δi q cos(kθ)= qk + qk cos(2)+ qk sin(2)+cos(kθ)* k (5)
[0088] Among them, I k is the intermediate quantity, I k as follows:
[0089]
[0090] Among them, k is the harmonic order, that is, kth harmonic, a qk is the quadrature axis current i q The extreme value of the cosine component corresponding to the kth harmonic after expansion, b qk is the quadrature axis current i q The extreme value of the sinusoidal component corresponding to the kth harmonic after expansion.
[0091] Step S1214: Filter the AC component in the first multiplication result to obtain a first filtering result.
[0092] The AC component in the first multiplication result is filtered to obtain a first filtering result, where the first filtering result is the DC component in the first multiplication result.
[0093] Combination Figure 5 , the AC component in the first multiplication result is filtered by the low-pass filter Fil2, and the DC component is retained. Combined with formula (5), the first filtering result is a qk .
[0094] Step S1215: Use the first filtering result as the extreme value of the quadrature-axis cosine component.
[0095] The first filtering result is the DC component a in the first multiplication result. qk , DC component a qk With the quadrature cosine component a qk The extreme value a of the quadrature cosine component in cos(2) qk The same, therefore, the first filtering result is taken as the extreme value of the quadrature-axis cosine component.
[0096] The first cosine compensation voltage is obtained according to the extreme value of the quadrature-axis cosine component, see 6, including:
[0097] Step S1216, performing PI mediation on the extreme value of the quadrature-axis cosine component to obtain a first mediation result, wherein the first mediation result represents the coefficient of the cosine component of the compensation voltage on the quadrature axis.
[0098] Since there is a positive correlation between current and voltage, the voltage can be compensated by current. Figure 5 , use PI regulator PI1 to perform PI regulation on the extreme value of the quadrature-axis cosine component to obtain a first regulation result.
[0099] Step S1217: multiply the first mediation result by a first compensation parameter to obtain the first cosine compensation voltage.
[0100] Optionally, the first compensation parameter is cos(kθ+θ com ). Combined Figure 5 , the first adjustment result output by the PI regulator PI1 and the first compensation parameter cos(kθ+θ com ) to obtain the first cosine compensation voltage.
[0101] Step S122: acquiring an extreme value of a quadrature-axis sinusoidal component according to the quadrature-axis current, and obtaining a first sinusoidal compensation voltage according to the extreme value of the quadrature-axis sinusoidal component.
[0102] The Fourier coefficient b in formula (4) qn Characterize the sinusoidal components of the quadrature-axis current harmonics and extract the Fourier coefficient b in formula (4) qn As the extreme value of the quadrature axis sinusoidal component. Since it is relatively complicated to directly calculate the Fourier coefficients of the current harmonics, in this implementation, b qn To extract the target, we can use Figure 7 The filtering method shown is extracted as follows:
[0103] Step S1221 : filtering the AC component in the quadrature-axis current to obtain the DC component in the quadrature-axis current.
[0104] The quadrature axis current i is filtered by low-pass filtering. q Filter to remove the quadrature axis current i q The AC component Keep the quadrature axis current i q The DC component in is a in formula (4) q .
[0105] Combination Figure 5 , taking n = k as an example, the quadrature axis current i q The AC component is filtered through the low-pass filter Fil1, retaining the DC component a q .
[0106] Step S1222: Calculate the difference between the quadrature-axis current and the direct current component in the quadrature-axis current to obtain the alternating current component of the quadrature-axis current.
[0107] The quadrature-axis current consists of a DC component and an AC component, such as Figure 5 , through the adder and subtractor, calculate the quadrature axis current i q The DC component a in the quadrature axis current q The difference between q , the difference is the AC component of the quadrature axis.
[0108] Step S1223: multiply the sinusoidal coefficient by the AC component of the quadrature-axis current to obtain a second multiplication result.
[0109] Combination Figure 5 , the sine coefficient is 2sin(kθ), and the sine coefficient is multiplied by the AC component of the quadrature-axis current to obtain a second multiplication result.
[0110] Step S1224: Filter the AC component in the second multiplication result to obtain a second filtering result.
[0111] The AC component in the second multiplication result is filtered to obtain a second filtering result, where the second filtering result is the DC component b in the retained second multiplication result. qk .
[0112] Step S1225: Use the second filtering result as the extreme value of the quadrature-axis sine component.
[0113] The second filtering result is the DC component b in the second multiplication result. qk , DC component b qk This is the same as the extreme value of the quadrature-axis sine component in the quadrature-axis cosine component. Therefore, the second filtering result is taken as the extreme value of the quadrature-axis sine component.
[0114] The first sinusoidal compensation voltage is obtained according to the extreme value of the quadrature-axis sinusoidal component, see Figure 8 ,include:
[0115] Step S1226, performing PI mediation on the extreme value of the quadrature-axis sinusoidal component to obtain a second mediation result, wherein the second mediation result represents the coefficient of the sinusoidal component of the compensation voltage on the quadrature-axis.
[0116] Since there is a positive correlation between current and voltage, the voltage can be compensated by current. Figure 5 , use PI regulator PI2 to perform PI regulation on the extreme value of the quadrature-axis sinusoidal component to obtain a second regulation result.
[0117] Step S1227: multiply the second mediation result by a second compensation parameter to obtain the first sinusoidal compensation voltage.
[0118] Optionally, the second compensation parameter is sin(kθ+θ com ). Combined Figure 5 The second adjustment result output by the PI regulator PI2 is equal to the second compensation parameter sin(kθ+θ com ) to obtain the first sinusoidal compensation voltage.
[0119] Step S123: Calculate the sum of the first cosine compensation voltage and the first sine compensation voltage to obtain a quadrature-axis compensation voltage.
[0120] like Figure 5 , use an adder to calculate the sum of the first cosine compensation voltage and the first sine compensation voltage to obtain the quadrature-axis compensation voltage uqcom.
[0121] In one embodiment, see Fig. 9 , step S120 includes the following steps:
[0122] Step S124, obtaining an extreme value of the direct-axis cosine component according to the direct-axis current, and obtaining a second cosine compensation voltage according to the extreme value of the direct-axis cosine component.
[0123] Perform Fourier transform on the direct axis current to obtain the Fourier expansion of the direct axis current, as shown in formula (7):
[0124]
[0125] Among them, i d is the direct axis current, a d is the direct axis current i d The DC component, a dn is the direct axis current i d The extreme value of the cosine component corresponding to the nth harmonic after expansion, b dn is the direct axis current i d The extreme value of the sinusoidal component corresponding to the nth harmonic after expansion.
[0126] The Fourier coefficient a in formula (7) dn Characterize the cosine component of the direct axis current harmonics and extract the Fourier coefficient a in formula (7) dn As the extreme value of the direct axis cosine component. Since it is relatively complicated to directly calculate the Fourier coefficients of the current harmonics, in this implementation, a dn As an extraction target, you can use Fig.10 The filtering method shown is extracted as follows:
[0127] Step S1241: Filter the AC component in the direct-axis current to obtain the DC component in the direct-axis current.
[0128] The direct axis current i is filtered by low-pass filtering. d Filter to remove the direct axis current i d The AC component Keep the direct axis current i d The DC component in is a in formula (7) d .
[0129] Combination Fig.11 , taking n = k as an example, the direct axis current i d The AC component is filtered through the low-pass filter Fil1, retaining the DC component a d .
[0130] Step S1242: Calculate the difference between the direct-axis current and the DC component in the direct-axis current to obtain the AC component of the direct-axis current.
[0131] The direct-axis current consists of a DC component and an AC component, such as Fig.11As shown, through the subtractor, the direct axis current i is calculated d With the direct axis current i d The DC component a d The difference between them is the AC component of the direct axis.
[0132] Step S1243: multiply the cosine coefficient by the AC component of the direct-axis current to obtain a third multiplication result.
[0133] Combination Fig.11 , the cosine coefficient is 2cos(kθ), and the cosine coefficient is multiplied by the AC component of the direct-axis current to obtain a third multiplication result.
[0134] Step S1244: Filter the AC component in the third multiplication result to obtain a third filtering result.
[0135] The AC component in the third multiplication result is filtered to obtain a third filtering result, where the third filtering result is the DC component in the third multiplication result.
[0136] Combination Fig.11 , the AC component in the third multiplication result is filtered by the low-pass filter Fil2, and the DC component is retained. Combined with formula (7), the third filtering result is a dk .
[0137] Step S1245: Use the third filtering result as the extreme value of the direct-axis cosine component.
[0138] The third filtering result is the same as the extreme value of the direct axis cosine component. Therefore, the third filtering result a obtained in the above step can be dk as the extreme value of the direct axis cosine component.
[0139] The second cosine compensation voltage is obtained according to the extreme value of the direct axis cosine component, see Fig.12 , including the following steps:
[0140] Step S1246, performing PI adjustment on the extreme value of the direct-axis cosine component to obtain a third adjustment result, wherein the third adjustment result represents the coefficient of the cosine component of the compensation voltage on the direct axis.
[0141] Since there is a positive correlation between current and voltage, the voltage can be compensated by current. Fig.11 , use PI regulator PI1 to perform PI regulation on the extreme value of the direct-axis cosine component to obtain a third regulation result.
[0142] Step S1247: multiply the third mediation result by the first compensation parameter to obtain the second cosine compensation voltage.
[0143] Optionally, the first compensation parameter is cos(kθ+θ com ). Combined Fig.11 The third adjustment result output by the PI regulator PI1 is equal to the first compensation parameter cos(kθ+θ com ) to obtain the second cosine compensation voltage. Wherein, k is the harmonic order of the direct axis current, k is a positive integer, θ is the mechanical angle of the rotor of the air-conditioning compressor, θ com is the phase compensation angle, the phase compensation angle θ com It can compensate for the delay of electronic components, the lag of control algorithm and the delay of compressor current, etc.
[0144] Step S125 , obtaining an extreme value of the direct-axis sinusoidal component according to the direct-axis current, and obtaining a second sinusoidal compensation voltage according to the extreme value of the direct-axis sinusoidal component.
[0145] The Fourier coefficient b in formula (7) dn Characterize the sinusoidal components of the direct axis current harmonics and extract the Fourier coefficient b in formula (7) dn As the extreme value of the direct axis sinusoidal component. Since it is relatively complicated to directly calculate the Fourier coefficients of the current harmonics, in this embodiment, b dn To extract the target, we can use Fig.13 The filtering method shown is extracted as follows:
[0146] Step S1251, filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current.
[0147] The direct axis current i is filtered by low-pass filtering. d Filter to remove the direct axis current i d The AC component Keep the direct axis current i d The DC component in is a in formula (7) d .
[0148] Combination Fig.11 , taking n = k as an example, the direct axis current i d The AC component is filtered through the low-pass filter Fil1, retaining the DC component a d .
[0149] Step S1252: Calculate the difference between the direct-axis current and the direct-axis current component to obtain the alternating current component of the direct-axis current.
[0150] The direct-axis current consists of a DC component and an AC component, such as Fig.11 As shown, through the subtractor, the direct axis current i is calculated d With the direct axis current i d The DC component ad The difference between them is the AC component of the direct axis.
[0151] Step S1253: multiply the sinusoidal coefficient by the AC component of the direct-axis current to obtain a fourth multiplication result.
[0152] Combination Fig.11 , the sine coefficient 2sin(kθ) is multiplied by the AC component of the direct-axis current to obtain a fourth multiplication result.
[0153] Step S1254: Filter the AC component in the fourth multiplication result to obtain a fourth filtering result.
[0154] The fourth filtering result is the DC component in the fourth multiplication result.
[0155] Combination Fig.11 , the AC component in the fourth multiplication result is filtered by the low-pass filter Fil3 to obtain the fourth filtering result b dk .
[0156] Step S1255: Use the fourth filtering result as the extreme value of the direct-axis sine component.
[0157] The fourth filtering result is the same as the extreme value of the direct-axis sine component. Therefore, the fourth filtering result obtained in the above step is used as the extreme value of the direct-axis sine component.
[0158] Obtain the second sinusoidal compensation voltage based on the extreme value of the direct axis sinusoidal component, see Fig.14 ,include:
[0159] Step S1256, performing PI adjustment on the extreme value of the direct-axis sinusoidal component to obtain a fourth adjustment result, wherein the fourth adjustment result represents the coefficient of the sinusoidal component of the compensation voltage on the direct axis.
[0160] Since there is a positive correlation between current and voltage, the voltage can be compensated by current. Fig.11 , use PI regulator PI2 to perform PI regulation on the extreme value of the direct-axis sinusoidal component to obtain a fourth regulation result.
[0161] Step S1257: multiply the fourth mediation result by the second compensation parameter to obtain the second sinusoidal compensation voltage.
[0162] Optionally, the second compensation parameter is sin(kθ+θ com ). Combined Fig.11 The fourth adjustment result output by the PI regulator PI2 is equal to the second compensation parameter sin(kθ+θ com ) to obtain the second sinusoidal compensation voltage.
[0163] Step S126: Calculate the sum of the second cosine compensation voltage and the second sine compensation voltage to obtain the direct-axis compensation voltage.
[0164] like Fig.11 , using an adder, calculate the sum of the second cosine compensation voltage and the second sine compensation voltage, and use the sum as the direct-axis compensation voltage udcom.
[0165] Optionally, similar to the above current, in order to simplify the processing, the three-phase problem of the air conditioner is converted into a two-phase problem, and the current is converted from three phases in a three-phase stationary coordinate system to two phases in an AC-DC coordinate system. Correspondingly, before the voltage is compensated, the voltage should also be converted in this way. Before step S130, the method further includes: obtaining the three-phase voltage in the three-phase stationary coordinate system output by the air conditioner compressor. Then, the coordinates of the three-phase voltage in the three-phase stationary coordinate system are changed to obtain the AC-axis voltage and the DC-axis voltage in the AC-DC coordinate system. It can be understood that the output voltage includes the DC-axis voltage ud and the AC-axis voltage uq.
[0166] In one implementation, the output voltage includes a quadrature-axis voltage and a direct-axis voltage, and step S130 includes the following steps: compensating the quadrature-axis voltage by the quadrature-axis compensation voltage to obtain a compensated quadrature-axis voltage, such as Fig.15 , through an adder, the quadrature axis compensation voltage uqcom is added to the quadrature axis voltage uq to achieve compensation of the quadrature axis voltage uq. Similarly, the direct axis voltage is compensated by the direct axis compensation voltage to obtain the compensated direct axis voltage, such as Fig.15 , the direct axis compensation voltage udcom is added to the direct axis voltage ud by an adder to compensate the direct axis voltage ud. The compensated quadrature axis voltage in the quadrature-direct axis coordinate system is transformed to obtain the first voltage in the two-phase stationary coordinate system, such as Fig.15 , through the 2r / 2s module, the 2s / 2r coordinate transformation is performed, and the compensated quadrature voltage in the quadrature-direct axis coordinate system is transformed to obtain the first voltage uα in the two-phase stationary coordinate system. Similarly, the compensated direct axis voltage in the quadrature-direct axis coordinate system is transformed to obtain the second voltage in the two-phase stationary coordinate system, such as Fig.15 , through the 2r / 2s module, 2s / 2r coordinate transformation is performed, and the compensated direct axis voltage in the alternating and direct axis coordinate system is transformed to obtain the second voltage uβ in the two-phase stationary coordinate system. The first voltage is used as the first target output voltage, and the second voltage is used as the second target output voltage.
[0167] In one embodiment, step S140 includes: generating the control signal according to the first target output voltage and the second target output voltage by using a SVPWM (Space Vector Pulse Width Modulation) control algorithm. Fig.15 , through the SVPWM module, a control signal is generated. The control signal is a 6-way signal used to control the 6-way switch tubes in the three-phase inverter.
[0168] in, Fig.15 The PMSW (Permanent Magnet Synchronous Motor) in the module is a permanent magnet synchronous motor. The MTPA module works using the MTPA (Maximum Torque Per Ampere, maximum torque current ratio control) algorithm. The function of the 2s / 2r module is to perform 2s / 2r conversion, and the function of the 3s / 2s module is to perform 3s / 2s conversion.
[0169] pass Fig.15 The system shown realizes torque compensation and speed regulation, and can maintain stable speed operation under different loads of the air-conditioning compressor, thereby reducing noise.
[0170] To implement the above method embodiments, the present disclosure provides an air conditioner compressor control device, see Fig.16 , the air conditioning compressor control device 200 includes: a current acquisition module 210, a compensation voltage acquisition module 220, a compensation module 230 and a control module 240;
[0171] A current acquisition module 210, used to acquire the quadrature-axis current and the direct-axis current of the air-conditioning compressor;
[0172] A compensation voltage acquisition module 220, configured to obtain a quadrature-axis compensation voltage according to the quadrature-axis current, and to obtain a direct-axis compensation voltage according to the direct-axis current;
[0173] A compensation module 230, configured to compensate the output voltage of the air-conditioning compressor by using the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage;
[0174] The control module 240 is used to generate a control signal according to the target output voltage, and control the three-phase inverter of the air-conditioning compressor through the control signal to control the air-conditioning compressor to operate according to the target output voltage.
[0175] Optionally, the current acquisition module 210 includes: a three-phase current acquisition module and a first coordinate transformation module;
[0176] A three-phase current acquisition module, used to acquire the three-phase current output by the air-conditioning compressor in a three-phase stationary coordinate system;
[0177] The first coordinate transformation module is used to perform coordinate transformation on the three-phase current in a three-phase stationary coordinate system to obtain the quadrature-axis current and the direct-axis current in a quadrature-axis and direct-axis coordinate system.
[0178] Optionally, the compensation voltage acquisition module 220 includes: a first cosine compensation voltage acquisition module, a first sine compensation voltage acquisition module and a first summing module;
[0179] A first cosine compensation voltage acquisition module, used for acquiring an extreme value of a quadrature-axis cosine component according to the quadrature-axis current, and obtaining a first cosine compensation voltage according to the extreme value of the quadrature-axis cosine component;
[0180] A first sinusoidal compensation voltage acquisition module, used for acquiring an extreme value of a quadrature-axis sinusoidal component according to the quadrature-axis current, and obtaining a first sinusoidal compensation voltage according to the extreme value of the quadrature-axis sinusoidal component;
[0181] The first summing module is used to calculate the sum of the first cosine compensation voltage and the first sine compensation voltage to obtain a quadrature-axis compensation voltage.
[0182] Optionally, the first cosine compensation voltage acquisition module includes: a first filtering module, a first difference obtaining module, a first multiplication result obtaining module, a first filtering result obtaining module and a first determination module;
[0183] A first filtering module, used for filtering the AC component in the quadrature-axis current to obtain a DC component in the quadrature-axis current;
[0184] A first difference calculation module, used for calculating the difference between the quadrature-axis current and the DC component in the quadrature-axis current, to obtain the AC component of the quadrature-axis current;
[0185] A first multiplication result acquisition module, used for multiplying the cosine coefficient by the AC component of the quadrature-axis current to obtain a first multiplication result;
[0186] A first filtering result acquisition module, used for filtering the AC component in the first multiplication result to obtain a first filtering result;
[0187] A first determining module, configured to use the first filtering result as the extreme value of the quadrature-axis cosine component;
[0188] Optionally, the first cosine compensation voltage acquisition module further includes: a first mediation result acquisition module and a first cosine compensation voltage acquisition module;
[0189] A first mediation result acquisition module, used for performing PI mediation on the extreme value of the quadrature-axis cosine component to obtain a first mediation result, wherein the first mediation result represents a coefficient of the cosine component of the compensation voltage on the quadrature axis;
[0190] The first cosine compensation voltage acquisition module is used to multiply the first mediation result by a first compensation parameter to obtain the first cosine compensation voltage.
[0191] Optionally, the first sinusoidal compensation voltage module includes: a second filtering module, a second difference obtaining module, a second multiplication result obtaining module, a second filtering result obtaining module and a second determining module;
[0192] A second filtering module, used for filtering the AC component in the quadrature-axis current to obtain a DC component in the quadrature-axis current;
[0193] A second difference calculation module is used to calculate the difference between the quadrature-axis current and the DC component in the quadrature-axis current to obtain the AC component of the quadrature-axis current;
[0194] A second multiplication result acquisition module, used for multiplying the sinusoidal coefficient by the AC component of the quadrature-axis current to obtain a second multiplication result;
[0195] A second filtering result acquisition module, used for filtering the AC component in the second multiplication result to obtain a second filtering result;
[0196] A second determining module, configured to use the second filtering result as the extreme value of the quadrature-axis sine component;
[0197] Optionally, the first sinusoidal compensation voltage module further includes: a second mediation result acquisition module and a first sinusoidal compensation voltage acquisition module;
[0198] A second mediation result acquisition module, used for performing PI mediation on the extreme value of the quadrature-axis sinusoidal component to obtain a second mediation result, wherein the second mediation result represents the coefficient of the sinusoidal component of the compensation voltage on the quadrature-axis;
[0199] The first sinusoidal compensation voltage acquisition module is used to multiply the second mediation result by a second compensation parameter to obtain the first sinusoidal compensation voltage.
[0200] Optionally, the compensation voltage acquisition module 220 further includes: a second cosine compensation voltage acquisition module, a second sine compensation voltage acquisition module and a second summing module;
[0201] A second cosine compensation voltage acquisition module, used for acquiring an extreme value of a direct-axis cosine component according to the direct-axis current, and obtaining a second cosine compensation voltage according to the extreme value of the direct-axis cosine component;
[0202] A second sinusoidal compensation voltage acquisition module, used for acquiring an extreme value of a direct-axis sinusoidal component according to the direct-axis current, and obtaining a second sinusoidal compensation voltage according to the extreme value of the direct-axis sinusoidal component;
[0203] The second summing module is used to calculate the sum of the second cosine compensation voltage and the second sine compensation voltage to obtain the direct-axis compensation voltage.
[0204] Optionally, the second cosine compensation voltage acquisition module includes: a third filtering module, a third difference obtaining module, a third multiplication result acquisition module, a third filtering result acquisition module and a third determination module;
[0205] A third filtering module, used for filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current;
[0206] A third difference calculation module, used for calculating the difference between the direct-axis current and the direct-axis current component, to obtain the alternating current component of the direct-axis current;
[0207] A third multiplication result acquisition module, used for multiplying the cosine coefficient by the AC component of the direct-axis current to obtain a third multiplication result;
[0208] A third filtering result acquisition module, used for filtering the AC component in the third multiplication result to obtain a third filtering result;
[0209] A third determining module, configured to use the third filtering result as the extreme value of the direct-axis cosine component;
[0210] Optionally, the second cosine compensation voltage acquisition module further includes: a third mediation result acquisition module and a second cosine compensation voltage acquisition module;
[0211] A third mediation result acquisition module, configured to perform PI mediation on the extreme value of the direct-axis cosine component to obtain a third mediation result, wherein the third mediation result represents a coefficient of the cosine component of the compensation voltage on the direct axis;
[0212] The second cosine compensation voltage acquisition module is used to multiply the third mediation result by the first compensation parameter to obtain the second cosine compensation voltage.
[0213] Optionally, the second sinusoidal compensation voltage acquisition module includes: a fourth filtering module, a fourth difference obtaining module, a fourth multiplication result obtaining module, a fourth filtering result obtaining module, and a fourth determining module;
[0214] A fourth filtering module, used for filtering the AC component in the direct-axis current to obtain a DC component in the direct-axis current;
[0215] a fourth difference calculation module, configured to calculate a difference between the direct-axis current and a direct-current component in the direct-axis current, so as to obtain an alternating-current component of the direct-axis current;
[0216] a fourth multiplication result acquisition module, configured to multiply the sinusoidal coefficient by the AC component of the direct-axis current to obtain a fourth multiplication result;
[0217] a fourth filtering result obtaining module, configured to filter the AC component in the fourth multiplication result to obtain a fourth filtering result;
[0218] The fourth determining module is used to use the fourth filtering result as the extreme value of the direct-axis sine component.
[0219] Optionally, the second sinusoidal compensation voltage acquisition module further includes: a fourth mediation result acquisition module and a second sinusoidal compensation voltage acquisition module;
[0220] A fourth mediation result acquisition module, used for performing PI mediation on the extreme value of the direct-axis sinusoidal component to obtain a fourth mediation result, wherein the fourth mediation result represents the coefficient of the sinusoidal component of the compensation voltage on the direct axis;
[0221] The second sinusoidal compensation voltage acquisition module is used to multiply the fourth mediation result by the second compensation parameter to obtain the second sinusoidal compensation voltage.
[0222] Optionally, the cosine coefficient is 2cos(kθ), and the first compensation parameter is cos(kθ+θ com ), the sine coefficient is 2sin(kθ), and the second compensation parameter is sin(kθ+θ com ), where k is the harmonic order of the direct axis current, k is a positive integer, θ is the mechanical angle of the rotor of the air-conditioning compressor, θ com is the phase compensation angle.
[0223] Optionally, the air-conditioning compressor control device 200 further includes: a voltage acquisition module and a second coordinate transformation module;
[0224] A voltage acquisition module, used to obtain the three-phase voltage output by the air-conditioning compressor in a three-phase stationary coordinate system;
[0225] The second coordinate transformation module is used to transform the coordinates of the three-phase voltage in the three-phase stationary coordinate system to obtain the quadrature-axis voltage and the direct-axis voltage in the quadrature-axis and direct-axis coordinate systems.
[0226] Optionally, the compensation module 230 includes: a quadrature axis compensation module, a direct axis compensation module, a third coordinate transformation module, a fourth coordinate transformation module, and a fifth determination module;
[0227] A quadrature-axis compensation module, used for compensating the quadrature-axis voltage by using the quadrature-axis compensation voltage to obtain a compensated quadrature-axis voltage;
[0228] A direct-axis compensation module, used for compensating the direct-axis voltage by using the direct-axis compensation voltage to obtain a compensated direct-axis voltage;
[0229] A third coordinate transformation module is used to perform coordinate transformation on the compensated quadrature-axis voltage in the quadrature-direct axis coordinate system to obtain a first voltage in a two-phase stationary coordinate system;
[0230] A fourth coordinate transformation module, used for performing coordinate transformation on the compensated direct-axis voltage in the alternating-direct-axis coordinate system to obtain a second voltage in a two-phase stationary coordinate system;
[0231] A fifth determining module is configured to use the first voltage as a first target output voltage and use the second voltage as a second target output voltage.
[0232] Optionally, the control module 240: a SVPWM generation module;
[0233] The SVPWM generation module is used to generate the control signal through an SVPWM control algorithm according to the first target output voltage and the second target output voltage.
[0234] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0235] The present disclosure also provides a computer-readable storage medium having computer program instructions stored thereon, and when the program instructions are executed by a processor, the steps of the air-conditioning compressor control method provided by the present disclosure are implemented.
[0236] Fig.17 3 is a block diagram of an electronic device for an air conditioner compressor control method according to an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0237] Reference Fig.17 , the electronic device 300 may include one or more of the following components: a processing component 302 , a memory 304 , a power component 306 , a multimedia component 308 , an audio component 310 , an input / output interface 312 , a sensor component 314 , and a communication component 316 .
[0238] The processing component 302 generally controls the overall operation of the electronic device 300, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 302 may include one or more modules to facilitate the interaction between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate the interaction between the multimedia component 308 and the processing component 302.
[0239] The memory 304 is configured to store various types of data to support operations on the electronic device 300. Examples of such data include instructions for any application or method operating on the electronic device 300, contact data, phone book data, messages, pictures, videos, etc. The memory 304 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0240] The power supply component 306 provides power to the various components of the electronic device 300. The power supply component 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 300.
[0241] The multimedia component 308 includes a screen that provides an output interface between the electronic device 300 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front camera and / or a rear camera. When the electronic device 300 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0242] The audio component 310 is configured to output and / or input audio signals. For example, the audio component 310 includes a microphone (MIC), and when the electronic device 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 304 or sent via the communication component 316. In some embodiments, the audio component 310 also includes a speaker for outputting audio signals.
[0243] The input / output interface 312 provides an interface between the processing component 302 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0244] The sensor assembly 314 includes one or more sensors for providing various aspects of status assessment for the electronic device 300. For example, the sensor assembly 314 can detect the open / closed state of the electronic device 300, the relative positioning of components, such as the display and keypad of the electronic device 300, and the sensor assembly 314 can also detect the position change of the electronic device 300 or a component of the electronic device 300, the presence or absence of user contact with the electronic device 300, the orientation or acceleration / deceleration of the electronic device 300, and the temperature change of the electronic device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 314 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0245] The communication component 316 is configured to facilitate wired or wireless communication between the electronic device 300 and other devices. The electronic device 300 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0246] In an exemplary embodiment, the electronic device 300 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0247] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 304 including instructions, and the instructions can be executed by a processor 320 of an electronic device 300 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0248] In addition to being an independent electronic device, the above-mentioned electronic device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned air-conditioning compressor control method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, for example, the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction can be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned air-conditioning compressor control method is implemented; alternatively, the integrated circuit or chip can receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned air-conditioning compressor control method.
[0249] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device. The computer program has a code portion for executing the above-mentioned air conditioner compressor control method when executed by the programmable device.
[0250] In summary, the air-conditioning compressor control method, device, electronic device and medium provided by the present invention first obtain the cross-axis current and direct-axis current of the air-conditioning compressor, and then obtain the cross-axis compensation voltage according to the cross-axis current, the cross-axis compensation voltage is used to compensate the cross-axis to offset part of the torque fluctuation of the cross-axis, and the direct-axis compensation voltage is obtained according to the direct-axis current to offset part of the torque fluctuation of the direct-axis; the voltage output by the air-conditioning compressor is compensated by the cross-axis compensation voltage and the direct-axis compensation voltage to obtain the target output voltage; a control signal is generated according to the target output voltage, and the three-phase inverter of the air-conditioning compressor is controlled by the control signal to control the air-conditioning compressor to operate according to the target output voltage. Using the target output voltage to operate can not only ensure the normal operation of the air-conditioning compressor, but also offset the torque fluctuation from the cross-axis and direct-axis in all directions, reduce the speed fluctuation, and thus achieve a better noise reduction effect.
[0251] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0252] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for controlling an air conditioner compressor, characterized in that: The method comprises: Obtaining a quadrature-axis current and a direct-axis current of the air-conditioning compressor; Obtaining a quadrature-axis compensation voltage according to the quadrature-axis current, and obtaining a direct-axis compensation voltage according to the direct-axis current; Compensating the output voltage of the air-conditioning compressor by using the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage; A control signal is generated according to the target output voltage, and the three-phase inverter of the air-conditioning compressor is controlled by the control signal to control the air-conditioning compressor to operate according to the target output voltage.
2. The method according to claim 1, characterized in that The obtaining of the quadrature-axis current and the direct-axis current of the air-conditioning compressor includes: Obtaining a three-phase current output by the air-conditioning compressor in a three-phase stationary coordinate system; Coordinate transformation is performed on the three-phase current in the three-phase stationary coordinate system to obtain the quadrature-axis current and the direct-axis current in the quadrature-axis and direct-axis coordinate systems.
3. The method according to claim 1, characterized in that The obtaining of the quadrature-axis compensation voltage according to the quadrature-axis current comprises: Acquire an extreme value of a quadrature-axis cosine component according to the quadrature-axis current, and obtain a first cosine compensation voltage according to the extreme value of the quadrature-axis cosine component; Acquire an extreme value of a quadrature-axis sinusoidal component according to the quadrature-axis current, and obtain a first sinusoidal compensation voltage according to the extreme value of the quadrature-axis sinusoidal component; The sum of the first cosine compensation voltage and the first sine compensation voltage is calculated to obtain a quadrature-axis compensation voltage.
4. The method according to claim 3, characterized in that The step of obtaining the extreme value of the quadrature-axis cosine component according to the quadrature-axis current comprises: filtering the alternating current component in the quadrature-axis current to obtain a direct current component in the quadrature-axis current; Calculating the difference between the quadrature-axis current and a direct current component in the quadrature-axis current to obtain an alternating current component of the quadrature-axis current; multiplying the cosine coefficient by the AC component of the quadrature-axis current to obtain a first multiplication result; filtering an AC component in the first multiplication result to obtain a first filtering result; Using the first filtering result as the extreme value of the quadrature-axis cosine component; The step of obtaining a first cosine compensation voltage according to the extreme value of the quadrature-axis cosine component comprises: Performing PI mediation on the extreme value of the quadrature-axis cosine component to obtain a first mediation result, wherein the first mediation result represents a coefficient of the cosine component of the compensation voltage on the quadrature axis; The first adjustment result is multiplied by a first compensation parameter to obtain the first cosine compensation voltage.
5. The method according to claim 4, characterized in that The step of obtaining the extreme value of the quadrature-axis sinusoidal component according to the quadrature-axis current comprises: filtering the alternating current component in the quadrature-axis current to obtain a direct current component in the quadrature-axis current; Calculating the difference between the quadrature-axis current and a direct current component in the quadrature-axis current to obtain an alternating current component of the quadrature-axis current; multiplying the sinusoidal coefficient by the AC component of the quadrature-axis current to obtain a second multiplication result; filtering the AC component in the second multiplication result to obtain a second filtering result; Using the second filtering result as the extreme value of the quadrature-axis sine component; The step of obtaining a first sinusoidal compensation voltage according to the extreme value of the quadrature-axis sinusoidal component comprises: Performing PI mediation on the extreme value of the quadrature-axis sinusoidal component to obtain a second mediation result, wherein the second mediation result represents a coefficient of the sinusoidal component of the compensation voltage on the quadrature axis; The second adjustment result is multiplied by a second compensation parameter to obtain the first sinusoidal compensation voltage.
6. The method according to claim 5, characterized in that The step of obtaining a direct-axis compensation voltage according to the direct-axis current comprises: Acquire an extreme value of a direct-axis cosine component according to the direct-axis current, and obtain a second cosine compensation voltage according to the extreme value of the direct-axis cosine component; Acquire an extreme value of a direct-axis sinusoidal component according to the direct-axis current, and acquire a second sinusoidal compensation voltage according to the extreme value of the direct-axis sinusoidal component; The sum of the second cosine compensation voltage and the second sine compensation voltage is calculated to obtain the direct-axis compensation voltage.
7. The method according to claim 6, characterized in that The step of obtaining the extreme value of the direct-axis cosine component according to the direct-axis current includes: filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current; Calculating the difference between the direct-axis current and a direct-current component in the direct-axis current to obtain an alternating-current component of the direct-axis current; multiplying the cosine coefficient by the AC component of the direct-axis current to obtain a third multiplication result; filtering the AC component in the third multiplication result to obtain a third filtering result; Using the third filtering result as the extreme value of the direct axis cosine component; The step of obtaining a second cosine compensation voltage according to the extreme value of the direct-axis cosine component comprises: Performing PI mediation on the extreme value of the direct-axis cosine component to obtain a third mediation result, wherein the third mediation result represents a coefficient of the cosine component of the compensation voltage on the direct axis; The third adjustment result is multiplied by the first compensation parameter to obtain the second cosine compensation voltage.
8. The method according to claim 7, characterized in that The step of obtaining the extreme value of the direct-axis sinusoidal component according to the direct-axis current comprises: filtering the AC component in the direct-axis current to obtain the DC component in the direct-axis current; Calculating the difference between the direct-axis current and a direct-current component in the direct-axis current to obtain an alternating-current component of the direct-axis current; multiplying the sinusoidal coefficient by the AC component of the direct-axis current to obtain a fourth multiplication result; filtering the AC component in the fourth multiplication result to obtain a fourth filtering result; Using the fourth filtering result as the extreme value of the direct axis sine component; The step of obtaining a second sinusoidal compensation voltage according to the extreme value of the direct-axis sinusoidal component comprises: Performing PI adjustment on the extreme value of the direct-axis sinusoidal component to obtain a fourth adjustment result, wherein the fourth adjustment result represents a coefficient of the sinusoidal component of the compensation voltage on the direct axis; The fourth adjustment result is multiplied by the second compensation parameter to obtain the second sinusoidal compensation voltage.
9. The method according to any one of claims 4 to 8, characterized in that: The cosine coefficient is 2cos(kθ), and the first compensation parameter is cos(kθ+θ com ), the sine coefficient is 2sin(kθ), and the second compensation parameter is sin(kθ+θ com ), where k is the harmonic order of the direct axis current, k is a positive integer, θ is the mechanical angle of the rotor of the air-conditioning compressor, θ com is the phase compensation angle.
10. The method according to claim 9, characterized in that The output voltage includes a quadrature-axis voltage and a direct-axis voltage. Before the output voltage of the air-conditioning compressor is compensated by the quadrature-axis compensation voltage and the direct-axis compensation voltage and the target output voltage is obtained, the method further includes: Obtaining a three-phase voltage output by the air-conditioning compressor in a three-phase stationary coordinate system; The coordinates of the three-phase voltages in the three-phase stationary coordinate system are changed to obtain the quadrature-axis voltage and the direct-axis voltage in the quadrature-axis and direct-axis coordinate systems.
11. The method according to claim 8, characterized in that The compensating the output voltage of the air-conditioning compressor by the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage includes: Compensating the quadrature-axis voltage by using the quadrature-axis compensation voltage to obtain a compensated quadrature-axis voltage; Compensating the direct-axis voltage by using the direct-axis compensation voltage to obtain a compensated direct-axis voltage; Performing coordinate transformation on the compensated quadrature-axis voltage in the quadrature-direct axis coordinate system to obtain a first voltage in a two-phase stationary coordinate system; Performing coordinate transformation on the compensated direct-axis voltage in the orthogonal-direct-axis coordinate system to obtain a second voltage in a two-phase stationary coordinate system; The first voltage is used as a first target output voltage, and the second voltage is used as a second target output voltage.
12. The method according to claim 11, characterized in that The generating a control signal according to the target output voltage comprises: The control signal is generated by an SVPWM control algorithm according to the first target output voltage and the second target output voltage.
13. An air-conditioning compressor control device, characterized in that: Executing the control method according to any one of claims 1 to 12, the device comprises: A current acquisition module, used to acquire the quadrature-axis current and the direct-axis current of the air-conditioning compressor; A compensation voltage acquisition module, used to obtain a quadrature-axis compensation voltage according to the quadrature-axis current, and to obtain a direct-axis compensation voltage according to the direct-axis current; a compensation module, used for compensating the output voltage of the air-conditioning compressor by using the quadrature-axis compensation voltage and the direct-axis compensation voltage to obtain a target output voltage; The control module is used to generate a control signal according to the target output voltage, and control the three-phase inverter of the air-conditioning compressor through the control signal to control the air-conditioning compressor to work according to the target output voltage.
14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the steps of the method described in any one of claims 1 to 12 when executing the instruction.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 12 are implemented.
