Seamless switching power supply device and method based on supercapacitor DC backup power supply

By introducing a seamless switching power-continuation device into the supercapacitor DC backup power supply, and using the main control module to control the switching switch and amplification factor, the problem of voltage sag during emergency power-continuation is solved, and stable power supply and control of intelligent control equipment during emergencies are achieved. Accuracy of logical operations.

CN112994215BActive Publication Date: 2024-09-24ANHUI JINGCHEN FUTURE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110173923.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-09
Publication Date
2024-09-24
Estimated Expiration
2041-02-09

AI Technical Summary

Technical Problem

Existing supercapacitor power emergency power supply solutions have millisecond-level U-shaped voltage sags during the emergency power switching process, leading to risks of data loss and misoperation of intelligent control equipment during critical periods.

Method used

Adopts a seamless switching power-continuing device based on supercapacitor DC backup power supply, including direct-connect switch, power resistor, DC/DC boost module, switching switch, intelligent equipment, main control module and sampling circuit, and the switching is controlled in real time through the main control module switch and amplification to ensure uninterrupted power supply of the output voltage during emergency power outage.

Benefits of technology

It achieves gentle switching during the emergency power-up process, avoids voltage sags, ensures the accuracy of logical operation judgments of intelligent control equipment during emergencies, and avoids the risk of operation rejection or misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112994215B
    Figure CN112994215B
Patent Text Reader

Abstract

The present invention discloses a seamless switching power supply device and method based on a supercapacitor DC backup power supply, the device comprises a direct connection switch S1, a power resistor R C , super capacitor C, DC / DC boost module, switch S2, smart device, main control module and sampling circuit, directly connected to one end of switch S1 and power resistor R C One end of each is connected to a DC input power supply, and two outputs of the DC / DC boost module are connected to the smart device through a switching switch S2; the control ends of the direct switch S1 and the switching switch S2 are connected to the IO control pin of the main control module; the DC input power supply is connected to an AD sampling pin of the main control module through a sampling circuit, and the input end of the smart device is connected to another AD sampling pin of the main control module through another sampling circuit; the advantage of the present invention is that seamless switching is achieved during the entire emergency power failure process, and there will be no dangerous process of refusal to operate or misoperation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of emergency power supply of backup power supplies, and more specifically to a seamless switching power supply device and method based on a supercapacitor direct current backup power supply. Background Art

[0002] At present, all fields of society have been developed towards the direction of intelligent automation. Various intelligent control devices running logical control algorithms are distributed as control cores in various intelligent automation application systems. Intelligent control devices are integrated and assembled from multiple different precision control chips. The control chips require DC power supply and have high requirements for the stability of the power supply. During normal operation, the intelligent control device is powered by the power supply of the application system. When the power fails, it is powered by the backup power supply of the system. The backup power supply is usually implemented by a UPS equipped with a battery, which can support the equipment to continue to operate for a period of time after the power failure. The length of time is determined by the configured battery capacity. However, in actual applications, some intelligent devices only need to provide short-term power support of seconds when the power fails, so that the intelligent device can detect the power failure and complete the last step of the operation when the power fails. At the same time, in some systems with dual power supply, during the power switching process, there is also a short power failure gap of seconds due to the action of the switching operation. During this emergency period, in order to ensure the power supply stability of the intelligent control device, it is necessary to configure a short-term emergency power supply support of seconds. Generally, the above-mentioned short-term emergency power supply support technical solutions of seconds are implemented through supercapacitors, because the battery price, installation volume, subsequent battery life and maintenance of UPS make its technical characteristics unsuitable for such emergency power supply occasions.

