Calculation method and calculation device for input voltage of power factor correction circuit
By obtaining the actual input current and the input voltage at the previous moment in the power factor correction circuit, calculating the analog input current and finally obtaining the input voltage at the current moment, the problem of calculating the input voltage without increasing the hardware cost is solved, and the power factor of the system is improved.
Patent Information
- Application Number
- CN202311236496.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-03-25
AI Technical Summary
In power factor correction circuits, how to quickly and accurately calculate the input voltage without adding additional hardware costs, especially without extra AD sampling circuits.
By obtaining the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment, the analog input current at the current moment is calculated, and finally, based on the actual input current and analog input current, the input voltage at the current moment is calculated.
The rapid and accurate calculation of the input voltage of the power factor correction circuit without the need for additional hardware costs is achieved, thereby improving the power factor of the system.
Smart Images

Figure CN119696296A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a method and device for calculating an input voltage of a power factor correction circuit. Background Art
[0002] The Power Factor Correction (PFC) circuit is a circuit often used in power supplies. The PFC circuit is located after the rectifier circuit and before the filter capacitor. It is used to improve the power factor and EMI (Electromagnetic Interference) indicators of the circuit. At present, the PFC circuit has been widely used in electronic equipment such as the drive system of air conditioners.
[0003] When the PFC circuit is applied to electronic equipment, it is necessary to detect the voltage after the rectification of the rectifier bridge, that is, the input voltage of the PFC circuit, in order to control the current. However, in some solutions, in order to save costs, there is no redundant AD (Analog to Digital) sampling circuit to sample the voltage after the rectification of the rectifier bridge. Therefore, how to obtain the input voltage of the PFC circuit has become a problem that needs to be solved urgently. Summary of the invention
[0004] The present disclosure provides a method and device for calculating the input voltage of a power factor correction circuit. The method can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for calculating an input voltage of a power factor correction circuit is provided, comprising the following steps:
[0006] Obtaining the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment; wherein the current moment and the previous moment are two consecutive moments;
[0007] Calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment;
[0008] The input voltage of the power factor correction circuit at the current moment is calculated based on the actual input current at the current moment and the simulated input current at the current moment.
[0009] In one embodiment of the present disclosure, the step of calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment includes:
[0010] Calculating a voltage difference between the input voltage at the previous moment and the reference voltage;
[0011] Calculating a current obtained by integrating the voltage difference with time as a reference input current at the current moment;
[0012] The product of the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
[0013] In one embodiment of the present disclosure, the step of calculating the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment includes:
[0014] Calculating a current difference between the actual input current at the current moment and the simulated input current at the current moment;
[0015] Calculating a voltage obtained by integrating the current difference with time as a reference input voltage at the current moment;
[0016] The product of the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
[0017] In one embodiment of the present disclosure, the first preset integral coefficient and the second preset integral coefficient are both related to the interval time between two consecutive moments; wherein,
[0018] The first preset integral coefficient is the result obtained by dividing the interval time by the first preset value;
[0019] The second preset integral coefficient is a result obtained by multiplying the interval time by a second preset value;
[0020] The first preset value is smaller than the second preset value.
[0021] According to a second aspect of an embodiment of the present disclosure, a device for calculating an input voltage of a power factor correction circuit is provided, comprising:
[0022] An acquisition module, used to acquire the actual input current of the power factor correction circuit at a current moment and the input voltage at a previous moment; wherein the current moment and the previous moment are two consecutive moments;
[0023] A first calculation module, used for calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment;
[0024] The second calculation module is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment.
[0025] In one embodiment of the present disclosure, when the first calculation module is used to calculate the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment, it includes:
[0026] Calculating a voltage difference between the input voltage at the previous moment and the reference voltage;
[0027] Calculating a current obtained by integrating the voltage difference with time as a reference input current at the current moment;
[0028] The product of the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
[0029] In one embodiment of the present disclosure, the second calculation module is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment, including:
[0030] Calculating a current difference between the actual input current at the current moment and the simulated input current at the current moment;
[0031] Calculating a voltage obtained by integrating the current difference with time as a reference input voltage at the current moment;
[0032] The product of the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
[0033] In one embodiment of the present disclosure, the first preset integral coefficient and the second preset integral coefficient are both related to the interval time between two consecutive moments; wherein,
[0034] The first preset integral coefficient is the result obtained by dividing the interval time by the first preset value;
[0035] The second preset integral coefficient is a result obtained by multiplying the interval time by a second preset value;
[0036] The first preset value is smaller than the second preset value.
[0037] According to the third aspect of an embodiment of the present disclosure, an electronic device is proposed, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method for calculating the input voltage of the power factor correction circuit as described above.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is proposed. When instructions in the storage medium are executed by a processor, the processor is enabled to execute the above-mentioned method for calculating the input voltage of the power factor correction circuit.
[0039] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is proposed, including a computer program, and when the computer program is executed by a processor, the computer program implements the above-mentioned method for calculating the input voltage of the power factor correction circuit.
[0040] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0041] Through the embodiments of the present disclosure, the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment are first obtained, and then the analog input current of the power factor correction circuit at the current moment is calculated based on the input voltage at the previous moment, and finally the input voltage of the power factor correction circuit at the current moment is calculated based on the actual input current at the current moment and the analog input current at the current moment. Therefore, the present disclosure can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0044] Figure 1 is a flow chart of a method for calculating an input voltage of a power factor correction circuit according to an embodiment of the present disclosure;
[0045] Figure 2 4 is a block diagram of a device for calculating the input voltage of a power factor correction circuit according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0046] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0048] The following describes a method and device for calculating the input voltage of a power factor correction circuit according to an embodiment of the present disclosure with reference to the accompanying drawings.
[0049] Figure 1 is a flow chart of a method for calculating input voltage of a power factor correction circuit according to an embodiment of the present disclosure.
[0050] It should be noted that the executor of the method for calculating the input voltage of the power factor correction circuit in the embodiment of the present disclosure is a device for calculating the input voltage of the power factor correction circuit. The device for calculating the input voltage of the power factor correction circuit can be configured in an electronic device so that the electronic device can perform the function of calculating the input voltage of the power factor correction circuit.
[0051] The electronic device can be arranged in the driving system of the air conditioner, and the driving system is used to drive the compressor to realize the normal operation of the air conditioner and achieve the purpose of adjusting the indoor ambient temperature. The driving system includes a rectifier circuit, a power factor correction circuit and a capacitor, wherein the power factor correction circuit is connected between the rectifier circuit and the capacitor, and the rectifier circuit is used to convert the alternating current input by the power supply into direct current, and provide input voltage and input current for the power factor correction circuit. The function of the power factor correction circuit is to improve the power factor and stabilize the DC bus voltage.
[0052] like Figure 1 As shown, the method for calculating the input voltage of the power factor correction circuit of the embodiment of the present disclosure includes the following steps:
[0053] S1, obtaining the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment; wherein the current moment and the previous moment are two consecutive moments. For example, the interval between the two moments can be set to 0.00005s.
[0054] In step S1, the actual input current of the power factor correction circuit at the current moment can be detected by a current detection circuit arranged at the input end of the power factor correction circuit; the input voltage of the power factor correction circuit at the previous moment is calculated by step S3. It should be noted that the input voltage of the power factor correction circuit at the initial moment is set to 0, and except that the input voltage at the initial moment is 0, the input voltage at other moments is calculated by step S3.
[0055] S2, based on the input voltage at the previous moment, calculate and obtain the analog input current of the power factor correction circuit at the current moment.
[0056] The implementation process of step S2 may be as follows:
[0057] First, the voltage difference between the input voltage at the previous moment and the reference voltage is calculated, and then the current obtained by integrating the voltage difference over time is calculated as the reference input current at the current moment. Then, the product between the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
[0058] The calculation process of step S2 can be described by the following formula (1):
[0059] i s1 =A*∫(V inEst -V ref ) (1)
[0060] Among them, i s1 is the analog input current at the current moment, A is the first preset integral coefficient, V inEst is the input voltage at the previous moment, V ref is the reference voltage.
[0061] S3, calculating the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment.
[0062] It can be understood that since the calculated analog input current at the current moment has a certain error compared with the actual input current at the current moment, the error needs to be corrected so that the error between the analog input current at the current moment and the actual input current at the current moment approaches 0, so that the calculated input voltage of the power factor correction circuit at the current moment continues to approach the actual input voltage.
[0063] The implementation process of step S3 may be as follows:
[0064] First, the current difference between the actual input current at the current moment and the simulated input current at the current moment is calculated, and then the voltage obtained by integrating the current difference with time is calculated as the reference input voltage at the current moment. After that, the product between the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
[0065] The calculation process of step S3 can be described by the following formula (2):
[0066] V in =B*∫(i s -i s1 ) (2)
[0067] Among them, V in is the input voltage at the current moment, B is the second preset integral coefficient, i s is the actual input current at the current moment, i s1 It is the analog input current at the current moment.
[0068] The first preset integral coefficient A in the above formula (1) and the second preset integral coefficient B in the formula (2) are both related to the interval time T between two consecutive moments; wherein,
[0069] The first preset integral coefficient A is the result obtained by dividing the interval time T by the first preset value L;
[0070] The second preset integral coefficient B is the result obtained by multiplying the interval time T by the second preset value L1;
[0071] The first preset value L is smaller than the second preset value L1.
[0072] As a preferred embodiment, the interval time T = 0.00005s, the first preset value L = 0.00016, the second preset value L1 = 23040, and the reference voltage V ref =192. Then it can be calculated that the first preset integral coefficient A=0.315 and the second preset integral coefficient B=1.152.
[0073] In summary, the method for calculating the input voltage of the power factor correction circuit of the embodiment of the present disclosure first obtains the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment, then calculates the analog input current of the power factor correction circuit at the current moment based on the input voltage at the previous moment, and finally calculates the input voltage of the power factor correction circuit at the current moment based on the actual input current at the current moment and the analog input current at the current moment. As a result, the method can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0074] Figure 2 4 is a block diagram of a device for calculating the input voltage of a power factor correction circuit according to an embodiment of the present disclosure.
[0075] like Figure 2 As shown, the calculation device 200 of the input voltage of the power factor correction circuit according to the embodiment of the present disclosure includes:
[0076] The acquisition module 210 is used to acquire the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment; wherein the current moment and the previous moment are two consecutive moments;
[0077] A first calculation module 220, configured to calculate an analog input current of the power factor correction circuit at a current moment according to an input voltage at a previous moment;
[0078] The second calculation module 230 is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment.
[0079] In one embodiment of the present disclosure, the first calculation module 220 is used to calculate the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment, including:
[0080] Calculate the voltage difference between the input voltage at the previous moment and the reference voltage;
[0081] Calculate the current obtained by integrating the voltage difference over time as the reference input current at the current moment;
[0082] The product of the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
[0083] In one embodiment of the present disclosure, the second calculation module 230 is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment, including:
[0084] Calculate the current difference between the actual input current at the current moment and the simulated input current at the current moment;
[0085] Calculate the voltage obtained by integrating the current difference over time as the reference input voltage at the current moment;
[0086] The product of the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
[0087] In one embodiment of the present disclosure, the first preset integral coefficient and the second preset integral coefficient are both related to the interval time between two consecutive moments; wherein,
[0088] The first preset integral coefficient is the result obtained by dividing the interval time by the first preset value;
[0089] The second preset integral coefficient is the result obtained by multiplying the interval time by the second preset value;
[0090] The first preset value is smaller than the second preset value.
[0091] It should be noted that for details not disclosed in the calculation device for the input voltage of the power factor correction circuit in the embodiment of the present disclosure, please refer to the details disclosed in the calculation method for the input voltage of the power factor correction circuit in the embodiment of the present disclosure, and the details will not be repeated here.
[0092] According to the device for calculating the input voltage of the power factor correction circuit of the embodiment of the present disclosure, the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment are obtained by an acquisition module, the analog input current of the power factor correction circuit at the current moment is calculated based on the input voltage at the previous moment by a first calculation module, and the input voltage of the power factor correction circuit at the current moment is calculated based on the actual input current at the current moment and the analog input current at the current moment by a second calculation module. Thus, the device can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0093] In order to implement the above embodiments, the present disclosure also provides an electronic device.
[0094] The electronic device disclosed in the present invention comprises: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above-mentioned method for calculating the input voltage of the power factor correction circuit.
[0095] The electronic device of the disclosed embodiment, by executing the above-mentioned method for calculating the input voltage of the power factor correction circuit, can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0096] In order to implement the above embodiments, the present disclosure also proposes a computer-readable storage medium.
[0097] When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned method for calculating the input voltage of the power factor correction circuit.
[0098] The computer-readable storage medium of the disclosed embodiment, by executing the above-mentioned method for calculating the input voltage of the power factor correction circuit, can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0099] In order to implement the above embodiments, the present disclosure also provides a computer program product.
[0100] When the computer program product is executed by a processor of an electronic device, the electronic device can execute the above-mentioned method for calculating the input voltage of the power factor correction circuit.
[0101] The computer program product of the disclosed embodiment, by executing the above-mentioned method for calculating the input voltage of the power factor correction circuit, can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0102] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0103] Through the embodiments of the present disclosure, the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment are first obtained, and then the analog input current of the power factor correction circuit at the current moment is calculated based on the input voltage at the previous moment, and finally the input voltage of the power factor correction circuit at the current moment is calculated based on the actual input current at the current moment and the analog input current at the current moment. Therefore, the present disclosure can quickly and accurately calculate the input voltage of the power factor correction circuit at the current moment based on the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment without increasing additional hardware costs, thereby improving the power factor of the system.
[0104] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0105] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0106] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.
[0107] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0108] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0109] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0110] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0111] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.
Claims
1. A method for calculating the input voltage of a power factor correction circuit, characterized in that: The following steps are involved: Obtaining the actual input current of the power factor correction circuit at the current moment and the input voltage at the previous moment; wherein the current moment and the previous moment are two consecutive moments; Calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment; The input voltage of the power factor correction circuit at the current moment is calculated based on the actual input current at the current moment and the simulated input current at the current moment.
2. The method for calculating the input voltage of a power factor correction circuit according to claim 1, characterized in that: The step of calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment includes: Calculating a voltage difference between the input voltage at the previous moment and the reference voltage; Calculating a current obtained by integrating the voltage difference with time as a reference input current at the current moment; The product of the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
3. The method for calculating the input voltage of a power factor correction circuit according to claim 1, characterized in that: The step of calculating the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment comprises: Calculating a current difference between the actual input current at the current moment and the simulated input current at the current moment; Calculating a voltage obtained by integrating the current difference with time as a reference input voltage at the current moment; The product of the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
4. The method for calculating the input voltage of a power factor correction circuit according to claim 2 or 3, characterized in that: The first preset integral coefficient and the second preset integral coefficient are both related to the interval time between two consecutive moments; wherein, The first preset integral coefficient is the result obtained by dividing the interval time by the first preset value; The second preset integral coefficient is a result obtained by multiplying the interval time by a second preset value; The first preset value is smaller than the second preset value.
5. A device for calculating input voltage of a power factor correction circuit, characterized in that: include: An acquisition module, used to acquire the actual input current of the power factor correction circuit at a current moment and the input voltage at a previous moment; wherein the current moment and the previous moment are two consecutive moments; A first calculation module, used for calculating the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment; The second calculation module is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment.
6. The device for calculating the input voltage of a power factor correction circuit according to claim 5, characterized in that: The first calculation module is used to calculate the analog input current of the power factor correction circuit at the current moment according to the input voltage at the previous moment, including: Calculating a voltage difference between the input voltage at the previous moment and the reference voltage; Calculating a current obtained by integrating the voltage difference with time as a reference input current at the current moment; The product of the reference input current at the current moment and the first preset integral coefficient is calculated as the analog input current at the current moment.
7. The device for calculating the input voltage of a power factor correction circuit according to claim 5, characterized in that: The second calculation module is used to calculate the input voltage of the power factor correction circuit at the current moment according to the actual input current at the current moment and the simulated input current at the current moment, including: Calculating a current difference between the actual input current at the current moment and the simulated input current at the current moment; Calculating a voltage obtained by integrating the current difference with time as a reference input voltage at the current moment; The product of the reference input voltage at the current moment and the second preset integral coefficient is calculated as the input voltage at the current moment.
8. The device for calculating the input voltage of a power factor correction circuit according to claim 6 or 7, characterized in that: The first preset integral coefficient and the second preset integral coefficient are both related to the interval time between two consecutive moments; wherein, The first preset integral coefficient is the result obtained by dividing the interval time by the first preset value; The second preset integral coefficient is a result obtained by multiplying the interval time by a second preset value; The first preset value is smaller than the second preset value.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for calculating the input voltage of the power factor correction circuit according to any one of claims 1-4.
10. A computer-readable storage medium, when instructions in the storage medium are executed by a processor, enables the processor to execute the method for calculating the input voltage of a power factor correction circuit as described in any one of claims 1 to 4.