Power factor correction control method and device, storage medium and electronic equipment

By collecting and calculating voltage and current values, and using closed-loop control algorithm to generate PWM signals, the problems of untimely response of PFC control loops and insufficient high-frequency harmonic suppression are solved, and more efficient power control and current optimization are achieved.

CN119093725APending Publication Date: 2024-12-06ZHUHAI TAIWEI ELECTRONICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411035813.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing PFC control method does not respond in time when the AC input voltage fluctuates rapidly, and cannot effectively suppress the high-frequency harmonics of the AC current, resulting in low power efficiency and waste of energy.

Method used

By collecting the input voltage, output voltage and input current values, the duty cycle is calculated using a closed-loop control algorithm, and the PWM signal control switching elements are generated to achieve rapid response to the input voltage and output voltage, and a repeated control link is added to the current loop to suppress High frequency current harmonics.

Benefits of technology

It improves the rapid response ability to input voltage changes, reduces the calculation amount, achieves better voltage loop control, optimizes the total harmonic distortion of the current, and meets the power grid's iTHD <5% regulation for electrical appliances.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119093725A_ABST
    Figure CN119093725A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a power factor correction control method and device, a storage medium and electronic equipment, and relates to the field of power supply control. According to the invention, quick response to changes of the input voltage and the output voltage can be realized through a result calculated through a boost calculation formula, the problem of low voltage loop response bandwidth in a traditional PFC control loop is solved, and input voltage feed-forward calculation in the traditional PFC control loop is omitted. And better and faster voltage loop control can be realized with less calculation amount. By adding a repetitive control link in a current loop, high-frequency current harmonics can be better suppressed, and the total harmonic distortion of the current is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of power supply control, and in particular to a power factor correction control method, device, storage medium and electronic equipment. Background Art

[0002] PFC (power factor correction) technology is a technology used to improve power efficiency and reduce energy waste. Its main purpose is to improve the power factor by correcting the current waveform, thereby reducing energy waste and electromagnetic interference. Existing PFC control methods usually use a dual loop of voltage loop and current loop for control, and the control loop is a PI controller. Due to the bandwidth limitation of the voltage loop PI controller, there is a problem that the control loop cannot track quickly when the AC input voltage fluctuates rapidly. And due to the bandwidth limitation of the current loop PI controller, the high-frequency harmonics of the AC current cannot be controlled, and the suppression of the current iTHD is limited. Summary of the invention

[0003] The embodiments of the present application provide a power factor correction control method, device, storage medium and electronic device, which can solve the problem in the prior art that the control fails to follow the rapid change of AC voltage in a timely manner, and solves the problem that the high-order harmonics of AC current cannot be suppressed. The technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a power factor correction control method, the method comprising:

[0005] Collect input voltage value Vac, output voltage value Vout and input current value I_ac;

[0006] Calculating a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout;

[0007] Calculating a voltage error value Verr between the reference voltage value Vref and the output voltage value Vout, and calculating the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out;

[0008] Calculating an input voltage effective value Vac_rms according to the input voltage value Vac, and calculating a first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms;

[0009] Repeated calculation is performed according to the first reference current value I_ref1 and the output current value I_ac to obtain I_rc;

[0010] Sum the first reference current values ​​I_ref1 and I_rc and calculate a second reference current value I_ref2;

[0011] Calculating a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculating the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2;

[0012] The first duty cycle and the second duty cycle are added to obtain a target duty cycle Duty, a PWM signal is generated according to the target duty cycle Duty, and the PWM signal is used to control the switching element to be turned off or on.

[0013] In a second aspect, an embodiment of the present application provides a power factor correction control device, the device comprising:

[0014] A collection unit, used for collecting an input voltage value Vac, an output voltage value Vout and an input current value I_ac;

[0015] A calculation unit, configured to calculate a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout;

[0016] A control unit, configured to calculate a voltage error value Verr between the reference voltage value Vref and the output voltage value Vout, and to calculate the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out;

[0017] The calculation unit is further used to calculate an input voltage effective value Vac_rms according to the input voltage value Vac, and to calculate a first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms;

