Control method and control circuit of voltage converter, vehicle and computer medium
By calculating the duty cycle of the control signal based on electrical parameters and inductor current, and controlling the switching mode of the switch tube of the voltage converter, the problem of control strategy errors caused by voltage sampling errors is solved, and the accurate control and dynamic response capabilities of the inductor current are achieved. Improvement.
Patent Information
- Application Number
- CN202411237339.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-13
AI Technical Summary
Existing voltage converters may cause control policy errors due to voltage sampling errors when switching operating modes, which may lead to frequent mode switching and equipment damage.
By determining the control command value based on the set electrical parameters and inductor current, calculating the duty cycle of the control signal, and controlling the on-off of the switch tube according to the duty cycle, switching the working mode of the voltage converter to avoid dependence on the acquisition voltage. Ensure accurate control of inductor current.
At any voltage across the voltage converter, more accurate inductor current control is achieved, reducing the error and current impact of mode switching, and improving dynamic response capabilities.
Smart Images

Figure CN119134849A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a control method for a voltage converter, a control circuit, a vehicle, and a computer-readable storage medium. Background Art
[0002] The voltage converter can perform voltage boost or voltage step-down operations, and the voltage converter can be adjusted to operate in boost or buck mode by switching the working state of the switch tube according to the voltage at both ends of the voltage converter. In related technologies, sampling errors of the voltage at both ends of the voltage converter will lead to erroneous control strategy switching. Summary of the invention
[0003] Embodiments of the present application provide a control method of a voltage converter, a control circuit, a vehicle, and a computer-readable storage medium.
[0004] The present application provides a control method for a voltage converter, the control method comprising:
[0005] Determining a control command value according to a set electrical parameter and an inductor current, wherein the inductor current is a current flowing through an inductor of the voltage converter;
[0006] determining a duty cycle of a control signal according to a control command value;
[0007] The on-off of the switch tube of the voltage converter is controlled according to the duty cycle of the control signal to switch the working mode of the voltage converter, and the working mode includes a boost mode or a buck mode.
[0008] In this way, the control method, control circuit, vehicle and computer-readable storage medium of the implementation mode of the present application determine the control instruction value according to the set electrical parameters and the inductor current, determine the duty cycle of the control signal according to the control instruction value, and then control the on and off of the switch tube according to the duty cycle of the control signal to switch the working mode of the voltage converter. When switching the working mode, there is no need to refer to the collected voltage across the voltage converter, thereby avoiding the interference of the collection error on the working mode switching, so that the inductor current can be more accurately controlled at the specified value under any voltage across the voltage converter.
[0009] In some embodiments, determining the control command value according to the set electrical parameter and the inductor current includes:
[0010] The inductor current is proportionally and integrally controlled according to the set electrical parameters to determine the control command value.
[0011] In this way, the control command value can be determined by performing proportional-integral control on the inductor current.
[0012] In some embodiments, the control signal includes a first control signal and a second control signal, and determining the duty cycle of the control signal according to the control instruction value includes:
[0013] comparing the control instruction value with a first set parameter value;
[0014] The duty cycle of the first control signal and the duty cycle of the second control signal are determined according to the comparison result between the control instruction value and the first setting parameter value, the first control signal is used to control the on and off of the input switch tube of the voltage converter, and the second control signal is used to control the on and off of the output switch tube of the voltage converter.
[0015] In this way, the duty cycle of the control signal can be determined according to the comparison result between the control instruction value and the first setting parameter value.
[0016] In some embodiments, determining the duty cycle of the first control signal and the duty cycle of the second control signal according to the comparison result between the control instruction value and the first setting parameter value includes:
[0017] When the control instruction value is less than the first setting parameter value, determining that the duty cycle of the first control signal is the control instruction value, and the duty cycle of the second control signal is the first setting parameter value;
[0018] When the control instruction value is greater than or equal to the first setting parameter value, the duty cycle of the first control signal is determined to be the first setting parameter value, and the duty cycle of the second control signal is determined to be the difference between the second setting parameter value and the control instruction value.
[0019] In this way, the duty cycle of the first control signal and the duty cycle of the second control signal can be determined by comparing the control command value with the first setting parameter value, thereby achieving the switching of the working mode of the voltage converter.
[0020] In some embodiments, the input switch tube includes a first switch tube and a second switch tube, and the output switch tube includes a third switch tube and a fourth switch tube. The first ends of the first switch tube and the second switch tube are electrically connected to the first end of the inductor, the first ends of the third switch tube and the fourth switch tube are electrically connected to the second end of the inductor, and the second end of the second switch tube is electrically connected to the second end of the fourth switch tube. The first control signal is used to control the on and off of the first switch tube, and the second control signal is used to control the on and off of the third switch tube. The conduction time of the first switch tube and the second switch tube are complementary, and the conduction time of the third switch tube and the fourth switch tube are complementary.
[0021] In this way, by controlling the first switch tube according to the duty cycle of the first control signal, controlling the third switch tube according to the duty cycle of the second control signal, and based on the complementarity of the on-time of the first switch tube and the on-time of the second switch tube, and the complementarity of the on-time of the third switch tube and the on-time of the fourth switch tube, the on-time of the second switch tube and the fourth switch tube can be determined.
[0022] In some embodiments, the control method further comprises:
[0023] Determining a feedforward command value according to an input voltage and an output voltage of the voltage converter;
[0024] The step of determining the control command value according to the set electrical parameters and the inductor current includes:
[0025] Determine the reference command value according to the set electrical parameters and the inductor current;
[0026] The control command value is determined according to the sum of the feedforward command value and the reference command value.
[0027] In this way, the feedforward command value can be determined according to the input voltage and output voltage of the voltage converter, and the feedforward command value is added to the determination of the control command value, so that the dynamic response capability during voltage changes can be improved and the current impact during loop startup can be reduced.
[0028] In some embodiments, determining the feedforward instruction value according to the input voltage and the output voltage of the voltage converter includes:
[0029] comparing an input voltage and the output voltage;
[0030] When the input voltage is lower than the output voltage, the feedforward instruction value is a difference between a third setting parameter value and a voltage ratio value, and the voltage ratio value is a ratio of the input voltage to the output voltage;
[0031] When the input voltage is greater than or equal to the output voltage, the feedforward instruction value is a ratio of the output voltage to the input voltage.
[0032] In this way, the feedforward command value can be determined according to the input voltage and the output voltage, and when the input voltage is lower than the output voltage, the feedforward command value is greater than 1, and when the input voltage is higher than the output voltage, the feedforward command value is less than 1.
[0033] In some embodiments, the control method further comprises:
[0034] Determine the control instruction value according to the voltage parameter and the input voltage of the voltage converter; or,
[0035] The control command value is determined according to the voltage parameter and the output voltage of the voltage converter.
[0036] In this way, the control method can be used to control the input voltage or the output voltage so that the input voltage fits the input voltage parameter, or the output voltage fits the output voltage parameter, and at the same time determine the duty cycle of the control signal to switch the working mode of the voltage converter by controlling the on-off switching of the switch tube.
[0037] In some embodiments, before determining the control command value according to the set electrical parameter and the inductor current, the control method further includes:
[0038] Determine the set electrical parameter according to the voltage parameter and the input voltage of the voltage converter; or,
[0039] The set electrical parameter is determined according to a voltage parameter and an output voltage of the voltage converter.
[0040] An embodiment of the present application provides a control circuit of a voltage converter, the control circuit comprising a controller and a switch tube, the controller being configured to determine a control command value according to set electrical parameters and an inductor current, and to determine a duty cycle of a control signal according to the control command value, the control signal being used to control the on and off of the switch tube to switch an operating mode of the voltage converter, the operating mode comprising a boost mode or a buck mode.
[0041] An embodiment of the present application provides a vehicle, which includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the control method of any of the above embodiments are implemented.
[0042] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the control method of any of the above embodiments are implemented.
[0043] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0045] Figure 1 It is a flow chart of a control method according to an embodiment of the present application;
[0046] Figure 2 is a circuit diagram of a voltage converter according to an embodiment of the present application;
[0047] Figure 3 is a schematic diagram of a control method of an embodiment of the present application;
[0048] Figure 4 It is a flow chart of a control method according to an embodiment of the present application;
[0049] Figure 5 It is a flow chart of a control method according to an embodiment of the present application;
[0050] Figure 6 It is a flow chart of a control method according to an embodiment of the present application;
[0051] Figure 7 is a schematic diagram of a control command value and a duty cycle of a control signal in an embodiment of the present application;
[0052] Figure 8 It is a flow chart of a control method according to an embodiment of the present application;
[0053] Fig. 9 is a schematic diagram of a control method of an embodiment of the present application;
[0054] Fig.10 It is a flow chart of a control method according to an embodiment of the present application;
[0055] Fig.11 is a schematic diagram of input voltage, output voltage and feedforward command value of an embodiment of the present application;
[0056] Fig.12 It is a flow chart of a control method according to an embodiment of the present application;
[0057] Fig.13 It is a flow chart of a control method according to an embodiment of the present application;
[0058] Fig.14 is a schematic diagram of a control method of an embodiment of the present application;
[0059] Fig.15 It is a flow chart of a control method according to an embodiment of the present application;
[0060] Fig.16 It is a flow chart of a control method according to an embodiment of the present application;
[0061] Fig.17 It is a schematic diagram of a control method according to an embodiment of the present application. DETAILED DESCRIPTION
[0062] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0063] The voltage converter can perform voltage boost or voltage buck operations. Currently, the method of switching the working mode of the voltage converter is usually to switch the working state of the switch tube according to the voltage at both ends of the voltage converter. The voltage at both ends of the voltage converter is first sampled, and then the sampled voltages at both ends are compared. The on-off state of the switch tube is switched according to the comparison result to switch the voltage converter to work in boost mode or buck mode.
[0064] For example, when the voltage at the first end is greater than the voltage at the second end, the switch connected to the first end is controlled to be turned on alternately, and one switch connected to the second end is turned on and the other is turned off, so that the voltage converter works in the buck mode; when the voltage at the first end is less than the voltage at the second end, the switch connected to the second end is controlled to be turned on alternately, and one switch connected to the first end is turned on and the other is turned off, so that the voltage converter works in the boost mode, thereby realizing the switching of the working mode of the voltage converter. However, in the related art, the sampling error of the voltage at both ends of the voltage converter will lead to the wrong control strategy switching. And in the case of voltage fluctuations at both ends, the voltage converter will frequently switch between multiple working modes, which may cause damage to the voltage converter.
[0065] Based on the above problems that may be encountered, please refer to Figures 1 to 3 The embodiment of the present application provides a control method of the voltage converter 100, the control method comprising:
[0066] 01: Determine the control command value according to the set electrical parameters and the inductor current, where the inductor current is the current flowing through the inductor 10 of the voltage converter 100;
[0067] 02: Determine the duty cycle of the control signal according to the control command value;
[0068] 03: The switch tube 20 of the voltage converter 100 is controlled to be turned on and off according to the duty cycle of the control signal to switch the working mode of the voltage converter 100 , and the working mode includes a boost mode or a buck mode.
[0069] The embodiment of the present application also provides a vehicle, including a memory and a processor. The control method of the embodiment of the present application can be implemented by the vehicle of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to determine the control command value according to the set electrical parameters and the inductor current, and the inductor current is the current flowing through the inductor 10 of the voltage converter 100; determine the duty cycle of the control signal according to the control command value; control the on and off of the switch tube 20 of the voltage converter 100 according to the duty cycle of the control signal to switch the working mode of the voltage converter 100, and the working mode includes a boost mode or a buck mode.
[0070] The embodiment of the present application also provides a control device. The control method of the embodiment of the present application can be implemented by the control device of the embodiment of the present application. Specifically, the control device includes a first determination module, a second determination module and a control module. The first determination module is used to determine the control instruction value according to the set electrical parameters and the inductor current, and the inductor current is the current flowing through the inductor 10 of the voltage converter 100; the second determination module is used to determine the duty cycle of the control signal according to the control instruction value; the control module is used to control the on and off of the switch tube 20 of the voltage converter 100 according to the duty cycle of the control signal to switch the working mode of the voltage converter 100, and the working mode includes a boost mode or a buck mode.
[0071] Specifically, the control command value Cmd is determined according to the set electrical parameters and the inductor current, and the duty cycle command is calculated according to the control command value Cmd to obtain the duty cycle of the control signal. The control signal can be used to control the on and off of the switch tube 20 of the voltage converter 100; the on and off of the switch tube 20 of the voltage converter 100 is controlled according to the duty cycle of the control signal to switch the working mode of the voltage converter 100, and the working mode includes a boost mode (Boost) or a buck mode (Buck).
[0072] The set electrical parameter may be a preset inductor current command value, and loop control is performed on the inductor current so that the inductor current is close to the inductor current command value.
[0073] The control signal includes a first control signal and a second control signal, and the duty cycle Di of the first control signal cmd , the duty cycle Do of the second control signal cmd The relationship between the input voltage Vi and the output voltage Vo is Di cmd / Do cmd =Vo / Vi, so by determining the duty cycle Di of the first control signal cmd and the duty cycle Do of the second control signal cmd By controlling the on and off of the switch tube 20 to switch the working mode of the voltage converter 100 , the working mode switching of the voltage converter 100 can be synchronously related to the ratio of the input voltage to the output voltage.
[0074] In one embodiment, the control instruction value Cmd is less than 1, Di cmd = Cmd, Do cmd = 1, Vo / Vi = Di cmd / Do cmd < 1, then Vo < Vi, and at this time the voltage converter 100 is in the buck mode.
[0075] Wherein, the input voltage Vi and the output voltage Vo in the figure are only for illustration and are not used to limit the input and output directions of the voltage converter. That is to say, the voltage converter can be a bidirectional voltage converter, that is, it can also input or output in the reverse direction. For example, in another embodiment, the voltage across the second capacitor C2 is the input voltage, and the voltage across the first capacitor C1 is the output voltage.
[0076] Thus, the control method, control circuit, vehicle and computer-readable storage medium of the embodiment of the present application determine the control instruction value according to the set electrical parameters and the inductor current, determine the duty cycle of the control signal according to the control instruction value, and then control the on and off of the switching transistor 20 according to the duty cycle of the control signal to switch the working mode of the voltage converter 100, so that when switching the working mode, it is not necessary to refer to the voltage across the voltage converter 100 collected, avoiding the interference of the acquisition error on the switching of the working mode, so that the inductor current can be more accurately controlled at the specified value under any voltage across the voltage converter 100.
[0077] Please refer to Figure 4 , in some embodiments, step 01 (determining the control instruction value according to the set electrical parameters and the inductor current) includes:
[0078] 011: Perform proportional-integral control on the inductor current according to the set electrical parameters to determine the control instruction value.
[0079] In some embodiments, the processor can be used to perform proportional-integral control on the inductor current according to the set electrical parameters to determine the control instruction value.
[0080] In some embodiments, the first determination module includes a first determination sub-module, and the first determination sub-module can be used to perform proportional-integral control on the inductor current according to the set electrical parameters to determine the control instruction value.
[0081] Specifically, by performing proportional-integral control (PI control) on the inductor current, the control instruction value Cmd can be obtained, and the value range of the control instruction value Cmd is [0, 2]. When performing proportional-integral control on the inductor current according to the set electrical parameters, the inductor current approaches the set electrical parameters under control.
[0082] In this way, the control command value can be determined by performing proportional-integral control on the inductor current.
[0083] See also Figure 5 In some embodiments, the control signal includes a first control signal and a second control signal, and step 02 (determining a duty cycle of the control signal according to the control instruction value) includes:
[0084] 021: Compare the control instruction value and the first set parameter value;
[0085] 022: The duty cycle of the first control signal and the duty cycle of the second control signal are determined according to the comparison result between the control instruction value and the first set parameter value. The first control signal is used to control the on-off of the input switch tube 21 of the voltage converter 100, and the second control signal is used to control the on-off of the output switch tube 22 of the voltage converter 100.
[0086] In some embodiments, the processor can be used to compare the control instruction value and the first set parameter value; and to determine the duty cycle of the first control signal and the duty cycle of the second control signal based on the comparison result of the control instruction value and the first set parameter value, the first control signal is used to control the on and off of the input switch tube 21 of the voltage converter 100, and the second control signal is used to control the on and off of the output switch tube 22 of the voltage converter 100.
[0087] In some embodiments, the second determination module includes a comparison submodule and a control submodule. The comparison submodule can be used to compare the control instruction value and the first setting parameter value; the control submodule can be used to determine the duty cycle of the first control signal and the duty cycle of the second control signal according to the comparison result of the control instruction value and the first setting parameter value, the first control signal is used to control the on-off of the input switch tube 21 of the voltage converter 100, and the second control signal is used to control the on-off of the output switch tube 22 of the voltage converter 100.
[0088] Specifically, the first setting parameter value may be 1. Comparison is performed to determine whether the control command value Cmd is greater than 1, and the duty cycle Di of the first control signal is determined according to the comparison result between the control command value Cmd and 1. cmd and the duty cycle Do of the second control signal cmd , and according to the duty cycle Di of the first control signal cmd and the duty cycle Do of the second control signal cmd The on-off of the switch tube 20 of the voltage converter 100 is controlled.
[0089] When Cmd is greater than 1, the voltage converter 100 needs to be in the boost mode. Then, the duty cycle of the control signal is determined, and the on / off of the switch tube 20 is controlled according to the duty cycle of the control signal, so that the voltage converter 100 is in the boost mode.
[0090] When Cmd is less than 1, the voltage converter 100 needs to be in the buck mode. Then, the duty cycle of the control signal is determined, and the on / off of the switch tube 20 is controlled according to the duty cycle of the control signal, so that the voltage converter 100 is in the buck mode.
[0091] In this way, the duty cycle of the control signal can be determined according to the comparison result between the control instruction value and the first setting parameter value.
[0092] See also Figure 6 and Figure 7 In some embodiments, step 022 (determining the duty cycle of the first control signal and the duty cycle of the second control signal according to the comparison result between the control instruction value and the first setting parameter value) includes:
[0093] 0221: when the control instruction value is less than the first setting parameter value, determining that the duty cycle of the first control signal is the control instruction value, and the duty cycle of the second control signal is the first setting parameter value;
[0094] 0222: When the control instruction value is greater than or equal to the first setting parameter value, the duty cycle of the first control signal is determined to be the first setting parameter value, and the duty cycle of the second control signal is determined to be the difference between the second setting parameter value and the control instruction value.
[0095] In some embodiments, the processor can be used to determine that the duty cycle of the first control signal is the control instruction value and the duty cycle of the second control signal is the first setting parameter value when the control instruction value is less than the first setting parameter value; and to determine that the duty cycle of the first control signal is the first setting parameter value and the duty cycle of the second control signal is the difference between the second setting parameter value and the control instruction value when the control instruction value is greater than or equal to the first setting parameter value.
[0096] In some embodiments, the control submodule includes a first determining unit and a second determining unit. The first determining unit can be used to determine that the duty cycle of the first control signal is the control command value and the duty cycle of the second control signal is the first setting parameter value when the control command value is less than the first setting parameter value; the second determining unit can be used to determine that the duty cycle of the first control signal is the first setting parameter value and the duty cycle of the second control signal is the difference between the second setting parameter value and the control command value when the control command value is greater than or equal to the first setting parameter value.
[0097] Specifically, the method for calculating the duty cycle instruction is as follows: Figure 7 When the control command value Cmd is less than 1, the value of the control command value Cmd is assigned to the duty cycle Di of the first control signal. cmd , and assign the first setting parameter value to the duty cycle Do of the second control signal cmd , namely Di cmd =Cmd, Do cmd =1.
[0098] The second setting parameter value may be 2. When the control command value Cmd is greater than or equal to 1, the value of the control command value Cmd is assigned to the duty cycle Di of the first control signal. cmd , and determine the duty cycle of the second control signal as the difference between the second setting parameter value and the control instruction value, that is, Di cmd =1, Do cmd =2-Cmd.
[0099] Since when Cmd is less than 1, Di cmd =Cmd, Do cmd =1; when Cmd is greater than or equal to 1, Di cmd =1, Do cmd =2-Cmd, so the duty cycle of the determined control signal can be less than or equal to 1, that is, Di cmd and Do cmd The value range is [0,1].
[0100] In this way, the duty cycle of the first control signal and the duty cycle of the second control signal can be determined by comparing the control command value with the first setting parameter value, thereby achieving the switching of the working mode of the voltage converter 100.
[0101] See also Figure 2 In some embodiments, the input switch tube 21 includes a first switch tube and a second switch tube, and the output switch tube 22 includes a third switch tube and a fourth switch tube. The first ends of the first switch tube and the second switch tube are electrically connected to the first end of the inductor 10, the first ends of the third switch tube and the fourth switch tube are electrically connected to the second end of the inductor 10, and the second end of the second switch tube is electrically connected to the second end of the fourth switch tube. The first control signal is used to control the on and off of the first switch tube, and the second control signal is used to control the on and off of the third switch tube. The conduction time of the first switch tube and the second switch tube is complementary, and the conduction time of the third switch tube and the fourth switch tube is complementary.
[0102] Specifically, the voltage converter 100 may be a four-switch buck-boost converter, which includes a first capacitor, a second capacitor, an inductor 10, a first switch tube, a second switch tube, a third switch tube and a fourth switch tube.
[0103] Among them, the first end of the first switch tube Q1 and the first end of the second switch tube Q2 are commonly connected to the first end of the inductor L, the second end of the first switch tube Q1 is connected to the first end of the first capacitor C1, and the second end of the second switch tube Q2 is connected to the second end of the first capacitor C1; the first end of the third switch tube Q3 and the first end of the fourth switch tube Q4 are commonly connected to the second end of the inductor L, the second end of the third switch tube Q3 is connected to the first end of the second capacitor C2, and the second end of the fourth switch tube Q4 is connected to the second end of the second capacitor C2. The voltage across the first capacitor C1 is the first end voltage, and the voltage across the second capacitor C2 is the second end voltage. The four switch tubes 20 are each connected in anti-parallel with a diode.
[0104] The on-off of the first switch tube can be controlled according to the duty cycle of the first control signal, and the on-off of the third switch tube can be controlled according to the duty cycle of the second control signal. The control signal also includes a third control signal and a fourth control signal, the duty cycle of the third control signal is complementary to the duty cycle of the first control signal, and the duty cycle of the fourth control signal is complementary to the duty cycle of the second control signal, so the duty cycle of the third control signal and the duty cycle of the fourth control signal can be determined according to the duty cycle of the first control signal and the duty cycle of the second control signal, so that the conduction time of the first switch tube and the second switch tube is complementary, and the conduction time of the third switch tube is complementary to the fourth switch tube.
[0105] In one embodiment, the control command value Cmd>1, then Di cmd =1, Do cmd =2-Cmd, the duty cycle of the third control signal is 0, and the duty cycle of the fourth control signal is Cmd-1. At this time, the first switch tube Q1 remains on, the second switch tube Q2 remains off, the third switch tube Q3 and the fourth switch tube Q4 are alternately turned on, and the voltage converter 100 is in a boost state.
[0106] In this way, by controlling the first switch tube according to the duty cycle of the first control signal, controlling the third switch tube according to the duty cycle of the second control signal, and based on the complementarity of the on-time of the first switch tube and the on-time of the second switch tube, and the complementarity of the on-time of the third switch tube and the on-time of the fourth switch tube, the on-time of the second switch tube and the fourth switch tube can be determined.
[0107] See also Figure 8 and Fig. 9 In some embodiments, the control method further comprises:
[0108] 04: Determine a feedforward instruction value according to the input voltage and output voltage of the voltage converter 100;
[0109] Step 01 (determining the control command value according to the set electrical parameters and the inductor current) includes:
[0110] 012: Determine the reference command value according to the set electrical parameters and inductor current;
[0111] 013: Determine the control command value according to the sum of the feedforward command value and the reference command value.
[0112] In some embodiments, the processor can be used to determine a feedforward command value based on the input voltage and output voltage of the voltage converter 100; and to determine a reference command value based on set electrical parameters and the inductor current; and can also be used to determine a control command value based on the sum of the feedforward command value and the reference command value.
[0113] In some embodiments, the control device includes a third determination module, and the first determination module includes a second determination submodule and a third determination submodule. The third determination module can be used to determine the feedforward instruction value according to the input voltage and output voltage of the voltage converter 100; the second determination submodule can be used to determine the reference instruction value according to the set electrical parameters and the inductor current; the third determination submodule can be used to determine the control instruction value according to the sum of the feedforward instruction value and the reference instruction value.
[0114] Specifically, the feedforward command value Cmd can be determined according to the input voltage and output voltage of the voltage converter 100. FF , and according to the set electrical parameter IL cmd and the inductor current IL determine the reference command value Cmd PI , and the feedforward command value Cmd FF With reference command value Cmd PI Sum to get the control command value Cmd, that is, Cmd = Cmd PI +Cmd FF .
[0115] By determining the duty cycle of the control signal according to the control command value, when the input voltage and the output voltage change, the duty cycle determined by the voltage converter 100 can better fit the changed voltage requirement, thereby enabling the voltage converter 100 to respond to voltage changes more quickly.
[0116] In this way, the feedforward command value Cmd can be determined according to the input voltage and output voltage of the voltage converter 100. FF , and the feedforward command value Cmd FF Adding it to the determination of the control command value Cmd can improve the dynamic response capability when the voltage changes and reduce the current impact when the loop starts.
[0117] See also Fig.10 and Fig.11 In some embodiments, step 04 (determining a feedforward instruction value according to an input voltage and an output voltage of the voltage converter 100) includes:
[0118] 041: Compare the input voltage and the output voltage;
[0119] 042: When the input voltage is less than the output voltage, determine that the feedforward command value is the difference between the third set parameter value and the voltage ratio value, where the voltage ratio value is the ratio of the input voltage to the output voltage;
[0120] 043: When the input voltage is greater than or equal to the output voltage, determine that the feedforward command value is the ratio of the output voltage to the input voltage.
[0121] In some embodiments, the processor can be used to compare the input voltage and the output voltage; and to determine that the feedforward command value is the difference between the third set parameter value and the voltage ratio value when the input voltage is less than the output voltage, where the voltage ratio value is the ratio of the input voltage to the output voltage; and can also be used to determine that the feedforward command value is the ratio of the output voltage to the input voltage when the input voltage is greater than or equal to the output voltage.
[0122] In some embodiments, the third determination module includes a comparison sub-module, a fourth determination sub-module, and a fifth determination sub-module. The comparison sub-module can be used to compare the input voltage and the output voltage; the fourth determination sub-module can be used to determine that the feedforward command value is the difference between the third set parameter value and the voltage ratio value when the input voltage is less than the output voltage, where the voltage ratio value is the ratio of the input voltage to the output voltage; the fifth determination sub-module can be used to determine that the feedforward command value is the ratio of the output voltage to the input voltage when the input voltage is greater than or equal to the output voltage.
[0123] Specifically, the third set parameter value can be 2, and the voltage ratio value is the ratio of the input voltage Vi to the output voltage Vo, that is, the voltage ratio value is Vi / Vo.
[0124] The method for calculating the feedforward command value is as Figure 7 shown. Compare the input voltage Vi and the output voltage Vo. When the input voltage Vi is less than the output voltage Vo, assign the difference between the third set parameter value and the voltage ratio value to the feedforward command value, that is, Cmd FF = 2 - Vi / Vo; when the input voltage Vi is greater than the output voltage Vo, the feedforward command value is the ratio of the output voltage to the input voltage, that is, Cmd FF = Vo / Vi.
[0125] When Vi < Vo, Vi / Vo < 1, Cmd FF = 2 - Vi / Vo, then Cmd FF > 1; when Vi > Vo, Vo / Vi < 1, Cmd FF = Vo / Vi, then Cmd FF < 1, and the value range of Cmd FF is (0, 2).
[0126] In this way, the feedforward command value can be determined according to the input voltage and the output voltage, and when the input voltage is lower than the output voltage, the feedforward command value is greater than 1, and when the input voltage is higher than the output voltage, the feedforward command value is less than 1.
[0127] See also Figure 12 to Figure 14 In some embodiments, the control method further comprises:
[0128] 05: Determine the control command value according to the input voltage parameter and the input voltage of the voltage converter 100; or,
[0129] 06: Determine the control command value according to the output voltage parameter and the output voltage of the voltage converter 100.
[0130] In some embodiments, the processor may be configured to determine a control command value according to an input voltage parameter and an input voltage of the voltage converter 100 ; or may be configured to determine a control command value according to an output voltage parameter and an output voltage of the voltage converter 100 .
[0131] In some embodiments, the control device further includes a fourth determination module and a fifth determination module. The fourth determination module can be used to determine the control command value according to the input voltage parameter and the input voltage of the voltage converter 100; the fifth determination module can be used to determine the control command value according to the output voltage parameter and the output voltage of the voltage converter 100.
[0132] Specifically, the control command value Cmd can also be calculated based on the input voltage parameter Vi cmd The input voltage Vi of the voltage converter 100 is determined, for example, by performing proportional-integral control on the input voltage of the voltage converter 100 according to the voltage parameter to determine the control command value Cmd.
[0133] Alternatively, see Fig.14 The control command value Cmd can also be based on the output voltage parameter Vo cmd The output voltage Vo of the voltage converter 100 is determined, for example, by performing proportional-integral control on the output voltage of the voltage converter 100 according to the voltage parameter to determine the control command value Cmd.
[0134] The input voltage parameter and the output voltage parameter may be preset voltage values. When proportional-integral control is performed on the input voltage, the input voltage may be close to the input voltage parameter; when proportional-integral control is performed on the output voltage, the output voltage may be close to the output voltage parameter.
[0135] In this way, the control method can be used to control the input voltage or the output voltage so that the input voltage fits the input voltage parameter, or the output voltage fits the output voltage parameter, and at the same time determine the duty cycle of the control signal to switch the working mode of the voltage converter 100 by controlling the on-off switching of the switch tube 20.
[0136] See also Figures 15 to 17 In some embodiments, before step 01 (determining the control command value according to the set electrical parameters and the inductor current), the control method further includes:
[0137] 07: Determine and set electrical parameters according to the voltage parameters and the input voltage of the voltage converter; or,
[0138] 08: Determine and set electrical parameters based on voltage parameters and output voltage of the voltage converter.
[0139] In some embodiments, the processor may be configured to determine the set electrical parameter based on the voltage parameter and the input voltage of the voltage converter 100 ; or, determine the set electrical parameter based on the voltage parameter and the output voltage of the voltage converter 100 .
[0140] In some embodiments, the control device further includes a sixth determination module and a seventh determination module. The sixth determination module can be used to determine and set the electrical parameter according to the voltage parameter and the input voltage of the voltage converter 100; the seventh determination module can be used to determine and set the electrical parameter according to the voltage parameter and the output voltage of the voltage converter 100.
[0141] Specifically, the control loop that performs proportional-integral control on the inductor current according to the set electrical parameters can be used as the current inner loop of the voltage dual-loop control of the input voltage or the output voltage (the control loop of the voltage dual-loop control of the output voltage is as follows: Fig.17 As shown). The voltage dual-loop control includes a voltage outer loop and a current inner loop. The set electrical parameters can be determined according to the voltage outer loop control, that is, the set electrical parameters are determined according to the voltage parameters and the input voltage / output voltage of the voltage converter. After the set electrical parameters are determined, step 01 is executed, that is, the control command value is determined according to the set electrical parameters and the inductor current to obtain the control command value.
[0142] In this way, the set electrical parameters can be determined according to the voltage parameters and the input voltage of the voltage converter, and the current loop control of the inductor current can be performed according to the set electrical parameters to achieve the switching of the working mode through the voltage dual-loop control.
[0143] An embodiment of the present application provides a control circuit of a voltage converter 100, the control circuit includes a controller and a switch tube 20, the controller is configured to determine a control command value according to set electrical parameters and an inductor current, and determine a duty cycle of a control signal according to the control command value, and the control signal is used to control the on and off of the switch tube 20 to switch the working mode of the voltage converter 100, and the working mode includes a boost mode or a buck mode.
[0144] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the steps of the control method of any of the above embodiments are implemented.
[0145] It is understood that a computer program includes computer program code. The computer program code may be in source code form, object code form, executable file or some intermediate form. Computer readable storage media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution medium.
[0146] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.
[0147] In addition, the term "connection" should be understood in a broad sense, for example, it can include fixed connection, detachable connection, or integral connection; it can include direct connection, indirect connection through an intermediate medium, and internal communication between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0148] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0149] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0150] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A control method for a voltage converter, characterized in that: The control method comprises: Determining a control command value according to a set electrical parameter and an inductor current, wherein the inductor current is a current flowing through an inductor of the voltage converter; determining a duty cycle of a control signal according to a control command value; The on-off of the switch tube of the voltage converter is controlled according to the duty cycle of the control signal to switch the working mode of the voltage converter, and the working mode includes a boost mode or a buck mode.
2. The control method according to claim 1, characterized in that: The step of determining the control command value according to the set electrical parameters and the inductor current includes: The inductor current is proportionally and integrally controlled according to the set electrical parameters to determine the control command value.
3. The control method according to claim 1, characterized in that: The control signal includes a first control signal and a second control signal, and determining the duty cycle of the control signal according to the control instruction value includes: comparing the control instruction value with a first set parameter value; The duty cycle of the first control signal and the duty cycle of the second control signal are determined according to the comparison result between the control instruction value and the first setting parameter value, the first control signal is used to control the on and off of the input switch tube of the voltage converter, and the second control signal is used to control the on and off of the output switch tube of the voltage converter.
4. The control method according to claim 3, characterized in that: The step of determining the duty cycle of the first control signal and the duty cycle of the second control signal according to the comparison result between the control instruction value and the first setting parameter value comprises: When the control instruction value is less than the first setting parameter value, determining that the duty cycle of the first control signal is the control instruction value, and the duty cycle of the second control signal is the first setting parameter value; When the control instruction value is greater than or equal to the first setting parameter value, the duty cycle of the first control signal is determined to be the first setting parameter value, and the duty cycle of the second control signal is determined to be the difference between the second setting parameter value and the control instruction value.
5. The control method according to claim 3, characterized in that: The input switch tube includes a first switch tube and a second switch tube, and the output switch tube includes a third switch tube and a fourth switch tube. The first ends of the first switch tube and the second switch tube are electrically connected to the first end of the inductor, the first ends of the third switch tube and the fourth switch tube are electrically connected to the second end of the inductor, and the second end of the second switch tube is electrically connected to the second end of the fourth switch tube. The first control signal is used to control the on and off of the first switch tube, and the second control signal is used to control the on and off of the third switch tube. The conduction time of the first switch tube and the second switch tube is complementary, and the conduction time of the third switch tube and the fourth switch tube is complementary.
6. The control method according to claim 1, characterized in that: The control method further comprises: Determining a feedforward command value according to an input voltage and an output voltage of the voltage converter; The step of determining the control command value according to the set electrical parameters and the inductor current includes: Determine the reference command value according to the set electrical parameters and the inductor current; The control command value is determined according to the sum of the feedforward command value and the reference command value.
7. The control method according to claim 6, characterized in that: The step of determining a feedforward instruction value according to an input voltage and an output voltage of the voltage converter comprises: comparing an input voltage and the output voltage; When the input voltage is lower than the output voltage, the feedforward instruction value is a difference between a third setting parameter value and a voltage ratio value, and the voltage ratio value is a ratio of the input voltage to the output voltage; When the input voltage is greater than or equal to the output voltage, the feedforward instruction value is a ratio of the output voltage to the input voltage.
8. The control method according to claim 1, characterized in that: The control method further comprises: Determine the control instruction value according to the voltage parameter and the input voltage of the voltage converter; or, The control command value is determined according to the voltage parameter and the output voltage of the voltage converter.
9. The control method according to claim 1, characterized in that: Before determining the control command value according to the set electrical parameters and the inductor current, the control method further includes: Determine the set electrical parameter according to the voltage parameter and the input voltage of the voltage converter; or, The set electrical parameter is determined according to a voltage parameter and an output voltage of the voltage converter.
10. A control circuit for a voltage converter, characterized in that: The control circuit includes a controller and a switch tube. The controller is configured to determine a control command value according to set electrical parameters and an inductor current, and determine a duty cycle of a control signal according to the control command value. The control signal is used to control the on and off of the switch tube to switch the working mode of the voltage converter, and the working mode includes a boost mode or a buck mode.
11. A vehicle, characterized in that: The vehicle includes one or more processors and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the control method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the control method according to any one of claims 1 to 9 are implemented.