[0003] At present, the emergency power supply technology solutions provided by supercapacitor power supply basically detect the voltage loss and then put in the capacitor. For example, a 12V24V dual-output emergency starting power supply with supercapacitor disclosed in China Patent Authorization Announcement No. CN106059047B can achieve the purpose of 12V and 24V dual output by simply switching the electrical connection of the battery unit. The supercapacitor connected in parallel with the battery unit has excellent instantaneous large current discharge capacity, which makes the emergency starting power supply have greater emergency starting capacity and convenience, and at the same time improves the service life of the emergency power supply. However, there is a millisecond-level processing process in the process of detecting power failure and putting in the capacitor. During this process, the intelligent control device is in a power-off state, resulting in a U-shaped sag with a time width of milliseconds in the switching process of emergency power supply. The voltage sag causes some voltage-sensitive intelligent control devices to power off and restart. At this time, the intelligent control device is monitoring various key states of this emergency power loss process. The device restart caused by the voltage U-shaped sag will cause the loss of key data in the critical period, thereby affecting the logical operation judgment of the intelligent control device during the emergency switching period, and there will be a dangerous process of refusal to operate or misoperation. Summary of the invention

[0004] The technical problem to be solved by the present invention is that in the prior art supercapacitor power supply emergency power supply scheme, there is a U-shaped dip in the power supply voltage level during the emergency power supply switching process with a time width of milliseconds, resulting in the loss of key data, thereby affecting the logical operation judgment of the intelligent control device during the emergency switching period, resulting in a dangerous process of refusal to operate or misoperation.

[0005] The present invention solves the above technical problems by the following technical means: a seamless switching power supply device based on a supercapacitor DC backup power supply, comprising a direct connection switch S1, a power resistor R C , super capacitor C, DC / DC boost module, switch S2, smart device, main control module and sampling circuit, directly connected to one end of switch S1 and power resistor R C One end of each resistor is connected to the DC input power supply, and the power resistor R C The other end is connected to the input end of the DC / DC boost module. The two outputs of the DC / DC boost module are connected to the smart device through the switch S2. The magnifications of the two outputs of the DC / DC boost module are R f1 and R f2 And R f1 <R f2 ; The other end of the direct switch S1 is connected to the connection line between the smart device and the switching switch S2, and the connection node is defined as point A. The voltage on the connection line between point A and the smart device is the output voltage, and the voltage on the connection line between point A and the switching switch S2 is the follower voltage; the control ends of the direct switch S1 and the switching switch S2 are both connected to the IO control pins of the main control module; the power resistor R C The other end is grounded through a super capacitor C; the DC input power supply is connected to an AD sampling pin of the main control module through a sampling circuit, and the input end of the smart device is connected to another AD sampling pin of the main control module through another sampling circuit;

[0006] When the DC input power supply voltage is on, the control switches S1 on and the direct input voltage is on without exiting the following voltage; when the DC input power supply voltage drops in an emergency, the direct switch S1 is disconnected to cut off the direct input voltage, and the following voltage is replenished in real time by controlling the switching switch S2.

[0007] When the input voltage drops in an emergency power failure, the present invention controls the following voltage, that is, the capacitor boost voltage, to be supplemented in real time, so as to realize uninterrupted and continuous power supply of the output voltage on the time axis. When the DC input power supply voltage is supplied, the control is put into the direct input voltage without exiting the following voltage, thereby realizing seamless switching during the entire emergency power failure process. The switching process of emergency power resumption is smooth, and there is no U-shaped sag in the power resumption voltage level, and there will be no loss of key data, which will not affect the logical operation judgment of the intelligent control device during the emergency switching period, and there will be no dangerous process of refusal to operate or misoperation.

[0008] Furthermore, the model of the main control module is STM32F207VET6.

[0009] Furthermore, the DC / DC boost module includes a chip U2, an anti-reverse diode D1, a resistor R, a resistor R1, a resistor R2 and a switch S2, the IN pin and the SW pin of the chip U2, the anode of the anti-reverse diode D1 and the power resistor R C The cathode of the anti-reverse diode is connected to one end of the resistor R and serves as a follower voltage output end. The other end of the resistor R is respectively connected to the FB pin of the chip U2 and the first terminal of the switching switch. The first terminal of the switching switch is also connected to an IO control pin of the main control module; the second terminal of the switching switch is grounded through the resistor R1, and the third terminal of the switching switch is grounded through the resistor R2.

[0010] Furthermore, the model of the chip U2 is XL6019.

