Control method, circuit, device and equipment of direct-current converter and storage medium
By monitoring and adjusting the input and output voltages of the DC converter in real time, the problem of abnormal voltage when both ends of the DC converter are connected to the battery is solved, and the voltage is stable control is achieved, over-undervoltage situations are avoided, and the normal operation of the equipment and the safety of the battery is ensured.
Patent Information
- Application Number
- CN202510075436.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-25
AI Technical Summary
When both ends of the DC converter are connected to the battery, there is a problem of abnormal voltage at the input and output terminals, such as abnormal voltage at one end or abnormal voltage at the same time.
By obtaining the current input voltage, output voltage, and controlled current of the DC converter in real time, the error between the input voltage and the preset minimum input voltage and the error between the output voltage and the preset maximum output voltage are determined based on these errors, and the control command is corrected to limit the input voltage not less than the minimum input voltage and the output voltage not greater than the maximum output voltage.
Effectively avoid overvoltage problems on both sides of the DC converter, ensure that the DC converter can work normally when both ends are connected to the battery, and ensure the safety of the battery.
Smart Images

Figure CN119891701A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of direct current converters, and in particular to a control method, circuit, device, equipment and storage medium of a direct current converter. Background Art
[0002] A DC-DC Converter can convert one DC voltage into another DC voltage. Specifically, it can be a boost circuit, a buck circuit, a Cuk chopper circuit, an LLC circuit (a resonant circuit, including a resonant inductor L, an excitation inductor L and a resonant capacitor C), etc. It can also be a buck-boost converter with buck-boost function. At present, the input end of the DC converter is generally connected to a stable power supply, and it only needs to control the power supply of the output end as needed.
[0003] However, in some specific application scenarios, both the input and output ends of the DC converter may be connected to the battery; for example, in the field of electric vehicles, there is a need for energy transfer between batteries. In this scenario, there is a problem of abnormal voltage at the input and output ends, such as abnormal voltage at one end or abnormal voltage at both ends. Summary of the invention
[0004] In view of this, the present invention provides a control method, circuit, device, equipment and storage medium of a DC converter to solve or improve the problem of abnormal control when both ends of the DC converter are connected to batteries.
[0005] In a first aspect, the present invention provides a control method for a DC converter, comprising:
[0006] Obtaining the actual value and expected value of the current input voltage, current output voltage and controlled current of the DC converter;
[0007] Determine a first error between the current input voltage and a preset minimum input voltage, and determine a second error between a preset maximum output voltage and the current output voltage;
[0008] Determine a corresponding target control amount according to the first error and the second error;
[0009] A control instruction for adjusting the controlled current from the actual value to the expected value is corrected according to the target control amount, and the corrected control instruction is used to limit the input voltage of the DC converter to be not less than the minimum input voltage, and the output voltage to be not greater than the maximum output voltage.
[0010] In some optional implementations, determining the corresponding target control amount according to the first error and the second error includes:
[0011] Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0012] Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage;
[0013] The target control amount includes the first sub-control amount and the second sub-control amount.
[0014] In some optional implementations, determining the corresponding target control amount according to the first error and the second error includes:
[0015] Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0016] Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be not greater than the maximum output voltage; and,
[0017] determining a smaller control amount between the first sub-control amount and the second sub-control amount, and taking the smaller control amount as the target control amount;
[0018] or,
[0019] The determining a corresponding target control amount according to the first error and the second error includes:
[0020] A smaller error between the first error and the second error is determined, and a corresponding target control amount is determined according to the smaller error.
[0021] In some optional implementations, the correcting the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount includes:
[0022] Correcting a controlled error of the controlled current according to the target control amount, and generating a corresponding control instruction according to the corrected controlled error;
[0023] or,
[0024] Determining a current control amount for controlling the controlled current according to a controlled error of the controlled current; performing instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction;
[0025] The controlled error of the controlled current is the error between the expected value and the actual value of the controlled current.
[0026] In some optional implementations, the correcting the controlled error of the controlled current according to the target control amount includes: adding the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error;
[0027] or,
[0028] The step of performing command calculation in combination with the target control amount and the current control amount to generate a corresponding control command includes: adding the target control amount to the current control amount in an additive manner to generate a corresponding control command;
[0029] Wherein, when the current input voltage is not less than the minimum input voltage and the current output voltage is not greater than the maximum output voltage, the determined target control amount is zero.
[0030] In a second aspect, the present invention provides a control circuit for a DC converter, comprising: a voltage control circuit and an instruction generation circuit; the output end of the voltage control circuit is connected to the input end of the instruction generation circuit;
[0031] The voltage control circuit is configured to: obtain a current input voltage and a current output voltage of the DC converter, determine a first error between the current input voltage and a preset minimum input voltage, and determine a second error between a preset maximum output voltage and the current output voltage; and determine a corresponding target control amount according to the first error and the second error;
[0032] The instruction generation circuit is configured to: obtain an actual value and an expected value of a controlled current; and correct a control instruction for adjusting the controlled current from the actual value to the expected value according to a target control amount determined by the voltage control circuit, and the corrected control instruction is used to limit the input voltage of the DC converter to be no less than the minimum input voltage, and the output voltage to be no greater than the maximum output voltage.
[0033] In some optional implementations, the voltage control circuit includes: a first voltage loop and a second voltage loop; the output ends of the first voltage loop and the second voltage loop are respectively connected to the input end of the instruction generation circuit;
[0034] The first voltage loop is configured to: determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0035] The second voltage loop is configured to: determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage;
[0036] The target control amount includes the first sub-control amount and the second sub-control amount.
[0037] In some optional implementations, the voltage control circuit includes: a first voltage loop, a second voltage loop and a first subtraction circuit; the output ends of the first voltage loop and the second voltage loop are respectively connected to two input ends of the first subtraction circuit, and the output end of the first subtraction circuit is connected to the instruction generation circuit;
[0038] The first voltage loop is configured to: determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0039] The second voltage loop is configured to: determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage;
[0040] The first small-taking circuit is configured to: determine a smaller control amount between the first sub-control amount and the second sub-control amount, and use the smaller control amount as the target control amount;
[0041] or,
[0042] The voltage control circuit comprises: a second subtraction circuit and a third voltage loop; the output end of the second subtraction circuit is connected to the input end of the third voltage loop, and the output end of the third voltage loop is connected to the instruction generation circuit;
[0043] The second minimization circuit is configured to: determine a smaller error between the first error and the second error;
[0044] The third voltage loop is configured to determine a corresponding target control amount according to the smaller error.
[0045] In some optional implementations, the instruction generation circuit includes: an error calculation module and a first current loop; the output end of the error calculation module is connected to the input end of the first current loop;
[0046] The error calculation module is configured to: correct the controlled error of the controlled current according to the target control amount;
[0047] The first current loop is configured to: generate a corresponding control instruction according to the corrected controlled error;
[0048] or,
[0049] The instruction generation circuit comprises: a second current loop and an instruction calculation module; the output end of the second current loop is connected to the input end of the instruction calculation module;
[0050] The second current loop is configured to: determine a current control amount for controlling the controlled current according to a controlled error of the controlled current;
[0051] The instruction calculation module is configured to: perform instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction.
[0052] In some optional embodiments, the error calculation module includes a first adder; the first adder is configured to: add the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error;
[0053] or,
[0054] The instruction calculation module includes a second adder; the second adder is configured to: add the target control amount to the current control amount in an additive manner to generate a corresponding control instruction;
[0055] Wherein, when the current input voltage is not less than the minimum input voltage and the current output voltage is not greater than the maximum output voltage, the determined target control amount is zero.
[0056] In a third aspect, the present invention provides a control device for a DC converter, comprising:
[0057] An acquisition module is used to acquire the actual value and expected value of the current input voltage, the current output voltage and the controlled current of the DC converter;
[0058] A voltage control module, used to determine a first error between the current input voltage and a preset minimum input voltage, and to determine a second error between a preset maximum output voltage and the current output voltage; and to determine a corresponding target control amount according to the first error and the second error;
[0059] An instruction generation module is used to correct the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount, and the corrected control instruction is used to limit the input voltage of the DC converter to be no less than the minimum input voltage, and the output voltage to be no greater than the maximum output voltage.
[0060] In a fourth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the control method of a DC converter according to the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0061] In a fifth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the control method for a DC converter of the first aspect or any corresponding embodiment thereof.
[0062] In a sixth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the control method for a DC converter according to the first aspect or any corresponding embodiment thereof.
[0063] The present invention pre-sets the minimum input voltage and maximum output voltage of the DC converter, and based on the current input voltage and current output voltage collected in real time, the first error and the second error can be determined, thereby obtaining a target control amount that can control the input voltage and the output voltage; the target control amount is used to correct the control instruction, so that when the DC converter is controlled by the corrected control instruction, the input voltage of the DC converter is guaranteed to be not less than the minimum input voltage, and the output voltage is not greater than the maximum output voltage, effectively avoiding the problem of over-voltage and under-voltage on both sides of the DC converter. When batteries are connected to both ends of the DC converter, the battery voltages at both ends can also be controlled within the allowable range to ensure that the DC converter can work normally and the battery is safe. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0065] Figure 1 This is a schematic diagram of an application scenario of a DC converter;
[0066] Figure 2 It is a structural diagram in which both the input and output ends of the buck-boost converter are connected to batteries;
[0067] Figure 3 is a flow chart of a control method of a DC converter according to an embodiment of the present invention;
[0068] Figure 4 is a first structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0069] Figure 5 According to an embodiment of the present invention Figure 4 A schematic diagram of the control effect of the control circuit shown;
[0070] Figure 6is a second structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0071] Figure 7 is a third structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0072] Figure 8 According to an embodiment of the present invention Figure 7 A schematic diagram of the control effect of the control circuit shown;
[0073] Fig. 9 is a fourth structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0074] Fig.10 is a fifth structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0075] Fig.11 is a sixth structural schematic diagram of a control circuit according to an embodiment of the present invention;
[0076] Fig.12 is a structural block diagram of a control device for a DC converter according to an embodiment of the present invention;
[0077] Fig.13 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention.
[0078] Explanation of the accompanying drawings: 400, voltage control circuit; 500, instruction generation circuit; 401, first voltage loop; 402, second voltage loop; 403, first reduction circuit; 411, second reduction circuit; 412, third voltage loop; 501, error calculation module; 502, first current loop; 511, second current loop; 512 instruction calculation module; 5011, first adder; 5121, second adder. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0080] The DC converter is usually connected to a load at the output end, such as a battery or resistor. Figure 1 A conventional application scenario of a DC converter is shown. In this scenario, the voltage source can provide a stable input voltage Vi to the input end of the DC converter, and the DC converter can be controlled by controlling the output voltage Vo and / or output current Io of the DC converter.
[0081] In some specific application scenarios, both the input and output ends of the DC converter may be connected to the battery; taking the DC converter as a buck-boost converter as an example, Figure 2 A structural schematic diagram is shown in which both the input and output ends of the buck-boost converter are connected to batteries, wherein the input end is connected to the battery Bi and the output end is connected to the battery Bo.
[0082] When the buck-boost converter operates in constant current mode (the inductor current IL is constant), if the output current is too large, not only may the output voltage Vo be greater than the upper limit of the terminal voltage of the output-side battery, but the input voltage Vi may also be less than the lower limit of the terminal voltage of the input-side battery, resulting in abnormal input and output voltages.
[0083] The control method of the DC converter provided in the embodiment of the present invention determines the errors between the input voltage and output voltage of the DC converter and the limit values in real time, and determines the corresponding control quantity based on the error, so as to correct the control instruction when the input voltage and / or output voltage exceed the limit value, avoid the input voltage and output voltage exceeding the limit value, and ensure that the DC converter can work normally when both ends are connected to batteries.
[0084] According to an embodiment of the present invention, a control method embodiment of a DC converter is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0085] In this embodiment, a control method for a DC converter is provided, which can be applied to a controller of a DC converter. Figure 3 is a flow chart of a control method of a DC converter according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps.
[0086] Step S301, obtaining the actual value and expected value of the current input voltage, the current output voltage and the controlled current of the DC converter.
[0087] In this embodiment, in order to achieve synchronous control of the input and output ends of the DC converter, it is necessary to obtain the voltage of the input end and the voltage of the output end at the current moment, that is, the current input voltage and the current output voltage. For ease of explanation, Vi represents the current input voltage and Vo represents the current output voltage.
[0088] This method is used to control the current of a DC converter, and this current is called a controlled current. For example, the controlled current can be an input current or an output current; or, a DC converter generally has an inductor, such as Figure 2As shown, the buck-boost converter is provided with an inductor L, and the inductor current can be used as the controlled current.
[0089] The actual value of the controlled current can be collected and represented by IL. For example, if the inductor current is the controlled current, the inductor current can be collected in real time and the collected inductor current can be used as the actual value IL. In addition, the expected value of the controlled current can be set based on the actual control requirements. The expected value is the set control target. In this embodiment, IL req Indicates the expected value of the controlled current, that is, under normal circumstances, the actual value IL of the controlled current needs to be controlled to be as close to the expected value IL as possible req .
[0090] Step S302, determining a first error between a current input voltage and a preset minimum input voltage, and determining a second error between a preset maximum output voltage and a current output voltage.
[0091] In this embodiment, a lower limit value is preset for the input voltage of the DC converter, that is, the minimum input voltage Vi min , and pre-set an upper limit value for the output voltage of the DC converter, that is, the maximum output voltage Vo max Under normal circumstances, the current input voltage Vi will not be lower than the minimum input voltage Vi min , and the current output voltage Vo will not be higher than the maximum output voltage Vo max .
[0092] As mentioned above, the DC converter supports connecting batteries at both ends. When both ends of the DC converter are connected to batteries, Vi may appear. <Vi min or Vo>Vo max In the case of Vi <Vi min 、Vo>Vo max In this embodiment, the current input voltage Vi is compared with the preset minimum input voltage Vi min , determine the first error between the two; and compare the preset maximum output voltage Vo max and the current output voltage Vo, and determine a second error between the two.
[0093] For example, the first error = current input voltage Vi - minimum input voltage Vi min ; Second error = maximum output voltage Vo max - Current output voltage Vo.
[0094] Step S303: determining a corresponding target control amount according to the first error and the second error.
[0095] In this embodiment, the first error may indicate that the current input voltage Vi deviates from the minimum input voltage Vi min The second error can indicate that the current output voltage Vo deviates from the maximum output voltage Vo. max Based on the first error and the second error, a control decision can be made to determine the corresponding control amount, that is, the target control amount; the target control amount is used to enable the generated control instruction to limit the input voltage and the output voltage, so that the input voltage and the output voltage of the DC converter meet the requirements, that is, the input voltage is not less than the minimum input voltage Vi min , and the output voltage is not greater than the maximum output voltage Vo max .
[0096] The target control amount may be determined based on strategies such as PI (proportional integral) control and PID (proportional integral differential) control, or the control decision may be implemented based on other methods, which is not limited in this embodiment.
[0097] Step S304, modifying the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount; the modified control instruction is used to limit the input voltage of the DC converter to be not less than the minimum input voltage, and the output voltage to be not greater than the maximum output voltage.
[0098] In this embodiment, the controlled current is used as the control target, and the generated control instruction can adjust the magnitude of the controlled current, so as to adjust the controlled current from the actual value to the desired value. In addition, the target control amount generated by the first error and the second error is used to correct the control instruction, so that when the DC controller is controlled according to the corrected control instruction, the input voltage and output voltage of the DC control can also meet the requirements.
[0099] The control instruction is specifically used to control the physical parameters of the switch tube in the DC converter. For example, the control instruction is used to control the duty cycle, switching frequency, etc. of the switch tube. By adjusting the physical parameters of the switch tube, the controlled current can be adjusted. This embodiment will not be described in detail.
[0100] The expected value IL of the controlled current can be corrected based on the target control amount. req Based on the corrected generated control instruction, the original control instruction for adjusting the controlled current from the actual value IL to the expected value IL can also be adjusted based on the target control amount. req The control instruction is corrected so that the corrected control instruction can make the input voltage not less than the minimum input voltage Vi min , and the output voltage is not greater than the maximum output voltage Vo max .
[0101] For example, if the DC converter is connected to batteries at both ends, and the output voltage exceeds the maximum output voltage Vo max By modifying the control command, the DC converter can be controlled to work in the output voltage constant voltage mode to limit the output voltage to not exceed the maximum output voltage Vo max ; If the input voltage is less than the minimum input voltage Vi min , the DC converter can also be controlled to work in the input voltage constant voltage mode by modifying the control command to limit the input voltage to not less than the minimum input voltage Vi min .
[0102] The control method of the DC converter provided in this embodiment pre-sets the minimum input voltage Vi of the DC converter min and the maximum output voltage Vo max Based on the current input voltage and current output voltage collected in real time, the first error and the second error can be determined, and then the target control amount that can control the input voltage and the output voltage can be obtained; the control instruction can be corrected by using the target control amount, so that when the DC converter is controlled by the corrected control instruction, the input voltage of the DC converter is guaranteed to be not less than the minimum input voltage, and the output voltage is not greater than the maximum output voltage, effectively avoiding the problem of over-voltage and under-voltage on both sides of the DC converter. When batteries are connected to both ends of the DC converter, the battery voltages at both ends can also be controlled within the allowable range to ensure that the DC converter can work normally and the battery is safe.
[0103] The DC converter may be controlled based on software control, that is, corresponding control instructions are generated in software; or, the DC converter may be controlled based on hardware control, that is, control instructions are generated based on hardware circuits.
[0104] An embodiment of the present invention further provides a control circuit of a DC converter, and the control circuit can control the operation of the DC converter based on the control principle of the above-mentioned control method of the DC converter. Figure 4 A schematic diagram of the control circuit is shown in FIG. Figure 4 As shown, the control circuit includes: a voltage control circuit 400 and an instruction generation circuit 500. The input end of the voltage control circuit 400 is used to input the current input voltage Vi and the current output voltage Vo of the DC converter, and the output end of the voltage control circuit 400 is connected to the input end of the instruction generation circuit 500.
[0105] The voltage control circuit 400 is configured to: obtain the current input voltage Vi and the current output voltage Vo of the DC converter, determine the current input voltage Vi and the preset minimum input voltage Vi min The first error between the two and determines the preset maximum output voltage Vo maxand a second error between the current output voltage Vo; and determining a corresponding target control amount according to the first error and the second error. Figure 4 In the embodiment, the target control quantity includes the control quantities output by the two voltage loops respectively.
[0106] The instruction generation circuit 500 is configured to obtain the actual value IL and the expected value IL of the controlled current. req ; According to the target control amount determined by the voltage control circuit 400, the controlled current is corrected from the actual value IL to the desired value IL req The control instruction after correction is used to limit the current input voltage to not less than the minimum input voltage Vi min , and the current output voltage Vo is not greater than the maximum output voltage Vo max . Figure 4 In the figure, Cmd represents the corrected control instruction.
[0107] In this embodiment, the control circuit has the same principle as the control method provided in the above embodiment, except that the control circuit implements the same function based on the corresponding hardware circuit, and the working principle and effect of the control circuit are not described in detail here.
[0108] In some optional implementations, control may be implemented based on the input voltage and the output voltage separately. Specifically, the above step S303 "determine the corresponding target control amount according to the first error and the second error" includes the following steps A1 to A2.
[0109] Step A1, determining a first sub-control amount according to a first error; the first sub-control amount is used to limit the current input voltage to be not less than a minimum input voltage.
[0110] Step A2, determining a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be not greater than the maximum output voltage. Wherein, the target control amount includes the first sub-control amount and the second sub-control amount.
[0111] Similarly, the above steps A1 to A2 can also be implemented based on a hardware circuit, that is, the voltage control circuit 400 can determine the first sub-control amount and the second sub-control amount. The following mainly explains the implementation principle of the control method based on the control circuit. Specifically, Figure 4 As shown, the voltage control circuit 400 includes: a first voltage loop 401 and a second voltage loop 402. The input end of the first voltage loop 401 is used to input the first error, and the input end of the second voltage loop 402 is used to input the second error; the output ends of the first voltage loop 401 and the second voltage loop 402 are respectively connected to the input end of the instruction generation circuit 500.
[0112] The first voltage loop 401 is configured to: determine the first sub-control amount I according to the first errorcvi ; The first sub-control amount I cvi Used to limit the current input voltage Vi to not less than the minimum input voltage Vi min .
[0113] The second voltage loop 402 is configured to: determine the second sub-control amount I according to the second error cvo ; The second sub-control amount I cvo Used to limit the current output voltage Vo not greater than the maximum output voltage Vo max Similarly, the target control amount includes the first sub-control amount I cvi and the second sub-control quantity I cvo .
[0114] like Figure 4 As shown, the control amount corresponding to the corresponding error is determined by using the first voltage loop 401 and the second voltage loop 402, that is, the first sub-control amount I can be calculated separately. cvi and the second sub-control quantity I cvo The first sub-control quantity I cvi and the second sub-control quantity I cvo are used as the target control amount and input to the instruction generation circuit 500, so that the instruction generation circuit 500 generates the first sub-control amount I cvi and the second sub-control quantity I cvo The control instruction is corrected to finally obtain a corrected control instruction Cmd.
[0115] Among them, since the current input voltage Vi ≥ the minimum input voltage Vi min , and the current output voltage Vo ≤ the maximum output voltage Vo max When the input and output ends of the DC converter meet the requirements, no instruction correction is required; in other words, when the current input voltage Vi < the minimum input voltage Vi min , or the current output voltage Vo> the maximum output voltage Vo max Therefore, when the current input voltage Vi ≥ the minimum input voltage Vi min , and the current output voltage Vo ≤ the maximum output voltage Vo max , the target control amount can be set to invalid, for example, the target control amount generated at this time is 0, which does not affect the subsequent instruction generation process.
[0116] Specifically, when the current input voltage Vi ≥ the minimum input voltage Vi min When the first voltage loop 401 outputs the first sub-control quantity I cvi is 0. Similarly, when the current output voltage Vo ≤ the maximum output voltage Vo max When the second voltage loop 402 outputs the second sub-control quantity Icvo The output of the first voltage loop 401 (ie, the first sub-control amount I cvi ) and the output of the second voltage loop 402 (ie, the second sub-control quantity I cvo ) has a maximum value of 0.
[0117] In this embodiment, the first sub-control amount I cvi and the second sub-control quantity I cvo Correcting the control instructions can effectively ensure that the input voltage of the DC converter is not less than the minimum input voltage and the output voltage is not greater than the maximum output voltage; for example, when the input voltage is too small, it can be switched to the input voltage constant voltage mode to limit the minimum input voltage. When the output voltage is too large, it can be switched to the output voltage constant voltage mode to limit the maximum output voltage.
[0118] Among them, since it is necessary to combine the first sub-control quantity I cvi and the second sub-control quantity I cvo To achieve control, there is a delay when two sub-control quantities need to be switched, and the switching process is slow.
[0119] Figure 5 Shows Figure 4 The control effect diagram of the control strategy shown in the figure shows the changes of various parameters such as input voltage and output voltage over time. Figure 5 As shown, if the current input voltage Vi is lower than the minimum input voltage Vi min , the first voltage loop can output the corresponding first sub-control quantity I cvi , and enter the input voltage constant voltage mode, that is, the first sub-control quantity I output by the first voltage loop cvi After that, if the current output voltage Vo is higher than the maximum output voltage Vo max , it is necessary to switch from the input voltage constant voltage mode to the output voltage constant voltage mode, that is, the second sub-control quantity I output by the second voltage loop is required cvo However, if Figure 5 As shown in the third figure (where I cv =I cvi +I cvo ), when the input voltage Vi exits the protection, the first sub-control quantity I cvi will be reduced to 0, offsetting part of the second sub-control amount I cvo The increase in the overall I cv The correction speed is slowed down, which in turn leads to slower switching.
[0120] Based on this, this embodiment adopts a small strategy to improve the switching speed. Specifically, step S303 "determine the corresponding target control amount according to the first error and the second error" includes the following steps B1 to B3.
[0121] Step B1, determining a first sub-control amount according to a first error; the first sub-control amount is used to limit the current input voltage to be not less than a minimum input voltage.
[0122] Step B2, determining a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage.
[0123] Step B3, determine the smaller control amount between the first sub-control amount and the second sub-control amount, and use the smaller control amount as the target control amount, that is, the target control amount is the smaller value between the first sub-control amount and the second sub-control amount.
[0124] The principles of step B1 and step B2 are similar to those of step A1 and step A2 above; and similarly, steps B1 to B3 above can also be implemented based on hardware circuits. Figure 6 As shown, the voltage control circuit 400 includes: a first voltage loop 401, a second voltage loop 402 and a first subtraction circuit 403. The input end of the first voltage loop 401 is used to input the first error, and the input end of the second voltage loop 402 is used to input the second error; the output ends of the first voltage loop 401 and the second voltage loop 402 are respectively connected to the two input ends of the first subtraction circuit 403, for example, the output end of the first voltage loop 401 is connected to the first input end of the first subtraction circuit 403, and the second voltage loop 402 is connected to the second input end of the first subtraction circuit 403. In addition, the first subtraction circuit 403 is connected to the instruction generation circuit 500 to output the target control amount to the instruction generation circuit 500.
[0125] The first voltage loop 401 is configured to: determine the first sub-control amount I according to the first error cvi ; The first sub-control amount I cvi Used to limit the current input voltage Vi to not less than the minimum input voltage Vi min .
[0126] The second voltage loop 402 is configured to: determine the second sub-control amount I according to the second error cvo ; The second sub-control amount I cvo Used to limit the current output voltage Vo not greater than the maximum output voltage Vo max .
[0127] The first minimization circuit 403 is configured to: determine the first sub-control amount I cvi and the second sub-control quantity I cvo The smaller control amount in the equation is used as the target control amount I cv . That is, I cv =min(I cvi ,I cvo ).
[0128] In this embodiment, Figure 4 and Figure 6 The same first voltage loop 401 and the same second voltage loop 402 can be used in Figure 6 The voltage control circuit 400 shown in the figure further includes a first sub-circuit 403, which is used to compare the first sub-control quantity I cvi and the second sub-control quantity I cvo The smaller value in the equation is the smaller control amount, and the smaller control amount is used as the target control amount I that needs to be corrected. cv It can be understood that the target control amount I obtained by taking the smaller value is cv To correct the command, when the sub-control amount needs to be switched, it is only necessary to wait for the previously effective sub-control amount to drop to less than the sub-control amount to be effective, and it is not necessary for the effective sub-control amount to drop to 0, thereby improving the switching speed.
[0129] Alternatively, since both the input voltage and the output voltage are voltage-type parameters, the first error and the second error are also parameters of the same type, and thus the first error and the second error can be directly compared. Specifically, the above step S303 "determining the corresponding target control amount according to the first error and the second error" can include the following step C1.
[0130] Step C1, determining the smaller error between the first error and the second error, and determining the corresponding target control amount according to the smaller error.
[0131] Correspondingly, it can also be implemented based on hardware circuits. Figure 7 As shown, the voltage control circuit 400 includes: a second min-max circuit 411 and a third voltage loop 412. The two input terminals of the second min-max circuit 411 are used to input the first error and the second error respectively, the output terminal of the second min-max circuit 411 is connected to the input terminal of the third voltage loop 412, and the output terminal of the third voltage loop 412 is connected to the instruction generation circuit 500.
[0132] The second minimization circuit 411 is configured to determine a smaller error between the first error and the second error.
[0133] The third voltage loop 412 is configured to: determine the corresponding target control amount I according to the smaller error cv .
[0134] In this embodiment, Figure 4 and Figure 6Compared with the embodiment shown in FIG. 1 , based on the second small circuit 411, the smaller error of the two errors is first determined, that is, the smaller error is the smaller value of the first error and the second error, and then a voltage loop, that is, the third voltage loop 412, is used to determine the corresponding target control amount I cv This control method not only requires only one voltage loop, but can also simplify the hardware circuit or reduce the code volume required for software control. In addition, the effective voltage loop switching is achieved by input switching, so there is no need to wait and it can respond quickly.
[0135] Figure 8 Shows Figure 7 The control effect diagram of the control strategy shown in the figure is compared with the above Figure 5 It can be seen that by first minimizing the voltage error between the input voltage and the output voltage and then performing voltage loop control, the system adjustment time can be greatly shortened when switching between the input voltage constant voltage mode and the output voltage constant voltage mode, and a fast response can be achieved.
[0136] In some optional implementations, the above step S304 "correcting the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount" may include the following step D1.
[0137] Step D1, correcting the controlled error of the controlled current according to the target control amount, and generating a corresponding control instruction according to the corrected controlled error. The controlled error of the controlled current is the error between the expected value and the actual value of the controlled current.
[0138] Accordingly, if based on hardware implementation, such as Fig. 9 As shown, the instruction generation circuit 500 includes: an error calculation module 501 and a first current loop 502. The input end of the error calculation module 501 is connected to the output end of the voltage control circuit 400, such as Fig. 9 As shown, the input end of the error calculation module 501 is connected to the output end of the third voltage loop; the output end of the error calculation module 501 is connected to the input end of the first current loop 502.
[0139] The error calculation module 501 is configured to: cv Correct the controlled error of the controlled current.
[0140] The first current loop 502 is configured to generate a corresponding control instruction Cmd according to the corrected controlled error.
[0141] In this embodiment, the controlled current also has a certain error, namely the controlled error, which is the expected value IL of the controlled current. req The error between the actual value IL and the target control amount I is determined based on the voltage control circuit 400. cvAfter that, the error calculation module 501 can use the target control amount I cv The controlled error of the controlled current is corrected.
[0142] like Fig. 9 As shown, the error calculation module 501 can be based on the target control amount I cv The expected value IL of the controlled current req Make corrections, and then use the corrected expected value IL cmd The controlled error is determined by comparing it with the actual value IL, and the controlled error is the corrected controlled error. Alternatively, the expected value IL can be determined first. req The controlled error between the actual value IL is then corrected by the error calculation module 501, which is not limited in this embodiment.
[0143] For the corrected controlled error, the first current loop 502 is used to make a control decision, thereby generating a corrected control instruction Cmd.
[0144] The error calculation module 501 can specifically perform error correction based on a minimization strategy. Fig. 9 As shown, the corrected expected value IL cmd The expected value IL req and target control quantity I cv The smaller value between cmd =min(IL req ,I cv ). However, at this time, the target control amount I cv The upper limit is set as the current command upper limit, for example, the output saturation upper limit of the third voltage loop 412 is set as the current command upper limit, which is a non-zero value. Therefore, when the DC converter operates in the constant current (CC) mode, if it is necessary to switch to the constant voltage (CV) mode due to abnormal input voltage, output voltage or other scenarios, it is necessary to wait for the target control quantity I output by the command generation circuit 500 cv When the current drops below the original current command, the switching process is slow. For example, when charging a battery, the constant current mode is generally used first, and when the battery is almost fully charged, it is necessary to switch to the constant voltage mode.
[0145] Optionally, the controlled error is corrected in an additive manner. Specifically, the above step D1 "correcting the controlled error of the controlled current according to the target control amount" includes: adding the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error.
[0146] Accordingly, the error calculation module 501 also uses the addition method to perform correction. Figure 4 , Figure 6 , Figure 7As shown, the error calculation module 501 includes a first adder 5011; an input terminal of the first adder 5011 is connected to an output terminal of the voltage control circuit 400 (such as Figure 7 The output terminal of the third voltage loop 412 is connected to the output terminal of the first adder 5011, and the other input terminal of the first adder 5011 is used to access the expected value IL of the controlled current. req The first adder 5011 is configured to add the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error.
[0147] Among them, for Figure 4 The control circuit shown in FIG. 1 shows that the first adder 5011 calculates the expected value IL of the controlled current. req , the first sub-control quantity I cvi , the second sub-control quantity I cvo Add them together to get the corrected expected value IL cmd . And for Figure 6 and Figure 7 The control circuit shown in FIG. 4 is a control circuit in which the voltage control circuit 400 can generate only one target control variable I cv , so the first adder 5011 has an expected value IL of the controlled current req 、Target control quantity I cv Just add them together.
[0148] When the controlled error is corrected in an additive manner, the upper limit of the target control amount can be set to 0, for example, the output saturation upper limit of the third voltage loop 412 is 0. In addition, when the current input voltage Vi is not less than the minimum input voltage Vi min (i.e. Vi≥Vi min ), and the current output voltage Vo is not greater than the maximum output voltage Vo max (i.e. Vo≤Vo max ), the determined target control amount is zero. In this case, it is possible to directly switch from the constant voltage mode to the constant current mode.
[0149] Alternatively, in addition to implementing instruction correction in step D1, a single-loop control method may also be used. Specifically, the above step S304 "correcting the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount" may include the following step D2.
[0150] Step D2, determining a current control amount for controlling the controlled current according to the controlled error of the controlled current; performing instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction.
[0151] Accordingly, if Fig.10As shown, the instruction generation circuit 500 includes: a second current loop 511 and an instruction calculation module 512. The output end of the second current loop 511 is connected to the input end of the instruction calculation module 512; and the other input end of the instruction calculation module 512 is connected to the output end of the voltage control circuit 400, as shown in FIG. Fig.10 As shown, the other input end of the instruction calculation module 512 is connected to the output end of the third voltage loop 412 to obtain the target control amount.
[0152] The second current loop 511 is configured to determine a current control amount for controlling the controlled current according to a controlled error of the controlled current.
[0153] The instruction calculation module 512 is configured to perform instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction.
[0154] In this embodiment, in single-loop control, the voltage control circuit 400 and the second current loop 511 respectively generate control quantities for adjusting the controlled current, namely, the target control quantity and the current control quantity. Fig.10 As shown, the third voltage loop 412 generates a corresponding target control amount. At this time, the target control amount is a control amount for controlling the DC converter to work in a constant voltage mode, so Cmd CV Indicates the target control amount, the target control amount Cmd CV is a constant voltage control quantity; and the current control quantity generated by the second current loop 511 is used to control the DC converter to operate in a constant current mode, so Cmd CC Indicates the current control value, the current control value Cmd CC It is a constant current control quantity. Afterwards, the command calculation module 512 performs command calculation by combining the current control quantity and the target control quantity to obtain the required control command Cmd.
[0155] Among them, similar to the above-mentioned error calculation module 501, the instruction calculation module 512 can also calculate the control instruction Cmd based on the small strategy or the sum strategy; if the small strategy is adopted, the upper limit of the output of the second current loop 511 and the third voltage loop 412 can be set to a preset peak value. However, when taking the small value, there is also the problem of slow switching, so the sum strategy can be adopted.
[0156] Specifically, the above step D2 "combining the target control amount and the current control amount to perform command calculation and generate corresponding control instructions" may include: adding the target control amount to the current control amount in an additive manner to generate corresponding control instructions.
[0157] Accordingly, if Fig.11As shown, the instruction calculation module 512 includes a second adder 5121; two input terminals of the second adder are respectively connected to the output terminal of the second current loop 511 and the output terminal of the voltage control circuit 400 (for example Fig.11 The second adder 5121 is configured to add the target control amount to the current control amount in an additive manner to generate a corresponding control instruction. At this time, Cmd=Cmd CC +Cmd CV .
[0158] The upper limit of the target control amount can also be set to 0. For example, the output saturation upper limit of the third voltage loop 412 is 0. When the current input voltage Vi is not less than the minimum input voltage Vi min (i.e. Vi≥Vi min ), and the current output voltage Vo is not greater than the maximum output voltage Vo max (i.e. Vo≤Vo max ), the determined target control amount is zero, that is, the control instruction Cmd = Cmd CC .
[0159] The control method and control circuit of the DC converter provided by the embodiment of the present invention can realize faster mode switching by executing the strategy of minimizing the first error and the second error; and the voltage errors of the input voltage and the output voltage are first minimized, and then the voltage loop control is performed, which can greatly shorten the system adjustment time and realize fast response. In addition, a single-loop or dual-loop control method can be adopted, which has a wide range of applications and can be applicable to various DC converter topologies such as Buck, Boost, Cuk, LLC, etc.
[0160] In the present embodiment, a control device for a DC converter is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0161] This embodiment provides a control device for a DC converter, such as Fig.12 As shown, including:
[0162] An acquisition module 1201 is used to acquire the actual value and expected value of the current input voltage, the current output voltage and the controlled current of the DC converter;
[0163] The voltage control module 1202 is used to determine a first error between the current input voltage and a preset minimum input voltage, and to determine a second error between a preset maximum output voltage and the current output voltage; and to determine a corresponding target control amount according to the first error and the second error;
[0164] The instruction generation module 1203 is used to correct the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount, and the corrected control instruction is used to limit the input voltage of the DC converter to be no less than the minimum input voltage, and the output voltage to be no greater than the maximum output voltage.
[0165] In some optional implementations, the voltage control module 1202 determines the corresponding target control amount according to the first error and the second error, including:
[0166] Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0167] Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage;
[0168] The target control amount includes the first sub-control amount and the second sub-control amount.
[0169] In some optional implementations, the voltage control module 1202 determines the corresponding target control amount according to the first error and the second error, including:
[0170] Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage;
[0171] Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage;
[0172] determining a smaller control amount between the first sub-control amount and the second sub-control amount, and taking the smaller control amount as the target control amount;
[0173] Alternatively, a smaller error between the first error and the second error is determined, and a corresponding target control amount is determined according to the smaller error.
[0174] In some optional implementations, the instruction generation module 1203 corrects the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount, including:
[0175] Correcting a controlled error of the controlled current according to the target control amount, and generating a corresponding control instruction according to the corrected controlled error;
[0176] Alternatively, a current control amount for controlling the controlled current is determined according to the controlled error of the controlled current; instruction calculation is performed in combination with the current control amount and the target control amount to generate a corresponding control instruction;
[0177] The controlled error of the controlled current is an error between an expected value and an actual value of the controlled current.
[0178] In some optional implementations, the instruction generation module 1203 corrects the controlled error of the controlled current according to the target control amount, including: adding the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error;
[0179] Alternatively, the instruction generation module 1203 performs instruction calculation in combination with the target control amount and the current control amount to generate a corresponding control instruction, including: adding the target control amount to the current control amount in an additive manner to generate a corresponding control instruction;
[0180] Wherein, when the current input voltage is not less than the minimum input voltage and the current output voltage is not greater than the maximum output voltage, the determined target control amount is zero.
[0181] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0182] The control device of the DC converter in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, including a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0183] The embodiment of the present invention also provides a computer device having the above Fig.12 The control device of the DC converter is shown.
[0184] See also Fig.13 , Fig.13 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.13As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.13 A processor 10 is taken as an example.
[0185] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0186] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0187] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0188] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0189] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0190] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0191] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0192] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A control method for a DC converter, characterized in that: The method comprises: Obtaining the actual value and expected value of the current input voltage, current output voltage and controlled current of the DC converter; Determine a first error between the current input voltage and a preset minimum input voltage, and determine a second error between a preset maximum output voltage and the current output voltage; Determine a corresponding target control amount according to the first error and the second error; A control instruction for adjusting the controlled current from the actual value to the expected value is corrected according to the target control amount, and the corrected control instruction is used to limit the input voltage of the DC converter to be not less than the minimum input voltage, and the output voltage to be not greater than the maximum output voltage.
2. The method according to claim 1, characterized in that The determining a corresponding target control amount according to the first error and the second error includes: Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage; Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage; The target control amount includes the first sub-control amount and the second sub-control amount.
3. The method according to claim 1, characterized in that The determining a corresponding target control amount according to the first error and the second error includes: Determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage; Determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be not greater than the maximum output voltage; and, determining a smaller control amount between the first sub-control amount and the second sub-control amount, and taking the smaller control amount as the target control amount; or, The determining a corresponding target control amount according to the first error and the second error includes: A smaller error between the first error and the second error is determined, and a corresponding target control amount is determined according to the smaller error.
4. The method according to any one of claims 1 to 3, characterized in that The step of correcting the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount includes: Correcting a controlled error of the controlled current according to the target control amount, and generating a corresponding control instruction according to the corrected controlled error; or, Determining a current control amount for controlling the controlled current according to a controlled error of the controlled current; performing instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction; The controlled error of the controlled current is the error between the expected value and the actual value of the controlled current.
5. The method according to claim 4, characterized in that The correcting the controlled error of the controlled current according to the target control amount comprises: adding the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error; or, The step of performing command calculation in combination with the target control amount and the current control amount to generate a corresponding control command includes: adding the target control amount to the current control amount in an additive manner to generate a corresponding control command; Wherein, when the current input voltage is not less than the minimum input voltage and the current output voltage is not greater than the maximum output voltage, the determined target control amount is zero.
6. A control circuit for a DC converter, characterized in that: include: Voltage control circuit and command generation circuit; The output end of the voltage control circuit is connected to the input end of the instruction generation circuit; The voltage control circuit is configured to: obtain a current input voltage and a current output voltage of the DC converter, determine a first error between the current input voltage and a preset minimum input voltage, and determine a second error between a preset maximum output voltage and the current output voltage; and determine a corresponding target control amount according to the first error and the second error; The instruction generation circuit is configured to: obtain an actual value and an expected value of a controlled current; The control instruction for adjusting the controlled current from the actual value to the expected value is corrected according to the target control amount determined by the voltage control circuit, and the corrected control instruction is used to limit the input voltage of the DC converter to be not less than the minimum input voltage, and the output voltage to be not greater than the maximum output voltage.
7. The control circuit according to claim 6, characterized in that: The voltage control circuit comprises: a first voltage loop and a second voltage loop; the output ends of the first voltage loop and the second voltage loop are respectively connected to the input end of the instruction generation circuit; The first voltage loop is configured to: determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage; The second voltage loop is configured to: determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage; The target control amount includes the first sub-control amount and the second sub-control amount.
8. The control circuit according to claim 6, characterized in that: The voltage control circuit comprises: a first voltage loop, a second voltage loop and a first subtraction circuit; the output ends of the first voltage loop and the second voltage loop are respectively connected to two input ends of the first subtraction circuit, and the output end of the first subtraction circuit is connected to the instruction generation circuit; The first voltage loop is configured to: determine a first sub-control amount according to the first error; the first sub-control amount is used to limit the current input voltage to be not less than the minimum input voltage; The second voltage loop is configured to: determine a second sub-control amount according to the second error; the second sub-control amount is used to limit the current output voltage to be no greater than the maximum output voltage; The first small-taking circuit is configured to: determine a smaller control amount between the first sub-control amount and the second sub-control amount, and use the smaller control amount as the target control amount; or, The voltage control circuit comprises: a second subtraction circuit and a third voltage loop; the output end of the second subtraction circuit is connected to the input end of the third voltage loop, and the output end of the third voltage loop is connected to the instruction generation circuit; The second minimization circuit is configured to: determine a smaller error between the first error and the second error; The third voltage loop is configured to determine a corresponding target control amount according to the smaller error.
9. The control circuit according to any one of claims 6 to 8, characterized in that: The instruction generation circuit comprises: an error calculation module and a first current loop; the output end of the error calculation module is connected to the input end of the first current loop; The error calculation module is configured to: correct the controlled error of the controlled current according to the target control amount; The first current loop is configured to: generate a corresponding control instruction according to the corrected controlled error; or, The instruction generation circuit comprises: a second current loop and an instruction calculation module; the output end of the second current loop is connected to the input end of the instruction calculation module; The second current loop is configured to: determine a current control amount for controlling the controlled current according to a controlled error of the controlled current; The instruction calculation module is configured to: perform instruction calculation in combination with the current control amount and the target control amount to generate a corresponding control instruction.
10. The control circuit according to claim 9, characterized in that: The error calculation module includes a first adder; the first adder is configured to: add the target control amount to the controlled error of the controlled current in an additive manner to generate a corrected controlled error; or, The instruction calculation module includes a second adder; the second adder is configured to: add the target control amount to the current control amount in an additive manner to generate a corresponding control instruction; Wherein, when the current input voltage is not less than the minimum input voltage and the current output voltage is not greater than the maximum output voltage, the determined target control amount is zero.
11. A control device for a DC converter, characterized in that: The device comprises: An acquisition module is used to acquire the actual value and expected value of the current input voltage, the current output voltage and the controlled current of the DC converter; A voltage control module, used to determine a first error between the current input voltage and a preset minimum input voltage, and to determine a second error between a preset maximum output voltage and the current output voltage; and to determine a corresponding target control amount according to the first error and the second error; An instruction generation module is used to correct the control instruction for adjusting the controlled current from the actual value to the expected value according to the target control amount, and the corrected control instruction is used to limit the input voltage of the DC converter to be no less than the minimum input voltage, and the output voltage to be no greater than the maximum output voltage.
12. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the control method of the DC converter according to any one of claims 1 to 5 by executing the computer instructions.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the control method of the DC converter according to any one of claims 1 to 5.