Power adjustment method
By collecting the three-phase current and delayed voltage of the compressor in real time, the bus voltage disturbance status can be quickly determined, and the compressor output power can be adjusted. This solves the problem of photovoltaic energy fluctuation and load matching, and realizes the efficient utilization of photovoltaic energy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- QINGDAO HISENSE HITACHI AIR CONDITIONING SYST
- Filing Date
- 2026-02-13
- Publication Date
- 2026-06-02
Smart Images

Figure CN122136969A_ABST
Abstract
Description
Technical Field
[0001] This application relates to photovoltaic energy technology, and includes, but is not limited to, a power regulation method. Background Technology
[0002] With the popularization of photovoltaic energy, the application scenarios of electronic devices that can directly utilize renewable energy are becoming increasingly widespread. Taking photovoltaic air conditioners as an example, electronic devices are typical controllable loads in DC microgrids, and the operating power of their compressors directly affects the photovoltaic energy absorption efficiency.
[0003] In traditional flexible regulation mode, the control center of a DC microgrid needs to receive and process data from the entire grid before sending power regulation commands to each load unit of the DC microgrid. This process can take minutes. However, the fluctuation cycle of photovoltaic energy is typically on the order of seconds. This response delay makes it difficult to match the photovoltaic output power with the load consumption power in real time, leading to energy imbalance. Consequently, the utilization efficiency of photovoltaic energy is reduced. Summary of the Invention
[0004] In view of this, the power regulation method provided in this application embodiment can improve the power response speed, thereby improving the utilization efficiency of photovoltaic energy. The power regulation method provided in this application embodiment is implemented as follows: The power regulation method provided in this application embodiment is applied to an electronic device, which is powered at least by a photovoltaic energy system and / or the power grid. The electronic device further includes an inverter and a compressor driven by the inverter. The regulation method includes: The three-phase current of the compressor at the current sampling moment is collected; Based on the three-phase current of the compressor at the current sampling time, the input voltage and the delay voltage at the current sampling time are determined. The delay voltage is obtained by delaying the input voltage for a preset duration. Based on the input voltage and the delay voltage at the current sampling time, it is determined whether the electronic device is in a bus voltage disturbance state. The bus voltage disturbance state refers to the operating state in which the bus voltage is disturbed by the photovoltaic energy system. When the electronic device is in the bus voltage disturbance state, the change of the bus voltage within a target duration is acquired, and the end time of the target duration includes the current sampling time; Based on the change of the bus voltage within the target duration, the output power of the compressor at the next moment is adjusted, and the output power of the compressor is positively correlated with the change of the bus voltage within the target duration.
[0005] The electronic device provided in this application embodiment has a controller and an electronic device. The electronic device is powered by at least a photovoltaic energy system and / or the power grid. The electronic device also includes an inverter and a compressor driven by the inverter. The controller is configured to: collect the three-phase current of the compressor at the current sampling time; determine the input voltage and delayed voltage at the current sampling time based on the three-phase current of the compressor at the current sampling time, wherein the delayed voltage is obtained after delaying the input voltage for a preset duration; determine whether the electronic device is in a bus voltage disturbance state based on the input voltage and delayed voltage at the current sampling time, wherein the bus voltage disturbance state refers to the operating state in which the bus voltage is disturbed by the photovoltaic energy system; when the electronic device is in a bus voltage disturbance state, acquire the change of the bus voltage within a target duration, wherein the end time of the target duration includes the current sampling time; and adjust the output power of the compressor at the next moment based on the change of the bus voltage within the target duration, wherein the output power of the compressor is positively correlated with the change of the bus voltage within the target duration.
[0006] Compared to related technologies that rely on a control center to receive and process network-wide data before issuing power adjustment commands, which can take minutes, the fundamental problem lies in the core contradiction between the real-time nature of bus voltage disturbances and the lag in control center decision-making, making timely response to disturbances impossible. This application determines the input voltage and delayed voltage in real time by collecting the compressor's three-phase current. Thus, based solely on the input and delayed voltages, it quickly determines whether the electronic equipment is under bus voltage disturbance conditions. This process eliminates the need for interaction with the control center, compressing the time to the sampling period level and achieving millisecond-level disturbance identification. Based on this, when the electronic equipment is under bus voltage disturbance conditions, the changes in bus voltage over a target time period are acquired, and a regulation rule is established that positively correlates the compressor's output power with these changes. Furthermore, without waiting for the global power balance calculation of the control center, the compressor's output power can be dynamically adjusted directly based on the changes in the bus voltage within the target time period. This enables the compressor's output power to respond quickly and synchronously to bus voltage disturbances, breaking through the minute-level control delay bottleneck of the control center in related technologies, significantly shortening the response delay of power regulation, and significantly improving the power response speed. This, in turn, improves the utilization efficiency of photovoltaic energy.
[0007] In some possible embodiments, determining whether the electronic device is under bus voltage disturbance based on the input voltage at the current sampling time and the delay voltage includes: A first duty cycle corresponding to the input voltage and a second duty cycle corresponding to the delay voltage are determined. The first duty cycle is the product of the duty cycle used by the inverter at the previous moment and a preset adjustment value. The second duty cycle is the duty cycle used at the previous moment. Based on the first duty cycle, the second duty cycle, and the bus voltage, determine whether the electronic device is in a state of bus voltage disturbance.
[0008] In this embodiment, a delayed second duty cycle is generated using the duty cycle used by the inverter at the previous moment, and the real-time first duty cycle is obtained by multiplying the duty cycle used at the previous moment by a preset adjustment value. Furthermore, by combining the first duty cycle, the second duty cycle, and the bus voltage, the bus voltage disturbance state can be quickly and accurately identified, effectively eliminating disturbance factors other than bus voltage disturbances, and providing a reliable basis for subsequent rapid response adjustments.
[0009] In some possible embodiments, determining whether the electronic device is in a bus voltage disturbance state based on the first duty cycle, the second duty cycle, and the bus voltage includes: The first equivalent output voltage is determined based on the first duty cycle and the bus voltage; The second equivalent output voltage is determined based on the second duty cycle and the bus voltage; If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is less than the voltage threshold, then the electronic device is determined to be in the bus voltage disturbance state.
[0010] In this embodiment, when the electronic equipment is under bus voltage disturbance, controlling the inverter to output a modulation signal with a second duty cycle within a preset time period ensures that the duty cycle of the modulation signal remains constant within this preset time period. With a constant duty cycle, the bus voltage directly affects the compressor's output power, effectively eliminating coupling interference caused by duty cycle changes. Furthermore, when adjusting the compressor's output power at the next moment based on the bus voltage changes within the target time period, the accuracy and precision of power regulation can be significantly improved.
[0011] In some possible embodiments, the adjustment method further includes: When the electronic device is in the state of bus voltage disturbance, the inverter is controlled to output a modulation signal with a duty cycle of the second duty cycle within the preset time period, and the modulation signal is used to drive the compressor.
[0012] In this embodiment, the inverter is controlled to output a modulation signal with a second duty cycle for a preset duration, ensuring that the duty cycle of the modulation signal remains constant within this preset duration. Thus, with the duty cycle remaining constant, the bus voltage directly affects the compressor's output power, effectively eliminating coupling interference caused by duty cycle changes. Furthermore, when adjusting the compressor's output power at the next moment based on changes in the bus voltage within the target duration, the accuracy and precision of power regulation can be significantly improved.
[0013] In some possible embodiments, adjusting the compressor's output power at the next moment based on the change in the bus voltage during the target duration includes: Based on the change of the bus voltage within the target duration, the electric angular velocity of the compressor at the next moment is adjusted to control the output power of the electronic device; Specifically, when the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor is increased at the next moment; When the change indicates a decrease in the bus voltage, the electric angular velocity of the compressor is reduced at the next moment.
[0014] In this embodiment, the electrical angular velocity of the compressor is adjusted in real time according to the changes in the bus voltage within the target time period, thereby controlling the output power of the electronic equipment. When the bus voltage increases, the electrical angular velocity is increased; when the bus voltage decreases, the electrical angular velocity is decreased. This allows the compressor's output power to respond quickly and synchronously with the bus voltage, effectively suppressing voltage fluctuations and improving the dynamic stability and power regulation accuracy of the electronic equipment under bus voltage disturbance conditions.
[0015] In some possible embodiments, adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within the target duration includes: Based on the change in the bus voltage within the target time period and a preset weight, the adjustment amount corresponding to the electric angular velocity of the compressor is determined; When the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor at the next moment is adjusted to the sum of the adjustment amount and the electric angular velocity at the current sampling moment; When the change indicates that the bus voltage has decreased, the electric angular velocity of the compressor at the next moment is adjusted to the difference between the adjustment amount and the electric angular velocity at the current sampling moment.
[0016] In this embodiment, by combining the change in bus voltage over a target time period with a preset weight to determine the adjustment amount, precise matching between the bus voltage fluctuation amplitude and the adjustment intensity can be achieved, making the adjustment amount and the change amount linearly compatible. Thus, the compressor's electrical angular velocity adjusts in the same direction as the bus voltage change, in real time and smoothly, rapidly adjusting the output power to suppress voltage fluctuations. This adjustment method, while ensuring rapid disturbance response, effectively avoids over-adjustment or under-adjustment by reasonably constraining the adjustment amplitude through preset weights, significantly improving power regulation accuracy.
[0017] In some possible embodiments, adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within the target duration includes: When the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor at the next moment is adjusted to be the sum of the electric angular velocity at the current sampling moment and a constant increment; When the change indicates a decrease in the bus voltage, the electric angular velocity of the compressor at the next moment is adjusted to the difference between the electric angular velocity at the current sampling moment and a constant increment.
[0018] In this embodiment, by using a constant increment for fixed step size adjustment, the adjustment response speed is effectively improved, ensuring that the compressor can quickly adjust the electrical angular velocity in a stable and reliable manner when the bus voltage is disturbed, thereby achieving rapid response and dynamic adjustment of the output power.
[0019] In some possible embodiments, the adjustment method further includes: If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is greater than or equal to the voltage threshold, then it is determined that the electronic device is not in the bus voltage disturbance state. The torque variation of the compressor within the target time period is obtained; The output power of the compressor is adjusted according to the torque variation.
[0020] In some possible embodiments, acquiring the change of the bus voltage over a target time period when the electronic device is in the bus voltage disturbance state includes: The bus voltage of the compressor at the current sampling time and the bus voltage of the compressor at historical times before the current sampling time are obtained, and the target duration includes the historical times; The change is determined based on the difference between the bus voltage at the current sampling time and the bus voltage at the historical time. The bus voltage at the current sampling moment is obtained by correcting the sampled value of the bus voltage at the current sampling moment based on the sampled value of the three-phase current of the compressor at the current sampling moment and the duty cycle value of the modulation signal output by the inverter at the current sampling moment.
[0021] In this embodiment, the compressor's bus voltage at the current sampling moment and the bus voltage at historical moments are acquired. By comparing the difference between the bus voltage at the current sampling moment and the bus voltage at historical moments, the change is determined. Therefore, it is possible to acquire the change in bus voltage over a target time period when the electronic device is in a state of bus voltage disturbance.
[0022] In some possible embodiments, the adjustment method further includes: Based on the three-phase current of the compressor at the current sampling time, the value of the conversion current corresponding to the target coordinate axis of the two-phase rotating coordinate system is obtained, wherein the target coordinate axis includes the D-axis and / or Q-axis of the two-phase rotating coordinate system; Based on the value of the conversion current corresponding to the target coordinate axis, the value, and the target mapping relationship, the reference value of the bus voltage at the current sampling time is obtained. The target mapping relationship is determined by a first mapping relationship and a second mapping relationship. The first mapping relationship is the mapping relationship between the bus voltage, the conversion voltage corresponding to the target coordinate axis, and the duty cycle. The second mapping relationship includes the mapping relationship between the voltage and current of the compressor in the two-phase rotating coordinate system. Based on the reference value of the bus voltage at the current sampling time, the sampled value of the bus voltage at the current sampling time is corrected to obtain the bus voltage at the current sampling time.
[0023] In this embodiment, the conversion current value corresponding to the target coordinate axis of the two-phase rotating coordinate system is obtained based on the three-phase current of the compressor at the current sampling time. Thus, using the conversion current value corresponding to the target coordinate axis, the reference value of the bus voltage at the current time is calculated, along with the target mapping relationship. Furthermore, the sampled value of the bus voltage at the current time is corrected using the reference value. This improves the accuracy of the corrected bus voltage, overcomes the limitations of the hardware circuitry used to acquire the bus voltage sample value in terms of accuracy and filtering performance, suppresses the influence of noise interference and abnormal disturbances on the bus voltage sampling, and significantly improves the accuracy of the bus voltage sampling. Attached Figure Description
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0025] Figure 1 This is a schematic diagram showing the relationship between the output power of each power source and the bus voltage variation in a DC microgrid. Figure 2 This is a schematic diagram of the architecture of a DC microgrid; Figure 3 This is a schematic diagram of the power regulation timing of a DC microgrid; Figure 4 This is a schematic diagram of the measured current waveform of a compressor in an electronic device. Figure 5 A schematic diagram of an electronic device provided in an embodiment of this application; Figure 6 A schematic flowchart illustrating a power adjustment method provided in an embodiment of this application; Figure 7This is a schematic diagram illustrating the internal working principle of the controller in an electronic device provided in the embodiments of this application; Figure 8 A schematic flowchart illustrating another power adjustment method provided in an embodiment of this application; Figure 9 The electronic control schematic diagram of the electronic device provided in the embodiments of this application; Figure 10 A schematic flowchart illustrating another power adjustment method provided in this application embodiment; Figure 11 A schematic flowchart illustrating another power adjustment method provided in this application embodiment; Figure 12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of this application will be further described in detail below with reference to the accompanying drawings of the embodiments of this application. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.
[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0028] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0029] It should be noted that the terms "first, second, third" used in the embodiments of this application are used to distinguish similar or different objects and do not represent a specific order of objects. It can be understood that "first, second, third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0030] Photovoltaic-storage-DC-flexible buildings (PSG-SHU-CHU-Flexible Buildings) is a novel power distribution model that integrates centralized power grids with building-based distributed energy resources. It achieves flexible interaction between power sources and loads through a DC microgrid that coordinates the operation of photovoltaic (PV) systems, the power grid, and energy storage systems. The core of PSG-SHU-CHU-Flexible Building technology lies in fully exploring the regulation potential of building-based distributed energy resources and enhancing the self-sufficiency and flexibility of building energy use. Building-based distributed energy resources include photovoltaic (PV) systems and energy storage systems.
[0031] Please see Figure 1 , Figure 1 This diagram illustrates the relationship between the output power of each power source and the bus voltage variation in a DC microgrid. Under bus voltage droop control mode, the relationship between the output power of photovoltaic, grid, and energy storage power sources and the bus voltage variation in the DC microgrid is shown below. Figure 1 As shown in the diagram, when the bus voltage drops from 800V to 670V, the photovoltaic system generates electricity normally and charges the energy storage. When the bus voltage drops from 670V to 650V, the photovoltaic power generation cannot meet the power demand of the DC microgrid, and the energy storage switches from charging to discharging, discharging together with the photovoltaic system to supply power. When the bus voltage drops from 650V to 630V, the photovoltaic system stops generating electricity, and the energy storage discharges at maximum power to support the power consumption of the DC microgrid. When the bus voltage drops from 630V to 600V, the system load power further increases, and neither the photovoltaic system nor the energy storage is sufficient to support the load consumption, so the grid starts power output (i.e., grid power transmission).
[0032] Therefore, the bus voltage directly reflects the output of distributed energy in a building, and has important guiding significance for the local consumption of renewable energy and the realization of low-carbon operation. When the bus voltage is high, it indicates that the supply of renewable energy is sufficient, and it is advisable to prioritize the local consumption or storage of surplus electricity; conversely, when the bus voltage is low, it indicates that the DC microgrid mainly relies on grid power supply. In this case, load should be reduced and unnecessary energy consumption should be minimized.
[0033] Typically, energy storage systems in DC microgrids play a crucial role in rapid response and power buffering. When encountering cloud cover or sudden changes in daytime irradiance, photovoltaic (PV) output can drop by 30% to 50% within seconds, requiring rapid discharge from the energy storage system to compensate for the power shortfall. However, in practical applications of DC microgrids, the scale of energy storage deployment is generally limited due to cost and safety constraints. According to the "Technical Specification for Building-Integrated Photovoltaic-Storage-DC-Flexible Engineering," energy storage batteries in buildings should possess intrinsic safety characteristics. Currently, commonly used lithium batteries cannot meet this requirement, leading to limited or even prohibited installation capacity in buildings. This deprives DC microgrids of critical power buffering and rapid response support. Against this backdrop, photovoltaic (PV) power, as the core energy supply unit, is significantly affected by multiple factors such as irradiance, temperature, and shading effects, exhibiting significant randomness and intermittency. Such power fluctuations pose a severe challenge to the stable operation of DC microgrids, requiring timely grid intervention.
[0034] Currently, the flexible response mechanisms of electronic devices generally exhibit significant passive characteristics. (See also:) Figure 2 , Figure 2 This is a schematic diagram of a DC microgrid architecture. Figure 2As shown, in a DC microgrid, the microgrid control center, as the core decision-making unit, coordinates the energy distribution among three types of systems—photovoltaics, the power grid, and energy storage—and electronic loads such as high-voltage DC air conditioners. The microgrid control center collects and processes data from the DC microgrid, and then sends power regulation commands to the high-voltage DC air conditioner. The information transmission time in this process is on the order of minutes. For example, the microgrid control center can also be simply referred to as the control center.
[0035] Please see Figure 3 , Figure 3 This is a schematic diagram of the power regulation timing of a DC microgrid. (Example:) Figure 3 As shown, during the T0-T1 period (i.e., the signal acquisition phase), the control center is in a waiting state for 0-10 seconds. During this period, the photovoltaic system, power grid system, air conditioning load, and other loads simultaneously start signal acquisition and are all in the signal acquisition state. During the T1-T2 period (i.e., the data transmission phase), the control center transmits data through communication methods such as power line carrier and wireless transmission, taking approximately 1-5 minutes. The signals of the photovoltaic system, power grid system, air conditioning load, and other loads are all in the state of transmission or waiting for data transmission. During the T2-T3 period (i.e., the data processing phase), the control center performs data processing such as calculating the source and load dispatchable energy, taking approximately 30 seconds. The photovoltaic system, power grid system, air conditioning load, and other loads are all in the state of waiting for the center's data processing. During the T3-T4 period (i.e., the power adjustment command sending phase), the control center sends power adjustment commands, taking approximately 10 seconds. The photovoltaic system, power grid system, air conditioning load, and other loads are all in the state of receiving commands. During the T4-T5 period (i.e., the power regulation phase), the photovoltaic system, grid system, air conditioning load, and other loads all undergo power regulation, which takes approximately 0-30 seconds. The total time for the entire power regulation process is relatively long, reaching the minute level, with a maximum of about 6 minutes.
[0036] However, the fluctuation cycle of photovoltaic energy is typically on the order of seconds. This response delay makes it difficult to match the photovoltaic output power with the load consumption power in real time. When the power generation of the photovoltaic system decreases sharply, a sudden large load connection causes a sharp increase in the operating load of the DC microgrid, or an energy distribution imbalance occurs between the photovoltaic, the grid, and the energy storage system, the bus voltage will drop accordingly. This leads to energy imbalance and reduces the utilization efficiency of photovoltaic energy.
[0037] Based on the inherent characteristics of the compressor itself, it can be known that the compressor is essentially a permanent magnet synchronous motor. The input and output of a permanent magnet synchronous motor are strongly coupled, that is, the bus voltage, modulation frequency and load parameters on the input side can all be related to the electrical current and electrical angular velocity on the output side.
[0038] The compressor's electrical angular velocity is primarily related to the load. Under constant load, the compressor current is strongly coupled to the bus voltage; that is, if the bus voltage increases, the compressor current also increases, and if the bus voltage decreases, the compressor current also decreases. Figure 4 The measured current waveform shown is when the bus voltage V dc When the DC microgrid voltage (i.e., the voltage itself) changes abruptly, the compressor current exhibits the same trend as the bus voltage. The compressor current includes the q-axis current i. q and d-axis current i d .
[0039] As can be seen from the above analysis, there is a strong coupling relationship between the compressor current and the bus voltage. The compressor current is prone to change synchronously with the fluctuation of the bus voltage, which in turn affects the operating stability of the compressor.
[0040] In view of this, embodiments of this application provide a power regulation method. This method applies to an electronic device powered at least by a photovoltaic energy system and / or the power grid. The electronic device also includes an inverter and a compressor driven by the inverter. The regulation method includes: acquiring the three-phase current of the compressor at the current sampling moment; determining the input voltage and delayed voltage at the current sampling moment based on the three-phase current of the compressor, wherein the delayed voltage is obtained by delaying the input voltage for a preset duration; determining whether the electronic device is in a bus voltage disturbance state based on the input voltage and delayed voltage at the current sampling moment, wherein the bus voltage disturbance state does not include disturbance factors other than bus voltage disturbance; when the electronic device is in a bus voltage disturbance state, acquiring the change in bus voltage within a target duration, wherein the end time of the target duration includes the current sampling moment; and adjusting the output power of the compressor at the next moment based on the change in bus voltage within the target duration, wherein the output power of the compressor is positively correlated with the change in bus voltage within the target duration.
[0041] Based on this, the input voltage and delayed voltage are determined in real time by monitoring the three-phase current of the compressor, and the presence of bus voltage disturbances in the electronic equipment is quickly determined based on these input and delayed voltages. Furthermore, when the electronic equipment is in a bus voltage disturbance state, the compressor's output power is adjusted based on the changes in the bus voltage over a target time period. This achieves a rapid and synchronous response of the compressor's output power to bus voltage disturbances, significantly reducing the response delay of power regulation, improving power response speed, and enhancing the utilization efficiency of photovoltaic energy.
[0042] The electronic devices provided in this application embodiment may include, but are not limited to, photovoltaic air conditioners, photovoltaic refrigerators, photovoltaic printers, and photovoltaic office appliances. For ease of explanation, this application embodiment uses a photovoltaic air conditioner as an example.
[0043] For example, please refer to Figure 5 , Figure 5 This is a schematic diagram of an electronic device provided in an embodiment of this application. Figure 5 As shown, the electronic device 100 may include: a controller 10, a compressor 20, and an inverter 30.
[0044] In some embodiments, the electronic device may include, but is not limited to, devices such as compressors and inverters. The electronic device may also include any controller with functions such as processing, analog-to-digital conversion, control, identification, and computation. For example, the controller may specifically be any possible processing unit such as a central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP), or field-programmable gate array (FPGA); or, for example, the controller may be a combination of at least two of the following devices: CPU, MPU, DSP, FPGA, digital-to-analog converter (DAC), and analog-to-digital converter (ADC). This application does not limit the specific implementation of this embodiment.
[0045] The following will further describe how the power regulation method provided in the embodiments of this application can improve the power response speed without relying on the unified scheduling of the control center.
[0046] Please see Figure 6 , Figure 6 This application provides a schematic flowchart of a power adjustment method, which includes: S101. Collect the three-phase current of the compressor at the current sampling moment.
[0047] The three-phase current of the compressor refers to the alternating current in each phase of the compressor's three-phase AC motor during operation. For example, the three-phase current of the compressor includes the first phase current i. a Second phase current i b and the third phase current i c .
[0048] S102. Based on the three-phase current of the compressor at the current sampling time, determine the input voltage and delay voltage at the current sampling time.
[0049] The delayed voltage is obtained by delaying the input voltage for a preset duration. For example, the preset duration is 30ms.
[0050] The compressor's input voltage includes the D-axis voltage and the Q-axis voltage. Correspondingly, the delay voltage includes the delayed D-axis voltage and the delayed Q-axis voltage.
[0051] In some embodiments, Figure 7 This is a schematic diagram illustrating the internal working principle of the controller in the electronic device provided in this application embodiment. Figure 7As shown, the three-phase current of the compressor at the current sampling moment is transformed to obtain the compressor current in a two-phase rotating coordinate system, i.e., the D-axis current i. d and Q-axis current i q The D-axis current i is controlled via a real-time current loop in classic field-oriented control (FOC). d and D-axis reference current i d-ref The error between them is adjusted by proportional-integral (PI) to obtain the D-axis voltage u. d and the Q-axis current i q and Q-axis reference current i q-ref The error between them is adjusted by proportional-integral adjustment of PI to obtain the Q-axis voltage u. q .
[0052] It should be noted that the compressor's three-phase current and D-axis current i d and Q-axis current i q These are different expressions of the same current in two coordinate systems, both of which can be referred to as the compressor current.
[0053] For example, by respectively applying the D-axis voltage u d and Q-axis voltage u q Perform a preset time delay to obtain the delayed D-axis voltage u. d-2 and the delayed Q-axis voltage u q-2 .
[0054] It is understandable that the D-axis current i is affected by a time-delay current loop. d and D-axis reference current i d-ref The D-axis voltage u is obtained by proportional-integral adjustment of the PI converter based on the error between the two. d and the Q-axis current i q and Q-axis reference current i q-ref The error between them is adjusted by proportional-integral method to obtain the Q-axis voltage u. q And respectively for the D-axis voltage u d and Q-axis voltage u q Perform a preset time delay to obtain the delayed D-axis voltage u. d-2 and the delayed Q-axis voltage u q-2 .
[0055] For example, the response time of the real-time current loop is approximately 200 µs, while the response time of the delayed current loop is approximately 30 ms. The time margin of the real-time current loop can respond to disturbances with a change rate on the order of milliseconds or higher, while the time margin of the delayed current loop can respond to disturbances with a change rate on the order of seconds or higher. For instance, the rate of change of bus voltage can reach the order of seconds, and the rate of change of compressor load can reach the order of milliseconds.
[0056] In one example, the reference electrical angular velocity of the compressor The electric angular velocity of the compressor in actual operation The difference is adjusted using proportional-integral control to obtain the reference current i. s Furthermore, the current control module controls the reference current i s The D-axis reference current i is obtained by decomposition processing. d-ref and Q-axis reference current i q-ref The electric angular velocity of the compressor during actual operation is calculated using the rotor position and speed estimation module. and the rotor position angle of the compressor .
[0057] S103. Based on the input voltage and delay voltage at the current sampling time, determine whether the electronic equipment is under bus voltage disturbance.
[0058] Among them, the bus voltage disturbance state refers to the operating state in which the bus voltage is disturbed by the photovoltaic energy system.
[0059] Among them, there are many factors that cause bus voltage disturbances. In this application embodiment, the bus voltage disturbance specifically refers to the bus voltage fluctuation, sudden change or jump caused by the photovoltaic energy system. That is, the bus voltage disturbance state is the state in which the abnormal change of bus voltage is caused only by the photovoltaic energy system, and the voltage disturbance caused by non-photovoltaic side factors such as load change and compressor operating condition change is excluded.
[0060] S104. When the electronic equipment is in a state of bus voltage disturbance, acquire the change of bus voltage within a target time period.
[0061] The termination time of the target duration includes the current sampling time.
[0062] Understandably, the controller uses the current sampling time as the endpoint and backtracks for a certain period of time to form a sliding time window, thereby obtaining the latest, real-time, and short-term changes in the bus voltage. This provides a real-time basis for the rapid adjustment of the compressor's output power, avoiding response delays or adjustment deviations caused by using historical lagging data, and improving the response speed and adjustment accuracy under bus voltage disturbances.
[0063] For example, changes may include, but are not limited to, increases and decreases.
[0064] It should be noted that the target duration can be equal to or less than the preset duration, and this application embodiment does not specifically limit this. For example, when the target duration is equal to the preset duration, it can be understood that the controller acquires the changes in the bus voltage within the preset duration. When the target duration is less than the preset duration, the controller can acquire the changes in the bus voltage within at least one target duration within the preset duration.
[0065] S105. Adjust the compressor's output power at the next moment based on the changes in the bus voltage within the target time period.
[0066] Among them, the output power of the compressor is positively correlated with the change of the bus voltage within the target time period.
[0067] For example, when the bus voltage shows an increasing trend within the target time period, the compressor's output power is increased simultaneously. When the bus voltage shows a decreasing trend within the target time period, the compressor's output power is decreased simultaneously. This enables the compressor's output power to quickly and adaptively follow bus voltage fluctuations, effectively suppressing the impact of bus voltage disturbances on electronic equipment, shortening the response delay of power regulation, and improving the utilization efficiency of photovoltaic energy.
[0068] In this embodiment, the input voltage and delayed voltage are determined in real time by the three-phase current of the compressor, and the presence of bus voltage disturbance is quickly determined based on the input voltage and delayed voltage. Furthermore, when the electronic equipment is in a bus voltage disturbance state, the compressor's output power is adjusted based on the bus voltage variation within a target time period. This achieves a rapid and synchronous response of the compressor's output power to bus voltage disturbances, significantly shortening the power regulation response delay, improving power response speed, and enhancing the utilization efficiency of photovoltaic energy.
[0069] The following examples further illustrate how the controller determines whether the electronic equipment is under bus voltage disturbance based on the input voltage and the delay voltage at the current sampling time.
[0070] Please see Figure 8 , Figure 8 This is a schematic flowchart illustrating another power adjustment method provided in an embodiment of this application. Figure 6 As shown, the implementation process of S103 above may include: S201. Determine the first duty cycle corresponding to the input voltage and the second duty cycle corresponding to the delay voltage.
[0071] The first duty cycle is the product of the duty cycle used by the inverter in the previous moment and the preset adjustment value, and the second duty cycle is the duty cycle used in the previous moment.
[0072] Continue to combine Figure 7 To clarify, the first duty cycle is generated by the controller based on the classic FOC (Free-Circuit Control). For example, the first duty cycle is the real-time duty cycle obtained by multiplying the duty cycle used by the inverter at the previous moment by a preset adjustment value. It is understood that the time margin of the real-time current loop in classic FOC control is sufficient to handle the load torque surges that occur on a millisecond timescale caused by compressor liquid slugging.
[0073] The second duty cycle is the duty cycle used in the previous time step, which can be understood as the delayed duty cycle.
[0074] For example, the first duty cycle can be specifically expressed by formula (1): D1=D0*M(1) Where D1 is the first duty cycle, D0 is the duty cycle used in the previous moment, and M is the preset adjustment value.
[0075] For example, the second duty cycle can be specifically expressed by formula (2): D2=D0(2) Where D2 is the second duty cycle and D0 is the duty cycle used in the previous time step.
[0076] For example, continue to combine Figure 7 This explains that by adjusting the input voltage (i.e., the D-axis voltage u)... d and Q-axis voltage u q Perform coordinate transformation to obtain the corresponding three-phase voltages (first phase voltage u). a Second phase voltage u b and the third phase voltage u c ), and by adjusting the delayed voltage (i.e., the delayed D-axis voltage u) d-2 and the delayed Q-axis voltage u q-2 Perform coordinate transformation to obtain the corresponding delayed three-phase voltages (the delayed voltage u of the first phase). a-2 The voltage u after the second phase delay b-2 and the voltage u after the third phase delay c-2 Furthermore, the first modulation module generates a first duty cycle D1 corresponding to the three-phase voltage, and the second modulation module generates a second duty cycle D2 corresponding to the delayed three-phase voltage.
[0077] S202. Determine whether the electronic equipment is under bus voltage disturbance state based on the first duty cycle, the second duty cycle, and the bus voltage.
[0078] For example, continue to combine Figure 7The explanation is as follows: by using a duty cycle selector in combination with the first duty cycle, the second duty cycle, and the bus voltage, it is possible to determine whether the electronic equipment is in a state of bus voltage disturbance, thereby achieving accurate identification of bus voltage disturbance and eliminating other non-bus voltage disturbances.
[0079] In some embodiments, the implementation of S202 above includes: The first equivalent output voltage is determined based on the first duty cycle and the bus voltage. The second equivalent output voltage is determined based on the second duty cycle and the bus voltage. If the voltage difference between the first and second equivalent output voltages is less than a voltage threshold, the electronic equipment is determined to be in a bus voltage disturbance state.
[0080] For example, the first equivalent output voltage is determined by multiplying the first duty cycle by the bus voltage, and the second equivalent output voltage is determined by multiplying the second duty cycle by the bus voltage.
[0081] It should be noted that the bus voltage used to determine the first equivalent output voltage may be equal to or different from the bus voltage used to determine the second equivalent output voltage. This application does not impose specific limitations on this, and the determination should be made based on the actual situation.
[0082] In this embodiment, the bus voltage is used to determine the corresponding first equivalent output voltage and second equivalent output voltage with the first duty cycle and the second duty cycle, respectively. The voltage difference between the first equivalent output voltage and the second equivalent output voltage is compared with a voltage threshold to make a judgment, thereby realizing a fast and accurate judgment of the bus voltage disturbance state.
[0083] In some embodiments, the adjustment method further includes: If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is greater than or equal to the voltage threshold, it is determined that the electronic equipment is not under bus voltage disturbance. The torque variation of the compressor within the target time period is obtained. Based on the torque variation, the compressor's output power is adjusted.
[0084] When the electronic equipment is determined to be not in a state of bus voltage disturbance, the controller responds to the torque fluctuation of the compressor to adjust its output power. The specific control process can be implemented by a conventional permanent magnet synchronous motor (FOC) in this field. The relevant detailed process will not be elaborated here.
[0085] Based on S201 and S202 above, a delayed second duty cycle is generated using the duty cycle used by the inverter at the previous moment. The real-time first duty cycle is obtained by multiplying the previous duty cycle by a preset adjustment value. Furthermore, by combining the first duty cycle, the second duty cycle, and the bus voltage, the bus voltage disturbance state can be quickly and accurately identified, effectively eliminating disturbance factors other than bus voltage disturbances, and providing a reliable basis for subsequent rapid response adjustments.
[0086] In some embodiments, the adjustment method further includes: When the electronic equipment is under bus voltage disturbance, the control inverter outputs a modulation signal with a second duty cycle within a preset time period. The modulation signal is used to drive the compressor.
[0087] This application establishes a relationship between the compressor's inherent characteristics and the bus voltage by rationally utilizing the inherent characteristics of the compressor itself and the relationship between the input and output of the combined compressor. Based on this, the voltage equation of the compressor is obtained by analyzing the mathematical model of the compressor characteristics, thereby revealing the correlation between the compressor's inherent characteristics and the bus voltage.
[0088] For example, the voltage equation of the compressor can be specifically expressed by formulas (3-1) and (3-2): (3-1) (3-2) Among them, V d R is the voltage across the D-axis. s I is the resistance of the compressor. d For the D-axis current, L d The inductance along the D-axis, L is the electric angular velocity of the compressor. q For the Q-axis inductance, I q V is the Q-axis current. q Let ψ be the Q-axis voltage. f is the flux linkage coefficient of the compressor.
[0089] Based on the relationship between the bus voltage and the compressor input voltage obtained through duty cycle adjustment, the specific relationship between the bus voltage and the compressor input voltage can be expressed by formulas (4-1) and (4-2): (4-1) (4-2) Among them, V d V is the voltage across the D-axis. bus Where D is the bus voltage and D is the duty cycle. V is the rotor position angle of the compressor. q This is the Q-axis voltage.
[0090] By combining formulas (3-1), (3-2), (4-1), and (4-2), formulas (5) and (6) can be established to reflect the relationship between the inherent characteristics of the compressor and the bus voltage.
[0091] (5) (6) Among them, V bus Where D is the bus voltage and D is the duty cycle. R is the rotor position angle of the compressor. s I is the resistance of the compressor. d For the D-axis current, L d The inductance along the D-axis, L is the electric angular velocity of the compressor. q For the Q-axis inductance, I q Let ψ be the Q-axis current. f is the flux linkage coefficient of the compressor.
[0092] By analyzing formulas (5) and (6), it is found that the bus voltage and the compressor current are positively correlated when the duty cycle remains constant. For example, when the bus voltage decreases, the compressor current decreases accordingly, and the compressor's output power also decreases. When the bus voltage increases, the compressor current increases accordingly, and the compressor's output power also increases, thus suppressing fluctuations in the bus voltage. It can be understood that the photovoltaic air conditioner is equivalent to a damper for fluctuations in the DC microgrid.
[0093] Based on the above analysis, it can be seen that by controlling the inverter to output a modulation signal with a second duty cycle within a preset time period, the duty cycle of the modulation signal remains constant within the preset time period. Thus, under the premise of a constant duty cycle, the bus voltage can directly affect the compressor's output power, effectively eliminating coupling interference caused by duty cycle changes. Furthermore, when adjusting the compressor's output power at the next moment based on the bus voltage changes within the target time period, the accuracy and precision of power regulation can be significantly improved.
[0094] In this embodiment, when the electronic equipment is under bus voltage disturbance, controlling the inverter to output a modulation signal with a second duty cycle within a preset time period ensures that the duty cycle of the modulation signal remains constant within this preset time period. With a constant duty cycle, the bus voltage directly affects the compressor's output power, effectively eliminating coupling interference caused by duty cycle changes. Furthermore, when adjusting the compressor's output power at the next moment based on the bus voltage changes within the target time period, the accuracy and precision of power regulation can be significantly improved.
[0095] The following embodiments further illustrate how the controller adjusts the output power of the compressor at the next moment based on the changes in the bus voltage over a target duration.
[0096] In some embodiments, the implementation process of S105 may include: adjusting the electric angular velocity of the compressor at the next moment according to the change of the bus voltage within the target time period, so as to control the output power of the electronic device.
[0097] Specifically, when the indicator bus voltage increases, the compressor's electrical angular velocity at the next moment is increased; when the indicator bus voltage decreases, the compressor's electrical angular velocity at the next moment is decreased. Correspondingly, when the compressor's electrical angular velocity increases at the next moment, the output power of the electronic equipment increases. When the compressor's electrical angular velocity decreases at the next moment, the output power of the electronic equipment decreases.
[0098] Continue to combine Figure 7 The explanation is that the power regulation module adjusts the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within the target time period.
[0099] Based on this, the electrical angular velocity of the compressor is adjusted in real time according to the changes in the bus voltage within the target time period, thereby controlling the output power of the electronic equipment. When the bus voltage increases, the electrical angular velocity is increased; when the bus voltage decreases, the electrical angular velocity is decreased. This allows the compressor's output power to respond quickly and synchronously with the bus voltage, effectively suppressing voltage fluctuations and improving the dynamic stability and power regulation accuracy of the electronic equipment under bus voltage disturbance conditions.
[0100] In some embodiments, the process of adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within a target time period includes: determining the adjustment amount corresponding to the electric angular velocity of the compressor based on the change of the bus voltage within the target time period and a preset weight. When the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor at the next moment is adjusted to be the sum of the adjustment amount and the electric angular velocity at the current sampling moment. When the change indicates that the bus voltage is decreasing, the electric angular velocity of the compressor at the next moment is adjusted to be the difference between the adjustment amount and the electric angular velocity at the current sampling moment.
[0101] The preset weight is used to set the ratio between the change in bus voltage and the adjustment amount within the target time period, control the adjustment amplitude and response intensity, ensure smooth, accurate and stable adjustment, and avoid over-adjustment or insufficient response.
[0102] By combining the change in bus voltage over a target time period with preset weights to determine the adjustment amount, precise matching between the bus voltage fluctuation amplitude and the adjustment intensity can be achieved, resulting in a linear fit between the adjustment amount and the change. Consequently, the compressor's electrical angular velocity adjusts in the same direction as the bus voltage change, in real-time and smoothly, rapidly adjusting the output power to suppress voltage fluctuations. This adjustment method ensures rapid disturbance response while reasonably constraining the adjustment amplitude through preset weights, effectively avoiding over-adjustment or under-adjustment, and significantly improving power regulation accuracy.
[0103] In some embodiments, the process of adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within a target time period includes: When the change indicates an increase in bus voltage, the compressor's electrical angular velocity at the next moment is adjusted to be the sum of the electrical angular velocity at the current sampling moment and a constant increment. When the change indicates a decrease in bus voltage, the compressor's electrical angular velocity at the next moment is adjusted to be the difference between the electrical angular velocity at the current sampling moment and a constant increment.
[0104] The constant increment is a preset fixed adjustment step size, which is a constant value set in advance by the controller and does not change in real time with the fluctuation amplitude of the bus voltage.
[0105] In this embodiment, by using a constant increment for fixed step size adjustment, the adjustment response speed is effectively improved, ensuring that the compressor can quickly adjust the electrical angular velocity in a stable and reliable manner when the bus voltage is disturbed, thereby achieving rapid response and dynamic adjustment of the output power.
[0106] The following examples further illustrate how to obtain the changes in bus voltage over a target time period when the electronic device is in a state of bus voltage disturbance.
[0107] Since the sampled value of the bus voltage needs to be filtered by hardware circuitry, the setting of the filtering coefficient in the software and the topology of the hardware filtering circuit will affect the authenticity of the sampled value and make it difficult to achieve the same effect as noise interference suppression. Therefore, this application does not directly utilize the sampled value of the bus voltage. Based on formulas (5) and (6), which can reflect the relationship between the inherent characteristics of the compressor and the bus voltage, as Figure 9 As shown, a reference value for the bus voltage is obtained through a combination of feedforward and feedback. This reference value is then used to correct the bus voltage, thus obtaining the final bus voltage. The bus voltage is then pulse-width modulated and input to the inverter, which transmits the D-axis and Q-axis voltages to the compressor to drive its motor.
[0108] Among them, the D-axis voltage and Q-axis voltage are also known as the compressor input voltage.
[0109] In some embodiments, the implementation process of S104 described above may include: acquiring the compressor's bus voltage at the current sampling moment and the compressor's bus voltage at historical moments prior to the current sampling moment; and determining the change based on the difference between the bus voltage at the current sampling moment and the bus voltage at historical moments.
[0110] The target duration includes historical time points. The bus voltage at the current sampling time is obtained by correcting the sampled value of the bus voltage at the current sampling time based on the sampled value of the three-phase current of the compressor at the current sampling time and the duty cycle value of the modulation signal output by the inverter at the current sampling time.
[0111] For example, when the compressor's bus voltage at the current sampling moment is greater than the bus voltage at a historical moment, the change indicates an increase in bus voltage. When the compressor's bus voltage at the current sampling moment is less than the bus voltage at a historical moment, the change indicates a decrease in bus voltage.
[0112] Please see Figure 10 , Figure 10 This is a flowchart illustrating another power adjustment method provided in an embodiment of this application. The adjustment method further includes: S301. Based on the three-phase current of the compressor at the current sampling moment, obtain the value of the conversion current corresponding to the target coordinate axis of the two-phase rotating coordinate system.
[0113] The target coordinate axes include the D-axis and / or Q-axis of the two-phase rotating coordinate system.
[0114] S302. Based on the values of the conversion current corresponding to the target coordinate axis, the values, and the target mapping relationship, obtain the reference value of the bus voltage at the current sampling time.
[0115] With the target coordinate axis being the D-axis, the reference value of the bus voltage is calculated based on the value of the conversion current corresponding to the D-axis, the value of the conversion current, and the mapping relationship with the first sub-target corresponding to the D-axis.
[0116] The first sub-target mapping relationship is determined based on the first sub-mapping relationship and the second sub-mapping relationship corresponding to the D-axis. The first sub-mapping relationship includes the mapping relationship of bus voltage, conversion voltage corresponding to the D-axis and duty cycle. The second sub-mapping relationship includes the mapping relationship of compressor D-axis voltage, D-axis current, Q-axis current, compressor resistance, D-axis inductance, Q-axis inductance and compressor electric angular velocity in a two-phase rotating coordinate system.
[0117] The conversion voltage corresponding to the D-axis is simply referred to as the D-axis voltage.
[0118] For example, the first sub-mapping relationship can be specifically represented by the above formula (4-1).
[0119] For example, the second sub-mapping relationship can be specifically represented by the above formula (3-1).
[0120] Specifically, the first sub-target mapping relationship is determined based on the first sub-mapping relationship and the second sub-mapping relationship. For example, by combining the above formulas (4-1) and (3-1), the above formula (5) is obtained. That is to say, the first sub-target mapping relationship can be specifically represented by the above formula (5).
[0121] With the target coordinate axis being the Q-axis, the reference value of the bus voltage is calculated based on the value of the conversion current corresponding to the Q-axis, the value of the conversion current, and the mapping relationship with the second sub-target corresponding to the Q-axis.
[0122] The second sub-target mapping relationship is determined based on the third and fourth sub-mapping relationships corresponding to the Q-axis. The third sub-mapping relationship includes the mapping relationship of bus voltage, conversion voltage corresponding to the Q-axis, and duty cycle. The fourth sub-mapping relationship includes the mapping relationship of compressor Q-axis voltage, D-axis current, Q-axis current, compressor resistance, D-axis inductance, Q-axis inductance, compressor electric angular velocity, and compressor flux linkage coefficient in a two-phase rotating coordinate system.
[0123] The conversion voltage corresponding to the Q-axis is simply referred to as the Q-axis voltage.
[0124] For example, the third sub-mapping relationship can be specifically represented by the above formula (4-2).
[0125] For example, the fourth sub-mapping relationship can be specifically represented by the above formula (3-2).
[0126] The second sub-target mapping relationship is determined based on the third and fourth sub-mapping relationships. For example, by combining the above formulas (4-2) and (3-2), formula (6) is obtained. That is to say, the second sub-target mapping relationship can be specifically represented by the above formula (6).
[0127] With the target coordinate axes being the Q-axis and D-axis, the first sub-reference value of the bus voltage is calculated based on the values of the conversion current corresponding to the D-axis and the mapping relationship with the first sub-target corresponding to the D-axis. The second sub-reference value of the bus voltage is calculated based on the values of the conversion current corresponding to the Q-axis and the mapping relationship with the second sub-target corresponding to the Q-axis. If the difference between the first and second sub-reference values is less than or equal to a threshold, either the first or second sub-reference value is used as the reference value of the bus voltage.
[0128] It should be noted that: the first mapping relationship includes the first sub-mapping relationship and / or the third sub-mapping relationship, and the second mapping relationship includes the second sub-mapping relationship and / or the fourth sub-mapping relationship.
[0129] S303. Based on the reference value of the bus voltage at the current sampling time, correct the sampled value of the bus voltage at the current sampling time to obtain the bus voltage at the current sampling time.
[0130] The target mapping relationship is determined by the first mapping relationship and the second mapping relationship. The first mapping relationship is the mapping relationship between the bus voltage, the conversion voltage corresponding to the target coordinate axis, and the duty cycle. The second mapping relationship includes the mapping relationship between the voltage and current of the compressor in the two-phase rotating coordinate system.
[0131] When the reference value of the bus voltage differs from the sampled value of the bus voltage and the first target condition is met, the sampled value is corrected based on the difference between the reference value and the sampled value to obtain the corrected bus voltage, which is the sum of the difference and the sampled value.
[0132] The first target condition is that the change of the bus voltage at multiple target sampling times is the same as the change of the reference value of the bus voltage at multiple target sampling times, and the difference between the first difference and the second difference is less than or equal to a threshold. The first difference is the difference between the sampled value of the bus voltage at the first target sampling time and the reference value, and the second difference is the difference between the sampled value of the bus voltage at the second target sampling time other than the first target sampling time and the reference value.
[0133] If the reference value of the bus voltage differs from the sampled value of the bus voltage and the second objective condition is met, the reference value of the bus voltage shall be used as the corrected bus voltage.
[0134] The second objective condition is that the average value of the bus voltage in the current sampling period and the average value of the bus voltage in the previous sampling period are greater than or equal to a threshold value, which is a value greater than 1. Each sampling period includes at least one sampling moment.
[0135] If the reference value of the bus voltage differs from the sampled value of the bus voltage and the third objective condition is met, the reference value of the bus voltage shall be used as the corrected bus voltage.
[0136] The third objective condition is that the sampled value of the bus voltage at the current sampling time is the same as the reference value of the bus voltage at the sampling time before the current sampling time.
[0137] In this embodiment, the conversion current value corresponding to the target coordinate axis of the two-phase rotating coordinate system is obtained based on the three-phase current of the compressor at the current sampling time. Thus, using the conversion current value corresponding to the target coordinate axis, the reference value of the bus voltage at the current time is calculated, along with the target mapping relationship. Furthermore, the sampled value of the bus voltage at the current time is corrected using the reference value. This improves the accuracy of the corrected bus voltage, overcomes the limitations of the hardware circuitry used to acquire the bus voltage sample value in terms of accuracy and filtering performance, suppresses the influence of noise interference and abnormal disturbances on the bus voltage sampling, and significantly improves the accuracy of the bus voltage sampling.
[0138] The following describes an exemplary application of the embodiments of this application in a real-world application scenario.
[0139] Figure 11 This is a schematic flowchart illustrating another power adjustment method provided in an embodiment of this application. Figure 11 As shown, the adjustment method includes: S401. Determine the input voltage at the current sampling moment through a real-time current loop.
[0140] S402. Determine the delay voltage at the current sampling moment through the delay current loop.
[0141] S403. Determine the first duty cycle corresponding to the input voltage.
[0142] The first duty cycle is the product of the duty cycle used by the inverter in the previous moment and the preset adjustment value.
[0143] S404. Determine the second duty cycle corresponding to the delay voltage.
[0144] The second duty cycle is the duty cycle used in the previous time step.
[0145] S405. Determine the first equivalent output voltage based on the first duty cycle and the bus voltage.
[0146] S406. Determine the second equivalent output voltage based on the second duty cycle and the bus voltage.
[0147] S407. Determine whether the voltage difference between the first equivalent output voltage and the second equivalent output voltage is greater than or equal to the voltage threshold by using a duty cycle selector.
[0148] If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is less than the voltage threshold, then the electronic equipment is determined to be in a bus voltage disturbance state.
[0149] S408. When the electronic equipment is in a state of bus voltage disturbance, control the inverter to output a modulation signal with a duty cycle of the second duty cycle within a preset time period.
[0150] S409. Adjust the compressor's output power at the next moment based on the changes in the bus voltage within the target time period.
[0151] If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is greater than or equal to the voltage threshold, then it is determined that the electronic equipment is not under bus voltage disturbance.
[0152] S410. Adjust the compressor's output power according to the torque changes.
[0153] It should be understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0154] Please see Figure 12 , Figure 12 This is a schematic diagram of a controller provided in an embodiment of this application. The controller may include a processor, memory, bus, and device interface.
[0155] The processor calls the executable program code stored in the memory to execute the control flow of any controller disclosed in the embodiments of this application.
[0156] The memory stores executable program code, which is executed by the processor to implement the control flow of any of the controllers disclosed in the embodiments of this application.
[0157] The bus is used to transfer program code stored in memory to the processor for execution.
[0158] The device interface connects to the bus and is used to enable the processor and memory to connect to other devices.
[0159] In some possible embodiments, the memory may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor can be used to execute instructions stored in the memory, and when the processor executes the instructions, the processor can perform the various steps and / or processes corresponding to the terminal device in the above method embodiments.
[0160] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0161] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0162] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0163] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for adjusting power, characterized in that, Applied to electronic devices, the electronic devices being powered at least by a photovoltaic energy system and / or the power grid, the electronic devices further including an inverter and a compressor driven by the inverter, the regulation method comprising: The three-phase current of the compressor at the current sampling moment is collected; Based on the three-phase current of the compressor at the current sampling time, the input voltage and the delay voltage at the current sampling time are determined. The delay voltage is obtained by delaying the input voltage for a preset duration. Based on the input voltage and the delay voltage at the current sampling time, it is determined whether the electronic device is in a bus voltage disturbance state. The bus voltage disturbance state refers to the operating state in which the bus voltage is disturbed by the photovoltaic energy system. When the electronic device is in the bus voltage disturbance state, the change of the bus voltage within a target duration is acquired, and the end time of the target duration includes the current sampling time; Based on the change of the bus voltage within the target duration, the output power of the compressor at the next moment is adjusted, and the output power of the compressor is positively correlated with the change of the bus voltage within the target duration.
2. The adjustment method according to claim 1, characterized in that, The step of determining whether the electronic device is under bus voltage disturbance based on the input voltage and the delay voltage at the current sampling time includes: A first duty cycle corresponding to the input voltage and a second duty cycle corresponding to the delay voltage are determined. The first duty cycle is the product of the duty cycle used by the inverter at the previous moment and a preset adjustment value. The second duty cycle is the duty cycle used at the previous moment. Based on the first duty cycle, the second duty cycle, and the bus voltage, determine whether the electronic device is in a state of bus voltage disturbance.
3. The adjustment method according to claim 2, characterized in that, The step of determining whether the electronic device is under bus voltage disturbance based on the first duty cycle, the second duty cycle, and the bus voltage includes: The first equivalent output voltage is determined based on the first duty cycle and the bus voltage; The second equivalent output voltage is determined based on the second duty cycle and the bus voltage; If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is less than the voltage threshold, then the electronic device is determined to be in the bus voltage disturbance state.
4. The adjustment method according to claim 2, characterized in that, The adjustment method further includes: When the electronic device is in the state of bus voltage disturbance, the inverter is controlled to output a modulation signal with a duty cycle of the second duty cycle within the preset time period, and the modulation signal is used to drive the compressor.
5. The adjustment method according to claim 1, characterized in that, The step of adjusting the compressor's output power at the next moment based on the change of the bus voltage within the target time period includes: Based on the change of the bus voltage within the target duration, the electric angular velocity of the compressor at the next moment is adjusted to control the output power of the electronic device; Specifically, when the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor is increased at the next moment; When the change indicates a decrease in the bus voltage, the electric angular velocity of the compressor is reduced at the next moment.
6. The adjustment method according to claim 5, characterized in that, The step of adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within the target time period includes: Based on the change in the bus voltage within the target time period and a preset weight, the adjustment amount corresponding to the electric angular velocity of the compressor is determined; When the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor at the next moment is adjusted to the sum of the adjustment amount and the electric angular velocity at the current sampling moment; When the change indicates that the bus voltage has decreased, the electric angular velocity of the compressor at the next moment is adjusted to the difference between the adjustment amount and the electric angular velocity at the current sampling moment.
7. The adjustment method according to claim 5, characterized in that, The step of adjusting the electric angular velocity of the compressor at the next moment based on the change of the bus voltage within the target time period includes: When the change indicates that the bus voltage is increasing, the electric angular velocity of the compressor at the next moment is adjusted to be the sum of the electric angular velocity at the current sampling moment and a constant increment; When the change indicates a decrease in the bus voltage, the electric angular velocity of the compressor at the next moment is adjusted to the difference between the electric angular velocity at the current sampling moment and a constant increment.
8. The adjustment method according to claim 3, characterized in that, The adjustment method further includes: If the voltage difference between the first equivalent output voltage and the second equivalent output voltage is greater than or equal to the voltage threshold, then it is determined that the electronic device is not in the bus voltage disturbance state. The torque variation of the compressor within the target time period is obtained; The output power of the compressor is adjusted according to the torque variation.
9. The adjustment method according to any one of claims 1-8, characterized in that, The step of acquiring the change of the bus voltage within a target time period when the electronic device is in the bus voltage disturbance state includes: The bus voltage of the compressor at the current sampling time and the bus voltage of the compressor at historical times before the current sampling time are obtained, and the target duration includes the historical times; The change is determined based on the difference between the bus voltage at the current sampling time and the bus voltage at the historical time. The bus voltage at the current sampling moment is obtained by correcting the sampled value of the bus voltage at the current sampling moment based on the sampled value of the three-phase current of the compressor at the current sampling moment and the duty cycle value of the modulation signal output by the inverter at the current sampling moment.
10. The adjustment method according to claim 9, characterized in that, The adjustment method further includes: Based on the three-phase current of the compressor at the current sampling time, the value of the conversion current corresponding to the target coordinate axis of the two-phase rotating coordinate system is obtained, wherein the target coordinate axis includes the D-axis and / or Q-axis of the two-phase rotating coordinate system; Based on the value of the conversion current corresponding to the target coordinate axis, the value, and the target mapping relationship, the reference value of the bus voltage at the current sampling time is obtained. The target mapping relationship is determined by a first mapping relationship and a second mapping relationship. The first mapping relationship is the mapping relationship between the bus voltage, the conversion voltage corresponding to the target coordinate axis, and the duty cycle. The second mapping relationship includes the mapping relationship between the voltage and current of the compressor in the two-phase rotating coordinate system. Based on the reference value of the bus voltage at the current sampling time, the sampled value of the bus voltage at the current sampling time is corrected to obtain the bus voltage at the current sampling time.