A control method and device of an air conditioner, the air conditioner and a medium
Patent Information
- Application Number
- CN202511139386.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-14
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2045-08-14
AI Technical Summary
然而,传统功率因数校正控制方法在应对压缩机等动态负载时存在明显不足,特别是在功率负载运行工况下,功率因数校正电路产生的脉冲宽度调制信号会对压缩机电流采样形成干扰
[0044]在本发明实施例中,首先通过获取当前控制周期的功率因数校正电路的脉冲宽度调制信号的占空比对应的边沿时刻,该脉冲宽度调制信号的占空比对应的边沿时刻包括上升沿时刻和下降沿时刻;同时获取当前控制周期的压缩机的电流采样时刻;然后,根据当前控制周期的压缩机电流采样时刻,结合当前控制周期的脉冲宽度调制信号周期的上升沿时刻和下降沿时刻,确定下一控制周期的功率因数校正电路的脉冲宽度调制信号的占空比对应的边沿时刻。本发明实施例通过根据压缩机电流采样信息,对功率因数校正电路的脉冲宽度调制信号周期进行调整,避免了功率因数校正电路的脉冲宽度调制信号对压缩机的电流采样产生的信号干扰,提高了压缩机的电流采样的精准度,从而提高了对空调控制单元的精准控制,提高了空调能效。
Smart Images

