Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for controlling an electric quantity of an energy storage device, and an energy storage device.
The application provides an electric quantity control method of energy storage equipment, the energy storage equipment includes battery module and adjusting module, the feed end is connected to adjusting module's input, battery module's output with adjusting module's output is connected the back and is connected with the load, makes battery module with adjusting module can do simultaneously the load power supply, adjusting module's output still with battery module's input is connected, makes adjusting module can be for battery module charges, the method includes:
when the power supply end supplies power normally, acquiring the current electric quantity of the battery module;
judging whether the current electric quantity reaches a preset electric quantity threshold value;
judging whether the load is in a power utilization state or not;
if the current electric quantity reaches the electric quantity threshold value and the load is in a power utilization state, the output voltage of the adjusting module is adjusted to reduce the battery current of the battery module to a first set range, and then the electric quantity of the battery module is maintained in a preset electric quantity range.
In the method for controlling electric quantity of an energy storage device, the method further includes:
if the current electric quantity reaches the electric quantity threshold value and the load is not in the power utilization state, adjusting the output voltage of the adjusting module to reduce the battery current of the battery module to the first set range, and further maintaining the electric quantity of the battery module in a preset electric quantity range;
or if the current electric quantity does not reach the electric quantity threshold value and the load is in a power utilization state, adjusting the output voltage of the adjusting module, so that the adjusting module supplies power to the load and charges the battery module until the electric quantity of the battery module reaches the electric quantity threshold value;
or if the current electric quantity does not reach the electric quantity threshold value and the load is not in the power utilization state, adjusting the output voltage of the adjusting module, and charging the battery module until the electric quantity of the battery module reaches the electric quantity threshold value.
In the method for controlling electric quantity of an energy storage device according to the present application, the adjusting the output voltage of the adjusting module to reduce the battery current of the battery module to a first set range includes:
acquiring a battery current of the battery module;
and carrying out PI regulation on the output voltage of the regulating module according to the battery current so as to reduce the battery current of the battery module to a first set range.
In the electric quantity control method of the energy storage device, the performing PI regulation on the output voltage of the regulation module according to the battery current includes:
determining the deviation between the battery current and a preset target current value, wherein the target current value is within the first set range;
determining an adjusting variable of the output voltage according to the deviation and a preset proportionality coefficient;
and adjusting the output voltage according to the adjusting variable, and further adjusting the output current of the adjusting module to reduce the battery current of the battery module to the target current value.
This application still provides an energy storage equipment's electric quantity controlling means, energy storage equipment includes battery module and adjusting module, the feed end is connected to adjusting module's input, battery module's output with adjusting module's output is connected the back and is connected with the load, makes battery module with adjusting module can do simultaneously the load power supply, adjusting module's output still with battery module's input is connected, makes adjusting module can do battery module charges, the device includes:
the power acquisition unit is used for acquiring the current power of the battery module when the power supply terminal supplies power normally;
the electric quantity judging unit is used for judging whether the current electric quantity reaches a preset electric quantity threshold value;
the load judging unit is used for judging whether the load is in a power utilization state or not;
and the electric quantity control unit is used for adjusting the output voltage of the adjusting module when the current electric quantity reaches the electric quantity threshold value and the load is in a power utilization state, so that the battery current of the battery module is reduced to a first set range, and the electric quantity of the battery module is maintained in a preset electric quantity range.
In the electric quantity control apparatus of the energy storage device described in the present application, the electric quantity control unit is further configured to:
when the current electric quantity reaches the electric quantity threshold value and the load is not in a power utilization state, adjusting the output voltage of the adjusting module to reduce the battery current of the battery module to the first set range, and further maintaining the electric quantity of the battery module in a preset electric quantity range;
when the current electric quantity does not reach the electric quantity threshold value and the load is in a power utilization state, adjusting the output voltage of the adjusting module to enable the adjusting module to supply power to the load and charge the battery module at the same time until the electric quantity of the battery module reaches the electric quantity threshold value;
when the current electric quantity does not reach the electric quantity threshold value and the load is not in a power utilization state, the output voltage of the adjusting module is adjusted, and the battery module is charged until the electric quantity of the battery module reaches the electric quantity threshold value.
In the electric quantity control apparatus of the energy storage device described in the present application, the electric quantity control unit includes:
a current obtaining subunit, configured to obtain a battery current of the battery module;
and the PI regulation subunit is used for carrying out PI regulation on the output voltage of the regulation module according to the battery current so as to reduce the battery current of the battery module to a first set range.
In the electric quantity control apparatus of the energy storage device described in the present application, the PI regulation subunit is further configured to:
determining the deviation between the battery current and a preset target current value, wherein the target current value is within the first set range;
determining an adjusting variable of the output voltage according to the deviation and a preset proportionality coefficient;
and adjusting the output voltage according to the adjusting variable, and further adjusting the output current of the adjusting module to reduce the battery current of the battery module to the target current value.
The application also provides an energy storage device, which comprises a battery module, an adjusting module, a memory and a processor, wherein the input end of the adjusting module is connected with the power supply end, the output end of the battery module is connected with the output end of the adjusting module and then connected with a load, the battery module and the adjusting module can simultaneously supply power to the load, the output end of the adjusting module is connected with the input end of the battery module, the adjusting module can charge the battery module, the memory stores a computer program, and the computer program executes the electric quantity control method of the energy storage device when running on the processor.
The present application further provides a readable storage medium storing a computer program, which when executed on a processor performs the method for controlling the amount of power of the energy storage device as set forth in any of the above.
According to the electric quantity control method of the energy storage device, when the power supply end supplies power normally, the current electric quantity of the battery module is obtained; judging whether the current electric quantity reaches a preset electric quantity threshold value; judging whether the load is in a power utilization state or not; if the current electric quantity reaches the electric quantity threshold value and the load is in a power utilization state, the output voltage of the adjusting module is adjusted to reduce the battery current of the battery module to a first set range, and then the electric quantity of the battery module is maintained in a preset electric quantity range. This application can maintain the electric quantity of energy storage equipment's battery module at predetermined electric quantity threshold value, can effectively prevent overcharging, avoids causing the fire accident, need not to charge at energy storage equipment's battery module simultaneously and closes the MOS pipe that charges after appointed electric quantity, avoids the MOS pipe that charges of relapse switch, and the charge-discharge cycle number of times after reducible battery module connects the power consumption load prolongs battery module's life.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present application, are intended to indicate only specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments.
The uninterrupted power supply can provide uninterrupted power supply for the load after the mains supply is powered off, and when energy storage equipment such as a mobile power supply is used as the uninterrupted power supply, the uninterrupted power supply needs to store stable electric quantity to supply power for the load when the power supply is powered off. In some embodiments, after the battery module in the energy storage device is charged to a specified amount of electricity, a Metal Oxide Semiconductor field effect transistor (MOS) is used to turn off the charging module and the battery module to avoid overcharging; as shown in fig. 1, when the energy storage device is connected to the electricity load (time t 0), the battery module discharges electricity (the discharge current of the battery module is represented as a negative number), the charging MOS transistor is activated when the electricity quantity of the battery module decreases to a certain value (time t 1), the battery module charges electricity (the charge current of the battery module is represented as a positive number), and the charging MOS transistor is turned off after the electricity quantity of the battery module charges to a specified electricity quantity (time t 2), so that the cycle is performed, and the purpose of stabilizing the electricity quantity of the battery module is achieved. However, stabilizing the amount of electricity in the battery module by this method requires repeatedly switching on and off the charging MOS transistor, and the battery module is repeatedly charged and discharged, which results in a loss of the life of the battery module.
In the embodiment of the present application, an electric quantity control method of an energy storage device is shown, referring to fig. 2 and fig. 3A, fig. 3B and fig. 3C, the energy storage device 100 includes a battery module 120, an adjusting module 110 and a processor 130, an input end of the adjusting module 110 is connected to a power supply terminal 300, an output end of the battery module 120 and an output end of the adjusting module 110 are respectively connected to a load 200, so that the battery module 120 and the adjusting module 110 can simultaneously supply power to the load 200, and an output end of the adjusting module 110 is further connected to an input end of the battery module 120, so that the adjusting module 110 can charge the battery module 120. The dotted lines in fig. 3A, 3B and 3C are control lines, and the processor 130 can read the battery level, the battery voltage and the battery current of the battery module 120 and adjust the output current of the adjusting module 110.
Referring to fig. 4 and 5, the method includes the steps of:
s100: and when the power supply end supplies power normally, acquiring the current electric quantity of the battery module.
In the embodiment of the present application, the power supply terminal 300 may be a power supply port of a commercial power or a power supply port of other power supply equipment, and the adjusting module 110 is electrically connected to the power supply terminal 300 through a wire. When the power supply terminal 300 normally supplies power to the adjusting module 110, the energy storage device 100 may charge the battery module 120 by using the adjusting module 110, or supply power to the load 200, or simultaneously supply power to the load 200 and charge the battery module 120. When the power supply terminal 300 is powered off, the battery module 120 supplies power to the load 200, so that the power supply of the load 200 is not interrupted, thereby effectively protecting the load 200.
The battery module 120 may be a lithium battery pack, a lithium cylindrical battery, a lithium square battery, or the like, and the number of the batteries may be one or more.
In some embodiments, the energy storage device 100 may read the battery voltage of the battery module 120 in real time through the processor 130 to obtain the current charge of the battery module 120, or directly obtain the current charge of the battery module 120 through a battery fuel gauge.
The processor 130 may include one or more central processors. When the processor includes a plurality of processors, the plurality of processors may be integrated on the same chip or may be independent chips.
In some embodiments, the current provided by the power supply terminal 300 may be alternating current or direct current, and the load 200 may be a direct current load or an alternating current load. The regulation module 110 includes an AC-DC (alternating current to direct current) circuit and/or a DC-DC (direct current transformation) circuit, and the current input from the power supply terminal 300 is converted into a direct current having a preset voltage and a preset current after passing through the AC-DC circuit or the DC-DC circuit, for example, the preset voltage may be a battery voltage when the battery module 120 is fully charged, so that the direct current may directly fully charge the battery module 120, and meanwhile, the direct current may also be converted into a current suitable for the load 200 by another DC-AC (direct current to alternating current) circuit or DC-DC (direct current transformation) circuit to supply the load 200.
S200: and judging whether the current electric quantity reaches a preset electric quantity threshold value.
In this embodiment, the energy storage device 100 may preset an electric quantity threshold of the battery module 120 through the processor 130, and then compare the acquired current electric quantity of the battery module 120 with the electric quantity threshold, to determine whether the current electric quantity of the battery module 120 reaches the preset electric quantity threshold.
Alternatively, the charge threshold may be 65% to 85% of the rated capacity of the battery module 120. In one embodiment, the charge threshold is 80% of the rated capacity of the battery module 120.
It can be understood that if the power threshold is set too low, the power of the battery module 120 is low, and when the power supply terminal 300 is powered off, the power of the battery module 120 may not be sufficient to maintain the normal operation of the power load 200 for a long time; if the power threshold is set too high, the power of the battery module 120 may be maintained at a high position for a long time, so that the loss of the battery module 120 is accelerated, the battery life of the battery module 120 is reduced, and the battery safety accident such as a fire may be easily caused when the power of the battery module 120 is maintained at a high position for a long time.
S300: and judging whether the load is in a power utilization state.
In this embodiment, the energy storage device 100 is provided with an electrical interface, the electrical interface is respectively connected to the battery module 120 and the adjusting module 110, and the load 200 is connected to the electrical interface to be connected to the battery module 120 and the adjusting module 110. When the power utilization interface supplies power to the load 200, a feedback signal is sent to the processor of the energy storage device 100, so that the processor can identify whether the load 200 is in a power utilization state.
If the current electric quantity reaches a preset electric quantity threshold value and the load 200 is in an electricity utilization state, executing a step S400; if the current electric quantity reaches a preset electric quantity threshold value and the load is not in the power utilization state, executing a step S500; if the current electric quantity does not reach a preset electric quantity threshold value and the load is in an electricity utilization state, executing a step S600; and executing the step S700 when the current electric quantity does not reach the preset electric quantity threshold value and the load is not in the power utilization state.
In some cases, the electric quantity of the battery module 120 of the energy storage device 100 may exceed the electric quantity threshold, and at this time, when the load 200 is connected, the processor 130 controls the output voltage of the adjusting module 110 to be reduced to be less than the battery voltage of the battery module 120, so that the battery module 120 supplies power to the load 200 until the electric quantity of the battery module 120 reaches the electric quantity threshold, thereby ensuring that the electric quantity of the battery module 120 does not exceed the electric quantity threshold.
It is understood that in other embodiments, the order of determining whether the load 200 is in the power utilization state and determining whether the current power amount reaches the preset power amount threshold may be switched or performed simultaneously, and those skilled in the art may select the order according to the requirement.
S400: and adjusting the output voltage of the adjusting module to reduce the battery current of the battery module to a first set range, so that the electric quantity of the battery module is maintained in a preset electric quantity range.
It can be understood that, when the electric quantity of the battery module 120 is charged to the preset electric quantity threshold or the electric quantity of the battery module 120 itself is the electric quantity threshold, and the connected load 200 is in the power consumption state, if the output voltage of the adjusting module 110 is smaller than or equal to or slightly larger than the battery voltage of the battery module 120 at this time, due to the circuit characteristics, the battery module 120 will supply power to the load 200, so that the electric quantity of the battery module 120 changes and cannot be maintained at the electric quantity threshold. At this time, as shown in fig. 3A, the battery module 120 and the regulation module 110 simultaneously supply power to the load 200, and the power consumption current i of the load 2003Is equal to the battery current i of the battery module 1202And the output current i of the regulation module 1101Summing; according to ohm's law, under the condition that the circuit resistance is not changed, the output voltage of the regulating module 110 will be adjusted to cause the output current of the regulating module 110 to change, and the current i is used3The battery current of the battery module 120 is in inverse proportion to the output current of the regulating module 110, and therefore, the adjustment of the output voltage of the regulating module 110 directly affects the magnitude of the battery current of the battery module 120.
Generally, the battery current of the battery module 120 includes a discharging current and a charging current, and the discharging current exists when the battery module 120 supplies power to the load 200, and the amount of power of the battery module 120 is reduced; when the adjusting module 110 charges the battery module 120, there is a charging current, and at this time, the electric quantity of the battery module 120 will increase; the battery current is zero when there is no discharge current and no charge current.
In order to maintain the capacity of the battery module 120 within the preset capacity range, it is necessary to reduce the discharge current or the charge current of the battery module 120, even if the battery current is reduced. In the embodiment of the present application, the output voltage of the adjusting module 110 is adjusted to reduce the battery current of the battery module 120 to a first setting range, so that the electric quantity of the battery module 120 is maintained in a preset electric quantity range.
The preset electric quantity range may be an electric quantity threshold, or a range with small variation around the electric quantity threshold, when the electric quantity of the battery module 120 is maintained within the preset electric quantity range, the electric quantity of the battery module 120 changes very little, the electric quantity remains stable, and the electric quantity detection value of the battery module 120 is hardly affected.
In one embodiment, the first setting range may be 0mA to 100mA, that is, the output voltage of the regulating module 110 is regulated to regulate the discharge current or the charge current of the battery module 120 to 0mA to 100mA, and the battery current in this range is a very small current close to zero, which does not cause a significant change in the electric quantity of the battery module 120, so that the electric quantity of the battery module 120 can be maintained in the preset electric quantity range.
According to the formula i3=i1+i2When adjusting the output current i of the module 1101When the current is adjusted to a certain value, the battery current i of the battery module 1202Will be within a first set range where the power to the load 200 is fully provided by the conditioning module 110 while the charge of the battery module 120 will remain at the charge threshold.
It should be noted that the time required for the adjustment process of the output voltage and the output current of the adjustment module 110 is very short, and the adjustment is not required to be performed again after the adjustment is completed, so that the battery module 120 does not have the situation of multiple charging and discharging in the process, and the loss of the battery module 120 can be effectively reduced.
In one embodiment, referring to fig. 6, the battery module 120 is at the charge threshold before time t0, when the battery current of the battery module 120 is zero, neither charging nor discharging. When the load connected at the time t0 is in the power utilization state, the battery module 120 discharges briefly first, a discharge current occurs in the battery module 120, the output voltage of the regulating module 110 is regulated at this time, and then the output current of the regulating module 110 is regulated, so that after the battery module 120 is subjected to transient charge and discharge regulation, the battery current of the battery module 120 is reduced to a first set range, the battery current of the battery module 120 is zero again (at the time t 1), and the electric quantity of the battery module 120 is maintained at the electric quantity threshold value.
The technical scheme of this embodiment can maintain the electric quantity of the battery module 120 of the energy storage device 100 at the preset electric quantity threshold value, can effectively prevent overcharging, avoids causing fire accidents, simultaneously need not to charge the battery module 120 of the energy storage device 100 and close the charging MOS pipe after appointed electric quantity, avoids repeatedly switching the charging MOS pipe, and the charging and discharging cycle number after the electric load 200 is connected to the reducible battery module 120 can prolong the service life of the battery module 120.
S500: and adjusting the output voltage of the adjusting module to reduce the battery current of the battery module to the first set range, so that the electric quantity of the battery module is maintained in a preset electric quantity range.
When the load 200 connected to the energy storage device 100 is not in a power-using state, the battery module 120 has no discharging current, and if the electric quantity of the battery module 120 is to be kept stable, it is necessary to ensure that the battery module 120 has no charging current at the same time.
As shown in fig. 3B, if the output voltage of the regulating module 110 is greater than the battery voltage of the battery module 120, the regulating module 110 charges the battery module 120, the charging current exists in the battery module 120, and the amount of power of the battery module 120 increases.
When the electric quantity of the battery module 120 reaches the preset electric quantity threshold and the load 200 is not in the power consumption state, if the adjusting module 110 continuously charges the battery module 120, the electric quantity of the battery module 120 changes and cannot be maintained at the electric quantity threshold, and at this time, the charging current of the battery module 120 needs to be reduced.
In the embodiment of the application, the output voltage of the adjusting module 110 is adjusted to reduce the battery current of the battery module 120 to the first setting range, so that the electric quantity of the battery module 120 is maintained in the preset electric quantity range.
Further, the output voltage of the adjusting module 110 may be adjusted to a second setting range, so as to reduce the charging current of the battery module 120, so as to maintain the electric quantity of the battery module 120 within the preset electric quantity range.
The second setting range is the battery voltage ± 10mv when the electric quantity of the battery module 120 is at the electric quantity threshold, if the battery voltage when the electric quantity of the battery module 120 is at the electric quantity threshold is V1, the second setting range is (V1-10mv, V1+10mv), when the output voltage of the adjusting module 110 is adjusted to the second setting range, and the output voltage of the adjusting module 110 is similar to the battery voltage of the battery module 120, correspondingly, the charging current of the battery module 120 is adjusted to 0 mA-100 mA, and the battery current in this range is a very small current close to zero, so that the electric quantity of the battery module 120 does not change significantly, and the electric quantity of the battery module 120 can be maintained in the preset electric quantity range.
In some embodiments, the output voltage of the regulating module 110 is consistent with the battery voltage of the battery module 120, so that the battery current of the battery module 120 is zero, and the battery module 120 is neither in the charging state nor in the discharging state, so that the charge of the battery module 120 can be maintained in the preset charge range.
S600: and adjusting the output voltage of the adjusting module, so that the adjusting module supplies power to the load and charges the battery module until the electric quantity of the battery module reaches the electric quantity threshold value.
In the embodiment of the present application, when the electric quantity of the battery module 120 does not reach the preset electric quantity threshold and the load 200 is in the power consumption state, the adjusting module 110 needs to simultaneously charge the battery module 120 and supply power to the load 200, and the output current i of the adjusting module 110 at this time is1Is equal to the battery current i of the battery module 1202Current i of load 2003Summing; according to ohm's law, under the condition that the circuit resistance is not changed, the output voltage of the regulating module 110 will be adjusted to cause the output current of the regulating module 110 to change, and the current i is used3The battery current of the battery module 120 is constant and proportional to the output current of the regulating module 110, and therefore, the adjustment of the output voltage of the regulating module 110 directly affects the magnitude of the battery current of the battery module 120.
As shown in fig. 3C, according to formula i1=i3+i2The output voltage of the regulating module 110 needs to be regulated so that the output current of the regulating module 110 is larger than the current i of the load 2003Therefore, the adjusting module 110 charges the battery module 120, so that the electric quantity of the battery module 120 reaches the set electric quantity threshold.
Further, the battery current i of the battery module 1202May be a charging current for rapidly charging the battery module 120 so that the charge of the battery module 120 may rapidly reach the charge threshold. When the load 200 is started in the process of charging the battery module 120 by the adjusting module 110, the adjusting module 110 needs to shunt power to the load 200 to supply power, and the charging power of the battery module 120 will decrease, at this time, the output current of the adjusting module 110 can be controlled to be adjusted, so that the current from the adjusting module 110 to the battery module 120 is still the rapid charging current, and the electric quantity of the battery module 120 can rapidly reach the electric quantity threshold.
When the electric quantity of the battery module 120 reaches the electric quantity threshold, if the adjusting module 110 continuously charges the battery module 120, the electric quantity of the battery module 120 will change and cannot be maintained at the electric quantity threshold. Therefore, the output voltage of the regulating module 110 may be adjusted to be consistent with the battery voltage of the battery module 120 at that time, so that the amount of electricity of the battery module 120 may be kept stable.
S700: and adjusting the output voltage of the adjusting module, and charging the battery module until the electric quantity of the battery module reaches the electric quantity threshold value.
In the embodiment of the present application, when the current electric quantity does not reach the electric quantity threshold and the load 200 is not in the power consumption state, the adjusting module 110 needs to be controlled to charge the battery module 120, and at this time, the output voltage of the adjusting module 110 should be greater than the battery voltage of the battery module 120, so that the adjusting module 110 charges the battery module 120.
When the electric quantity of the battery module 120 reaches the electric quantity threshold, the output voltage of the regulating module 110 is regulated to make the output voltage of the regulating module 110 consistent with the battery voltage of the battery module 120 at the moment, so that the electric quantity of the battery module 120 is kept stable.
In the embodiment of the present application, the battery module 120 includes a battery, a bidirectional inverter, and a charge and discharge interface, which are sequentially connected, and the charge and discharge interface is simultaneously connected to the regulating module 110 and the load 200. The bi-directional inverter may convert the current output by the conditioning module 110 into a current that can be used to charge the batteryThe current of the battery can be converted into the current required by the load 200 to supply power to the load 200. Since the battery module 120 has a bidirectional inverter, the battery module 120 can receive power as well as supply power to the load 200. When the battery module 120 is charged, the battery current is a charging current with a positive value (the battery current direction is shown as i in fig. 3C)2Shown); when the battery module 120 supplies power to the load 200, the battery current is a discharge current with a negative value (the battery current direction is shown as i in fig. 3A)2Shown).
In other embodiments, the battery module 120 may include a battery and a charging interface and a discharging interface respectively connected to the battery, wherein the battery is charged through the charging interface and discharged through the discharging interface.
Further, when the current power reaches the power threshold and the load 200 is in a power state, adjusting the output current of the adjusting module 110 includes:
obtaining a battery current of the battery module 120; performing PI (Proportional-Integral) adjustment on the output voltage of the adjusting module 110 according to the battery current, and further adjusting the output current of the adjusting module 110 to reduce the battery current of the battery module 120 to a first set range, so that the electric quantity of the battery module 120 is maintained in a preset electric quantity range.
It is understood that when the battery module 120 is in a charging state, the battery current is a charging current; when the battery module 120 is in a discharge state, the battery current is a discharge current; when the battery module 120 is neither charging nor discharging, the battery current is zero.
Optionally, the first setting range may be 0 to 100mA, and when the charging current or the discharging current is reduced to the first setting range, it may be ensured that the battery current of the battery module 120 is not enough to enable the energy storage capacity of the battery module 120 to change significantly.
Further, as shown in fig. 7, the PI regulation of the output voltage of the regulation module 110 according to the battery current includes: determining the deviation between the battery current and a preset target current value, wherein the target current value is within the first set range; determining an adjusting variable of the output voltage according to the deviation and a preset proportionality coefficient; adjusting the output voltage of the adjusting module 110 according to the adjusting variable, and further adjusting the output current of the adjusting module 110, so that the battery current of the battery module 120 is reduced to a target current value, so that the electric quantity of the battery module 120 is maintained in a preset electric quantity range.
The preset target current value may be any value within the first setting range, and the processor 130 obtains the battery current of the battery module 120 and compares the battery current with the target current value, and if the battery current is inconsistent with the target current value, performs PI adjustment on the battery current. The PI regulation determines a deviation according to the target current value and an actual battery current value of the battery module 120, linearly combines a proportion and an integral of the deviation to form a control amount, and controls the battery current of the battery module 120 so as to reduce the battery current of the battery module 120 to the target current value.
In some embodiments, the target current value is zero, that is, the output voltage of the regulation module 110 is controlled by PI regulation to reduce the battery current of the battery module 120 to zero, and at this time, the electric load 200 is completely powered by the regulation module 110, no power loss occurs in the battery module 120, and the power of the battery module 120 remains stable.
In some embodiments, when the processor of the energy storage device 100 detects that the battery current of the battery module 120 deviates from the preset target current value, the output voltage of the regulation module 110 is controlled through PI regulation. Illustratively, the battery current may be represented as bat _ amp, and the current value may be represented as a negative number when the battery current is a discharge current, and the current value may be represented as a positive number when the battery current is a charge current, so as to better distinguish the discharge current from the charge current, and adjust the battery current.
The PI regulation formula is: chg _ vol + p err.
And determining an adjusting variable p of the output voltage according to the deviation and a preset proportionality coefficient, wherein err is the deviation between a target current value and the battery current, when the target current value is set to be 0, err is 0-bat _ amp, and p is the preset proportionality coefficient.
When the power supply terminal 300 normally supplies power, the current power amount of the battery module 120 reaches a preset power amount threshold, and the electrical load 200 connected to the energy storage device 100 is started, the battery module 120 will supply power to the load 200, the battery module 120 is in a discharge state, the battery current bat _ amp is negative, err is positive, the output voltage chg _ vol output by the adjustment module 110 is adjusted according to the adjustment variable p × err, that is, the output voltage of the PI adjustment control adjustment module 110 continues to increase, the output current of the adjustment module 110 will increase, the battery current bat _ amp will decrease, until the battery current bat _ amp is 0, err is 0, the output voltage of the adjustment module 110 is no longer adjusted, the power amount of the battery module 120 is kept stable, and the electrical load 200 is completely supplied with power by the adjustment module 110 of the energy storage device 100.
When the electric load 200 is turned off, only the regulation module 110 and the battery module 120 exist in the circuit, if the output voltage of the regulation module 110 is greater than the battery voltage of the battery module 120, at this time, the regulation module 110 charges the battery module 120, the battery current bat _ amp is positive, err is negative, the output voltage chg _ vol output by the regulation module 110 is regulated according to the regulation variable p × err, that is, the output voltage of the regulation module 110 is continuously reduced by PI regulation control, so that the output voltage of the regulation module 110 approaches the battery voltage of the battery module 120, until the battery current bat _ amp is 0 and err is 0, the output voltage of the regulation module 110 is no longer regulated, and at this time, the electric quantity of the battery module 120 is kept stable.
Since the PI adjustment process is very fast, the electric quantity of the battery module 120 may not be significantly affected although there is a very small change in the electric quantity of the battery module 120 during the adjustment of the battery current to 0.
Referring to fig. 8, an embodiment of the present application further illustrates an electric quantity control apparatus 10 of an energy storage device, where the energy storage device 100 includes a battery module 120, an adjusting module 110, and a processor 130, an input end of the adjusting module 110 is connected to a power supply terminal 300, an output end of the battery module 120 and an output end of the adjusting module 110 are respectively connected to a load 200, so that the battery module 120 and the adjusting module 110 can simultaneously supply power to the load 200, and an output end of the adjusting module 110 is further connected to an input end of the battery module 120, so that the adjusting module 110 can charge the battery module 120. The electric quantity control apparatus 10 of the energy storage device includes: a power acquisition unit 11, a power determination unit 12, a load determination unit 13, and a power control unit 14.
The power obtaining unit 11 is configured to obtain a current power of the battery module 120 when the power supply terminal 300 supplies power normally; an electric quantity judging unit 12, configured to judge whether the current electric quantity reaches a preset electric quantity threshold; a load determining unit 13, configured to determine whether the load 200 is in a power utilization state; the power control unit 14 is configured to adjust the output voltage of the adjusting module 110 when the current power reaches the power threshold and the load 200 is in a power consumption state, so that the battery current of the battery module 120 is reduced to a first set range, and the power of the battery module 120 is maintained in a preset power range.
The first setting range may be 0mA to 100mA, that is, the output voltage of the adjusting module 110 is adjusted to adjust the magnitude of the discharging current or the charging current of the battery module 120 to 0mA to 100mA, and the battery current in this range is a very small current close to zero, which does not cause the electric quantity of the battery module 120 to change significantly, so that the electric quantity of the battery module 120 can be maintained in the preset electric quantity range.
Further, the power control unit 14 is further configured to:
when the current electric quantity reaches the electric quantity threshold value and the load 200 is not in a power consumption state, adjusting the output voltage of the adjusting module 110 to reduce the battery current of the battery module 120 to the first set range, so that the electric quantity of the battery module 120 is maintained in a preset electric quantity range;
when the current electric quantity does not reach the electric quantity threshold value and the load 200 is in a power utilization state, adjusting the output voltage of the adjusting module 110, so that the adjusting module 110 supplies power to the load 200 and simultaneously charges the battery module 120 until the electric quantity of the battery module 120 reaches the electric quantity threshold value;
when the current electric quantity does not reach the electric quantity threshold value and the load 200 is not in the power consumption state, the output voltage of the adjusting module 110 is adjusted to charge the battery module 120 until the electric quantity of the battery module 120 reaches the electric quantity threshold value.
The second setting range is the battery voltage ± 10mv when the electric quantity of the battery module 120 is at the electric quantity threshold, if the battery voltage when the electric quantity of the battery module 120 is at the electric quantity threshold is V1, the second setting range is (V1-10mv, V1+10mv), when the output voltage of the adjusting module 110 is adjusted to the second setting range, and the output voltage of the adjusting module 110 is similar to the battery voltage of the battery module 120, correspondingly, the charging current of the battery module 120 is adjusted to 0 mA-100 mA, and the battery current in this range is a very small current close to zero, so that the electric quantity of the battery module 120 does not change significantly, and the electric quantity of the battery module 120 can be maintained in the preset electric quantity range.
Further, the electric quantity control unit 14 includes:
a current obtaining subunit, configured to obtain a battery current of the battery module 120;
and the PI regulation subunit is configured to perform PI regulation on the output voltage of the regulation module 110 according to the battery current, so that the battery current of the battery module 120 is reduced to a first set range. Specifically, the PI regulation subunit is configured to determine a deviation between the battery current and a preset target current value, where the target current value is within the first setting range; determining an adjusting variable of the output voltage according to the deviation and a preset proportionality coefficient; and adjusting the output voltage according to the adjustment variable, and further adjusting the output current of the adjustment module 110, so that the battery current of the battery module 120 is reduced to the target current value.
The preset target current value may be any value within the first setting range, and the processor 130 obtains the battery current of the battery module 120 and compares the battery current with the target current value, and if the battery current is inconsistent with the target current value, performs PI adjustment on the battery current. The PI regulation determines a deviation according to the target current value and an actual battery current value of the battery module 120, linearly combines a proportion and an integral of the deviation to form a control amount, and controls the battery current of the battery module 120 so as to reduce the battery current of the battery module 120 to the target current value.
The electric quantity control apparatus 10 of the energy storage device disclosed in this embodiment is used to execute the electric quantity control method of the energy storage device according to the above embodiment through the cooperation of the electric quantity obtaining unit 11, the electric quantity judging unit 12, the load judging unit 13, and the electric quantity control unit 14, and the implementation and beneficial effects related to the above embodiment are also applicable in this embodiment, and are not described herein again.
Further, the energy storage device 100 further includes a memory and a processor 130, where the memory stores a computer program, and the computer program executes the method for controlling the amount of power of the energy storage device according to the embodiment of the present application when the computer program runs on the processor 130.
It is to be understood that the present application relates to a readable storage medium, which stores a computer program, and the computer program, when running on a processor, executes the method for controlling the power of the energy storage device according to the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.