[0011] Furthermore, when the main control module controls the first terminal of the switch to be connected to the second terminal, the output voltage of the DC / DC boost module is V f1 =1.25*(1+R f1 ), when the main control module controls the first terminal of the switch to be connected to the third terminal, the output voltage of the DC / DC boost module is V f2 =1.25*(1+R f2 ), where R f1 =R / R1, R f2 =R / R2 and R f1 <R f2 , so that the output V f1 Less than V f2 .

[0012] Furthermore, the set value of the output voltage of the DC / DC boost module is:

[0013] V f1 =90%V 额

[0014] V f2=95%V 额

[0015] Among them, V 额 is the rated output voltage.

[0016] Furthermore, the sampling circuit includes a voltage-dividing resistor R3, a voltage-dividing resistor R4, an operational amplifier U3 and a current-limiting resistor R5, one end of the resistor R3 is connected to a DC input power supply or an input end of a smart device, the other end of the voltage-dividing resistor R3 is respectively connected to one end of the voltage-dividing resistor R4 and an inverting input end of the operational amplifier U3, the other end of the voltage-dividing resistor R4 is grounded, the in-phase input end of the operational amplifier U3 is connected to the output end of the operational amplifier U3, the output end of the operational amplifier U3 is connected to one end of the current-limiting resistor R5, and the other end of the current-limiting resistor R5 is connected to an AD sampling pin of the main control module.

[0017] Furthermore, the model of the operational amplifier U3 is LM2904.

[0018] The present invention also provides a method for seamlessly switching a power supply device based on a supercapacitor DC backup power supply, the method comprising:

[0019] The main control module samples the input voltage V through input voltage sampling and output voltage sampling. in and output voltage V out , if the input voltage V in Greater than 90% V 额 , it is in normal power supply state, through the output voltage V out Determine which amplification factor is currently being invested, that is, when the output voltage V out Less than 95% V 额 When the IO control pin of the main control module controls the switch S2 to switch the magnification to R f1 , so that the following voltage V 跟随 =V f1 ; When the output voltage V out Greater than 95% V 额 When the IO control pin of the main control module controls the switch S2 to switch the magnification to R f2 , so that the following voltage V 跟随 =V f2 ; where V f1 =90%V 额 , V f2 =95%V 额 , V 额 is the rated output voltage;

[0020] If V in Less than 90% V 额, it is judged that the power supply is lost, and the IO control pin of the main control module controls the disconnection of the direct connection switch S1, cuts off the input voltage, ensures that only the following voltage exists at the output voltage end, and the smart device is powered by the existing current following voltage.

[0021] Furthermore, the main control module presets the IO control pin state during initialization, closes the direct connection switch S1 in advance, and sets the amplification factor to R in the initial state of the circuit. f1 , ensure that at the initial power-on, there is an output voltage when the supercapacitor C is charged and the follow-up voltage output by the DC / DC boost module is less than the output voltage.

[0022] The advantages of the present invention are as follows: when the input voltage drops in an emergency power outage, the present invention controls the following voltage, that is, the capacitor boost voltage, to be supplemented in real time, so as to achieve uninterrupted and continuous power supply of the output voltage on the time axis. When the DC input power supply voltage is supplied, the control is put into the direct input voltage without exiting the following voltage, thereby achieving seamless switching during the entire emergency power outage process. The emergency power supply switching process is smooth, and there is no U-shaped sag in the power supply voltage level, and there will be no loss of key data, which will not affect the logical operation judgment of the intelligent control device during the emergency switching period, and there will be no dangerous process of refusal to operate or misoperation. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a structural block diagram of a seamless switching power supply device based on a supercapacitor DC backup power supply disclosed in an embodiment of the present invention;

[0024] Figure 2 It is a schematic diagram of a DC / DC boost module in a seamless switching power supply device based on a supercapacitor DC backup power supply disclosed in an embodiment of the present invention;

[0025] Figure 3 A schematic diagram of a sampling circuit in a seamless switching power supply device based on a supercapacitor DC backup power supply disclosed in an embodiment of the present invention;