[0018] The calculation unit is further used to repeatedly calculate I_rc according to the first reference current value I_ref1 and the output current value I_ac;

[0019] The calculation unit is further used to sum the first reference current values ​​I_ref1 and I_rc to obtain a second reference current value I_ref2;

[0020] The control unit is further configured to calculate a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculate the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2;

[0021] A generating unit is used to add the first duty cycle and the second duty cycle to obtain a target duty cycle Duty, generate a PWM signal according to the target duty cycle Duty, and use the PWM signal to control the switching element to be turned off or on.

[0022] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0023] In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0024] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0025] The result calculated by the boost calculation formula can achieve a fast response to changes in input voltage and output voltage, solving the problem of low voltage loop response bandwidth in the traditional PFC control loop and eliminating the input voltage feedforward calculation in the traditional PFC control loop. Better and faster voltage loop control can be achieved with less calculation. By adding repeated control links in the current loop, high-frequency current harmonics can be better suppressed and the total harmonic distortion of the current can be optimized. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;

[0028] Figure 2 It is a flow chart of a power factor correction control method provided in an embodiment of the present application;

[0029] Figure 3 is a schematic diagram of the principle of calculating the first duty cycle provided in an embodiment of the present application;

[0030] Figure 4 is a schematic diagram of the principle of calculating I_ref1 provided in an embodiment of the present application;

[0031] Figure 5 Schematic diagram of the principle of calculating I_rc provided in an embodiment of the present application;

[0032] Figure 6 is a schematic diagram of the principle of calculating the second duty cycle provided in an embodiment of the present application;

[0033] Figure 7It is a structural schematic diagram of a power factor correction control device provided by the present application;

[0034] Figure 8 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0036] It should be noted that the power factor correction control method provided in the present application is generally executed by an electronic device, and accordingly, the power factor correction control device is generally arranged in the electronic device.

