DC / DC converter control method and system, controller and computer readable storage medium
By calculating the steady-state and dynamic duty cycle compensation of the DC/DC converter and adjusting the switching tube state, the problem of slow response of the PI controller when the load changes is solved, and the stability and responsiveness of the DC/DC converter are improved. .
Patent Information
- Application Number
- CN202410699039.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
The existing PI controller requires sufficient error in the integral term of the DC/DC converter before it can respond. As a result, the inductor current cannot follow quickly when the output load changes, resulting in poor output voltage stability.
By obtaining the real-time output voltage value and current sampling value of the output capacitor, calculating the steady-state and dynamic duty cycle compensation, adjusting the on/off state of the switching tube to generate a pulse width modulation signal, ensuring that the DC/DC converter responds quickly to load changes .
It improves the stability of the DC/DC converter, reduces the output voltage adjustment amplitude, and enhances the response ability to load changes.
Smart Images

Figure CN118589875A
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a control method, system, controller and computer-readable storage medium for a DC / DC converter. Background Art
[0002] At present, in a vehicle-mounted direct current / direct current converter (DC / DC converter), a digital controller is generally used for driving, that is, voltage output regulation or current output regulation is achieved by sampling output voltage, output current and loop feedback control.
[0003] However, when a DC / DC converter is driven by a proportional-integral (PI) controller, when the output load of the DC / DC converter changes, the integral term of the PI controller requires sufficient error to respond, which will cause the inductor current of the DC / DC converter to be unable to quickly follow the load change, resulting in insufficient or excessive inductor energy, thereby causing the output voltage to drop or overshoot, and poor stability. Summary of the invention
[0004] The main purpose of the present application is to provide a control method, system, controller and computer-readable storage medium for a DC / DC converter, aiming to solve the technical problem that when the existing PI controller drives the DC / DC converter, the integral term requires sufficient error to respond, which easily leads to poor stability when the output load changes.
[0005] To achieve the above object, the present application provides a control method for a DC / DC converter, wherein the DC / DC converter comprises a DC / AC circuit, a transformer and an AC / DC circuit which are electrically connected in sequence, an output capacitor is connected in parallel to an output end of the AC / DC circuit, and the DC / DC converter further comprises a controller for controlling the on / off state of each switch tube in the DC / AC circuit and the AC / DC circuit, wherein the method uses the controller to perform the following steps:
[0006] Acquiring a real-time output voltage value of the output capacitor, calculating a deviation value between the real-time output voltage value and a preset target output voltage, and performing a proportional integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter;
[0007] Determine whether the deviation value is greater than a preset threshold;
[0008] If the deviation value is greater than the preset threshold value, a first dynamic duty cycle compensation amount of the DC / DC converter is calculated according to the deviation value, and a real-time current sampling value of the output capacitor is obtained at the same time, and a second dynamic duty cycle compensation amount of the DC / DC converter is calculated according to the real-time current sampling value;
[0009] determining whether the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount have the same sign;
[0010] If they are the same, compensating the steady-state duty cycle according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and generating a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the compensated steady-state duty cycle;
[0011] If they are not the same, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle.
[0012] In one embodiment, after the step of determining whether the deviation value is greater than a preset threshold, the method further includes:
[0013] If the deviation value is less than or equal to the preset threshold, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the steady-state duty cycle.
[0014] In one embodiment, the step of calculating the first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value comprises:
[0015] The first dynamic duty cycle compensation amount is calculated according to the following formula:
[0016] duty2 = kd*(Verr-Verr_1);
[0017] Among them, duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
[0018] In one embodiment, the step of calculating the second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value comprises:
[0019] The second dynamic duty cycle compensation amount is calculated according to the following formula:
[0020] duty3 = kd*ic*T / C;
[0021] Among them, duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor, T is the sampling period, and C is the capacitance of the output capacitor.
[0022] In addition, to achieve the above-mentioned purpose, the present application also proposes a control system of a DC / DC converter, wherein the DC / DC converter comprises a DC / AC circuit, a transformer and an AC / DC circuit which are electrically connected in sequence, an output capacitor is connected in parallel to the output end of the AC / DC circuit, and the DC / DC converter further comprises a controller for controlling the on / off state of each switch tube in the DC / AC circuit and the AC / DC circuit, wherein the controller comprises:
[0023] a deviation calculation unit, used to obtain a real-time output voltage value of the output capacitor, and calculate a deviation value between the real-time output voltage value and a preset target output voltage;
[0024] a proportional-integral operation unit, configured to perform a proportional-integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter;
[0025] A first judging unit, used to judge whether the deviation value is greater than a preset threshold;
[0026] a dynamic duty cycle calculation unit, configured to calculate a first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value if the deviation value is greater than the preset threshold value, and simultaneously obtain a real-time current sampling value of the output capacitor, and calculate a second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value;
[0027] a second determination unit, configured to determine whether the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same;
[0028] A pulse width modulation signal generating unit is used to compensate the steady-state duty cycle according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount if they are the same, and generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the compensated steady-state duty cycle; if they are not the same, directly generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the steady-state duty cycle.
[0029] In one embodiment, the pulse width modulation signal generating unit is further used for:
[0030] If the deviation value is less than or equal to the preset threshold, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the steady-state duty cycle.
[0031] In one embodiment, the dynamic duty cycle calculation unit is specifically used for:
[0032] The first dynamic duty cycle compensation amount is calculated according to the following formula:
[0033] duty2 = kd*(Verr-Verr_1);
[0034] Among them, duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
[0035] In one embodiment, the dynamic duty cycle calculation unit is specifically used for:
[0036] The second dynamic duty cycle compensation amount is calculated according to the following formula:
[0037] duty3 = kd*ic*T / C;
[0038] Among them, duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor, T is the current sampling period of the output capacitor, and C is the capacitance of the output capacitor.
[0039] In addition, to achieve the above-mentioned objectives, the present application also proposes a controller, comprising a memory, a processor, and a control program of a DC / DC converter stored in the memory and executable on the processor, wherein the control program of the DC / DC converter is configured to implement the control method of the DC / DC converter as described above.
[0040] In addition, to achieve the above objectives, the present application also proposes a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the control method of the DC / DC converter as described above is implemented.
[0041] The present application provides a control method, system, controller and computer-readable storage medium of a DC / DC converter, which can first obtain a deviation value between a real-time output voltage value of an output capacitor and a preset target output voltage, and obtain a steady-state duty cycle of the DC / DC converter according to the deviation value; when the deviation value is greater than a preset threshold, a first dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the deviation value, and a second dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the real-time current sampling value of the output capacitor; then, when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same, the steady-state duty cycle is compensated according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the compensated steady-state duty cycle; when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are different, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle. Compared with the existing PI controller whose integral term requires sufficient error to respond, the present application can determine the first dynamic duty cycle compensation amount according to the deviation value when the deviation value of the output capacitor is greater than the preset threshold, and determine the second dynamic duty cycle compensation amount according to the real-time current sampling value of the output capacitor; then, when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same, the steady-state duty cycle is compensated according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and a pulse width modulation signal is generated according to the compensated steady-state duty cycle; when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are different, a pulse width modulation signal is directly generated according to the steady-state duty cycle, thereby responding to load changes more quickly and improving stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A schematic diagram of the controller structure of the hardware operating environment involved in the embodiment of the present application;
[0045] Figure 2 This is a flow chart of a first embodiment of a control method for a DC / DC converter of the present application;
[0046] Figure 3 A topological structure diagram of a DC / DC converter in a first embodiment of a control method for a DC / DC converter of the present application;
[0047] Figure 4 A flow chart of a control method for a DC / DC converter of the present application;
[0048] Figure 5 This is a flow chart of a second embodiment of a control method for a DC / DC converter of the present application;
[0049] Figure 6 This is a structural block diagram of the first embodiment of the control system of the DC / DC converter of the present application.
[0050] Label:
[0051] Description of Figure Numbers:
[0052] Q1, first switch tube; Q2, second switch tube; Q3, third switch tube; Q4, fourth switch tube; Q5, fifth switch tube; Q6, sixth switch tube; Q7, seventh switch tube; Q8, eighth switch tube; T, transformer; L1, first inductor; Lk, second inductor; C1, output capacitor.
[0053] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] 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.
[0055] Reference Figure 1 , Figure 1 A schematic diagram of the controller structure of the hardware operating environment involved in the embodiment of the present application.
[0056] like Figure 1As shown, the controller may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 1003 may be a USB interface in this application. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable memory (Non-volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0057] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the controller, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0058] like Figure 1 As shown, the memory 1005 identified as a computer storage medium may include an operating system, a network communication module, a user interface module, and a control program for a DC / DC converter.
[0059] exist Figure 1 In the controller shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the user device; the controller calls the control program of the DC / DC converter stored in the memory 1005 through the processor 1001, and executes the control method of the DC / DC converter provided in the embodiment of the present application.
[0060] It should be noted that, at present, in the on-board direct current / direct current converter (DC / DC converter), a digital controller can generally be used for driving, that is, voltage output regulation or current output regulation is achieved by sampling the output voltage, output current and loop feedback control.
[0061] However, when a DC / DC converter is driven by a proportional-integral (PI) controller, when the output load of the DC / DC converter changes, the integral term of the PI controller requires sufficient error to respond, which will cause the inductor current of the DC / DC converter to be unable to quickly follow the load change, resulting in insufficient or excessive inductor energy, thereby causing the output voltage to drop or overshoot, and poor stability.
[0062] Therefore, in order to solve the above defects, this embodiment provides a control method of a DC / DC converter, wherein the DC / DC converter includes a DC / AC circuit, a transformer and an AC / DC circuit electrically connected in sequence, an output capacitor is connected in parallel to the output end of the AC / DC circuit, and the DC / DC converter also includes a controller for controlling the on / off state of each switch tube in the DC / AC circuit and the AC / DC circuit. Since the present embodiment can first obtain the deviation value between the preset target output voltage and the real-time output voltage value of the output capacitor, and obtain the steady-state duty cycle of the DC / DC converter according to the deviation value; when the deviation value is greater than the preset threshold value, the first dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the deviation value, and the second dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the real-time current sampling value of the output capacitor; then when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same, the steady-state duty cycle is compensated according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the compensated steady-state duty cycle; when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are different, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle. Compared with the existing PI controller, which requires sufficient error for the integral term to respond, the present embodiment can respond to load changes faster and improve stability.
[0063] For ease of understanding, the following combination Figures 2 to 6 The control method of the DC / DC converter provided in the embodiment of the present application is specifically introduced.
[0064] Reference Figure 2 , Figure 2 The flowchart of the first embodiment of the control method of the DC / DC converter of the present application is shown in FIG.
[0065] like Figure 2As shown, in this embodiment, it should be noted that the method of this embodiment can be applied in the scenario of driving and controlling a DC / DC converter, and of course it can also be applied in the scenario of driving and controlling other converters, and this embodiment does not limit this. The execution subject of the method of this embodiment can be a device with the control, network communication and program running functions of a DC / DC converter, such as a controller, etc., and can also be other electronic devices that implement the same or similar functions. The following embodiment and the following embodiments are described in the scenario where the above-mentioned controller controls the DC / DC converter to work.
[0066] The DC / DC converter includes a DC / AC circuit, a transformer and an AC / DC circuit electrically connected in sequence, an output capacitor is connected in parallel to the output end of the AC / DC circuit, and the DC / DC converter also includes a controller for controlling the on / off state of each switch tube in the DC / AC circuit and the AC / DC circuit.
[0067] Specifically, in order to facilitate subsequent understanding, this embodiment is described in conjunction with a specific isolated step-down switching power supply as the above-mentioned DC / DC converter. Figure 3 , Figure 3 This is a topological structure diagram of a DC / DC converter in a first embodiment of a control method for a DC / DC converter of the present application, as shown in FIG. Figure 3 As shown, in this embodiment, the DC / DC converter may include: a DC / AC circuit, a transformer T and an AC / DC circuit electrically connected in sequence;
[0068] The DC / AC circuit may include first to fourth switch tubes Q4, and the AC / DC circuit may include fifth to eighth switch tubes Q8, a first inductor L1, a second inductor Lk, and an output capacitor C1;
[0069] The control ends of the first switch tube Q1 to the eighth switch tube Q8 are all connected to the above controller, and the input end of the first switch tube Q1 is respectively connected to the power supply (i.e. Figure 3The first switch tube Q1 is connected to the input end of the third switch tube Q3 and the first input end of the transformer T, the output end of the second switch tube Q2 is connected to the input end of the fourth switch tube Q4 and the second input end of the transformer T, the output end of the third switch tube Q3 is connected to the power supply and the output end of the fourth switch tube Q4, the first output end of the transformer T is connected to the output end of the second inductor Lk, the input end of the fifth switch tube Q5 is connected to the input end of the sixth switch tube Q6 and the input end of the first inductor L1, the output end of the fifth switch tube Q5 is connected to the output end of the second inductor Lk and the input end of the seventh switch tube Q7, the output end of the sixth switch tube Q6 is connected to the second output end of the transformer T and the input end of the eighth switch tube Q8, the output end of the eighth switch tube Q8 is connected to the output end of the seventh switch tube Q7, the second end of the output capacitor C1 and the load (not shown in the figure), and the output end of the first inductor L1 is connected to the first end of the output capacitor C1 and the load.
[0070] The turns ratio of the transformer T may be N:1. The specific value of N may be set according to actual conditions, and this embodiment does not impose any limitation on this.
[0071] The above method can use the above controller to perform the following steps:
[0072] Step S10: acquiring a real-time output voltage value of the output capacitor, calculating a deviation value between the real-time output voltage value and a preset target output voltage, and performing a proportional integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter.
[0073] It should be understood that, since the controller performs driving periodically, the above-mentioned real-time output voltage value may be the voltage value output by the output capacitor C1 at the sampling moment of the current cycle. The above-mentioned deviation value may be the difference between the real-time output voltage value at the current sampling moment and the preset target output voltage. The above-mentioned preset target output voltage may be the voltage that the DC / DC converter is expected to output to the load, which may be set according to the actual situation.
[0074] The steady-state duty cycle may be the ratio between the time at a high level and the total duration of the cycle in the pulse width modulation (PWM) signal. Since the controller in this embodiment can control the first to eighth switch tubes Q8 through the PWM signal to drive the DC / DC converter, the controller can obtain the real-time output voltage value of the DC / DC converter at the current sampling moment, and obtain the steady-state duty cycle of the DC / DC converter through proportional integral operation after determining the deviation value between the real-time output voltage value and the preset target output voltage.
[0075] In a specific implementation, the controller can drive the DC / DC converter to output according to the preset target output voltage, and collect the voltage output to the load of the DC / DC converter at the current sampling moment in real time as the real-time output voltage, and then use the difference between the preset target voltage and the real-time output voltage as the deviation value. For the convenience of subsequent description, the deviation value at the current sampling moment is recorded as Verr, and refer to Figure 4 , Figure 4 The flowchart of the control method of the DC / DC converter of the present application is as follows: Figure 4 As shown, the deviation value (i.e. Figure 4 The current deviation value Verr is calculated based on the output voltage request value and the sampling data).
[0076] Further, in order to obtain a steady-state duty cycle, the above-mentioned proportional-integral operation is performed on the deviation value to obtain the specific process of the steady-state duty cycle of the DC / DC converter as follows: after determining the deviation value, the above-mentioned controller may first multiply the preset proportional gain of the controller by the deviation value to determine the proportional term, and multiply the preset integral gain by the integral of the deviation value to obtain the integral term, and finally determine the steady-state duty cycle of the PWM signal (i.e. Figure 4 In order to facilitate the subsequent description, the steady-state duty cycle is recorded as duty1.
[0077] Step S20: determining whether the deviation value is greater than a preset threshold;
[0078] Step S30: If the deviation value is greater than the preset threshold value, the first dynamic duty cycle compensation amount of the DC / DC converter is calculated according to the deviation value, and the real-time current sampling value of the output capacitor is obtained at the same time, and the second dynamic duty cycle compensation amount of the DC / DC converter is calculated according to the real-time current sampling value.
[0079] It should be noted that, considering that there may be interference in actual use, in order to prevent the controller from performing subsequent compensation operations due to interference, the above-mentioned controller can determine whether the deviation value is greater than a preset threshold.
[0080] It is understandable that the above-mentioned preset threshold value can be set according to the actual situation. In actual use, the above-mentioned controller can first determine whether the deviation value is higher than the preset threshold value (i.e. Figure 4 If so, it can be indicated that the current situation is not affected by interference, and then the controller can determine the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount to perform subsequent compensation operations.
[0081] When determining the first dynamic duty cycle compensation amount, the step of calculating the first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value includes:
[0082] The first dynamic duty cycle compensation amount is calculated according to the following formula:
[0083] duty2 = kd*(Verr-Verr_1);
[0084] Among them, duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
[0085] It should be understood that the previous sampling moment may be the sampling moment of the previous cycle, and the controller may save the voltage deviation in each cycle, and then obtain the real-time output voltage of the DC / DC converter at the previous sampling moment according to the saved result, and use the difference between the real-time output voltage and the preset target output voltage as the deviation value at the previous sampling moment. For the convenience of subsequent description, the deviation value at the previous sampling moment is recorded as Verr_1.
[0086] After determining the deviation value at the last sampling moment, the controller may determine a first dynamic duty cycle compensation amount based on the deviation value, wherein the first dynamic duty cycle compensation amount may be a parameter for compensating for the steady-state duty cycle.
[0087] It should also be understood that the above differential coefficient can be a coefficient used to adjust the degree of influence of the differential term. When the controller controls the DC / DC converter, the value of the differential coefficient can be automatically adjusted according to a preset optimization algorithm (such as a genetic algorithm, etc.), and the adjusted coefficient is used as the above preset differential coefficient. Of course, it can also be adjusted in other ways, which is not limited in this embodiment.
[0088] In a specific implementation, according to the above formula, the first dynamic duty cycle compensation amount (i.e. Figure 4 1. Calculate the first dynamic duty cycle compensation amount duty2 according to Verr).
[0089] Next, the controller may obtain a real-time current sampling value of the output capacitor C1 , and calculate a second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value.
[0090] It should be noted that the above real-time current sampling value can be the current value output by the output capacitor C1 to the load (ie Figure 3 in i C1). The second dynamic duty cycle compensation amount may also be a parameter used to compensate for the steady-state duty cycle.
[0091] In order to obtain the second dynamic duty cycle compensation amount, the step of calculating the second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value includes:
[0092] The second dynamic duty cycle compensation amount is calculated according to the following formula:
[0093] duty3 = kd*ic*T / C;
[0094] Among them, duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor C1, T is the sampling period, and C is the capacitance of the output capacitor C1.
[0095] It is understandable that the controller may pre-store the capacitance of the output capacitor C1 and obtain the real-time current sampling value of the output capacitor C1 by acquisition, wherein the real-time current sampling value takes the discharge current direction as positive.
[0096] In a specific implementation, according to the above formula, the second dynamic duty cycle compensation amount (i.e. Figure 4 2. Calculate duty 3) based on capacitor current sampling data.
[0097] Step S40: determining whether the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same;
[0098] Step S50: If they are the same, the steady-state duty cycle is compensated according to the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, whichever has a smaller absolute value, and a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the compensated steady-state duty cycle;
[0099] It should be understood that after determining the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, the controller may determine a specific compensation method according to the signs of the two compensation amounts. Specifically, the controller may first determine whether the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same (i.e. Figure 4 Determine whether the signs of duty2 and duty3 are the same);
[0100] If yes, it means that it is not affected by interference at this time. However, considering that a larger result may have a greater impact on the drive, in order to ensure robustness, the controller can select a smaller value from the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount for compensation. Specifically, the controller can first take the absolute value of the first dynamic duty cycle compensation amount (i.e. Figure 4 |duty2|) and taking the absolute value of the second dynamic duty cycle compensation amount (i.e. Figure 4 |duty3|), and select the smaller compensation amount from the first dynamic duty cycle compensation amount after taking the absolute value and the second dynamic duty cycle compensation amount after taking the absolute value as the target compensation amount (i.e. Figure 4 min{|duty2|,|duty3|}); and then determining whether the first dynamic duty cycle compensation amount is less than a preset compensation threshold. In this embodiment, the preset compensation threshold is described as zero (i.e. Figure 4 In the calculation, it is determined whether duty2 is less than 0); if it is less than zero, the difference between the steady-state duty cycle and the target compensation amount can be used as the output duty cycle to update the drive pulse and obtain the target drive pulse (i.e. Figure 4 Output duty ratio duty_out = duty1-min{|duty2|,|duty3|}); if it is greater than zero, the sum of the steady-state duty ratio and the target compensation amount can be used as the output duty ratio to update the drive pulse and obtain the target drive pulse (i.e. Figure 4 The output duty ratio duty_out=duty1+min{|duty2|,|duty3|}); finally, the controller generates a corresponding PWM signal according to the target driving pulse to control the first to eighth switch tubes Q8 in the DC / DC converter.
[0101] Step S60: If they are not the same, directly generating a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the steady-state duty cycle.
[0102] If not, it can be explained that it is still affected by interference at this time, and then the above controller can directly use the steady-state duty cycle as the output duty cycle to update the drive pulse and obtain the target drive pulse (ie Figure 4 The output duty ratio duty_out=duty1), and then generate corresponding PWM signals according to the target driving pulse to control the first to eighth switch tubes Q8 in the DC / DC converter.
[0103] In this embodiment, a deviation value between the real-time output voltage value of the output capacitor C1 and a preset target output voltage is first obtained, and a steady-state duty cycle of the DC / DC converter is obtained according to the deviation value; when the deviation value is greater than a preset threshold value, a first dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the deviation value, and a second dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the real-time current sampling value of the output capacitor C1; then, when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same, the steady-state duty cycle is compensated according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the compensated steady-state duty cycle; when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are different, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle. Compared to the existing PI controller whose integral term requires sufficient error to respond, this embodiment can compensate the steady-state duty cycle according to the first dynamic duty cycle compensation amount or the second dynamic duty cycle compensation amount, thereby being able to respond to load changes more quickly, reduce the output voltage regulation amplitude and improve stability.
[0104] At the same time, this embodiment can also reduce the influence of interference on subsequent driving by presetting the threshold, further improving the accuracy of control. And because this embodiment can reduce the capacitance value of the filter capacitor required by the DC / DC converter, the system cost is reduced.
[0105] Reference Figure 5 , Figure 5 This is a flow chart of a second embodiment of a control method for a DC / DC converter of the present application. Based on the above first embodiment, the second embodiment of a control method for a DC / DC converter of the present application is proposed.
[0106] Considering that when the deviation value is not greater than the preset threshold, such as Figure 5 As shown, after the above step S20, it also includes:
[0107] Step S70: If the deviation value is less than or equal to the preset threshold, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the steady-state duty cycle.
[0108] In the specific implementation, if the deviation value at the current acquisition moment is not greater than the preset threshold, it can be indicated that the current is affected by interference, and no subsequent compensation is required. It is only necessary to drive the DC / DC converter according to the previously determined steady-state duty cycle. The specific process is to use the steady-state duty cycle as the output duty cycle of the controller (i.e. Figure 4The output duty ratio duty_out = duty1), and the drive pulse is updated according to the output duty ratio (ie Figure 4 The target driving pulse is updated in the process), a target driving pulse is obtained, and then a corresponding PWM signal is generated according to the target driving pulse to control the first to eighth switching tubes Q8 in the DC / DC converter.
[0109] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the control method of the DC / DC converter as described above is implemented.
[0110] In addition, refer to Figure 6 , Figure 6 This is a structural block diagram of the first embodiment of the control system of the DC / DC converter of the present application; the embodiment of the present application also provides a control system of a DC / DC converter, wherein the DC / DC converter comprises a DC / AC circuit, a transformer and an AC / DC circuit electrically connected in sequence, an output end of the AC / DC circuit is connected in parallel with an output capacitor, and the DC / DC converter further comprises a controller for controlling the on / off state of each switch tube in the DC / AC circuit and the AC / DC circuit, wherein the controller comprises:
[0111] The deviation calculation unit 601 is used to obtain the real-time output voltage value of the output capacitor and calculate the deviation value between the real-time output voltage value and the preset target output voltage;
[0112] A proportional-integral operation unit 602 is used to perform a proportional-integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter;
[0113] A first judging unit 603 is used to judge whether the deviation value is greater than a preset threshold;
[0114] a dynamic duty cycle calculation unit 604, configured to calculate a first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value if the deviation value is greater than the preset threshold value, and simultaneously obtain a real-time current sampling value of the output capacitor, and calculate a second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value;
[0115] A second determination unit 605 is used to determine whether the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same;
[0116] The pulse width modulation signal generating unit 606 is used to compensate the steady-state duty cycle according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount if they are the same, and generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the compensated steady-state duty cycle; if they are not the same, directly generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the steady-state duty cycle.
[0117] In this embodiment, a deviation value between the real-time output voltage value of the output capacitor and a preset target output voltage can be first obtained, and a steady-state duty cycle of the DC / DC converter can be obtained according to the deviation value; when the deviation value is greater than a preset threshold value, a first dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the deviation value, and a second dynamic duty cycle compensation amount of the DC / DC converter is calculated based on the real-time current sampling value of the output capacitor; then, when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same, the steady-state duty cycle is compensated according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the compensated steady-state duty cycle; when the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are different, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle. Compared to the existing PI controller whose integral term requires sufficient error to respond, this embodiment can compensate the steady-state duty cycle according to the first dynamic duty cycle compensation amount or the second dynamic duty cycle compensation amount, thereby being able to respond to load changes more quickly, reduce the output voltage regulation amplitude and improve stability.
[0118] As an implementation mode, the dynamic duty cycle calculation unit 604 is specifically used to: calculate the first dynamic duty cycle compensation amount according to the following formula: duty2=kd*(Verr-Verr_1); wherein duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
[0119] As an implementation mode, the dynamic duty cycle calculation unit 604 is specifically used to calculate the second dynamic duty cycle compensation amount according to the following formula: duty3=kd*ic*T / C; wherein duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor, T is the current sampling period of the output capacitor, and C is the capacitance of the output capacitor.
[0120] Based on the first embodiment of the control system of the DC / DC converter of the present application, a second embodiment of the control system of the DC / DC converter of the present application is proposed.
[0121] In this embodiment, the pulse width modulation signal generating unit 606 is further used to: if the deviation value is less than or equal to the preset threshold, generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the steady-state duty cycle.
[0122] Other embodiments or specific implementations of the control system of the DC / DC converter described in the present application can refer to the above-mentioned method embodiments, which will not be repeated here.
[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0124] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0126] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A control method for a DC / DC converter, wherein the DC / DC converter comprises a DC / AC circuit, a transformer, and an AC / DC circuit electrically connected in sequence, wherein an output capacitor is connected in parallel to an output end of the AC / DC circuit, and the DC / DC converter further comprises a controller for controlling the on / off state of each switch in the DC / AC circuit and the AC / DC circuit, wherein: The method uses the controller to perform the following steps: Obtaining a real-time output voltage value of the output capacitor, calculating a deviation between the real-time output voltage value and a preset target output voltage, and performing a proportional integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter; Determining whether the deviation value is greater than a preset threshold; If the deviation value is greater than the preset threshold, calculating a first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value, simultaneously obtaining a real-time current sampling value of the output capacitor, and calculating a second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value; determining whether the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount have the same sign; If they are the same, compensating the steady-state duty cycle according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, and generating a pulse width modulation signal for controlling the on / off state of each switch in the DC / DC converter according to the compensated steady-state duty cycle; If they are not the same, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is directly generated according to the steady-state duty cycle.
2. The control method of the DC / DC converter according to claim 1, wherein: After the step of determining whether the deviation value is greater than a preset threshold, the method further includes: If the deviation value is less than or equal to the preset threshold, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the steady-state duty cycle.
3. The control method of the DC / DC converter according to claim 1, wherein: The step of calculating a first dynamic duty cycle compensation amount of the DC / DC converter according to the deviation value comprises: The first dynamic duty cycle compensation amount is calculated according to the following formula: duty2 = kd*(Verr-Verr_1); Among them, duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
4. The control method of the DC / DC converter according to claim 1, wherein: The step of calculating the second dynamic duty cycle compensation amount of the DC / DC converter according to the real-time current sampling value includes: The second dynamic duty cycle compensation amount is calculated according to the following formula: duty3 = kd*ic*T / C; Among them, duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor, T is the sampling period, and C is the capacitance of the output capacitor.
5. A control system for a DC / DC converter, the DC / DC converter comprising a DC / AC circuit, a transformer, and an AC / DC circuit electrically connected in sequence, an output capacitor connected in parallel to an output end of the AC / DC circuit, and a controller for controlling the on / off state of each switch in the DC / AC circuit and the AC / DC circuit, characterized in that: The controller includes: a deviation calculation unit, configured to obtain a real-time output voltage value of the output capacitor and calculate a deviation value between the real-time output voltage value and a preset target output voltage; a proportional-integral operation unit, configured to perform a proportional-integral operation on the deviation value to obtain a steady-state duty cycle of the DC / DC converter; A first judging unit, configured to judge whether the deviation value is greater than a preset threshold; a dynamic duty cycle calculation unit, configured to calculate a first dynamic duty cycle compensation amount of the DC / DC converter based on the deviation value if the deviation value is greater than the preset threshold value, simultaneously obtain a real-time current sampling value of the output capacitor, and calculate a second dynamic duty cycle compensation amount of the DC / DC converter based on the real-time current sampling value; a second determining unit, configured to determine whether the signs of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount are the same; a pulse width modulation signal generating unit, configured to compensate for the steady-state duty cycle according to the smaller absolute value of the first dynamic duty cycle compensation amount and the second dynamic duty cycle compensation amount, if the steady-state duty cycle and the second dynamic duty cycle compensation amount are the same, and generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the compensated steady-state duty cycle; and to directly generate a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter according to the steady-state duty cycle, if the steady-state duty cycle and the second dynamic duty cycle and the second dynamic duty cycle compensation amount are different.
6. The control system of the DC / DC converter according to claim 5, wherein: The pulse width modulation signal generating unit is further configured to: If the deviation value is less than or equal to the preset threshold, a pulse width modulation signal for controlling the on / off state of each switch tube in the DC / DC converter is generated according to the steady-state duty cycle.
7. The control system of the DC / DC converter according to claim 5, wherein: The dynamic duty cycle calculation unit is specifically used for: The first dynamic duty cycle compensation amount is calculated according to the following formula: duty2 = kd*(Verr-Verr_1); Among them, duty2 is the first dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, Verr is the deviation value at the current sampling moment, and Verr_1 is the deviation value at the previous sampling moment.
8. The control system of the DC / DC converter according to claim 5, wherein: The dynamic duty cycle calculation unit is specifically used for: The second dynamic duty cycle compensation amount is calculated according to the following formula: duty3 = kd*ic*T / C; Among them, duty3 is the second dynamic duty cycle compensation amount, kd is the preset differential coefficient of the controller, ic is the real-time current sampling value of the output capacitor, T is the current sampling period of the output capacitor, and C is the capacitance of the output capacitor.
9. A controller, characterized in that: include: A memory, a processor, and a control program for a DC / DC converter stored in the memory and executable on the processor, wherein the control program for the DC / DC converter, when executed by the processor, implements the control method for the DC / DC converter according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the program is executed by a processor, the control method of the DC / DC converter according to any one of claims 1 to 4 is implemented.
Citation Information
Cited By
PWM (Pulse Width Modulation) control analog quantity output method and device, computer equipment and storage medium
CN121055938A
Pwm control analog output method and device, computer device, and storage medium
CN121055938B