[0026] Figure 4 The present invention discloses a flow chart of a seamless switching and power continuation method based on a supercapacitor DC backup power supply. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] like Figure 1As shown, the seamless switching power supply device based on the supercapacitor DC backup power supply includes a direct connection switch S1, a power resistor R C , super capacitor C, DC / DC boost module, switch S2, smart device, main control module and sampling circuit, the model of the main control module is STM32F207VET6.

[0029] Directly connect one end of switch S1 and power resistor R C One end of each resistor is connected to the DC input power supply, and the power resistor R C The other end is connected to the input end of the DC / DC boost module. The two outputs of the DC / DC boost module are connected to the smart device through the switch S2. The magnifications of the two outputs of the DC / DC boost module are R f1 and R f2 And R f1 <R f2 The other end of the direct switch S1 is connected to the connection line between the smart device and the switching switch S2, and the connection node is defined as point A. The voltage on the connection line between point A and the smart device is the output voltage, and the voltage on the connection line between point A and the switching switch S2 is the following voltage.

[0030] The control ends of the direct switch S1 and the switching switch S2 are connected to the IO control pins of the main control module; the power resistor R C The other end is grounded through a supercapacitor C; the DC input power supply is connected to an AD sampling pin of the main control module through a sampling circuit, and the input end of the smart device is connected to another AD sampling pin of the main control module through another sampling circuit; when the DC input power supply voltage is on, the direct connection switch S1 is controlled to be turned on, and the direct connection input voltage is turned on without exiting the following voltage; when the DC input power supply voltage drops in an emergency power failure, the direct connection switch S1 is disconnected, the direct connection input voltage is cut off, and the following voltage is controlled to be replenished in real time by controlling the switching switch S2.

[0031] like Figure 2 As shown, the DC / DC boost module includes a chip U2, an anti-reverse diode D1, a resistor R, a resistor R1, a resistor R2 and a switch S2. The model of the chip U2 is XL6019. The IN pin, SW pin, anode of the anti-reverse diode D1 and power resistor R C The cathode of the anti-reverse diode is connected to one end of the resistor R and serves as a follower voltage output end. The other end of the resistor R is respectively connected to the FB pin of the chip U2 and the first terminal of the switching switch. The first terminal of the switching switch is also connected to an IO control pin of the main control module; the second terminal of the switching switch is grounded through the resistor R1, and the third terminal of the switching switch is grounded through the resistor R2.

[0032] When the main control module controls the first terminal of the switch to be connected to the second terminal, the output voltage of the DC / DC boost module is V f1 =1.25*(1+R f1 ), when the main control module controls the first terminal of the switch to be connected to the third terminal, the output voltage of the DC / DC boost module is V f2 =1.25*(1+R f2 ), where R f1 =R / R1, R f2 =R / R2 and R f1 <R f2 , so that the output V f1 Less than V f2 .

[0033] The output voltage setting value of the DC / DC boost module is:

[0034] V f1 =90%V 额

[0035] V f2 =95%V 额

[0036] Among them, V 额 is the rated output voltage.

[0037] like Figure 3 As shown, the sampling circuit includes a voltage-dividing resistor R3, a voltage-dividing resistor R4, an operational amplifier U3 and a current-limiting resistor R5, and the model of the operational amplifier U3 is LM2904. One end of the resistor R3 is connected to the input end of the DC input power supply or the intelligent device, the other end of the voltage-dividing resistor R3 is respectively connected to one end of the voltage-dividing resistor R4 and the inverting input end of the operational amplifier U3, the other end of the voltage-dividing resistor R4 is grounded, the in-phase input end of the operational amplifier U3 is connected to the output end of the operational amplifier U3, the output end of the operational amplifier U3 is connected to one end of the current-limiting resistor R5, and the other end of the current-limiting resistor R5 is connected to the AD sampling pin of the main control module.

[0038] The method process of the present invention is described in detail below:

[0039] like Figure 4 As shown, the input voltage in the present invention is a DC voltage, which is converted from the power supply voltage in the system. The system DC voltage is a DC voltage value commonly used in smart devices, 24V, that is, V 额 =24V. Input voltage V in Connect two branches, one of which is directly connected to the output voltage terminal through the direct connection switch S1 controlled by the main control module to provide a direct output voltage; the other is through the charging power resistor R CConnect to supercapacitor C to charge supercapacitor C. The main control module uses the STM32F207VET6 chip commonly used in current embedded system development. The chip has rich IO pins and an internal integrated 12-bit, 0.5us ADC conversion module to meet the DC voltage sampling requirements in the system.

[0040] The voltage of the supercapacitor C is connected to the input end of the DC / DC boost module. The boost magnification of the output end of the DC / DC boost module is determined by the ratio of two resistors. The main control module controls the resistance value of one of the resistors to modify the boost magnification to achieve the change of the output voltage value. The amplification switching principle of the DC / DC boost module is implemented as follows: Figure 2 As shown in the figure, the DC / DC boost module adopts the XL6019 DC boost integrated chip with low ripple and built-in overcurrent protection function. Its wide input voltage range covers the connected supercapacitor voltage V SC The fluctuation of V SC When the voltage changes, the circuit can always complete the boost function. The chip enable EN pin is connected to a high-level power supply to keep the chip powered on. The chip's amplification reference voltage is 1.25V, and the output amplification voltage is:

[0041] V f1 =1.25*(1+R f1 )

[0042] V f2 =1.25*(1+R f2 )

[0043] Where R f1 =R / R1, R f2 =R / R2. At the same time, R f1 <R f2 , so that the output V f1 Less than V f2 , satisfying the subsequent switching switch judgment logic.

[0044] Because when the DC power supply is normal, the smart device can adapt to the fluctuation of the power supply voltage within 10% of its rated voltage, that is, when the power supply voltage fluctuates within this range, it has no effect on the smart device and the smart device can work normally. Therefore, the voltage setting value after boosting in the method provided by the present invention is:

[0045] V f1 =90%V 额

[0046] V f2 =95%V 额

[0047] The main control module samples the input voltage and output voltage connected to the corresponding pin through the AD sampling pin of the built-in AD module, and compares the output voltage with the set threshold voltage limit (95% V 额 and 90% V 额 ), modify the IO control pin output high and low level control switch S2 second terminal and third terminal open / close, to achieve the input of different resistors in the DC / DC boost module. Sampling circuit as Figure 3 The sampling voltage is matched to the appropriate level of the main control module pin through two voltage-dividing resistors, and the circuit isolation, following and impedance matching are realized through the operational amplifier integrated chip LM2904.

[0048] When the input voltage is normally supplied, the main control module opens the direct switch S1 through the IO control pin. At this time, the output voltage is provided by the input voltage, that is, V out =V in =V 额 , while the input voltage passes through the current limiting power resistor R C After charging the supercapacitor C, the DC / DC boost module boosts the supercapacitor C voltage to the output terminal according to the current magnification factor and connects it to the output voltage terminal, because the voltage is lower than 95% V 额 During normal power supply, it is not provided to the smart device as the actual output voltage, but only exists at the output end as a follower voltage.

[0049] When the input voltage fluctuates normally, when it fluctuates upward, because the voltage value is definitely greater than the current real-time follower voltage at the output end, there is no need to change it, and the circuit is powered normally. However, when it fluctuates downward, because the fluctuation range may be greater than 5% of the rated output voltage, this will cause the direct output voltage to be less than the current follower voltage. The follower voltage is provided to the smart device as the actual output voltage. When the input voltage is normal, the follower voltage is frequently put into operation due to the fluctuation. Once the follower voltage is put into operation, the energy of the supercapacitor is consumed. Frequent input causes the supercapacitor to charge and discharge frequently, affecting the safety of the circuit. Therefore, when it fluctuates downward, the main control module detects the presence of the input voltage, and at the same time detects that the output voltage fluctuates downward by more than 95%V 额 When V out Greater than 95% V 额 When the IO control pin switches the magnification to R f2 , so that the following voltage V 跟随 =V f2 , because V f2 Equal to 95% V 额 , which is less than the current output voltage Vout , and only exists as a follower voltage output terminal to ensure seamless operation in the event of an emergency power failure.