[0037] like Figure 1 The AC-DC circuit shown in the figure consists of two parts. The first part is the power circuit, which is a boost circuit. The AC input is rectified by the rectifier bridge and then passes through the inductor L1. The rear end of L1 is connected to the ground by the fast switching tube MOSFET. When the MOSFET is short-circuited, the inductor is charged. When the MOSFET is open-circuited, the power stored in the inductor is released to the output capacitor C1 and the output load R1 through D2. The second part is the power factor correction control device ( Figure 1 The device first collects the input voltage value Vac, the output voltage value Vout and the input current value I_ac, and the input voltage and output voltage are calculated at a frequency of 10KHz according to the boost formula. Because the voltage sampling has a large filter capacitor and the calculation frequency is low, the current harmonics of the duty cycle control calculated only by this formula will be very large and cannot meet the grid's regulations on electrical appliances iTHD < 5%.

[0038] See also Figure 2 , which is a flow chart of a power factor correction control method provided in an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:

[0039] S201 , collecting input voltage value Vac, output voltage value Vout and input current value I_ac.

[0040] Among them, the input voltage value Vac(n) at the current moment is collected at the output port of the rectifier bridge, and the input current value I_ac(n) at the current moment is collected on the inductor, and the output voltage value Vout(n) at the current moment is collected at the output port. The collection frequency of the above three parameter values ​​can be determined according to actual needs, for example: the above three parameter values ​​are collected at a frequency of 10KHz. The collection process includes: first collecting analog values, and then using ADC to convert the analog values ​​into digital values. n represents the timestamp or the serial number of the sampling moment.

[0041] S202 : Calculate a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout.

[0042] Among them, the processor reads the output voltage value Vrect(n) of the rectifier bridge and the final output voltage value Vout(n) of the AC-DC circuit through the ADC. Analyze the internal structure of the AC-DC circuit, especially the circuit from the rectifier bridge to the final output voltage, including filter capacitors, voltage stabilization circuits (such as linear regulators or switching regulators), etc. The power supply uses a PWM-controlled switching regulator, and the duty cycle will directly affect the output voltage. A higher duty cycle usually means that the switching element is turned on for a longer time in a given cycle, which may cause the output voltage to rise.

[0043] Optional, see Figure 3 As shown, the AC-DC circuit includes a boost circuit, and the first duty cycle Duty1(n)=(Vout(n)-Vac(n)) / Vout(n) is calculated using a boost formula at a frequency of 10 KHz.

[0044] S203 , calculating a voltage error value Verr between a reference voltage value Vref and an output voltage value Vout, and calculating the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out.

[0045] Among them, the processor obtains the preset reference voltage value Vref(n) from the memory (this value can be fixed or dynamically adjusted). The processor calculates the voltage error value Verr(n), and the calculation formula is Verr(n) = Vref(n)-Vout(n). This difference represents the difference between the current output voltage and the expected output voltage. Select the appropriate closed-loop control algorithm according to system requirements, such as proportional-integral-differential (PID) controller, proportional (P) controller, proportional-integral (PI) controller, etc.

[0046] Algorithm parameters: Determine the parameters of the control algorithm, such as proportional gain (Kp), integral gain (Ki), differential gain (Kd), etc. (if a PID controller is used). Calculate the control output: Take the voltage error value Verr(n) as input and apply the selected closed-loop control algorithm to calculate and obtain the control output value. This control output value will be used to adjust the output voltage of the circuit or system to reduce the voltage error. Based on the output of the closed-loop control algorithm, the processor calculates the voltage loop output voltage value Vloop_out(n).

[0047] For further information, see Figure 3As shown in the operation process diagram, when the closed-loop control algorithm is the proportional integral (PI) algorithm, the process of calculating Vloop_out(n) involves the accumulation (integration) of the voltage error Verr(n) and the proportional adjustment of the current error. The PI algorithm combines the proportional (P) and integral (I) control strategies to more accurately control the output voltage.

[0048] First, define the two key parameters of the PI controller: proportional gain (Kp) and integral gain (Ki). These parameters need to be adjusted according to the specific characteristics and requirements of the system.

[0049] Next, define two variables to track the accumulation of errors:

[0050] The error integral term Ierr(n) represents the accumulation of all errors from the past to the present.

[0051] The last error integral term Ierr(n-1) is used to calculate the current accumulated error.

[0052] Then, calculate Vloop_out(n) as follows:

[0053] Calculate the current error:

[0054] Verr(n)=Vref(n)-Vout(n)

[0055] Update the error integral term:

[0056] Ierr(n)=Ierr(n-1)+Verr(n)*Ts

[0057] Where Ts is the sampling time, i.e. the time interval between two readings of Vout(n). If the system is simulated in the continuous time domain and you are discretizing it, Ts will be the time step of the discretization. If the system is already discrete, Ts can be considered as 1 (or omitted, depending on your implementation).

[0058] Note: In practical applications, to prevent the integral term from growing without limit (especially in the presence of a constant error), a windup or anti-windup mechanism is usually implemented.

[0059] Calculate the output of the PI controller:

[0060] Vloop_out(n)=Kp*Verr(n)+Ki*Ierr(n)

[0061] Here, Kp*Verr(n) is the proportional term, which adjusts the output immediately according to the magnitude of the current error. Ki*Ierr(n) is the integral term, which takes into account the accumulation of past errors and helps to eliminate steady-state errors.

[0062] Application Control Output:

[0063] Vloop_out(n) is converted into an appropriate control signal (such as the duty cycle of the PWM signal, the output voltage of the DAC, etc.) and sent to the external circuit or system to adjust its output voltage.

[0064] Update status:

[0065] Before the next iteration, save the current Ierr(n) value as the Ierr(n-1) value of the next iteration.

[0066] Repeat the process:

[0067] The above steps are repeated continuously to form a closed-loop control loop, which continuously adjusts the output voltage to be close to the reference voltage.

[0068] S204 , calculating the input voltage effective value Vac_rms according to the input voltage value Vac, and calculating the first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms.

[0069] The method for calculating the effective value of the output voltage may be to average multiple historical input voltage values, or to use other methods for calculation.

[0070] S205 , repeatedly calculating according to the first reference current value I_ref1 and the output current value I_ac to obtain I_rc.

[0071] The processor repeatedly calculates the first reference current value I_ref1(n) and the output current value I_ac(n) to obtain I_rc(n). This process involves a variety of control strategies, but the most common one is feedback control, including but not limited to: proportional control, proportional integral control, and PID control.

[0072] For example, see Figure 8As shown, the schematic diagram of the principle of calculating I_rn, the processor reads the current I_ref1(n) and I_ac(n) values, adds them together to obtain Ierr1(n)=I_ref1(n)+I_ac(n). Next, the processor reads or calculates the current Ie(n) value (here it is assumed that Ie(n) has been calculated or initialized in a previous step), and adds it to Ierr1(n) to obtain Ib(n)=Ierr1(n)+Ie(n). The processor applies a low-pass filter to Ib(n) to remove high-frequency noise or fluctuations to obtain a smoothed signal Ic(n). At the same time, the processor maintains a delay buffer to store the historical values ​​of Ic(n). The value k units ago is retrieved from the buffer as Ic(nk). The processor multiplies Ic(nk) by the coefficient α to obtain Id(n)=α*Ic(nk). Next, the processor stores Id(n) in another delay buffer and retrieves the value j units ago from the buffer as Id(nj). Note that j is any positive integer here, and Id(n-4) is specifically mentioned, so in actual operation, j=4 should be ensured or adjusted according to the context. The processor then multiplies Id(nj) (i.e., Id(n-4)) by the coefficient β to obtain Ie(n)=β*Id(n-4). This Ie(n) value will be used to calculate Ib(n) in the next loop iteration.

[0073] In some embodiments of the present application, coefficient α=0.075, coefficient β=7 / 8, k=955, j=4;

[0074] The low-pass filtering of Ib(n) to obtain Ic(n) comprises:

[0075] The low-pass filtering is performed using the formula Ic(n)=0.25*Ib(n)+0.5*Ib(n-1)+0.25*Ib(n-2).

[0076] See also Figure 8 As shown, Ierr1(n) is calculated as: Ierr1(n)=I_ref1(n)+I_ac(n).

[0077] Assuming that Ie(n-1) (or Ie(n) of the previous calculation cycle) is already available, then Ib(n) = Ierr1(n) + Ie(n-1)

[0078] Note: If Ie(n) depends directly on Id(n), you need to calculate Id(n) first (but this is after low-pass filtering), or use an initial Ie(n) value. But according to the steps given, we use Ie(n-1) here first. Use the formula given for low-pass filtering: Ic(n) = 0.25*Ib(n) + 0.5*Ib(n-1) + 0.25*Ib(n-2) This means that you need to maintain the historical values ​​of Ib(n), Ib(n-1) and Ib(n-2). In each iteration, update these values ​​and remove the oldest (Ib(n-2)) from the buffer, while adding the new Ib(n) to the buffer. First, delay Ic(n) by k units to get Ic(nk) (but in this step, Ic(nk) is not actually used directly to calculate Id(n), but is used later for other purposes). But at some point in the control loop, you need to ensure that Ic(nk) is updated. Calculate Id(n) = α * Ic(nk) (but note that if Id(n) is intended to be used directly as a control signal or feedback without delaying it for another j units of time, then Ic(nk) here may not be the most straightforward choice.) If Ie(n) does depend on a delayed version of Id(n), first calculate Id(nj) (here j = 4): store Id(n) in a delay buffer and retrieve Id(n-4) from that buffer. Then, calculate Ie(n) = β * Id(n-4) Output Id(n) (or the system may be I_rc(n) if it is a different control signal) to the system as the control signal. Update all relevant variables and parameters as needed, especially Ie(n), for use in the next calculation cycle. The system adjusts according to the control signal and produces a new output current I_ac(n+1), which will be used to calculate the new error and feedback signals in the next time step.

[0079] S206 , summing the first reference current values ​​I_ref1 and I_rc to obtain a second reference current value I_ref2 .

[0080] Among them, see Figure 6 As shown, the first reference current value I_ref1(n) is added to I_rc(n) to obtain the second reference current value I_ref2(n).

[0081] S207 , calculating a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculating the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2 .

[0082] Among them, see Figure 6As shown, the processor reads the current I_ref2(n) and I_ac(n) values ​​and subtracts them to calculate the current error value: Ierr2(n) = I_ref2(n) - I_ac(n). Here, I_ref2(n) is the desired current value, and I_ac(n) is the actual current value measured. The processor processes Ierr2(n) using the selected closed-loop control algorithm (such as PID control) to calculate a control quantity, which is the second duty cycle Duty2 in this example. PID control algorithm example: The PID control algorithm combines the three control terms of proportion (P), integration (I) and differentiation (D) to calculate the control quantity. The processor will first calculate the output of the PID controller based on Ierr2(n), Ierr2(n-1) (the error value of the previous time step, used to calculate the differential term and possible integral term) and possible other inputs (such as the accumulated value of the integral term). The PID output is usually calculated by the following formula: PID_Output = Kp*Ierr2(n)+Ki*ΣIerr2+Kd*(Ierr2(n)-Ierr2(n-1)), where Kp, Ki, and Kd are the proportional, integral, and differential gains, respectively, and ΣIerr2 is the integrated accumulated value of the error. In this scenario, PID_Output will be mapped or converted to the duty cycle Duty2, which usually involves limiting the PID output to a valid duty cycle range (such as 0% to 100%) and may require linear transformation or lookup table mapping. The processor updates the calculated Duty2 value as the current control signal, which will be used to adjust the duty cycle of the power supply, motor, or other electrical equipment to try to reduce the current error Ierr2(n). The processor continues to monitor the state of the system and re-reads the values ​​of I_ref2(n+1) and I_ac(n+1) in the next time step to calculate the new current error Ierr2(n+1), and repeats the above steps to continuously update Duty2. This process is a closed-loop control cycle that attempts to eliminate errors by constantly comparing reference and actual values ​​and adjusting the control signal. Note that the PID control algorithm described above is only an example, and any closed-loop control algorithm that suits the system requirements can be selected. In addition, the specific calculation method of Duty2 (such as the mapping or conversion of PID output) will also depend on the system design and hardware limitations.

[0083] S208 , adding the first duty cycle Duty1 and the second duty cycle Duty2 to obtain a target duty cycle Duty, generating a PWM signal according to the target duty cycle Duty, and using the PWM signal to control the switching element to be turned off or on.

[0084] The processor first reads or calculates the values ​​of Duty1 and Duty2.

[0085] Then, the two duty cycles are added together to get the target duty cycle Duty. However, it should be noted that the value of the duty cycle must be within the valid range (usually a normalized value of 0% to 100% or 0 to 1). If the sum of Duty1+Duty2 exceeds 1 (or 100%), saturation processing is required, that is, the result is set to 1 (or 100%) to avoid generating an invalid PWM signal. Saturation processing example: Duty = min (Duty1 + Duty2, 1) The processor uses the target duty cycle Duty as input to generate a PWM signal. This usually involves setting a timer or PWM generator whose period (T) is fixed and the high level (or "on" state) time (Ton) is calculated based on Duty, that is, Ton = Duty*T. In each period of the PWM signal, the length of the high level time is determined by Duty, and the low level (or "off" state) time is T-Ton. The frequency (f) of the PWM signal is the inverse of the period, that is, f = 1 / T. The generated PWM signal is connected to the control terminal of the switch element. The high level of the PWM signal turns on the switch element, while the low level turns off the switch element. By adjusting the value of Duty, the proportion of the on-time of the switch element in one cycle can be controlled, thereby controlling the average value of the current or voltage passing through the switch element.

[0086] The embodiments of the present application have the following beneficial effects when performing power factor correction:

[0087] The result calculated by the boost calculation formula can achieve a fast response to changes in input voltage and output voltage, solving the problem of low voltage loop response bandwidth in the traditional PFC control loop and eliminating the input voltage feedforward calculation in the traditional PFC control loop. Better and faster voltage loop control can be achieved with less calculation. By adding repeated control links in the current loop, high-frequency current harmonics can be better suppressed and current THD (total harmonic distortion) can be optimized.

[0088] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0089] See also Figure 7 , which shows a schematic diagram of the structure of a power factor correction control device provided by an exemplary embodiment of the present application, hereinafter referred to as device 7. The device 7 can be implemented as all or part of an electronic device through software, hardware or a combination of both. The device 7 includes: a collection unit 701, a calculation unit 702, a control unit 703, and a generation unit 704.

