Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the operation on a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of an MPPT control method based on a BOOST circuit according to an embodiment of the application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, etc. processing means) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of an application software and a module, such as a computer program corresponding to an MPPT control method based on a BOOST circuit in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
The embodiment provides an MPPT control method based on a BOOST circuit, wherein fig. 2 is a flowchart of the MPPT control method based on the BOOST circuit according to the embodiment of the invention, and as shown in fig. 2, the flowchart includes the following steps:
Step S201, obtaining an input voltage and an input power of the BOOST circuit in a current control period, and an input voltage and an input power of the BOOST circuit in a previous control period.
The BOOST circuit can realize the functions of boosting and load regulation, so that Maximum Power Point Tracking (MPPT) can be realized by regulating the output voltage of the photovoltaic cell.
In this step, the input voltage U in (k-1) and the input current I in (k-1) of the previous control period are obtained, and the input voltage U in (k) and the input current I in (k) of the present control period are obtained.
The input power P in (k-1) of the previous control period is calculated based on the obtained input voltage U in (k-1) and input current I in (k-1) of the previous control period, and the input power P in (k) of the current control period is calculated based on the obtained input voltage U in (k) and input current I in (k) of the current control period. The previous control period may be a period preceding and adjacent to the current control period.
Step S202, calculating the variation of the input voltage and the variation of the input power of the current control period relative to the previous control period.
The input power P in (k) of the current control period is subtracted from the input power P in (k-1) of the previous control period to obtain the variation delta P in of the input power of the current control period relative to the input power of the previous control period, and the input voltage U in (k) of the current control period is subtracted from the input voltage U in (k-1) of the previous control period to obtain the variation delta U in of the current control period relative to the input voltage of the previous control period.
Step 203, determining a disturbance voltage step length of the BOOST circuit in a next control period according to the variation of the input voltage and the variation of the input power, and determining a disturbance direction of the BOOST circuit in the next control period according to the variation of the input voltage.
And judging the disturbance voltage step length and the disturbance direction of the next control period according to the variation of the input voltage and the variation of the input power and the power-voltage characteristic curve (shown in figure 3) of the photovoltaic cell.
When the variation of the input voltage is greater than 0, that is, when the input voltage of the current control period is increased relative to the input voltage of the previous control period, if the input power is also increased, the disturbance direction of the current control period is correct, the current control period can be disturbed in the same direction as the current control period in the next control period, if the input power is reduced, the disturbance direction of the current control period is wrong, and the current control period should be disturbed in the opposite direction to the current control period in the next control period.
When the variation of the input voltage is smaller than 0, that is, the input voltage of the current control period is reduced relative to the input voltage of the previous control period, if the input power is increased, the disturbance direction of the current control period is correct, the current control period can be disturbed in the same direction as the current control period in the next control period, if the input power is reduced, the disturbance direction of the current control period is wrong, and the current control period should be disturbed in the opposite direction to the current control period in the next control period.
Through the above operation, the input power is brought closer to the maximum power value stepwise.
Optionally, the determining, according to the variation of the input voltage and the variation of the input power, a disturbance voltage step of the BOOST circuit in a next control period includes:
Calculating a variable step factor according to the variation of the input voltage and the variation of the input power;
and calculating the disturbance voltage step length of the BOOST circuit in the next control period according to the variable step length factor.
In this embodiment, the disturbance voltage step is calculated according to the variable step factor, so that the input voltage of the BOOST circuit is disturbed according to the disturbance voltage step. Wherein, the disturbance voltage step is lambda delta P in/△Uin.
The variable step factor is introduced, so that the disturbance voltage step can be regulated according to the distance between the working point and the maximum power point when the voltage is regulated, the tracking speed can be increased when the working point is far away from the maximum power point, and the tracking precision can be improved when the working point is near to the maximum power point.
Optionally, the calculating the step-variable factor according to the variation of the input voltage and the variation of the input power includes:
And calculating the variable step factor according to the variation of the input voltage and the variation of the input power and the maximum allowable voltage step and the minimum allowable voltage step acquired in advance.
In this embodiment, the variable step factor λ may be calculated from the amount of change in the input voltage and the amount of change in the input power, and the maximum allowable voltage step and the minimum allowable voltage step:
Where U step_max and U step_min are the maximum voltage step and the minimum voltage step allowed in the fixed-step perturbation observation method, respectively, and the maximum voltage step and the minimum voltage step may be predetermined, may be obtained through calculation, may also be obtained through other manners, and are not limited herein.
The variable step factor changes along with the relative magnitude of the variation of the input power and the variation of the input voltage, so that the tracking speed can be increased when the working point is far from the maximum power point, and the tracking precision can be improved when the working point is near to the maximum power point.
Optionally, the determining, according to the variation of the input voltage and the variation of the input power, a disturbance voltage step of the BOOST circuit in a next control period includes:
determining to increase the disturbance voltage of the BOOST circuit in the next control period from a first voltage value to a second voltage value in the current control period under the condition that the product of the variation of the input voltage and the variation of the input power is larger than 0, wherein the first voltage value is smaller than the second voltage value;
And determining to reduce the disturbance voltage of the BOOST circuit in the next control period from a third voltage value to a fourth voltage value in the current control period under the condition that the product of the variation of the input voltage and the variation of the input power is smaller than 0, wherein the third voltage value is larger than the fourth voltage value.
In this embodiment, the direction of change of the disturbance voltage in the next control period is determined from the product of the amount of change of the input voltage and the amount of change of the input power. When it is determined that the disturbance voltage needs to be increased, the disturbance voltage of the next control period is increased from the first voltage value to the second voltage value of the current control period. When it is determined that the disturbance voltage needs to be reduced, the disturbance voltage of the next control period is reduced from the third voltage value to the fourth voltage value of the current control period. The specific values of the first voltage value, the second voltage value, the third voltage value and the fourth voltage value are determined according to the actually calculated target input voltage value and the disturbance voltage step size.
Specifically, the following cases can be included:
If Δp in<0,ΔUin<0,ΔPin·ΔUin >0, the current operating point is left of the MPP (maximum power point) point, and the disturbance direction of the current control period is wrong, and the disturbance voltage should be increased in the next control period;
If Δp in<0,ΔUin>0,ΔPin·ΔUin <0, the current operating point is on the right of the MPP point, and the disturbance direction of the current control period is wrong, and the disturbance voltage should be reduced in the next control period;
If Δp in>0,ΔUin<0,ΔPin·ΔUin is less than 0, the current working point is on the left of the MPP point, the disturbance direction of the current control period is correct, and the disturbance voltage should be continuously reduced in the next control period;
If Δp in>0,ΔUin>0,ΔPin·ΔUin >0, the current operating point is right to the MPP point, the disturbance direction of the current control period is correct, and the disturbance voltage should be increased continuously in the next control period.
By adjusting the disturbance voltage in the mode, the tracking speed can be increased when the working point is far from the maximum power point, and the tracking precision can be improved when the working point is near to the maximum power point.
Optionally, the determining the disturbance direction of the BOOST circuit in the next control period according to the variation of the input voltage includes:
under the condition that the variation of the input power is larger than 0, determining that the disturbance direction of the BOOST circuit in the next control period is the same as the disturbance direction of the current control period;
Determining that the disturbance direction of the BOOST circuit in the next control period is opposite to the disturbance direction of the current control period under the condition that the variation of the input power is smaller than 0;
In the case where the amount of change in the input power is equal to 0, it is determined that the BOOST circuit does not need to be perturbed.
In this embodiment, the determination of the disturbance direction may specifically include the following cases:
And under the condition that the variation of the input power is larger than 0, the disturbance direction of the current control period is correct, and the disturbance according to the current direction is continued, namely, the disturbance direction of the BOOST circuit in the next control period is determined to be the same as the disturbance direction of the current control period.
And under the condition that the variation of the input power is smaller than 0, indicating that the disturbance direction of the current control period is wrong, and determining that the disturbance direction of the BOOST circuit in the next control period is opposite to the disturbance direction of the current control period.
In case the amount of change of the input power is equal to 0, it is indicated that the input power has reached the maximum power and no disturbance is required.
By the method, the input power of the BOOST circuit is maintained at the maximum power.
And step S204, calculating a target input voltage value of the BOOST circuit in the next control period according to the disturbance voltage step length and the disturbance direction.
When the input voltage of the BOOST circuit is the target input voltage value, the input power of the BOOST circuit is the maximum power value.
In this step, the target input voltage value of the next control period is calculated according to the target input voltage value, the disturbance voltage step length and the disturbance direction of the current control period. For convenience of description, please refer to fig. 4, the calculation process of the target input voltage value is as follows:
if Δp in<0,ΔUin<0,ΔPin·ΔUin >0, the current operating point is on the left of the MPP (maximum power point) point, and the disturbance direction of the current control period is wrong, and the disturbance voltage should be increased in the next control period, so as to obtain a target input voltage value U in_ref=Uin_ref+λ|ΔPin/ΔUin |;
if Δp in<0,ΔUin>0,ΔPin·ΔUin is less than 0, the current operating point is right to the MPP point, and the disturbance direction of the current control period is wrong, and the disturbance voltage should be reduced in the next control period to obtain a target input voltage value U in_ref=Uin_ref-λ|ΔPin/ΔUin |;
If Δp in>0,ΔUin<0,ΔPin·ΔUin is less than 0, the current operating point is on the left of the MPP point, the disturbance direction of the current control period is correct, and the disturbance voltage should be continuously reduced in the next control period to obtain a target input voltage value U in_ref=Uin_ref-λ|ΔPin/ΔUin |;
If Δp in>0,ΔUin>0,ΔPin·ΔUin >0, the current operating point is right to the MPP point, the disturbance direction of the current control period is correct, and the disturbance should be continuously increased in the next control period, so as to obtain the target input voltage value U in_ref=Uin_ref+λ|ΔPin/ΔUin |. When the input voltage of the circuit is the target input voltage value, the input power is the maximum power value.
Step S205, controlling the input voltage of the BOOST circuit according to the target input voltage value.
After determining a target input voltage value according to an MPPT algorithm, controlling the input voltage of the BOOST circuit according to the target input voltage value, wherein the voltage value is a given value of the output voltage of the photovoltaic cell, so that the input voltage of the circuit is infinitely close to the target input voltage value, and finally, the input power of the BOOST circuit is a maximum power value.
Optionally, the controlling the input voltage of the BOOST circuit according to the target input voltage value includes:
adjusting the input voltage of the BOOST circuit by using a voltage controller, and taking the output value of the outer loop of the adjusted voltage as the input value of the inner loop of the current;
adjusting the input current of the BOOST circuit by using a current controller, and obtaining a control signal according to the adjusted output value of the current inner loop;
And controlling the input voltage of the BOOST circuit to change along with the target input voltage value according to the control signal until the input power of the BOOST circuit is the maximum power value.
In this embodiment, the BOOST circuit performs a double closed loop control through the voltage outer loop and the current inner loop. The input voltage of the circuit is regulated by the voltage controller, and the input current of the circuit is regulated by the current controller.
As shown in fig. 5, after the input voltage U in and the input current I in are obtained, a target input voltage value U in_ref is obtained according to the MPPT algorithm, and the input voltage of the BOOST circuit is adjusted by the voltage controller, and the transfer function is that
And taking the output value of the regulated voltage outer loop as the input value of the current inner loop. At the same time, the input current of the BOOST circuit is controlled in a closed loop, and is regulated by a current controller, and the transfer function is that
In this way, through double closed-loop control of voltage and current, the input voltage of the BOOST circuit is enabled to quickly follow the change of the target input voltage value U in_ref calculated by the MPPT algorithm, so that the maximum power point tracking of the photovoltaic cell is realized. The invention realizes the maximum power point tracking of the photovoltaic cell by the BOOST circuit, performs double closed-loop control on the BOOST circuit, adopts the input voltage ring of the BOOST circuit as the outer ring, changes the output voltage of the photovoltaic cell by adjusting the input voltage, thereby enabling the output power of the photovoltaic cell to track the maximum power point, and adopts the input current ring of the BOOST circuit as the inner ring, thereby improving the overall dynamic performance and the external interference resistance of the system.
An embodiment flowchart of the photovoltaic MPPT control system based on the BOOST circuit is shown in fig. 6, and is used for implementing the embodiment of the method. The MPPT control system comprises a photovoltaic cell, a current sampling module, a voltage sampling module, a BOOST circuit module, a load, a PWM driving module and a program stored on a DSP controller, wherein the program stored on the DSP controller comprises an ADC module, an MPPT algorithm module, a voltage-current double closed loop module and a subprogram of EPWM modules.
The invention introduces a variable step factor, can accelerate the tracking speed when the working point is far from the maximum power point, and can improve the tracking precision when the working point is near to the maximum power point. And through voltage and current double closed-loop control, the input voltage of the BOOST circuit is enabled to quickly follow the change of the target input voltage value U in_ref calculated by the MPPT algorithm, so that the maximum power point tracking of the photovoltaic cell is realized.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The present embodiment also provides a maximum power point tracking MPPT control device based on a BOOST circuit, which is used for implementing the foregoing embodiments and preferred implementations, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 7 is a block diagram of a maximum power point tracking MPPT control device based on a BOOST circuit according to an embodiment of the present invention, and as shown in fig. 7, the device includes:
An obtaining module 701, configured to obtain an input voltage and an input power of a BOOST circuit in a current control period, and the input voltage and the input power of the BOOST circuit in a previous control period;
a first calculating module 702, configured to calculate a variation of the input voltage and a variation of the input power of the current control period relative to the previous control period;
A determining module 703, configured to determine a disturbance voltage step size of the BOOST circuit in a next control period according to the variation of the input voltage and the variation of the input power, and determine a disturbance direction of the BOOST circuit in the next control period according to the variation of the input voltage;
a second calculating module 704, configured to calculate a target input voltage value of the BOOST circuit in the next control period according to the disturbance voltage step size and the disturbance direction;
A control module 705, configured to control an input voltage of the BOOST circuit according to the target input voltage value;
when the input voltage of the BOOST circuit is the target input voltage value, the input power of the BOOST circuit is the maximum power value.
Optionally, the determining module includes:
The first calculation sub-module is used for calculating a variable step factor according to the variation of the input voltage and the variation of the input power;
and the second calculation sub-module is used for calculating the disturbance voltage step length of the BOOST circuit in the next control period according to the variable step length factor.
Optionally, the first computing submodule is specifically configured to:
And calculating the variable step factor according to the variation of the input voltage and the variation of the input power and the maximum allowable voltage step and the minimum allowable voltage step acquired in advance.
Optionally, the determining module includes:
A first determining submodule, configured to determine to increase a disturbance voltage of the BOOST circuit in a next control period from a first voltage value to a second voltage value in a case where a product of a variation of the input voltage and a variation of the input power is greater than 0, where the first voltage value is smaller than the second voltage value;
And the second determining submodule is used for determining that the disturbance voltage of the BOOST circuit in the next control period is reduced from a third voltage value to a fourth voltage value under the condition that the product of the variation of the input voltage and the variation of the input power is smaller than 0, wherein the third voltage value is larger than the fourth voltage value.
Optionally, the determining module includes:
A third determining submodule, configured to determine a disturbance direction of the BOOST circuit in the current control period according to the variation of the input voltage;
And the fourth determination submodule is used for determining that the disturbance direction of the BOOST circuit in the next control period is the same as the disturbance direction of the current control period under the condition that the variation of the input power is larger than 0, or determining that the disturbance direction of the BOOST circuit in the next control period is opposite to the disturbance direction of the current control period under the condition that the variation of the input power is smaller than 0, or determining that the BOOST circuit does not need disturbance under the condition that the variation of the input power is equal to 0.
Optionally, the control module includes:
The first regulating submodule is used for regulating the input voltage of the BOOST circuit by using a voltage controller, and taking the output value of the regulated voltage outer loop as the input value of the current inner loop;
The second regulation submodule regulates the input current of the BOOST circuit by using a current controller and obtains a control signal according to the regulated output value of the current inner loop;
and the control sub-module is used for controlling the input voltage of the BOOST circuit to follow the change of the target input voltage value according to the control signal until the input power of the BOOST circuit is the maximum power value.
The invention introduces a variable step factor, can accelerate the tracking speed when the working point is far from the maximum power point, and can improve the tracking precision when the working point is near to the maximum power point. And through voltage and current double closed-loop control, the input voltage of the BOOST circuit is enabled to quickly follow the change of the target input voltage value U in_ref calculated by the MPPT algorithm, so that the maximum power point tracking of the photovoltaic cell is realized.
It should be noted that each of the above modules may be implemented by software or hardware, and the latter may be implemented by, but not limited to, the above modules all being located in the same processor, or each of the above modules being located in different processors in any combination.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to, a U disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, etc. various media in which a computer program may be stored.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.