Power circuit control method, electronic equipment and computer readable storage medium
By combining low-frequency high-precision and high-frequency high-response sampling circuits, and utilizing loop control models and compensation parameter calculations, the contradiction between precision and speed in power circuit control is resolved, achieving higher control precision and faster response speed.
Patent Information
- Application Number
- CN202411490318.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-09-19
AI Technical Summary
In the prior art, the sampling circuit/sampling chip of the power circuit has a contradiction between sampling accuracy and sampling frequency. The high-frequency sampling circuit has poor accuracy, while the low-frequency sampling circuit is slow, making it impossible to balance control accuracy and response speed.
A low-frequency, high-precision first sampling circuit and a high-frequency, high-response second sampling circuit are used to generate a control signal through calculation of a loop control model and compensation parameters to improve control accuracy and response speed.
It effectively reduces the deviation between the actual value of the power circuit and the given parameters, improves the control accuracy, and responds quickly at the initial startup of the power circuit or when the parameters change, achieving faster stable working conditions.
Smart Images

Figure CN120669812A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a power circuit control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Power circuits are commonly found in various electronic devices. To control the proper operation of these power circuits, it is necessary to sample their electrical parameters, such as current, voltage, and power, and then control them accordingly based on the sampled values. Related technologies often employ specific sampling circuits or sampling chips for sampling. However, sampling circuits / sampling chips are affected by the precision of circuit components, resulting in a certain deviation between the sampled values and the true values.
[0003] Conventional designs typically use sampling circuits / sampling chips with higher sampling frequencies to reduce control latency. However, while these sampling circuits / sampling chips offer a high sampling frequency, they often suffer from poor accuracy, potentially leading to unsatisfactory control results. Conversely, some sampling circuits / sampling chips offer higher sampling accuracy, but these have lower sampling frequencies, slower sampling speeds, and significant latency, making them unsuitable for direct control. Summary of the Invention
[0004] In view of this, the present application provides a power circuit control method, an electronic device, and a computer-readable storage medium, which can take into account both sampling accuracy and response speed and significantly improve control accuracy.
[0005] In a first aspect, the present application provides a power circuit control method, wherein the power circuit includes a target sampling point. The method includes: upon obtaining a first sampling value sampled and output by a first sampling circuit at the target sampling point, determining a first compensation parameter based on the first sampling value, a preset first given parameter, and a first loop control model; determining a compensation given parameter based on the first given parameter and the first compensation parameter; upon obtaining a second sampling value sampled and output by a second sampling circuit at the target sampling point, determining a control signal based on the second sampling value, the compensation given parameter, and the second loop control model, and controlling the power circuit based on the control signal; the sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit, and the first sampling value and the second sampling value are sampling values of the same type.
[0006] In one embodiment, determining a first compensation parameter based on a first sampling value, a preset first given parameter, and a first loop control model includes: calculating a first deviation value between the first given parameter and the first sampling value; and inputting the first deviation value into the first loop control model to obtain a first compensation parameter.
[0007] In one embodiment, determining the compensation given parameter according to the first given parameter and the first compensation parameter includes: calculating the sum of the first given parameter and the first compensation parameter as the compensation given parameter.
[0008] In one embodiment, determining a control signal based on a second sampling value, a given compensation parameter, and a second loop control model includes: calculating a second deviation value between the given compensation parameter and the second sampling value; inputting the second deviation value into the second loop control model to obtain a second compensation parameter; and generating a control signal based on the second compensation parameter.
[0009] In one embodiment, generating the control signal according to the second compensation parameter includes: performing a limiting process on the second compensation parameter to obtain a target compensation parameter; and generating the control signal according to the target compensation parameter.
[0010] In one embodiment, generating a control signal according to the second compensation parameter includes: obtaining a third compensation parameter output by a preset control loop; determining a target compensation parameter according to the second compensation parameter and each third compensation parameter; and generating a control signal according to the target compensation parameter.
[0011] In one embodiment, determining the target compensation parameter according to the second compensation parameter and each third compensation parameter includes: selecting the minimum value of the second compensation parameter and each third compensation parameter as the target compensation parameter.
[0012] In one embodiment, generating a control signal based on a target compensation parameter includes: obtaining a preset second given parameter; determining the target given parameter based on the second given parameter and the target compensation parameter; when obtaining a third sampling value sampled by a third sampling circuit, determining the control signal based on a deviation between the target given parameter and the third sampling value; the third sampling value and the first sampling value are sampling values of different types.
[0013] A second aspect of the present application provides an electronic device comprising a power circuit, a first sampling circuit, a second sampling circuit, and a controller. The power circuit includes a target sampling point. The sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit. The first sampling circuit and the second sampling circuit are configured to sample the target sampling point to obtain a first sampling value and a second sampling value, respectively. The first sampling value and the second sampling value are sampled values of the same type. The controller is configured to execute the power circuit control method described in any of the above embodiments.
[0014] A third aspect of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a controller, the controller implements the power circuit control method described in any of the above embodiments.
[0015] The power circuit control method provided in the present application, when obtaining a first sampled value sampled and outputted by a first sampling circuit at a target sampling point, determines a first compensation parameter based on the first sampled value, a preset first given parameter, and a first loop control model, and compensates the first given parameter based on the first compensation parameter to determine the compensated given parameter. When obtaining a second sampled value sampled and outputted by a second sampling circuit at the target sampling point, determines a control signal based on the second sampled value, the compensated given parameter, and the second loop control model, and controls the power circuit based on the control signal. Since the first sampled value and the second sampled value are sampled values of the same type, and the sampling frequency of the first sampling circuit is lower than that of the second sampling circuit, the first sampled value has a higher accuracy than the second sampled value. Therefore, the first sampled value is closer to the true value of the signal to be measured at the target sampling point, while the response rate of the second sampling circuit is faster. Thus, the first compensation parameter calculated based on the first sampled value and the first given parameter can be closer to the deviation between the true value of the signal to be measured at the target sampling point and the first given parameter. Furthermore, by compensating the first given parameter based on the first compensation parameter to obtain a compensated given parameter, and using the compensated given parameter as a given value in the second loop control model to determine the control signal, the deviation between the actual value of the target sampling point and the first given parameter can be effectively reduced, thereby improving the control accuracy of the power circuit. Furthermore, due to the faster response rate of the second sampling circuit, the second loop control model can take effect more quickly than the first loop control model at the initial startup of the power circuit or when the first given parameter changes, thereby achieving faster control of the power circuit and allowing the power circuit to enter a stable operating state more quickly. In this way, the power circuit control method effectively balances sampling accuracy and response speed, significantly improving the control accuracy of the power circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solution of this application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of this application and should not be regarded as limiting the scope of protection of this application. In each of the drawings, similar components are numbered similarly.
[0017] Figure 1 This is a structural block diagram of an electronic device involved in a power circuit control method provided in an embodiment of the present application.
[0018] Figure 2 A flowchart of a power circuit control method provided in one embodiment of the present application.
[0019] Figure 3 A schematic flow chart of the sub-steps of step S201 provided in an embodiment of the present application.
[0020] Figure 4This is a schematic diagram of the sub-step flow of step S203 provided in one embodiment of the present application.
[0021] Figure 5 This is a schematic diagram of the sub-step flow of step S403 provided in one embodiment of the present application.
[0022] Figure 6 A schematic flow chart of the sub-steps of step S403 provided in another embodiment of the present application.
[0023] Figure 7 This is a flowchart of the sub-steps of step S502 or step S603 provided in one embodiment of the present application.
[0024] Figure 8 This is a specific control block diagram of a power circuit control method provided in one embodiment of the present application.
[0025] Figure 9 This is a specific control block diagram of a power circuit control method provided in another embodiment of the present application.
[0026] Figure 10 This is a specific control block diagram of a power circuit control method provided in another embodiment of the present application.
[0027] Figure 11 This is a functional block diagram of a control device provided in one embodiment of the present application.
[0028] Figure 12 A functional block diagram of a computer-readable storage medium provided in one embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0030] It should be noted that when a component is considered to be "connected to" another component, it can be directly connected to the other component or there may be an intermediate component. When a component is considered to be "disposed on" another component, it can be directly disposed on the other component or there may be an intermediate component. The terms "top", "bottom", "upper", "lower", "left", "right", "front", "back", and similar expressions used herein are for illustrative purposes only.
[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application.
[0032] The following will describe some embodiments with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features therein may be combined with each other.
[0033] Power circuits are commonly found in various electronic devices. To control the proper operation of these power circuits, it is necessary to sample their electrical parameters, such as current, voltage, and power, and then control them accordingly based on the sampled values. Related technologies often employ specific sampling circuits or sampling chips for sampling. However, sampling circuits / sampling chips are affected by the precision of circuit components, resulting in a certain deviation between the sampled values and the true values.
[0034] Conventional designs typically use sampling circuits / sampling chips with higher sampling frequencies to reduce control latency. However, while these sampling circuits / sampling chips offer a high sampling frequency, they often suffer from poor accuracy, potentially leading to unsatisfactory control results. Conversely, some sampling circuits / sampling chips offer higher sampling accuracy, but these have lower sampling frequencies, slower sampling speeds, and significant latency, making them unsuitable for direct control.
[0035] Based on this, the present application provides a power circuit control method that can take into account both sampling accuracy and response speed, and significantly improve control accuracy.
[0036] See also Figure 1 , Figure 1 1 is a block diagram of the structure of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may include a power circuit 10, a first sampling circuit 20, a second sampling circuit 30, a controller 40, and a memory 50. The power circuit 10, the first sampling circuit 20, the second sampling circuit 30, the controller 40, and the memory 50 may be connected via a bus, which may be any suitable bus such as an Inter-Integrated Circuit (I2C) bus.
[0037] In other embodiments, the power circuit 10 , the first sampling circuit 20 , the second sampling circuit 30 , the controller 40 , and the memory 50 may also exchange data with each other through other types of communication topologies.
[0038] The power circuit 10 may be a circuit for converting, distributing, or controlling electrical energy. For example, the power circuit 10 may include at least one of a DC-DC conversion circuit, a DC-AC conversion circuit, an AC-AC conversion circuit, and the like. This application does not limit the specific circuit structure of the power circuit 10. The power circuit 10 includes a target sampling point. The target sampling point is used for sampling by the first sampling circuit 20 and the second sampling circuit 30. The location of the target sampling point can be determined based on specific sampling requirements, and this application does not limit the specific location of the target sampling point in the power circuit 10.
[0039] The first sampling circuit 20 and the second sampling circuit 30 can be any of current sampling circuits, voltage sampling circuits, power sampling circuits, and the like. The first sampling circuit 20 and the second sampling circuit 30 can include sensors, circuit modules, or chips for implementing sampling. This application does not limit the specific circuit structures of the first sampling circuit 20 and the second sampling circuit 30.
[0040] The memory 50 can store an operating system and a computer program. The computer program includes program instructions that, when executed, enable the controller 40 to execute the control method of the power circuit 10. The controller 40 is used to provide computing and control capabilities to support the operation of the entire electronic device 100.
[0041] See also Figure 2 , Figure 2 FIG1 is a flow chart of a power circuit control method provided in an embodiment of the present application. It is understood that in one embodiment, the controller 40 is used to run a computer program stored in the memory 50 to implement the following Figure 2 The steps shown are:
[0042] Step S201 : when a first sampling value output by a first sampling circuit for sampling a target sampling point is obtained, a first compensation parameter is determined according to the first sampling value, a preset first given parameter, and a first loop control model.
[0043] The first sampling value is used to represent the sampled value obtained by sampling the signal to be measured at the target sampling point via the first sampling circuit 20. Since the sampling frequency of the first sampling circuit 20 is low and the sampling accuracy is high, the first sampling value can also be used to represent the true value of the signal to be measured to a certain extent. The first given parameter is used to represent the initial given value of the signal to be measured at the target sampling point. The first compensation parameter is used to represent the deviation between the first given parameter and the first sampling value.
[0044] The first loop control model is configured to output a first compensation parameter based on a first given parameter and a first sampled value. For example, the first given parameter may serve as a given value, and the first sampled value may serve as a feedback value for participating in calculations of the first loop control model, such that the first loop control model outputs the first compensation parameter.
[0045] This application does not limit the specific loops of the first-loop control model. For example, the preset first-loop control model may include at least one of a voltage loop, a current loop, a power loop, a combination loop, or other control loops. In some embodiments, the loops included in the first-loop control model may be determined based on the type of the first sampled value.
[0046] In the first loop control model, one or more control loops / control devices may be included, such as adders, subtractors, proportional integral (Proportion Integration) controllers, proportional integral differential (Proportion Integration Differentiation) controllers, limiters and other control loops / control devices, which are not limited in this application.
[0047] In some embodiments, the first sampling circuit 20 may output the first sampling value to the controller 40 via a bus. In other embodiments, the first sampling circuit 20 may also output the first sampling value to the controller 40 via wireless communication. This application does not limit the manner in which the controller 40 obtains the first sampling value.
[0048] Step S202: Determine a compensation given parameter according to the first given parameter and the first compensation parameter.
[0049] The compensation given parameter is used to characterize the given value of the signal to be measured at the target sampling point obtained after compensation calculation.
[0050] It is understandable that the present application does not limit the specific calculation method for obtaining the compensation given parameter in step S202.
[0051] Step S203: When a second sampling value output by the second sampling circuit for sampling the target sampling point is obtained, a control signal is determined according to the second sampling value, the given compensation parameter, and the second loop control model, and the power circuit is controlled based on the control signal, wherein the sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit, and the first sampling value and the second sampling value are sampling values of the same type.
[0052] In other words, the second sampling value is used to represent the sampled value obtained by sampling the signal to be measured at the target sampling point by the second sampling circuit 30. The type of the signal to be measured can be, for example, a voltage signal, a current signal, a power signal, or other signal types. That is, the types of the first sampling value and the second sampling value can be voltage signal sampling values, current signal sampling values, power signal sampling values, or other signal sampling values.
[0053] It is understandable that when the operating condition of the power circuit 10 tends to be stable, the first compensation parameter can also be understood as the deviation between the second sampling value and the true value of the signal to be measured.
[0054] The second-loop control model is configured to output a modulation parameter based on a given compensation parameter and a second sampled value, wherein the modulation parameter is used to generate a control signal. For example, the given compensation parameter can serve as a given value, and the second sampled value can serve as a feedback value in the calculation of the second-loop control model, so that the second-loop control model outputs a modulation parameter that characterizes the duty cycle of the control signal. This application does not limit the specific loop of the second-loop control model; for example, the preset second-loop control model may include at least one of a voltage loop, a current loop, a power loop, a combination loop, or other control loops.
[0055] The second loop control model may include one or more control loops / control devices, such as adders, subtractors, proportional-integral (PI) controllers, proportional-integration-differentiation (PID) controllers, limiters, and other control loops / control devices, which are not limited in this application.
[0056] The control signal in step S203 is used to adjust the operating condition of the power circuit 10. For example, when the power circuit 10 includes a switch, the control signal can be a driving signal of the switch, which is used to control the switching logic and duty cycle of the switch in the power circuit 10 to adjust the signal to be adjusted of the power circuit 10.
[0057] In some embodiments, the control signal may be a PWM (Pulse Width Modulation) signal. It is understood that if the modulation parameters output by the second loop control model are different, then the duty cycle of the control signal obtained by modulation according to the modulation parameters will also be different. Within a control cycle, if the duty cycle indicated by the control signal is different, then the conduction duration of the switch tube in the power circuit 10 controlled by the control signal will also be different, thereby adjusting the working condition of the power circuit 10. In this way, the control signal generated by the modulation parameter in step S203 can be used to control the power circuit 10.
[0058] In summary, the power circuit control method provided by the present application, when obtaining a first sampled value sampled and outputted by the first sampling circuit 20 at a target sampling point, determines a first compensation parameter based on the first sampled value, a first given parameter, and a first loop control model, and compensates the first given parameter based on the first compensation parameter to determine a compensated given parameter. When obtaining a second sampled value sampled and outputted by the second sampling circuit 30 at the target sampling point, determines a control signal based on the second sampled value, the given compensation parameter, and the second loop control model, and controls the power circuit 10 based on the control signal.
[0059] The first sampling value and the second sampling value are of the same type. The sampling frequency of the first sampling circuit 20 is lower than the sampling frequency of the second sampling circuit 30, and the first sampling value has a higher accuracy than the second sampling value. In other words, the first sampling value is closer to the true value of the signal to be measured at the target sampling point, while the response rate of the second sampling circuit 30 is faster.
[0060] In this way, the first compensation parameter calculated based on the first sampled value and the first given parameter can be closer to the deviation between the true value of the measured signal at the target sampling point and the first given parameter. Furthermore, by compensating the first given parameter based on the first compensation parameter to obtain a compensated given parameter, and using the compensated given parameter as a given value to determine the control signal in the second loop control model, the deviation between the true value of the target sampling point and the first given parameter can be effectively reduced, thereby improving the control accuracy of the power circuit 10.
[0061] Moreover, since the response rate of the second sampling circuit 30 is faster, the second loop control model can start to take effect faster than the first loop control model at the initial startup of the power circuit 10 or when the first given parameter changes, thereby achieving faster control of the power circuit 10 and allowing the power circuit 10 to enter a stable operating condition faster.
[0062] In this way, the power circuit control method can effectively balance sampling accuracy and response speed, and significantly improve the control accuracy of the power circuit 10.
[0063] See also Figure 3 In some embodiments, step S201 includes the following sub-steps:
[0064] Step S301: Calculate a first deviation between a first given parameter and a first sampling value.
[0065] In some embodiments, the difference between the first given parameter and the first sampled value may be calculated as the first deviation value. In other embodiments, the first deviation value may be determined based on the first given parameter and the first sampled value using other calculation methods. For example, the difference between the first given parameter and the first sampled value may be clipped to obtain the first deviation value. This application is not limited to this.
[0066] Step S302: Input the first deviation value into the first loop control model to obtain a first compensation parameter.
[0067] In step S302, the first deviation value may be input into the first loop control model for deviation adjustment to obtain a first compensation parameter. In some embodiments, the first loop control model may include a proportional-integral (PI) controller or a proportional-integral-derivative (PID) controller for the first sampled value, etc., which is not limited in this application. Thus, after the first deviation value is input into the first loop control model, the PI controller or the PID controller may be used to perform deviation adjustment to obtain the first compensation parameter.
[0068] In this way, by executing step S301 to step S302 , the first compensation parameter can be determined according to the first sampling value, the first given parameter and the first loop control model.
[0069] In some embodiments, step S202 includes:
[0070] The sum of the first given parameter and the first compensation parameter is calculated as the compensation given parameter.
[0071] In other embodiments, the compensation given parameter may be determined based on the first given parameter and the first compensation parameter based on other calculation methods. For example, the sum of the first given parameter and the first compensation parameter may be clipped to obtain the compensation given parameter, or the sum of the first given parameter and the first compensation parameter may be multiplied by a preset proportional coefficient to obtain the compensation given parameter. This application does not limit the specific calculation method for calculating the compensation given parameter in step S202.
[0072] See also Figure 4 In some embodiments, step S203 of determining the control signal according to the second sampled value, the compensation given parameter, and the second loop control model includes the following sub-steps:
[0073] Step S401: Calculate a second deviation value between a given compensation parameter and a second sampling value.
[0074] In some embodiments, the difference between the compensated given parameter and the second sampled value may be calculated as the second deviation value. In other embodiments, the second deviation value may be determined based on the compensated given parameter and the second sampled value using other calculation methods. For example, the difference between the compensated given parameter and the second sampled value may be clipped to obtain the second deviation value. This application is not limited to this.
[0075] Step S402: Input the second deviation value into the second loop control model to obtain a second compensation parameter.
[0076] The second compensation parameter is used to characterize the deviation between the compensation given parameter and the second sampling value.
[0077] In some embodiments, the second-loop control model may include a compensation loop. The compensation loop is configured to perform deviation adjustment on the second deviation value to obtain a second compensation parameter. In some embodiments, the compensation loop may include a proportional-integral (PI) controller or a proportional-integral-derivative (PID) controller based on the second sampled value, although this application is not limited thereto. Thus, the second deviation value is input into the compensation loop, and the second compensation parameter is output.
[0078] Step S403: Generate a control signal according to the second compensation parameter.
[0079] In some embodiments, the second compensation parameter may be used as a modulation parameter output by the second loop control model. Thus, in step S403 , the second compensation parameter may be modulated to generate a control signal.
[0080] In other embodiments, the second loop control model further includes other control loops, and the second compensation parameter is input to the other control loops to output a modulation parameter. Thus, in step S403, the second compensation parameter may be modulated to generate a control signal.
[0081] The modulation method adopted in step S403 may be SPWM modulation or SVPWM modulation, etc. This application does not limit the modulation method adopted in step S403.
[0082] In summary, by executing steps S401 to S403 , the control signal can be determined according to the second sampled value, the compensation given parameter, and the second loop control model.
[0083] See also Figure 5 In some embodiments, step S403 includes the following sub-steps:
[0084] Step S501: performing a limiting process on the second compensation parameter to obtain a target compensation parameter.
[0085] In some embodiments, the second compensation parameter can be clipped based on the compensation parameter upper limit and the compensation parameter lower limit. For example, when the second compensation parameter is greater than or equal to the compensation parameter lower limit and less than or equal to the compensation parameter upper limit, the target compensation parameter is the second compensation parameter; when the second compensation parameter is less than the compensation parameter lower limit, the target compensation parameter is the compensation parameter lower limit; and when the second compensation parameter is greater than the compensation parameter upper limit, the target compensation parameter is the compensation parameter upper limit. In other embodiments, clipping can also be implemented based on other methods, and this application does not limit the specific method for implementing clipping.
[0086] In this way, the limit processing in step S501 can reduce the probability that the second compensation parameter causes overshoot during the control process of the power circuit 10 .
[0087] Step S502: Generate a control signal according to the target compensation parameter.
[0088] It is understood that the target compensation parameter can be used as a modulation parameter output by the second loop control model, or the target compensation parameter can be input into another control loop in the second loop control model to output a modulation parameter, thereby performing modulation based on the modulation parameter obtained based on the target compensation parameter in step S502 to generate a control signal. This application does not limit the specific execution method of generating the control signal based on the target compensation parameter in step S502.
[0089] See also Figure 6 In some other embodiments, step S403 includes the following sub-steps:
[0090] Step S601: Obtain a third compensation parameter output by a preset control loop.
[0091] The preset control loop may be another control loop provided in the second loop control model for controlling the power circuit 10. For example, the preset control loop may include at least one of a current loop, a power loop, a bus voltage control loop, and an output voltage control loop.
[0092] For example, in some embodiments, step S601 may include: respectively obtaining a third compensation parameter output by each preset control loop.
[0093] Step S602: Determine a target compensation parameter according to the second compensation parameter and each third compensation parameter.
[0094] In step S602, a target compensation parameter may be determined based on the second compensation parameter and each third compensation parameter using a preset processing method. For example, in some embodiments, the maximum, minimum, or average value of the second compensation parameter and each third compensation parameter may be selected as the target compensation parameter. In other embodiments, a weighted summation process may be performed based on the second compensation parameter and each third compensation parameter to obtain the target compensation parameter. This application does not specifically limit the preset processing method.
[0095] Step S603: Generate a control signal according to the target compensation parameter.
[0096] The specific execution process of step S603 is roughly the same as the specific execution process of step S502. This application does not limit the specific execution method of generating the control signal according to the target compensation parameter in step S603.
[0097] In this way, by executing steps S601 to S603 , comprehensive control of the power circuit 10 can be achieved based on the control loops in the second control loop model, further improving the control accuracy of the power circuit 10 .
[0098] In some embodiments, step S602 includes:
[0099] The minimum value of the second compensation parameter and each third compensation parameter is selected as the target compensation parameter.
[0100] In this way, each control loop in the second loop control model can be weighed, thereby reducing the probability of overshoot of the relevant control loop in the second loop control model.
[0101] See also Figure 7 In some embodiments, step S502 or step S603 includes the following sub-steps:
[0102] Step S701: Obtain a preset second given parameter.
[0103] The second given parameter and the first given parameter, ie, the compensation given parameter, respectively represent given values of different types of sample values.
[0104] Step S702: Determine a target given parameter according to the second given parameter and the target compensation parameter.
[0105] In step S702, the second given parameter is compensated according to the target compensation parameter to achieve the coordinated adjustment of the second given parameter by the compensation loop and each preset control loop in the second loop control model, so that when the power circuit 10 is controlled according to the second given parameter, each control loop in the second loop control model can be weighed.
[0106] For example, in some embodiments, the sum of the second given parameter and the target compensation parameter may be calculated as the target given parameter. In other embodiments, the target given parameter may be determined based on the second given parameter and the target compensation parameter using other calculation methods. This is not specifically limited herein.
[0107] Step S703: when a third sampling value outputted by the third sampling circuit is obtained, a control signal is determined according to a deviation between the target given parameter and the third sampling value, where the third sampling value and the first sampling value are sampling values of different types.
[0108] In step S703, a deviation adjustment may be performed on the deviation between the target given parameter and the third sampled value to output a modulation parameter, thereby modulating the control signal according to the modulation parameter. For example, in some embodiments, a difference between the target given parameter and the third sampled value may be calculated, and the deviation adjustment may be performed on this difference to output the modulation parameter. It is understood that this application does not limit the specific calculation method for determining the control signal based on the deviation between the target given parameter and the third sampled value in step S703.
[0109] In summary, by executing steps S701 to S703 , a control signal can be generated according to the target compensation parameter.
[0110] In some embodiments, the second loop control model may set a corresponding control loop to implement the execution method described in steps S701 to S703.
[0111] Please continue reading Figure 8 , Figure 8 A specific control block diagram of a power circuit control method according to an embodiment of the present application is shown. Figure 8 In the illustrated embodiment, the first sampling circuit 20 and the second sampling circuit 30 are both power sampling circuits. Figure 8 As shown, the control block diagram includes a first loop control model 42 and a second loop control model 45. Figure 8 The specific working process of the power circuit control method is described.
[0112] First, the first subtractor 41 calculates a first deviation value ΔP1 based on the first sampled value P1 and the first given parameter Pref1. Then, in the first loop control model 42, the first PID controller 421 performs deviation adjustment on the first deviation value ΔP1 to obtain a first compensation parameter Pcom1. Next, the first adder 43 calculates a compensation given parameter Pref2 based on the first compensation parameter Pcom1 and the first given parameter Pref1. Then, the second subtractor 44 calculates a second deviation value ΔP2 based on the compensation given parameter Pref2 and the second sampled value P2. In the second loop control model 45, the second PID controller 451 performs deviation adjustment on the second deviation value ΔP2 to obtain a second compensation parameter Pcom2. Then, the first PWM modulator 452 calculates a control signal PWM based on the second compensation parameter Pcom2 and outputs the control signal PWM to the power circuit 10, thereby achieving control of the power circuit 10 that balances control accuracy and response speed.
[0113] See also Figure 9 , Figure 9 A specific control block diagram of a power circuit control method according to another embodiment of the present invention is shown. Figure 9In the illustrated embodiment, the first sampling circuit 20 and the second sampling circuit 30 are both power sampling circuits. Figure 9 and Figure 8 The control block diagram shown is roughly the same, except that Figure 9 The second loop control model 46 is Figure 8 The second loop control model 45 in the control block diagram shown is different. The following only describes the specific workflow of the second loop control model 46. For the specific workflow before the second loop control model 46, please refer to Figure 8 The relevant description in will not be repeated here.
[0114] Specifically, Figure 9 The second loop control model 46 shown includes a compensation loop and a current loop. In the compensation loop, a second PID controller 461 performs deviation adjustment on the second deviation value ΔP2 to obtain a second compensation parameter ΔI1. Then, a limiter 462 performs a limiter process on the second compensation parameter ΔI1 to output a target compensation parameter Iaim. Next, in the current loop, a second adder 463 calculates a target given parameter Iref2 based on the target compensation parameter Iaim and the second given parameter Iref1. Then, a third subtractor 464 calculates a third deviation value ΔI2 based on the target given parameter Iref2 and the third sampled value Ifeed. A third PID controller 465 performs deviation adjustment on the third deviation value ΔI2 to obtain a modulation parameter Pcom3. Then, a second PWM modulator 466 calculates a control signal PWM based on the modulation parameter Pcom3 and outputs the control signal PWM to the power circuit 10, thereby achieving control of the power circuit 10 that balances control accuracy and response speed.
[0115] Please continue reading Figure 10 , Figure 10 A specific control block diagram of a power circuit control method according to another embodiment of the present invention is shown. Figure 10 In the illustrated embodiment, the first sampling circuit 20 and the second sampling circuit 30 are both power sampling circuits. Figure 10 and Figure 8 The control block diagram shown is roughly the same, except that Figure 10 The second loop control model 47 is Figure 8 The second loop control model 45 in the control block diagram shown is different. The following only describes the specific workflow of the second loop control model 47. For the specific workflow before the second loop control model 47, please refer to Figure 8 The relevant description in will not be repeated here.
[0116] Specifically, Figure 10The second loop control model 47 shown includes a compensation loop, a bus voltage control loop 472, an output voltage control loop 473, and a current loop. The compensation loop includes a second PID controller 471. As can be understood, the second PID controller 471 performs deviation adjustment on the second deviation value ΔP2 to obtain a second compensation parameter ΔI1. The bus voltage control loop 472 and the output voltage control loop 473 then output third compensation parameters ΔI2 and ΔI3, respectively. Next, the loop output minimizer 474 minimizes the second, third, and third compensation parameters ΔI1, ΔI2, and ΔI3 to output the target compensation parameter Iaim.
[0117] Figure 10 The specific working process of the current loop shown is similar to Figure 9 The specific working process of the current loop shown is roughly the same and will not be repeated here. Figure 10 The control block diagram shown can also realize control of the power circuit 10 with both control accuracy and response speed.
[0118] It is understandable that the first PID controller 421, the second PID controller 461 / 471 and the third PID controller 465 / 477 mentioned above are based on existing controllers in the relevant technology, such as PID controllers (proportional integral differential controllers). In other embodiments, other controllers such as PI controllers (proportional integral controllers), repetitive controllers, etc. may also be used, and this application does not limit this. Correspondingly, the deviation adjustment algorithm may also be a PID adjustment algorithm (Proportion Integration Differentiation control, proportional integral differential adjustment), a PI adjustment algorithm (proportional integral control, proportional integral adjustment), etc., and of course, other adjustment algorithms may also be used.
[0119] Understandably, Figures 8 to 10 The control process of the control block diagram shown can be implemented by the inverter circuit control method provided in the present application, for example, by a computer program stored in the controller 40, and the specific implementation details are not repeated here.
[0120] I understand. Figures 8 to 10 , the execution frequency of the first loop control model 42 is lower than the execution frequency of the second loop control models 45 / 46 / 47.
[0121] Please refer again Figure 1The present application also provides an electronic device 100, comprising a power circuit 10, a first sampling circuit 20, a second sampling circuit 30, and a controller 40. The power circuit 10 includes a target sampling point. The sampling frequency of the first sampling circuit 20 is lower than the sampling frequency of the second sampling circuit 30. The first sampling circuit 20 and the second sampling circuit 30 are configured to sample the target sampling point to obtain a first sampling value and a second sampling value, respectively. The first sampling value and the second sampling value are of the same type. The controller 40 is configured to execute the power circuit control method described in any of the above embodiments.
[0122] The electronic device 100 may be a battery pack, energy storage device, air conditioner, refrigerator, or other device equipped with a power circuit 10. This application does not limit the specific device type of the electronic device 100.
[0123] See also Figure 11 One embodiment of the present application further provides a control device 200 , which is applied to the power circuit 10 or an electronic device integrating the power circuit 10 . Figure 11 The structural block diagram of the control device 200 provided in the embodiment of the present application is schematically shown. Figure 11 As shown, the control device 200 includes:
[0124] The first determining module 210 is configured to determine a first compensation parameter according to a first sampling value, a first given parameter, and a first loop control model when a first sampling value output by the first sampling circuit for sampling a target sampling point is obtained.
[0125] The second determining module 220 is configured to determine a compensation given parameter according to the first given parameter and the first compensation parameter.
[0126] The third determining module 230 is configured to determine a control signal according to the second sampling value, the given compensation parameter, and the second loop control model when obtaining the second sampling value output by the second sampling circuit for sampling the target sampling point, and control the power circuit based on the control signal, wherein the sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit, and the first sampling value and the second sampling value are sampling values of the same type.
[0127] The specific details of the power circuit control method implemented by the control device 200 provided in the embodiment of the present application have been described in detail in the embodiment of the corresponding power circuit control method and will not be repeated here.
[0128] See also Figure 12The present application also provides a computer-readable storage medium 300 on which a computer program 310 is stored. When the computer program 310 is executed by a processor, the power circuit control method in the above technical solution is implemented. The computer-readable storage medium can be a portable compact disc read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device.
[0129] The program product may be implemented in any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0130] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0131] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0132] The program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, and the like, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0133] Furthermore, the above-described figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention and are not intended to be limiting. It is readily understood that the processes illustrated in the above-described figures do not indicate or limit the temporal order of these processes. Furthermore, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.
[0134] The above are only specific embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A power circuit control method, characterized in that: The power circuit includes a target sampling point, and the method includes: When a first sampling value output by the first sampling circuit for sampling the target sampling point is obtained, a first compensation parameter is determined according to the first sampling value, a preset first given parameter, and a first loop control model; Determining a compensation given parameter according to the first given parameter and the first compensation parameter; When a second sampling value output by the second sampling circuit for sampling the target sampling point is obtained, a control signal is determined according to the second sampling value, the given compensation parameter, and a second loop control model, and the power circuit is controlled based on the control signal; The sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit, and the first sampling value and the second sampling value are sampling values of the same type.
2. The method according to claim 1, characterized in that The determining the first compensation parameter according to the first sampled value, a preset first given parameter, and a first loop control model includes: Calculating a first deviation value between the first given parameter and the first sampling value; The first deviation value is input into the first loop control model to obtain the first compensation parameter.
3. The method according to claim 1, characterized in that The determining of the compensation given parameter according to the first given parameter and the first compensation parameter includes: The sum of the first given parameter and the first compensation parameter is calculated as the compensation given parameter.
4. The method according to claim 1, wherein The determining of the control signal according to the second sampled value, the compensation given parameter and the second loop control model includes: Calculating a second deviation value between the compensation given parameter and the second sampling value; inputting the second deviation value into the second loop control model to obtain a second compensation parameter; The control signal is generated according to the second compensation parameter.
5. The method according to claim 4, characterized in that Generating the control signal according to the second compensation parameter includes: performing a limiting process on the second compensation parameter to obtain a target compensation parameter; The control signal is generated according to the target compensation parameter.
6. The method according to claim 4, characterized in that Generating the control signal according to the second compensation parameter includes: Obtaining a third compensation parameter of a preset control loop output; determining a target compensation parameter according to the second compensation parameter and each of the third compensation parameters; The control signal is generated according to the target compensation parameter.
7. The method according to claim 6, characterized in that The determining the target compensation parameter according to the second compensation parameter and each of the third compensation parameters includes: The minimum value of the second compensation parameter and each of the third compensation parameters is selected as the target compensation parameter.
8. The method according to any one of claims 5 to 7, characterized in that Generating the control signal according to the target compensation parameter includes: Get the preset second given parameter; determining a target given parameter according to the second given parameter and the target compensation parameter; When a third sampling value output by the third sampling circuit is obtained, determining the control signal according to a deviation between the target given parameter and the third sampling value; The third sampling value and the first sampling value are sampling values of different types.
9. An electronic device, characterized in that: The electronic device includes a power circuit, a first sampling circuit, a second sampling circuit, and a controller. The power circuit includes a target sampling point. The sampling frequency of the first sampling circuit is lower than the sampling frequency of the second sampling circuit. The first sampling circuit and the second sampling circuit are used to sample the target sampling point to obtain a first sampling value and a second sampling value, respectively. The first sampling value and the second sampling value are sampling values of the same type. The controller is used to execute the power circuit control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a controller, enables the controller to implement the power circuit control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Numerical controller used for DC-DC switching inverter with ultra-high stable switching frequency work
CN101061627A
Reactive compensation optimal adjustment method for traction power supply system
CN110854875A
High-precision large-current DC / DC power supply, adjusting method thereof and storage medium
CN113904548A
Control method of power conversion circuit and related equipment
CN117458868A
Control method, device, circuit and equipment of power conversion circuit
CN117748909A
Cited By
Voltage sampling method, source-load all-in-one machine, device, equipment and medium
CN121231841A