[0090] The acquisition unit 701 is used to acquire the input voltage value Vac, the output voltage value Vout and the input current value I_ac;

[0091] A calculation unit 702, configured to calculate a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout;

[0092] The control unit 703 is used to calculate the voltage error value Verr between the reference voltage value Vref and the output voltage value Vout, and calculate the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out;

[0093] The calculation unit 702 is further configured to calculate an input voltage effective value Vac_rms according to the input voltage value Vac, and calculate a first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms;

[0094] The calculation unit 702 is further configured to repeatedly calculate I_rc according to the first reference current value I_ref1 and the output current value I_ac;

[0095] The calculation unit 702 is further configured to calculate the first reference current value I_ref1 and I_rc to obtain a second reference current value I_ref2;

[0096] The control unit 703 is further configured to calculate a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculate the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2;

[0097] The generating unit 704 is configured to add the first duty cycle and the second duty cycle to obtain a target duty cycle Duty, generate a PWM signal according to the target duty cycle Duty, and use the PWM signal to control the switching element to be turned off or on.

[0098] In one or more possible embodiments, calculating the first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout includes:

[0099] The first duty cycle Duty1 = (Vout-Vac) / Vout is calculated with a frequency of 10 KHz.

[0100] In one or more possible embodiments, the step of calculating the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out includes:

