Control method of bidirectional direct current converter and power equipment
By adopting the bus voltage loop control strategy in the energy storage system, the loop structure of the bidirectional DC converter is simplified, and the problems of complex loops and unsmooth charge and discharge switching in the energy storage system are solved, and the rapid and smooth charge and discharge process and fine control of the battery module are achieved.
Patent Information
- Application Number
- CN202410953937.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2025-06-17
AI Technical Summary
The loop control of the bidirectional DC converter in the energy storage system is complex, occupies a lot of computing resources, and the charging and discharging switching is not smooth and the speed is slow.
Using a control strategy based only on the bus voltage loop, the battery current given upper limit and lower limit of the bus voltage loop output is determined by the battery voltage, and the battery current given value is determined based on the bus voltage loop and the given value, and the bidirectional DC converter is driven to charge and discharge the battery module.
The loop structure is simplified, computing resources are saved, and the charging and discharging switching is smooth and speed improvement is achieved, and the fine control of the battery module and effective management of bus voltage is realized.
Smart Images

Figure CN120165457A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of power electronics technology, and particularly relates to a control method for a bidirectional DC converter, a power device, and a computer-readable storage medium. Background Art
[0002] In an energy storage system, a battery needs to be used together with a DC / DC converter. Taking the energy storage system as an example, a DC / DC converter capable of bidirectional energy transfer is required between the battery and the DC bus. Since the DC / DC converter needs to implement battery charging and discharging and control bus voltage fluctuations, in general control of the DC / DC converter, the voltage loop has a dual control loop of the bus voltage loop and the battery voltage loop, making the loop structure complex, occupying more computing resources, and having a large design workload and cumbersome debugging. In addition, during actual operation, two different dual control loops need to be designed for the charging scenario and the discharging scenario respectively. When switching between the charging and discharging scenarios, it is necessary to switch to the corresponding dual control loop, which will result in uneven and slow charging and discharging switching. Summary of the Invention
[0003] The purpose of this application is to provide a control method for a bidirectional DC converter, a power device, and a computer-readable storage medium, aiming to solve the problems of complex loop control of the bidirectional DC converter in the energy storage system, large consumption of computing resources, uneven and slow charging and discharging switching.
[0004] In a first aspect, an embodiment of this application provides a control method for a bidirectional DC converter. The bidirectional DC converter includes a first end and a second end. The first end is used to connect to a battery module, and the second end is connected to a DC bus. The DC bus is used to connect to a DC source and / or a load. The control method includes:
[0005] Obtain the battery voltage, battery current of the battery module, and the bus voltage of the DC bus;
[0006] Determine the given upper limit value and given lower limit value of the battery current according to the battery voltage;
[0007] Determine the given value of the battery current according to the bus voltage, the given value of the bus voltage, the given upper limit value, and the given lower limit value;
[0008] Generate a drive signal according to the battery current and the given value of the battery current. The drive signal is used to drive the bidirectional DC converter to charge or discharge the battery module.
[0009] In some embodiments, the battery module includes at least one single cell; the determining the given upper limit value and given lower limit value of the battery current according to the battery voltage includes:
[0010] Determine the cell voltage of the individual cells in the battery module based on the battery voltage;
[0011] Determine the corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge-discharge characteristic curve of the battery module; wherein, the charge-discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the individual cells and the maximum charging current and the maximum discharging current;
[0012] Determine the given upper limit value and the given lower limit value according to the maximum charging current and the maximum discharging current; wherein, the signs of the given lower limit value and the given upper limit value are opposite.
[0013] In some embodiments, before determining the corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge-discharge characteristic curve of the battery module, it further includes:
[0014] Obtain the charge-discharge characteristic curve of the battery module according to the cell type of the individual cells in the battery module.
[0015] In some embodiments, the battery module includes at least one individual cell, and determining the given upper limit value and the given lower limit value of the battery current according to the battery voltage includes:
[0016] Select one of a plurality of limiters as the given limiter of the battery current according to the battery voltage, wherein the given upper limit value and the given lower limit value of the given limiter satisfy the charge-discharge characteristic curve of the battery module, the charge-discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the individual cells and the maximum charging current and the maximum discharging current, the absolute value of the given upper limit value is associated with the maximum charging current, and the absolute value of the given lower limit value is associated with the maximum discharging current.
[0017] In some embodiments, the charge-discharge characteristic curve is used to indicate:
[0018] When the battery voltage is less than or equal to the first preset value, the maximum charging current is the first threshold;
[0019] When the battery voltage is greater than the first preset value, as the battery voltage increases, the maximum charging current gradually decreases from the first threshold to 0;
[0020] When the battery voltage is less than the second preset value, as the battery voltage decreases, the maximum discharging current gradually decreases from the second threshold to the third threshold;
[0021] When the battery voltage is greater than or equal to the second preset value, the maximum discharge current is the third threshold value.
[0022] In some embodiments, determining the battery current set value according to the bus voltage, the given bus voltage, the given upper limit value, and the given lower limit value includes:
[0023] Calculating an initial set value of the battery current based on the voltage difference between the bus voltage and the given bus voltage;
[0024] When the initial set value is less than the given upper limit value and greater than the given lower limit value, determining the initial set value as the battery current set value;
[0025] When the initial set value is greater than or equal to the given upper limit value, determining the given upper limit value as the battery current set value;
[0026] When the initial set value is less than or equal to the given lower limit value, determining the given lower limit value as the battery current set value.
[0027] In some embodiments, generating a drive signal according to the battery current and the battery current set value includes:
[0028] Calculating a duty cycle based on the current difference between the battery current and the battery current set value;
[0029] Generating the drive signal based on the duty cycle.
[0030] In some embodiments, before generating the drive signal based on the duty cycle, further including:
[0031] Limiting the duty cycle and outputting the duty cycle within a preset duty cycle range.
[0032] In a second aspect, an embodiment of the present application further provides a power device, including a bidirectional DC converter, a memory, a processor, and a computer program stored in the memory and executable on the processor. The bidirectional DC converter includes a first end and a second end. The first end is used to connect to a battery module, and the second end is connected to a DC bus. The DC bus is used to connect to a DC source and / or a load. The processor is connected to the bidirectional DC converter. When the processor executes the computer program, the steps of the control method of the bidirectional DC converter as described above are implemented.
[0033] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which when executed by a controller can implement the steps of the control method of the bidirectional DC converter as described above.
[0034] The beneficial effects of the embodiment of the present application compared with the related art are as follows:
[0035] For the control method of the bidirectional DC converter provided by the embodiment of the present application, the battery voltage loop is removed, and only the bus voltage loop is retained. The given upper limit value and the given lower limit value of the battery current output by the bus voltage loop are determined through the battery voltage. Based on the bus voltage loop, the given upper limit value, and the given lower limit value, the battery current given value is determined. The current loop generates a drive signal through the battery current and the battery current given value to drive the bidirectional DC converter to charge or discharge the battery module. The solution of the present application improves the problem that the charge and discharge switching is not smooth and slow due to the need to switch loops, and saves computing resources. It realizes the fine control of the charge and discharge current of the battery module with a simple loop, and can achieve the purpose of controlling the bus voltage while reasonably charging and discharging the battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic structural diagram of a photovoltaic energy storage system provided by an embodiment of the present application;
[0037] Figure 2 It is a flowchart of the control method of the bidirectional DC converter provided by an embodiment of the present application;
[0038] Figure 3 It is a flowchart of the control method of the bidirectional DC converter provided by an embodiment of the present application;
[0039] Figure 4A It is a battery charging characteristic curve provided by an embodiment of the present application;
[0040] Figure 4B It is a battery discharge characteristic curve provided by an embodiment of the present application;
[0041] Figure 5 It is a control loop diagram of the control method of the bidirectional DC converter provided by an embodiment of the present application;
[0042] Figure 6 It is a relationship diagram of the charging current and the battery voltage during the charging process of the battery module provided by an embodiment of the present application;
[0043] Figure 7 It is a module schematic diagram of the control device of the bidirectional DC converter provided by an embodiment of the present application;
[0044] Figure 8 It is a schematic structural diagram of a power device provided by an embodiment of the present application. Detailed implementation manners
[0045] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0047] It should be understood that the orientation or positional relationship indicated by the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation to the present application.
[0048] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, "a plurality of" means two or more, unless otherwise specifically defined.
[0049] As Figure 1 shown, in a photovoltaic energy storage system, a bidirectional DC / DC converter 200 capable of bidirectional energy transfer is required between a battery module 100 and a DC bus BUS. Among them, the battery module 100 includes one or more single cells. The DC / DC converter 200 includes a first end and a second end. The first end is used to connect to the battery module 100, and the second end is connected to the DC bus BUS. The DC bus BUS is used to connect to a DC source and / or a load. Among them, the DC source is, for example, another DC / DC converter, the DC side of an AC / DC converter 300 or another battery module. In addition, it is defined that the charging direction of the battery current of the battery module 100 is positive and the discharging direction is negative. That is, when the battery is charging, the battery current is positive, and when the battery is discharging, the battery current is negative.
[0050] In the control strategy of a conventional DC / DC converter 200, it usually includes a voltage loop in the outer loop and a current loop in the inner loop, that is, a voltage outer loop and a current inner loop. Among them, the voltage loop includes a dual control loop of a bus voltage loop and a battery voltage loop. Therefore, there are a bus voltage reference and a battery voltage reference, and the results calculated by the two compete, for example, the smaller value is taken and then used as the reference of the current inner loop.
[0051] When it is desired to charge the battery module 100, since the power flow is from the DC bus BUS to the battery module 100, the bus voltage is higher than the bus voltage reference. After being calculated by a PI (Proportional-Integral) controller, the result is negative. Therefore, it is necessary to multiply the result calculated by the bus voltage loop by -1 to obtain a positive value. In the charging state, the battery voltage reference is greater than the battery voltage of the battery module 100. After being calculated by the PI controller, the result is positive. The smaller value of the result calculated by the bus voltage loop and the result calculated by the battery voltage loop is taken, and after positive clipping, it is used as the reference of the current inner loop.
[0052] When it is desired to discharge from the battery module 100, since the power flow is from the battery module 100 to the DC bus BUS, the bus voltage is less than the bus voltage reference, and the result calculated by the bus voltage loop is positive. At the same time, in the discharging state, the battery voltage reference is less than the battery voltage, so the result calculated by the battery voltage loop is negative. The result is multiplied by -1 to obtain a positive value, and then the smaller value is taken with the result output by the bus loop. After negative clipping, it is used as the reference of the current inner loop.
[0053] It can be seen that the loop structure of the control strategy of the conventional DC / DC converter 200 is complex, the design workload is large, and the debugging is relatively cumbersome. In addition, due to the loop competition between the bus voltage loop and the battery voltage loop, and the charge and discharge loop switching, it will significantly result in a slow and uneven charge and discharge switching speed.
[0054] To address the above defects, the embodiments of the present application will provide a control strategy based on only one voltage loop, making the loop structure simple and the design and debugging easier. Moreover, there are no problems of loop competition in the voltage loop and charge and discharge loop switching, making the charge and discharge switching speed faster and smoother.
[0055] Specifically, please refer to Figure 2 , a control method for a bidirectional DC converter provided by some embodiments of the present application includes:
[0056] Step S110, obtaining the battery voltage, battery current of the battery module, and bus voltage of the DC bus.
[0057] Among them, the battery current includes a charging current and a discharging current. The battery voltage, the battery current, and the bus voltage can be periodically or real-time detected through a current sampling circuit and a voltage sampling circuit, and output to a controller / processor.
[0058] Exemplarily, the detected battery voltage and battery current can be the cell voltage and cell current of a single cell detected first; and then further determine the battery voltage and battery current of the battery module 100 according to the connection relationship of the single cells in the battery module 100.
[0059] Exemplarily, the detected battery voltage and battery current can also be the battery voltage and battery current of the battery module 100 directly detected. And then further determine the cell voltage and cell current of the single cell according to the connection relationship of the single cells in the battery module 100.
[0060] Step S120, determine the given upper limit value and the given lower limit value of the battery current according to the battery voltage.
[0061] It can be understood that different types of single cells have corresponding electrical parameter attributes, such as the relationship between the cell voltage and the maximum charge and discharge current. When different types of single cells are used in the battery module, the electrical parameter attributes of the battery module are also different. Therefore, the given upper limit value and the given lower limit value of the battery current at the current battery voltage can be determined according to the battery voltage and the electrical parameter attributes, so as to avoid unnecessary damage to the battery module 100 during the charge and discharge process.
[0062] Step S130, determine the given value of the battery current according to the bus voltage, the given bus voltage, the given upper limit value, and the given lower limit value.
[0063] According to the above parameters, use a preset bus voltage loop to determine the given value of the battery current.
[0064] Step S140, generate a driving signal according to the battery current and the given value of the battery current, and the driving signal is used to drive the bidirectional DC converter to charge or discharge the battery module.
[0065] According to the above parameters, generate a driving signal based on a preset battery current loop.
[0066] In the embodiment of the present application, the battery voltage loop is removed, and only the bus voltage loop and the battery current loop are required to control the charge and discharge of the battery module. The charge and discharge states share a loop structure, and there is no need to switch the loop structure according to the charge and discharge states. It improves the problem that the charge and discharge switching is not smooth and slow due to the need to switch the loop. At the same time, it saves computing resources, and uses a simple loop to achieve fine control of the charge and discharge current of the battery module, and can achieve the purpose of controlling the bus voltage while charging and discharging the battery reasonably.
[0067] Please refer toFigure 3 , in some embodiments, configure the battery current i bat limiting link. Specifically, step S120 includes:
[0068] Step S121, determine the cell voltage of the individual cells in the battery module according to the battery voltage.
[0069] Exemplarily, the detected battery voltage v bat , battery current i bat is the battery voltage v bat , battery current i bat of the battery module 100. For example, if the individual cells in the battery module 100 are connected in series, the cell voltage of the individual cells can be determined as v bat / n, where n is the number of individual cells connected in series in the battery module 100, and the cell current of the individual cells is the battery current i bat .
[0070] Step S122, determine the corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge-discharge characteristic curve of the battery module; wherein, the charge-discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the individual cells and the maximum charging current and the maximum discharging current.
[0071] Exemplarily, the charge-discharge characteristic curve of the battery module 100 is as shown in Figure 4A and Figure 4B , including a charging characteristic curve (see Figure 4A ) and a discharging characteristic curve (see Figure 4B ). Based on this characteristic curve, the maximum charging current ilmt_chg and the maximum discharging current ilmt_dsg that the battery module 100 can accept at different battery voltages can be obtained. It can be understood that the charge-discharge characteristic curves of different specifications of the battery module 100 are different at different voltages v bat . For example, if the individual cells of the battery module 100 are connected in series, Figure 4A and Figure 4B show the mapping relationship between the cell voltage v bat / n of the individual cells and the maximum charging current ilmt_chg and the maximum discharging current ilmt_dsg. In other embodiments, the mapping relationship between the battery voltage of the battery module 100 and the maximum charging current ilmt_chg and the maximum discharging current ilmt_dsg can also be directly shown.
[0072] Step S123, determine the given upper limit value and the given lower limit value according to the maximum charging current and the maximum discharging current; wherein, the signs of the given lower limit value and the given upper limit value are opposite.
[0073] It is understandable that the given upper limit value and the given lower limit value correspond to the maximum charging current and the maximum discharging current respectively. Since the current directions are opposite during charging and discharging, for example, the battery current i bat is positive during charging and negative during discharging. Therefore, the given lower limit value and the given upper limit value have opposite signs. Exemplarily, in combination with Figure 5 , the current value less than or equal to Figure 4A the maximum charging current ilmt_chg shown is assigned to the first limiter in the bus voltage loop as the given upper limit value of the battery current i bat , and the current value with an amplitude less than or equal to Figure 4B the maximum discharging current ilmt_dsg shown is assigned to the first limiter in the bus voltage loop as the given lower limit value of the battery current i bat .
[0074] In some embodiments, before step S122, it further includes: obtaining the charge-discharge characteristic curve of the battery module 100 according to the cell type of the single cells in the battery module 100.
[0075] The cell type of the single cells can be determined during product design. After the cell type is determined, the physical characteristic parameters of the corresponding battery module are determined. For example, the nominal voltage of a common 18650 lithium-ion battery is 3.7V, and the charging cut-off voltage is 4.2V; the nominal voltage of a lithium iron phosphate battery is 3.2V, and the charging cut-off voltage is 3.6V. In some embodiments, the charge-discharge characteristic curve can be directly determined according to the specification sheet of the single cells, or can be determined by actually testing the charge-discharge process.
[0076] In some embodiments, after determining the charge-discharge characteristic curves of battery modules of different cell types, they can be stored in the controller of the bidirectional DC converter and directly read according to the cell type when implementing the solution of this application. In other embodiments, the charge-discharge characteristic curves of battery modules of different cell types can also be stored in the cloud and obtained from the cloud according to the cell type when implementing the solution of this application. The embodiments of this application do not limit the acquisition method.
[0077] In some embodiments, in the limiting link of configuring the battery current i bat , step S123 includes: selecting one of multiple limiters as the given limiter of the battery current i bat according to the battery voltage, where the given upper limit value and the given lower limit value of the given limiter are related to the battery voltage v batMeet the charge and discharge characteristic curve of the battery module 100. The charge and discharge characteristic curve of the battery module 100 reflects the mapping relationship between the cell voltage of the single cell and the maximum charge current ilmt_chg and the maximum discharge current ilmt_dsg. The absolute value of the given upper limit is associated with the maximum charge current ilmt_chg, and the absolute value of the given lower limit is associated with the maximum discharge current ilmt_dsg.
[0078] Please refer to Figure 6 , taking a lithium battery as an example, the general charging method of a lithium battery is to charge at a constant current first and then at a constant voltage. Correspondingly, a constant current limiter and a constant voltage limiter are configured. Still taking the battery current i bat with charging being positive and discharging being negative as an example for illustration, then at this time the given upper limit is a positive value and the given lower limit is a negative value.
[0079] When the battery module 100 is charging, before the battery voltage reaches the constant voltage charging voltage, the constant current limiter serves as the given limiter, and according to Figure 4A the maximum charge current ilmt_chg determined by the shown charge characteristic curve, the given upper limit is set to a fixed value. At this time, since the maximum charge current ilmt_chg is basically unchanged and this fixed value is a relatively large constant value, the battery current i bat will reach this set value, and the battery voltage v bat will rise rapidly. After reaching the battery voltage of the constant voltage charging, it switches to the constant voltage limiter as the given limiter, and the given upper limit is set according to the maximum charge current ilmt_chg determined by the charge and discharge characteristic curve. At this time, since the maximum charge current ilmt_chg will decrease as the voltage rises, the setting of the given upper limit is a changing value that gradually becomes smaller and approaches 0.
[0080] Similarly, when the battery module 100 is discharging, during the constant current discharge stage, the constant current limiter serves as the given limiter, and according to Figure 4B the maximum discharge current ilmt_dsg determined by the shown discharge characteristic curve, the given lower limit is set to a fixed value. As the battery voltage v bat decreases, after the battery voltage v bat is lower than the voltage of the constant current discharge, it switches to the constant voltage limiter as the given limiter, and the absolute value of the given lower limit is set according to the maximum discharge current ilmt_dsg determined by the discharge characteristic curve. It can be understood that since the maximum discharge current ilmt_dsg gradually becomes smaller, the absolute value of the given lower limit also gradually becomes smaller.
[0081] In some other embodiments, configure the battery current i batIn the clipping section, only one clipper can also be configured, and the given upper limit value and the given lower limit value of the clipper change following the maximum charging current ilmt_chg and the maximum discharging current ilmt_dsg of the charge-discharge characteristic curve.
[0082] In some embodiments, the charge-discharge characteristic curve is used to indicate:
[0083] Refer to Figure 4A , during the constant current charging stage of the battery module 100, when the battery voltage v bat is less than or equal to the first preset value, the maximum charging current is the first threshold value, and the first threshold value is generally a fixed value. During the constant voltage charging stage of the battery module 100, when the battery voltage v bat is greater than the first preset value, as the battery voltage v bat increases, the maximum charging current gradually decreases from the first threshold value to 0. Among them, the first preset value and the first threshold value are configured according to the maximum charging current ilmt_chg that the single cell can accept in the charge-discharge characteristic curve of the battery module 100. See Figure 4A For example, the first preset value is approximately 3.45 V (volts), and the first threshold value is approximately 50 A (amps).
[0084] Refer to Figure 4B , during the low voltage discharging stage of the battery module 100, when the battery voltage is less than the second preset value, as the battery voltage v bat decreases, the maximum discharging current gradually decreases from the second threshold value to the third threshold value. During the constant current discharging stage of the battery module 100, when the battery voltage v bat is greater than or equal to the second preset value, the maximum discharging current is the third threshold value, and the third threshold value is generally a fixed value. Among them, the second preset value, the second threshold value, and the third threshold value are configured according to the maximum discharging current ilmt_dsg that the single cell can accept in the charge-discharge characteristic curve of the battery module 100. See Figure 4B For example, the second preset value is approximately 3 V, the second threshold value is approximately 30 A, and the third threshold value is approximately 80 A.
[0085] In some embodiments, step S130 includes: calculating an initial given value of the battery current according to the voltage difference between the bus voltage and the bus given voltage.
[0086] When the initial given value is less than the given upper limit value and greater than the given lower limit value, determine the initial given value as the battery current given value;
[0087] When the initial given value is greater than or equal to the given upper limit value, determine the given upper limit value as the battery current given value;
[0088] When the initial given value is less than or equal to the given lower limit value, determine the given lower limit value as the battery current given value.
[0089] Please refer to Figure 5 , the bus given voltage v busref is the target output voltage of the circuit. In the bus voltage loop, it is necessary to sample the bus voltage v of the DC bus BUS bus as the feedback voltage, and compare it with the bus given voltage v busref to obtain the voltage deviation between the target output voltage and the bus voltage v bus . The first PI controller calculates the initial given value of the battery current i of the current control loop according to this voltage deviation bat .
[0090] When the battery module 100 is charging, since the energy flow is from the DC bus BUS part into the battery module 100, the bus voltage v bus must continuously be greater than the bus given voltage v busref , so the bus voltage loop is negatively saturated and becomes positively saturated after multiplying by -1. At this time, the battery current given value i batref is completely determined by the first limiter. It can be understood that Figure 5 the first limiter shown in bat is also the given limiter of the aforementioned battery current i
[0091] Among them, if the initial given value does not exceed the limit between the given upper limit value and the given lower limit value of the battery current i bat , the initial given value is set as the battery current given value i batref . During the charging process, the actual limit of the battery current i bat should be from 0 to the given upper limit value. Therefore, if the initial given value exceeds the limit of the battery current, that is, the initial given value is greater than or equal to the given upper limit value, the given upper limit value is set as the battery current given value i batref .
[0092] At the initial stage of charging, the battery voltage v bat is small. At this time, it is the constant current charging stage, and the given upper limit value of the battery current i bat is a relatively large constant value. Through loop control, the battery current i bat quickly reaches the given upper limit value. During the constant current charging stage, the battery voltage v bat rises rapidly. When it rises to a certain value, the given upper limit value of the battery current i bat decreases as the battery voltage v bat rises. After that, it enters the equivalent constant voltage charging stage, charging the battery with a small current, and as the battery voltage v bat rises, the battery current i bat becomes smaller and smaller.
[0093] When the battery module 100 discharges, the energy flow is from the battery module 100 to the DC bus BUS, and the bus voltage v bus must continuously be less than the bus reference voltage v busref , so the positive saturation of the bus voltage loop occurs. After multiplying by -1, it becomes negative saturation, and the battery discharges. At this time, the battery current reference value i batref is completely determined by the first limiter.
[0094] Similarly, if the initial reference value does not exceed the limit between the upper limit and the lower limit of the battery current reference, the initial reference value is set as the battery current reference value i batref .
[0095] During the discharging process, the actual limit of the battery current should be from the lower limit reference to 0. Therefore, when the initial reference value is less than or equal to the lower limit reference, that is, the initial reference value exceeds the limit of the battery current. At this time, the lower limit reference is set as the battery current reference value i batref .
[0096] In the case of insufficient discharging capacity at the end of discharging, the lower limit reference of the battery current will gradually decrease to ensure the normal operation of the battery module 100.
[0097] Using the limiting link of the battery current i bat and the Figure 5 shown loop structure, the same effect of constant current first and then constant voltage during the charging process can be easily achieved without the battery voltage loop. The charging current of the battery module 100 and the battery voltage v bat during the charging process of the battery module 100 are as shown in Figure 6 .
[0098] Please refer to Figure 5 , in some embodiments, step S140 includes:
[0099] Step S141, calculating the duty ratio according to the current difference between the battery current and the battery current reference.
[0100] The battery current reference i batref of the current control loop is sourced from the bus voltage loop. The battery current i bat sampled at the cell port is used as the feedback current. By comparing it with the battery current reference i batref , the current deviation between the target output current and the battery current i bat is obtained. The second PI controller calculates the output duty ratio according to this current deviation.
[0101] Step S142, generating a drive signal based on the duty ratio.
[0102] Generate a driving signal for modulating and controlling the DC-DC converter 300 through the duty cycle of the PWM controller.
[0103] In some embodiments, before step S142, it further includes: limiting the duty cycle and outputting a duty cycle within a preset duty cycle range.
[0104] It can be understood that the duty cycle determines the charging and discharging voltage of the battery module 100. Here, the second limiter can be set according to the maximum charging and discharging voltage of the battery module 100. Limiting the duty cycle is to limit the maximum duty cycle of the loop and ensure that when the loop is controlled, the charging and discharging voltage of the battery module 100 does not exceed its maximum charging and discharging capacity.
[0105] Please refer to Figure 7 , some embodiments of the present application also disclose a control device for a bidirectional DC converter, including:
[0106] An acquisition module 701, configured to acquire the battery voltage, battery current of the battery module, and the bus voltage of the DC bus;
[0107] A limiting module 702, configured to determine a given upper limit value and a given lower limit value of the battery current according to the battery voltage;
[0108] A processing module 703, configured to determine a given value of the battery current according to the bus voltage, the given value of the bus voltage, the given upper limit value, and the given lower limit value;
[0109] The processing module 703 is further configured to generate a driving signal according to the battery current and the given value of the battery current, and the driving signal is used to drive the bidirectional DC converter to charge or discharge the battery module.
[0110] In some embodiments, the battery module includes at least one single-cell battery; the limiting module 702 includes a current limiter, and the current limiter is used for:
[0111] A calculation unit, configured to determine the cell voltage of the single-cell battery in the battery module according to the battery voltage;
[0112] A fitting unit, configured to determine a corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge-discharge characteristic curve of the battery module; wherein, the charge-discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the single-cell battery and the maximum charging current and the maximum discharging current;
[0113] A configuration unit, configured to determine the given upper limit value and the given lower limit value according to the maximum charging current and the maximum discharging current; wherein, the signs of the given lower limit value and the given upper limit value are opposite.
[0114] In some embodiments, the limiting module 702 further includes:
[0115] An acquisition unit, configured to obtain the charge and discharge characteristic curve of the battery module according to the cell type of the individual cells in the battery module.
[0116] In some embodiments, the limiting module 702 includes a plurality of limiters;
[0117] The configuration unit is further configured to select one of the plurality of limiters as the given limiter of the battery current according to the battery voltage, wherein the given upper limit value and the given lower limit value of the given limiter satisfy the charge and discharge characteristic curve of the battery module, and the charge and discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the individual cells and the maximum charge current and the maximum discharge current. The absolute value of the given upper limit value is associated with the maximum charge current, and the absolute value of the given lower limit value is associated with the maximum discharge current.
[0118] In some embodiments, the charge and discharge characteristic curve is used to indicate:
[0119] When the battery voltage is less than or equal to a first preset value, the maximum charge current is a first threshold;
[0120] When the battery voltage is greater than the first preset value, as the battery voltage increases, the maximum charge current gradually decreases from the first threshold to 0;
[0121] When the battery voltage is less than a second preset value, as the battery voltage decreases, the maximum discharge current gradually decreases from a second threshold to a third threshold;
[0122] When the battery voltage is greater than or equal to the second preset value, the maximum discharge current is the third threshold.
[0123] In some embodiments, the processing module 703 includes:
[0124] A first IP controller, configured to calculate an initial given value of the battery current according to the voltage difference between the bus voltage and the given bus voltage;
[0125] A first limiter, configured to determine the initial given value as the given value of the battery current when the initial given value is less than the given upper limit value and greater than the given lower limit value; determine the given upper limit value as the given value of the battery current when the initial given value is greater than or equal to the given upper limit value; and determine the given lower limit value as the given value of the battery current when the initial given value is less than or equal to the given lower limit value.
[0126] In some embodiments, the processing module 703 further includes:
[0127] A second PI controller, which permanently calculates a duty cycle based on the current difference between the battery current and the given value of the battery current;
[0128] A PWM controller, configured to generate the drive signal based on the duty cycle.
[0129] In some embodiments, the processing module 703 further includes: a second limiter, configured to limit the duty cycle and output the duty cycle within a preset duty cycle range.
[0130] For the specific implementation manners and related beneficial effects of the device of the bidirectional DC converter, please refer to the description of the specific embodiments of the control method of the bidirectional DC converter above, which will not be elaborated here.
[0131] Please refer to Figure 1 、 2 and 8. An embodiment of the present application further provides a power device 80, which includes a bidirectional DC converter 200, a memory 82, a processor 83, and a computer program 821 stored in the memory 82 and executable on the processor 83. The bidirectional DC converter 200 includes a first end and a second end. The first end is used to connect to the battery module 100, and the second end is used to connect to a DC source and / or a load. The bidirectional DC converter 200 is also connected to the processor 83. When the processor 83 executes the computer program 821, the steps of the control method of the bidirectional DC converter as described above are implemented.
[0132] It can be understood that the power device 80 can be a separate power device, or a battery pack having a battery module 100, or an energy storage device including multiple battery packs having battery modules 100.
[0133] Those skilled in the art can understand that Figure 8 This is only an example of the power device 80, and does not constitute a limitation on the power device 80. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0134] The processor 83 may be a Central Processing Unit (CPU), or the processor 83 may also be other general-purpose controllers, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose controller may be a microcontroller or any conventional controller.
[0135] In some embodiments, the memory 82 may be an internal storage unit of the power device 80 or the energy storage device, such as a hard disk or memory of the power device 80 or the energy storage device. In other embodiments, the memory 82 may also be an external storage device of the power device 80 or the energy storage device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. equipped on the power device 80 or the energy storage device. Further, the memory 82 may also include both the internal storage unit of the power device 80 or the energy storage device and the external storage device. The memory 82 is used to store an operating system, application programs, a Boot Loader, data, and other programs, etc. The memory 82 may also be used to temporarily store data that has been output or is to be output.
[0136] The embodiment of the present application also provides a computer-readable storage medium, which stores a computer program 821. When the computer program 821 is executed by the processor 83, the steps in the above method embodiments can be implemented.
[0137] The embodiment of the present application provides a computer program product, which, when running on a computer, causes the computer to execute the steps in the above method embodiments.
[0138] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above method embodiments, this application can be completed by instructing relevant hardware through computer program 821. The computer program 821 can be stored in a computer-readable storage medium. When the computer program 821 is executed by the processor 83, the steps of the above method embodiments can be implemented. Among them, the computer program 821 includes computer program 821 code, and the computer program 821 code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program 821 code to the photographing device / terminal device, recording medium, computer memory 82, ROM (Read-Only Memory, read-only memory 82), RAM (Random Access Memory, random access memory 82), CD-ROM (Compact Disc Read-Only Memory, read-only optical disc), magnetic tape, floppy disk and optical data storage device, etc. The computer-readable storage medium mentioned in this application can be a non-volatile storage medium, in other words, it can be a non-transitory storage medium.
[0139] It should be understood that all or part of the steps of implementing the above embodiments can be realized by software, hardware, firmware or any combination thereof. When implemented using software, it can be fully or partially realized in the form of a computer program 821 product. The computer program 821 product includes one or more computer instructions. The computer instructions can be stored in the above computer-readable storage medium.
[0140] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0141] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0142] In the embodiments provided in the present application, it should be understood that the disclosed device / electronic device and method can be implemented in other ways. For example, the device / electronic device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.
[0143] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0144] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A control method for a bidirectional DC converter, characterized in that: The bidirectional DC converter includes a first end and a second end, the first end is used to connect to a battery module, the second end is connected to a DC bus, and the DC bus is used to connect to a DC source and / or a load. The control method includes: Acquiring a battery voltage and a battery current of the battery module and a bus voltage of the DC bus; Determining a given upper limit value and a given lower limit value of the battery current according to the battery voltage; Determine a battery current given value according to the bus voltage, the bus voltage given value, the given upper limit value and the given lower limit value; A driving signal is generated according to the battery current and the battery current given value, and the driving signal is used to drive the bidirectional DC converter to charge or discharge the battery module.
2. The control method according to claim 1, characterized in that: The battery module includes at least one single battery cell; the step of determining the given upper limit value and the given lower limit value of the battery current according to the battery voltage includes: Determining the cell voltage of the single cell in the battery module according to the battery voltage; Determine the corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge and discharge characteristic curve of the battery module; wherein the charge and discharge characteristic curve of the battery module reflects the mapping relationship between the cell voltage of the single cell and the maximum charging current and the maximum discharging current; The given upper limit value and the given lower limit value are determined according to the maximum charging current and the maximum discharging current; wherein the given lower limit value and the given upper limit value have opposite signs.
3. The control method according to claim 2, characterized in that: Before determining the corresponding maximum charging current and maximum discharging current according to the cell voltage and the charge and discharge characteristic curve of the battery module, the method further includes: The charge and discharge characteristic curve of the battery module is obtained according to the cell type of the single cell in the battery module.
4. The control method according to claim 1, characterized in that: The battery module includes at least one single battery cell, and determining the given upper limit value and the given lower limit value of the battery current according to the battery voltage includes: One of the plurality of limiters is selected according to the battery voltage as a given limiter of the battery current, wherein a given upper limit value and a given lower limit value of the given limiter and the battery voltage satisfy a charge and discharge characteristic curve of the battery module, the charge and discharge characteristic curve of the battery module reflects a mapping relationship between the cell voltage of the single cell and the maximum charge current and the maximum discharge current, the absolute value of the given upper limit value is associated with the maximum charge current, and the absolute value of the given lower limit value is associated with the maximum discharge current.
5. The control method according to any one of claims 2 to 4, characterized in that: The charge and discharge characteristic curve is used to indicate: When the battery voltage is less than or equal to a first preset value, the maximum charging current is a first threshold value; When the battery voltage is greater than the first preset value, as the battery voltage increases, the maximum charging current gradually decreases from the first threshold value to 0; When the battery voltage is less than a second preset value, as the battery voltage decreases, the maximum discharge current gradually decreases from the second threshold value to a third threshold value; When the battery voltage is greater than or equal to the second preset value, the maximum discharge current is the third threshold value.
6. The control method according to any one of claims 1 to 4, characterized in that: The step of determining a given battery current value according to the bus voltage, the given bus voltage, the given upper limit value, and the given lower limit value includes: An initial given value of the battery current is calculated according to a voltage difference between the bus voltage and the bus given voltage; When the initial given value is less than the given upper limit value and the initial given value is greater than the given lower limit value, determining the initial given value to be the battery current given value; In a case where the initial given value is greater than or equal to the given upper limit value, determining the given upper limit value to be the battery current given value; In a case where the initial given value is less than or equal to the given lower limit value, the given lower limit value is determined to be the battery current given value.
7. The control method according to any one of claims 1 to 4, characterized in that: The step of generating a driving signal according to the battery current and the battery current given value comprises: Calculating a duty cycle according to a current difference between the battery current and a given value of the battery current; The drive signal is generated based on the duty cycle.
8. The control method according to claim 7, characterized in that: Before generating the driving signal based on the duty cycle, the method further includes: The duty cycle is limited to output the duty cycle within a preset duty cycle range.
9. An electric power device, characterized in that: The invention comprises a bidirectional DC converter, a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the bidirectional DC converter comprises a first end and a second end, wherein the first end is used to connect a battery module, the second end is connected to a DC bus, and the DC bus is used to connect a DC source and / or a load, and the processor is connected to the bidirectional DC converter, and when the processor executes the computer program, the steps of the control method of the bidirectional DC converter according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the controller, the steps of the control method of the bidirectional DC converter as claimed in any one of claims 1 to 8 can be implemented.