[0050] The input voltage is lost or fluctuates downward by more than 90% V 额 When the main control module cuts off the direct connection switch S1, because the following voltage always exists, the following voltage is seamlessly powered after switching, and the output voltage value only changes from the direct output voltage value to the following voltage value, without interruption in time continuity, ensuring the continuity of the power supply voltage of the intelligent device connected to the output voltage during the emergency power failure, allowing it to successfully perform emergency function processing during the emergency power supply period. The above process can be summarized as follows: If V in Greater than 90% V 额 , it is in normal power supply state, through the output voltage V out Determine which amplification factor is currently being invested. out Less than 95% V 额 When the IO control pin switches the magnification to R f1 , so that the following voltage V 跟随 =V f1 , because V f1 Equal to 90% V 额 , which is less than the current output voltage V out , only exists at the output end as a follower voltage. in Less than 90% V 额 , it is considered that the power supply is lost, and the direct connection switch S1 is disconnected through the IO pin to cut off the input voltage, ensuring that only the following voltage exists at the output voltage end, and the smart device is powered by the existing current following voltage.

[0051] It should be noted that the main control module presets the IO control pin state during initialization, closes the direct connection switch S1 in advance, and sets the amplification factor to R in the initial state of the circuit. f1 , to ensure that when the power is initially turned on, there is an output voltage when the super capacitor C is charged and the follower voltage output by the DC / DC boost module is less than the output voltage. That is, after initialization, the switch connection magnification R f1 , close the direct-connect switch, and the DC input passes through the power resistor R c Complete the charging of the supercapacitor, V out =V in , V 跟随 =V f1 .

[0052] It should be noted that, see Figure 4 The algorithm of the present invention is to run the detection in a loop all the time. If the program crashes, the hardware watchdog circuit will reset it. Therefore, no ending logic is set in the software algorithm.

[0053] Through the above technical scheme, when the input voltage drops in an emergency power failure, the present invention controls the following voltage, that is, the capacitor boost voltage, to be supplemented in real time, so as to realize uninterrupted and continuous power supply of the output voltage on the time axis. When the DC input power supply voltage is powered, the control is put into the direct input voltage, and there is no need to exit the following voltage, thereby realizing seamless switching during the entire emergency power failure process. The switching process of emergency power resumption is smooth, and there is no U-shaped sag in the power resumption voltage level, and there will be no loss of key data, which will not affect the logical operation judgment of the intelligent control device during the emergency switching period, and there will be no dangerous process of refusal to operate or misoperation.

[0054] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A seamless switching power supply device based on a supercapacitor DC backup power supply, characterized in that: Including direct-connect switch S1, power resistor R C , super capacitor C, DC / DC boost module, switch S2, smart device, main control module and sampling circuit, directly connected to one end of switch S1 and power resistor R C One end of each resistor is connected to the DC input power supply, and the power resistor R C The other end is connected to the input end of the DC / DC boost module. The two outputs of the DC / DC boost module are connected to the smart device through the switch S2. The magnifications of the two outputs of the DC / DC boost module are R f1 and R f2 And R f1 <R f2 ; The other end of the direct switch S1 is connected to the connection line between the smart device and the switching switch S2, and the connection node is defined as point A. The voltage on the connection line between point A and the smart device is the output voltage, and the voltage on the connection line between point A and the switching switch S2 is the follower voltage; the control ends of the direct switch S1 and the switching switch S2 are both connected to the IO control pins of the main control module; the power resistor R C The other end is grounded through a super capacitor C; the DC input power supply is connected to an AD sampling pin of the main control module through a sampling circuit, and the input end of the smart device is connected to another AD sampling pin of the main control module through another sampling circuit; When the DC input power supply voltage is on, the control switches S1 on and the direct input voltage is on, without exiting the following voltage; when the DC input power supply voltage drops due to emergency power failure, the direct switch S1 is disconnected to cut off the direct input voltage, and the following voltage is controlled to be replenished in real time by controlling the switching switch S2; The DC / DC boost module includes a chip U2, an anti-reverse diode D1, a resistor R, a resistor R1, a resistor R2 and a switch S2. The IN pin and the SW pin of the chip U2, the anode of the anti-reverse diode D1 and the power resistor R C The cathode of the anti-reverse diode is connected to one end of the resistor R and serves as the follower voltage output end. The other end of the resistor R is respectively connected to the FB pin of the chip U2 and the first terminal of the switch. The first terminal of the switch is also connected to an IO control pin of the main control module. The second terminal of the switch is grounded through the resistor R1, and the third terminal of the switch is grounded through the resistor R2. When the main control module controls the first terminal of the switch to be connected to the second terminal, the output voltage of the DC / DC boost module is V f1 =1.25*(1+R f1 ), when the main control module controls the first terminal of the switch to be connected to the third terminal, the output voltage of the DC / DC boost module is V f2 =1.25*(1+R f2 ), where R f1 =R / R1, R f2 =R / R2 and R f1 <R f2 , so that the output V f1 Less than V f2 ; The output voltage setting value of the DC / DC boost module is: V f1 =90%V 额 V f2 =95%V 额 Among them, V 额 is the rated output voltage.