[0101] The voltage error value is calculated using a proportional-integral algorithm to obtain a voltage loop output voltage value Vloop_out.

[0102] In one or more possible embodiments, the repeatedly calculating I_rc according to the first reference current value I_ref1 and the output current value I_ac includes:

[0103] The first reference current value I_ref1(n) and the output current value I_ac(n) are summed to obtain Ierr1(n);

[0104] The sum of Ierr1(n) and Ie(n) is used to obtain Ib(n);

[0105] Low-pass filter Ib(n) to obtain Ic(n), and delay Ic(n) by k time units to obtain Ic(nk);

[0106] Multiply Ic(nk) by the coefficient α to obtain Id(n), delay Id(n) by j time units to obtain Id(n-4), and multiply Id(n-4) by the coefficient β to obtain Ie(n);

[0107] Multiplying Ic(nk) by the coefficient α yields I_rc(n).

[0108] In one or more possible embodiments, coefficient α=0.075, coefficient β=7 / 8, k=955, j=4;

[0109] The low-pass filtering of Ib(n) to obtain Ic(n) comprises:

[0110] The low-pass filtering is performed using the formula Ic(n)=0.25*Ib(n)+0.5*Ib(n-1)+0.25*Ib(n-2).

[0111] In one or more possible embodiments, the frequency of the input voltage is 50 Hz, the frequency of the voltage after full-wave rectification is 100 Hz, and the voltage loop output voltage value Vloop_out(n) is calculated using a frequency of 100 KHz.