Figure CN120868597B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of air conditioning control technology, and in particular to an air conditioning control method, device, air conditioner, and medium. Background Technology
[0002] With increasingly stringent energy efficiency requirements for air conditioners, the need for precise control of compressor performance, as a key driving module, is becoming increasingly prominent. However, traditional power factor correction (PFCC) control methods have significant shortcomings when dealing with dynamic loads such as compressors, especially under power load operating conditions. The pulse width modulation (PWM) signal generated by the PFCC circuit can interfere with the compressor current sampling. This interference directly affects the precise control of the air conditioner's control unit, thereby impacting the air conditioner's energy efficiency. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide an air conditioning control method, apparatus, air conditioner, and medium that overcomes or at least partially solves the above problems.
[0004] To address the above problems, embodiments of the present invention disclose an air conditioner control method, comprising:
[0005] Obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle;
[0006] Obtain the current sampling time of the compressor in the current control cycle;
[0007] Based on the current sampling time of the compressor in the current control cycle and the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, the edge time corresponding to the duty cycle of the power factor correction circuit in the next control cycle is determined.
[0008] Optionally, determining the edge time corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the next control cycle based on the compressor's current sampling time in the current control cycle and the edge time corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the current control cycle includes:
[0009] Determine whether the current sampling time of the compressor in the current control cycle coincides with or is close to the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0010] Based on the result of the judgment, the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle is determined.
[0011] Optionally, the current sampling time of the compressor includes a first sampling time and a second sampling time; the duty cycle of the pulse width modulation signal of the power factor correction circuit includes the rising edge time and the falling edge time.
[0012] The step of determining the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle based on the result of the judgment includes:
[0013] If the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are phase-shifted to obtain the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0014] If the current sampling time of the compressor in the current control cycle does not coincide with or is not close to the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle is determined as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0015] Optionally, the step of phase-shifting the rising and falling edges of the pulse width modulation signal of the power factor correction circuit in the current control cycle includes:
[0016] If the first sampling time of the compressor current sampling time coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0017] Optionally, the step of phase-shifting the rising and falling edges of the pulse width modulation signal of the power factor correction circuit in the current control cycle further includes:
[0018] If the second sampling time of the compressor current sampling time coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0019] Optionally, the step of phase-shifting the rising and falling edges of the pulse width modulation signal of the power factor correction circuit in the current control cycle further includes:
[0020] If the first sampling time of the compressor current sampling time coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are preset by a time interval.
[0021] Optionally, the step of phase-shifting the rising and falling edges of the pulse width modulation signal of the power factor correction circuit in the current control cycle further includes:
[0022] If the second sampling time of the compressor current sampling time coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0023] Accordingly, embodiments of the present invention also disclose an air conditioner control device, comprising:
[0024] The signal period acquisition module is used to acquire the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0025] The sampling time acquisition module is used to acquire the current sampling time of the compressor in the current control cycle;
[0026] The signal period determination module is used to determine the edge time corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the next control cycle based on the current sampling time of the compressor in the current control cycle and the edge time corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the current control cycle.
[0027] Optionally, the signal period determination module includes:
[0028] The cycle determination submodule is used to determine whether the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0029] The period determination submodule is used to determine the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle based on the result of the judgment.
[0030] Optionally, the current sampling time of the compressor includes a first sampling time and a second sampling time; the duty cycle of the pulse width modulation signal of the power factor correction circuit includes the rising edge time and the falling edge time; the period determination submodule includes:
[0031] The first signal period generation unit is configured to, if the current sampling time of the compressor in the current control period coincides with or is close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period, shift the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period to obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period;
[0032] The second signal period generation unit is configured to determine the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period if the current sampling time of the compressor in the current control period does not coincide with or is not close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period.
[0033] Optionally, the period determination submodule includes:
[0034] The first cycle adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the first sampling time of the current sampling time of the compressor coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal.
[0035] Optionally, the period determination submodule further includes:
[0036] The second period adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the second sampling time of the current sampling time of the compressor coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal.
[0037] Optionally, the period determination submodule further includes:
[0038] The third cycle adjustment unit is used to preset the time interval between the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal if the first sampling time of the current sampling time of the compressor coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal.
[0039] Optionally, the period determination submodule further includes:
[0040] The fourth cycle adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the second sampling time of the current sampling time of the compressor coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal.
[0041] Accordingly, an embodiment of the present invention discloses an air conditioner, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various steps of the above-described air conditioner control method embodiment.
[0042] Accordingly, this invention discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the various steps of the above-described air conditioner control method embodiments.
[0043] The embodiments of the present invention have the following advantages:
[0044] In this embodiment of the invention, firstly, the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are obtained. These edge times include both the rising and falling edges. Simultaneously, the compressor current sampling time in the current control cycle is also obtained. Then, based on the compressor current sampling time in the current control cycle, and combined with the rising and falling edges of the pulse width modulation signal period in the current control cycle, the edge times corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the next control cycle are determined. This embodiment of the invention adjusts the period of the pulse width modulation signal of the power factor correction circuit based on the compressor current sampling information, avoiding signal interference caused by the pulse width modulation signal of the power factor correction circuit on the compressor current sampling, improving the accuracy of compressor current sampling, thereby improving the precise control of the air conditioning control unit and improving air conditioning energy efficiency. Attached Figure Description
[0045] Figure 1 This is a flowchart of the steps of an air conditioner control method provided in an embodiment of the present invention;
[0046] Figure 2 This is a flowchart of another air conditioner control method provided in an embodiment of the present invention;
[0047] Figure 3 This is a control timing diagram of an air conditioner control method provided in an embodiment of the present invention;
[0048] Figure 4 This is a control timing diagram of another air conditioner control method provided in an embodiment of the present invention;
[0049] Figure 5 This is a control timing diagram of another air conditioner control method provided in an embodiment of the present invention;
[0050] Figure 6 This is a control timing diagram of another air conditioner control method provided in an embodiment of the present invention;
[0051] Figure 7 This is a structural block diagram of an air conditioner control device provided in an embodiment of the present invention. Detailed Implementation
[0052] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] With increasingly stringent energy efficiency requirements for air conditioners, the need for precise compressor control, a key driving module in air conditioning systems, is becoming increasingly prominent. However, traditional PFC (Power Factor Correction) control methods face significant technical bottlenecks when dealing with dynamic loads like compressors, especially under power load operating conditions. The pulse width modulation signal generated by the PFC circuit can severely interfere with the compressor current sampling. This interference directly affects the decision-making accuracy of the control unit, leading to degraded system control performance and making it difficult to meet the stringent requirements of modern air conditioners for control precision and energy efficiency. This technical deficiency not only reduces the overall energy efficiency of the air conditioner but may also cause safety hazards such as air conditioner control instability, seriously affecting the reliable operation of the equipment.
[0054] In the prior art, compressor current sampling control mainly employs the following two methods:
[0055] Method A: Control method based on space vector pulse width modulation. This method activates the power devices and applies space vector pulse width modulation to the frequency converter drive circuit using a preset modulation scheme. Control is achieved by determining the motor frequency and torque current based on the three-phase current. While this method effectively controls the temperature rise of the power devices and reduces switching losses, it has significant shortcomings in handling PFC current interference.
[0056] Method B: A multi-channel sampling method based on collision detection. This method connects the PFC current to the analog-to-digital conversion modules of the fan and compressor phase currents respectively, performs collision detection and processing during sampling, and avoids using the previous sampled value by delaying the sampling and recording of the PFC current. Although this improves sampling accuracy, the system complexity is high and real-time performance is limited.
[0057] Method A, similar to this invention, involves compressor current sampling control, but lacks an effective mechanism for processing PFC interference signals. While Method B improves sampling accuracy, it requires an additional collision detection module, increasing system complexity. Both methods have significant shortcomings in terms of anti-interference capability, system complexity, and real-time performance, necessitating an innovative solution that effectively suppresses interference while maintaining system simplicity.
[0058] One of the core concepts of this invention is to obtain the edge timing ratio corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle. This edge timing includes both the rising and falling edges. Simultaneously, the compressor current sampling time in the current control cycle is obtained. Then, based on the compressor current sampling time in the current control cycle, combined with the rising and falling edges of the pulse width modulation signal period in the current control cycle, the edge timing corresponding to the duty cycle of the power factor correction circuit's pulse width modulation signal in the next control cycle is determined. This invention adjusts the pulse width modulation signal period of the power factor correction circuit based on the compressor current sampling information, avoiding signal interference from the power factor correction circuit's pulse width modulation signal to the compressor current sampling. This improves the accuracy of compressor current sampling, thereby enhancing the precise control of the air conditioning control unit and improving air conditioning energy efficiency.
[0059] Reference Figure 1 The diagram illustrates a flowchart of an air conditioner control method according to an embodiment of the present invention. The method may specifically include the following steps:
[0060] Step 101: Obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle;
[0061] This invention can be applied to the outdoor unit of a variable frequency air conditioner. A variable frequency air conditioner outdoor unit typically contains three power loads: a variable frequency compressor, a variable frequency fan, and a PFC (Power Factor Control), all of which are controlled and operated by a main control unit. The core component of the main control unit is an MCU (Microcontroller Unit). The microcontroller unit collects the status of each power load through a sampling system and performs calculations based on current instructions to control the operation of the power loads.
[0062] In this embodiment of the invention, the compressor, fan, PFC, and main control unit operate on a common ground, meaning both high and low voltage circuits share a common ground. However, during power load operation, the switching on and off of power devices generates spike interference. This interference signal affects the control unit. For example, if spike interference occurs during the MCU's current sampling, it will affect the MCU's current sampling accuracy, leading to a deterioration in the main control unit's control performance. Variable frequency air conditioner outdoor units typically use single-resistor sampling for the compressor and two- or three-resistor sampling for the fan.
[0063] In this embodiment of the invention, the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle can be obtained first; the edge time corresponding to the duty cycle of the pulse width modulation signal includes the rising edge time and the falling edge time.
[0064] In this embodiment of the invention, the pulse width modulation signal is a PWM signal. One control cycle refers to one PWM signal cycle corresponding to the compressor. When designing the three power loads—the variable frequency compressor, the variable frequency fan, and the PFC—the influence of the PWM signal on the current sampling point needs to be considered; therefore, the signal cycle of the PWM signal needs to be collected. Since the fan generally has relatively low power, the resulting spike interference is also relatively small; therefore, the influence of the fan is not considered for the time being. The focus is on the influence of the PFC PWM signal on the current sampling time of the compressor.
[0065] Step 102: Obtain the current sampling time of the compressor in the current control cycle;
[0066] In this embodiment of the invention, the current sampling time of the compressor in the current control cycle can be obtained. This current sampling time is the current sampling trigger point, which changes according to the changes in the compressor's PWM signal. The current control cycle refers to a real-time adjustment period in which the control system is performing adjustments on the compressor, typically cycling at a fixed frequency. In motor control, each control cycle completes one compressor current sampling, algorithm calculation, and PWM update.
[0067] This invention provides an innovative solution for efficient motor control by dynamically acquiring the compressor current sampling time and enabling it to accurately follow the changes in the PWM signal. It also enhances the system's anti-interference capability and reliability by avoiding switching noise interference.
[0068] Step 103: Based on the current sampling time of the compressor in the current control cycle and the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, determine the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle.
[0069] In this embodiment of the invention, the rising edge and falling edge times corresponding to the duty cycle of the power factor correction circuit pulse width modulation signal of the current control cycle can be obtained according to the current sampling time of the compressor in the current control cycle obtained in step 102 and the duty cycle of the power factor correction circuit pulse width modulation signal of the current control cycle obtained in step 101. At the same time, the rising edge and falling edge times of the power factor correction circuit pulse width modulation signal can avoid the current sampling time of the compressor in the current cycle to avoid interference with the current sampling of the compressor. Finally, in the current cycle, the edge times corresponding to the duty cycle of the power factor correction circuit pulse width modulation signal of the next control cycle are generated and output.
[0070] This invention achieves precise isolation of key control signals by dynamically coordinating the timing of compressor current sampling and the PWM signal timing of the power factor correction circuit (PFC). Based on the rising / falling edge timing of the compressor current sampling time in the current cycle and the PWM signal of the previous cycle's PFC, the switching time of the current cycle's PFC PWM signal is intelligently adjusted so that its edge transition actively avoids the compressor's current sampling time. This timing optimization mechanism effectively eliminates the interference of PFC switching noise on current sampling, resolving the technical contradiction of balancing sampling distortion and switching losses in traditional solutions, and providing a higher-precision current detection solution for variable frequency compressor systems.
[0071] In this embodiment of the invention, firstly, the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are obtained. The duty cycle of the pulse width modulation signal includes both the rising edge and the falling edge. Simultaneously, the current sampling time of the compressor in the current control cycle is obtained. Then, based on the compressor current sampling time of the current control cycle, combined with the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal in the current control cycle, the edge times corresponding to the duty cycle of the power factor correction circuit in the current control cycle are determined. This embodiment of the invention adjusts the period of the pulse width modulation signal of the power factor correction circuit according to the compressor current sampling information, avoiding signal interference caused by the pulse width modulation signal of the power factor correction circuit on the compressor current sampling, improving the accuracy of compressor current sampling, thereby improving the precise control of the air conditioning control unit and improving air conditioning energy efficiency.
[0072] Reference Figure 2 The diagram illustrates a flowchart of an air conditioner control method according to an embodiment of the present invention. The method may specifically include the following steps:
[0073] Step 201: Obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle;
[0074] In this embodiment of the invention, the edge timing corresponding to the duty cycle of the pulse width modulation (PWM) signal of the power factor correction (PFC) circuit in the current control cycle can be obtained first. The edge timing corresponding to the duty cycle of the PWM signal includes the rising edge and the falling edge. The PWM signal is a PWM signal. When designing the three power loads—the variable frequency compressor, the variable frequency fan, and the PFC—the influence of the PWM signal on the current sampling point needs to be considered. Therefore, the signal period of the PWM signal needs to be acquired. Since the fan generally has relatively low power, the resulting spike interference is also relatively small, so the influence of the fan is not considered for now. The focus is on the influence of the PFC's PWM signal on the current sampling time of the compressor.
[0075] like Figure 3 The diagram shows a control timing diagram of an air conditioner control method according to an embodiment of the present invention. The specific details are as follows:
[0076] In some examples, the compressor PWM frequency is set to f1, and the PFC PWM frequency is set to 4f1: that is, the duration of one PWM signal cycle of the compressor is four times the duration of one PWM signal cycle of the PFC. For example, one PWM signal cycle of the compressor is t1-t8; one PWM signal cycle of the PFC is t1-t4 or t4-t7; the current control cycle refers to one PWM signal cycle of the compressor, which is t1-t8.
[0077] PFC sampling is triggered at times t1 and t7. The rising edge times corresponding to the duty cycle of a pulse width modulation signal are t2 and t5; the falling edge times are t3 and t6. t2 and t3 are between t1 and t4, and t5 and t6 are between t4 and t7. The duty cycle of the pulse width modulation signal remains constant throughout the entire control process, therefore the control effect of PFC remains unchanged, and the sampling time of PFC remains constant.
[0078] The compressor current sampling time is t 10 and t 11 The compressor current sampling time is determined by the duty cycle of the compressor PWM, typically between t1 and t7. The compressor PWM is determined by factors such as compressor speed and power; the compressor speed and power are not necessarily the same in each cycle, therefore t... 10 t 11 It changes in real time, t for each cycle. 10 and t 11 The specific timing is calculated by dynamically adjusting the PWM signal through the compressor control algorithm.
[0079] Step 202: Obtain the current sampling time of the compressor in the current control cycle; the current sampling time of the compressor includes a first sampling time and a second sampling time; the duty cycle of the pulse width modulation signal of the power factor correction circuit corresponds to the edge times of the rising edge and the falling edge.
[0080] In this embodiment of the invention, the current sampling time of the compressor in the current control cycle is obtained;
[0081] like Figure 4 The diagram shows a control timing diagram of another air conditioner control method provided by an embodiment of the present invention, the details of which are as follows:
[0082] Based on step 201 as the current control cycle, the current sampling time of the compressor in the current control cycle is obtained, and the current sampling time of the compressor at this time is t. 10 and t 11The first sampling time for the compressor current sampling is t. 10 The second sampling time is t 11 , t 10 and t 11 Between t1 and t7.
[0083] Step 203: Determine whether the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0084] In this embodiment of the invention, it can be determined whether the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge and falling edge of the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle. If they coincide or are close, it will interfere with the current sampling time of the compressor.
[0085] Step 204: If the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are phase-shifted to obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0086] In this embodiment of the invention, if the current sampling time of the compressor in the current control cycle coincides with or is close to the rising and falling edges of the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, the rising and falling edges of the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are phase-shifted. That is, without changing the duty cycle of the pulse width modulation signal of the power factor correction circuit, the rising and falling edges are shifted by a certain time interval to avoid the current sampling time of the compressor in the current control cycle; thus, the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle is obtained.
[0087] In some examples, step 204 includes the following sub-steps:
[0088] Sub-step S21: If the first sampling time of the current sampling time of the compressor coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0089] In some examples, such as Figure 4 The diagram shows a control timing diagram of another air conditioner control method provided by an embodiment of the present invention, the details of which are as follows:
[0090] Based on the conditions in step 202, it is known that t2 is the rising edge of the duty cycle of the pulse width modulation signal in the current control cycle; t3 is the falling edge of the duty cycle of the pulse width modulation signal in the current control cycle; and the first sampling time of the compressor current sampling time in the current control cycle is t. 10 If the rising edge time t2 of the duty cycle of the pulse width modulation signal in the current control cycle coincides with the falling edge time t2, then the rising edge time and falling edge time of the duty cycle of the pulse width modulation signal will be shifted back by one time interval to generate a new rising edge t2′ and falling edge t3′, and output between t7 and t8 as the edge time corresponding to the duty cycle of the next control cycle.
[0091] In some examples, the preset time interval can be set according to the switching interference caused by the specific power device. The duration of the switching interference caused by different power devices is different and can also be determined by actual measurement.
[0092] In sub-step S22, if the second sampling time of the compressor current sampling time coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0093] In some examples, such as Figure 5 The diagram shows a control timing diagram of another air conditioner control method provided by an embodiment of the present invention, the details of which are as follows:
[0094] Based on the conditions in step 203, it is known that t5 is the rising edge of the duty cycle of the pulse width modulation signal in the current control cycle; t6 is the falling edge of the duty cycle of the pulse width modulation signal in the current control cycle; and the second sampling time of the compressor current sampling time in the current control cycle is t. 11 If the falling edge time t6 of the duty cycle of the pulse width modulation signal in the current control cycle coincides with the falling edge time of the duty cycle, then the rising edge time and falling edge time of the duty cycle of the pulse width modulation signal will be shifted back by one time interval to generate a new rising edge t5′ and falling edge t6′, and output between t7 and t8 as the edge time corresponding to the duty cycle of the next control cycle.
[0095] In sub-step S23, if the first sampling time of the compressor current sampling time coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are preset by a time interval.
[0096] In some examples, such as Figure 6 The diagram shows a control timing diagram of another air conditioner control method provided by an embodiment of the present invention, the details of which are as follows:
[0097] Based on the conditions in step 203, it is known that t2 is the rising edge of the duty cycle of the pulse width modulation signal in the current control cycle; t3 is the falling edge of the duty cycle of the pulse width modulation signal in the current control cycle; and the second sampling time of the compressor current sampling time in the current control cycle is t. 10 If the falling edge time t3 of the duty cycle of the pulse width modulation signal in the current control cycle coincides with the falling edge time of the duty cycle, then the rising edge time and falling edge time of the duty cycle of the pulse width modulation signal will be shifted forward by one time interval to generate a new rising edge t2′ and falling edge t3′, and output between t7 and t8 as the edge time corresponding to the duty cycle of the next control cycle.
[0098] In sub-step S24, if the second sampling time of the compressor current sampling time coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
[0099] In some examples, such as Figure 6 The diagram shows a control timing diagram of another air conditioner control method provided by an embodiment of the present invention, the details of which are as follows:
[0100] Based on the conditions in step 203, it is known that t5 is the rising edge of the duty cycle of the pulse width modulation signal in the current control cycle; t6 is the falling edge of the duty cycle of the pulse width modulation signal in the current control cycle; and the second sampling time of the compressor current sampling time in the current control cycle is t. 11 If the rising edge time t5 of the duty cycle of the pulse width modulation signal in the current control cycle coincides with the falling edge time t5, then the rising edge time and falling edge time of the duty cycle of the pulse width modulation signal will be shifted back by one time interval to generate a new rising edge t5′ and falling edge t6′, and output between t7 and t8 as the edge time corresponding to the duty cycle of the next control cycle.
[0101] Step 205: If the current sampling time of the compressor in the current control cycle does not coincide with or is not close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle is determined as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0102] In this embodiment of the invention, if the current sampling time of the compressor in the current control cycle does not coincide with or is close to the rising and falling edges of the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, it indicates that the pulse width modulation signal of the power factor correction circuit does not affect the current sampling time of the compressor. Therefore, the phase of the duty cycle of the pulse width modulation signal of the power factor correction circuit is not changed, and it is directly output between t7 and t8, and used as the edge time corresponding to the duty cycle of the next control cycle.
[0103] In this embodiment of the invention, firstly, the complete timing characteristics of the PWM signal of the power factor correction circuit in the current control cycle are accurately acquired, while simultaneously monitoring the key current sampling windows of the compressor within the current control cycle, including the first and second sampling moments. Then, based on an intelligent timing analysis algorithm, the compressor current sampling moment of the current cycle is precisely compared with the PWM switching transient of the PFC circuit in the current control cycle, thereby dynamically generating the optimal PWM signal cycle of the PFC circuit for the next cycle. This embodiment of the invention adjusts the pulse width modulation signal cycle of the power factor correction circuit according to the compressor current sampling information, avoiding signal interference caused by the pulse width modulation signal of the power factor correction circuit on the compressor current sampling, improving the accuracy of compressor current sampling, thereby improving the precise control of the air conditioning control unit and improving air conditioning energy efficiency.
[0104] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0105] Reference Figure 7 The diagram shows a structural block diagram of an air conditioner control device according to an embodiment of the present invention, which may specifically include the following modules:
[0106] The signal period acquisition module 301 is used to acquire the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period.
[0107] The sampling time acquisition module 302 is used to acquire the current sampling time of the compressor in the current control cycle;
[0108] The signal period determination module 303 is used to determine the edge time corresponding to the duty cycle of the power factor correction circuit in the next control cycle based on the current sampling time of the compressor in the current control cycle and the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0109] In this embodiment of the invention, the signal period determination module includes:
[0110] The cycle determination submodule is used to determine whether the current sampling time of the compressor in the current control cycle coincides with or is close to the rising edge and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle.
[0111] The period determination submodule is used to determine the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle based on the result of the judgment.
[0112] In this embodiment of the invention, the current sampling time of the compressor includes a first sampling time and a second sampling time; the duty cycle of the pulse width modulation signal of the power factor correction circuit includes the rising edge time and the falling edge time.
[0113] The period determination submodule includes:
[0114] The first signal period generation unit is configured to, if the current sampling time of the compressor in the current control period coincides with or is close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period, shift the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period to obtain the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period;
[0115] The second signal period generation unit is configured to determine the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period if the current sampling time of the compressor in the current control period does not coincide with or is not close to the rising edge time and falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control period.
[0116] In this embodiment of the invention, the period determination submodule includes:
[0117] The first cycle adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the first sampling time of the current sampling time of the compressor coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal.
[0118] In this embodiment of the invention, the period determination submodule further includes:
[0119] The second period adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the second sampling time of the current sampling time of the compressor coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal.
[0120] In this embodiment of the invention, the period determination submodule further includes:
[0121] The third cycle adjustment unit is used to preset the time interval between the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal if the first sampling time of the current sampling time of the compressor coincides with or is close to the falling edge time corresponding to the duty cycle of the pulse width modulation signal.
[0122] In this embodiment of the invention, the period determination submodule further includes:
[0123] The fourth cycle adjustment unit is used to delay the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal by a preset time interval if the second sampling time of the current sampling time of the compressor coincides with or is close to the rising edge time corresponding to the duty cycle of the pulse width modulation signal.
[0124] In this embodiment of the invention, firstly, the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle are obtained. The duty cycle of the pulse width modulation signal includes both the rising edge and the falling edge. Simultaneously, the current sampling time of the compressor in the current control cycle is obtained. Then, based on the compressor current sampling time of the current control cycle, combined with the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal in the current control cycle, the edge times corresponding to the duty cycle of the power factor correction circuit in the current control cycle are determined. This embodiment of the invention adjusts the period of the pulse width modulation signal of the power factor correction circuit according to the compressor current sampling information, avoiding signal interference caused by the pulse width modulation signal of the power factor correction circuit on the compressor current sampling, improving the accuracy of compressor current sampling, thereby improving the precise control of the air conditioning control unit and improving air conditioning energy efficiency.
[0125] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0126] This invention also provides an air conditioner, comprising:
[0127] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described air conditioner control method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0128] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described air conditioner control method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here.
[0129] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0130] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0131] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0132] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0134] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0135] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0136] The above provides a detailed description of an air conditioner control method provided by the present invention. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for controlling an air conditioner, characterized in that, The air conditioner includes a power factor correction circuit and a compressor, and the method includes: Obtain the edge timing corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle; the edge timing includes the rising edge timing and the falling edge timing; Obtain the current sampling time of the compressor in the current control cycle; the current sampling time includes a first sampling time and a second sampling time; Determine whether the first sampling time and the second sampling time of the compressor in the current control cycle coincide with the rising edge time and the falling edge time of the pulse width modulation signal of the power factor correction circuit in the current control cycle; If the first sampling time and the second sampling time of the compressor in the current control cycle coincide with the rising edge time and the falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising edge time and the falling edge time of the pulse width modulation signal of the power factor correction circuit in the current control cycle are phase-shifted, and the rising edge time and the falling edge time obtained after phase shifting are determined as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle; If the first sampling time and the second sampling time of the compressor in the current control cycle do not coincide with the rising edge time and the falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising edge time and the falling edge time of the pulse width modulation signal of the power factor correction circuit in the current control cycle are determined as the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle. The phase shifting of the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle includes: If the first sampling time of the compressor current sampling time coincides with the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
2. The air conditioning control method according to claim 1, characterized in that, The phase shifting of the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle includes: If the second sampling time of the compressor current sampling time coincides with the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
3. The air conditioning control method according to claim 1, characterized in that, The phase shifting of the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle includes: If the first sampling time of the compressor current sampling time coincides with the falling edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are preset by a time interval.
4. The air conditioning control method according to claim 1, characterized in that, The phase shifting of the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle includes: If the second sampling time of the compressor current sampling time coincides with the rising edge time corresponding to the duty cycle of the pulse width modulation signal, then the rising edge time corresponding to the duty cycle of the pulse width modulation signal and the falling edge time corresponding to the duty cycle of the pulse width modulation signal are delayed by a preset time interval.
5. A control device for an air conditioner, characterized in that, The air conditioner includes a power factor correction circuit and a compressor. When the device is executed, it implements the steps of the air conditioner control method as described in any one of claims 1-4. The device includes: The signal period acquisition module is used to acquire the edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle; the edge time includes the rising edge time and the falling edge time. The sampling time acquisition module is used to acquire the current sampling time of the compressor in the current control cycle; the current sampling time includes a first sampling time and a second sampling time; The signal period determination module is used to determine whether the first sampling time and the second sampling time of the compressor in the current control cycle coincide with the rising edge time and the falling edge time of the pulse width modulation signal of the power factor correction circuit in the current control cycle; if the first sampling time and the second sampling time of the compressor in the current control cycle coincide with the rising edge time and the falling edge time corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising edge time and the falling edge time of the pulse width modulation signal of the power factor correction circuit in the current control cycle are phase-shifted, and The rising and falling edge times obtained after phase shifting are determined as the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle; if the first sampling time and the second sampling time of the compressor in the current control cycle do not coincide with the rising and falling edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the current control cycle, then the rising and falling edge times of the pulse width modulation signal of the power factor correction circuit in the current control cycle are determined as the edge times corresponding to the duty cycle of the pulse width modulation signal of the power factor correction circuit in the next control cycle.
6. An air conditioner, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the air conditioning control method as described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the air conditioning control method as described in any one of claims 1-4.
Citation Information
Patent Citations
Air conditioner and compressor phase current and PFC current sampling method and system thereof
CN112782459A
Current measurement method and device and PWM (Pulse Width Modulation) module
CN114785172A