2. The seamless switching power supply device based on supercapacitor DC backup power supply according to claim 1 is characterized in that: The model of the main control module is STM32F207VET6.

3. The seamless switching power supply device based on supercapacitor DC backup power supply according to claim 1 is characterized in that: The model of the chip U2 is XL6019.

4. The seamless switching power supply device based on supercapacitor DC backup power supply according to claim 1 is characterized in that: The sampling circuit includes a voltage-dividing resistor R3, a voltage-dividing resistor R4, an operational amplifier U3 and a current-limiting resistor R5. One end of the resistor R3 is connected to a DC input power supply or an input end of a smart device, the other end of the voltage-dividing resistor R3 is respectively connected to one end of the voltage-dividing resistor R4 and an inverting input end of the operational amplifier U3, the other end of the voltage-dividing resistor R4 is grounded, the in-phase input end of the operational amplifier U3 is connected to the output end of the operational amplifier U3, the output end of the operational amplifier U3 is connected to one end of the current-limiting resistor R5, and the other end of the current-limiting resistor R5 is connected to the AD sampling pin of the main control module.

5. The seamless switching power supply device based on supercapacitor DC backup power supply according to claim 4 is characterized in that: The model of the operational amplifier U3 is LM2904.

6. The method for seamlessly switching the power supply device based on the supercapacitor DC backup power supply according to any one of claims 1 to 5, characterized in that: The method comprises: The main control module samples the input voltage V through input voltage sampling and output voltage sampling. in and output voltage V out , if the input voltage V in Greater than 90% V 额 , it is in normal power supply state, through the output voltage V out Determine which amplification factor is currently being invested, that is, when the output voltage V out Less than 95% V 额 When the IO control pin of the main control module controls the switch S2 to switch the magnification to R f1 , so that the following voltage V 跟随 =V f1 ; When the output voltage V out Greater than 95% V 额 When the IO control pin of the main control module controls the switch S2 to switch the magnification to R f2 , so that the following voltage V 跟随 =V f2 ; where V f1 =90%V 额 , V f2 =95%V 额 , V 额 is the rated output voltage; If V in Less than 90% V 额 , it is judged that the power supply is lost, and the IO control pin of the main control module controls the disconnection of the direct connection switch S1, cuts off the input voltage, ensures that only the following voltage exists at the output voltage end, and the smart device is powered by the existing current following voltage.

7. The method for seamlessly switching the power supply device based on the supercapacitor DC backup power supply according to claim 6 is characterized in that: The main control module presets the IO control pin state during initialization, closes the direct connection switch S1 in advance, and sets the amplification factor to R in the initial state of the circuit. f1 , ensure that at the initial power-on, there is an output voltage when the supercapacitor C is charged and the follow-up voltage output by the DC / DC boost module is less than the output voltage.