[0112] In one or more possible embodiments, the step of calculating the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2 includes:

[0113] The second duty cycle Duty2 is calculated using a proportional-integral algorithm.

[0114] It should be noted that, when the device 7 provided in the above embodiment executes the power factor correction control method, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above functions. In addition, the power factor correction control device provided in the above embodiment and the power factor correction control method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0115] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0116] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.

[0117] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the power factor correction control method described in the above embodiments.

[0118] See also Figure 8 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 800 may include: at least one processor 801 , at least one communication interface 803 , a memory 804 , and at least one communication bus 802 .

[0119] The communication bus 802 is used to realize the connection and communication between these components.

[0120] The communication interface 803 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0121] Among them, the processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect various parts within the entire electronic device 800, and executes various functions and processes data of the electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804. Optionally, the processor 801 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 801 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 801, and it can be implemented separately through a chip.

[0122] Among them, the memory 804 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 804 includes a non-transitory computer-readable storage medium. The memory 804 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 804 may also be optionally at least one storage device located away from the aforementioned processor 801. As Figure 8 As shown, the memory 804 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.

[0123] exist Figure 8 In the electronic device 800 shown, the processor 801 can be used to call the application stored in the memory 804 and specifically execute the following Figure 2The specific process can be referred to Figure 2 As shown, no further description is given here.

[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0125] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A power factor correction control method, characterized in that: include: Collect input voltage value Vac, output voltage value Vout and input current value I_ac; Calculating a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout; Calculating a voltage error value Verr between the reference voltage value Vref and the output voltage value Vout, and calculating the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out; Calculating an input voltage effective value Vac_rms according to the input voltage value Vac, and calculating a first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms; Repeated calculation is performed according to the first reference current value I_ref1 and the output current value I_ac to obtain I_rc; Sum the first reference current values ​​I_ref1 and I_rc and calculate a second reference current value I_ref2; Calculating a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculating the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2; The first duty cycle and the second duty cycle are added to obtain a target duty cycle Duty, a PWM signal is generated according to the target duty cycle Duty, and the PWM signal is used to control the switching element to be turned off or on.

2. The method according to claim 1, characterized in that: The calculating the first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout includes: The first duty cycle Duty1 = (Vout-Vac) / Vout is calculated with a frequency of 10 KHz.

3. The method according to claim 1 or 2, characterized in that: The method of calculating the voltage error value Verr by using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out includes: The voltage error value is calculated using a proportional-integral algorithm to obtain a voltage loop output voltage value Vloop_out.

4. The method according to claim 3, characterized in that The method of repeatedly calculating the first reference current value I_ref1 and the output current value I_ac to obtain I_rc includes: The first reference current value I_ref1(n) and the output current value I_ac(n) are summed to obtain Ierr1(n); The sum of Ierr1(n) and Ie(n) is used to obtain Ib(n); Low-pass filter Ib(n) to obtain Ic(n), and delay Ic(n) by k time units to obtain Ic(nk); Multiply Ic(nk) by the coefficient α to obtain Id(n), delay Id(n) by j time units to obtain Id(n-4), and multiply Id(n-4) by the coefficient β to obtain Ie(n); Multiplying Ic(nk) by the coefficient α yields I_rc(n).

5. The method according to claim 4, characterized in that Coefficient α = 0.075, coefficient β = 7 / 8, k = 955, j = 4; The low-pass filtering of Ib(n) to obtain Ic(n) comprises: The low-pass filtering is performed using the formula Ic(n)=0.25*Ib(n)+0.5*Ib(n-1)+0.25*Ib(n-2).

6. The method according to claim 4 or 5, characterized in that: The frequency of the input voltage is 50 Hz, the frequency of the voltage after full-wave rectification is 100 Hz, and the voltage loop output voltage value Vloop_out(n) is calculated using a frequency of 100 KHz.

7. The method according to claim 6, characterized in that The method of calculating the current error value Ierr2 by using a closed-loop control algorithm to obtain a second duty cycle Duty2 includes: The second duty cycle Duty2 is calculated using a proportional-integral algorithm.

8. A power factor correction control device, characterized in that: include: A collection unit, used for collecting an input voltage value Vac, an output voltage value Vout and an input current value I_ac; A calculation unit, configured to calculate a first duty cycle Duty1 according to the input voltage value Vac and the output voltage value Vout; A control unit, configured to calculate a voltage error value Verr between the reference voltage value Vref and the output voltage value Vout, and to calculate the voltage error value Verr using a closed-loop control algorithm to obtain a voltage loop output voltage value Vloop_out; The calculation unit is further used to calculate an input voltage effective value Vac_rms according to the input voltage value Vac, and to calculate a first reference current value I_ref1 according to Vloop_out×Vac / Vac_rms; The calculation unit is further used to repeatedly calculate I_rc according to the first reference current value I_ref1 and the output current value I_ac; The calculation unit is further used to sum the first reference current values ​​I_ref1 and I_rc to obtain a second reference current value I_ref2; The control unit is further configured to calculate a current error value Ierr2 between the second reference current I_ref2 and the input current value I_ac, and calculate the current error value Ierr2 using a closed-loop control algorithm to obtain a second duty cycle Duty2; A generating unit is used to add the first duty cycle and the second duty cycle to obtain a target duty cycle Duty, generate a PWM signal according to the target duty cycle Duty, and use the PWM signal to control the switching element to be turned off or on.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Power converter control method and device based on neural network PID, and storage medium

    CN119945104A