Disclosure of Invention
The invention aims to solve the technical problem of providing a backup power supply device and a power supply method thereof, wherein the power supply is switched by a plurality of backup batteries without power failure, so that the reliability of the power supply is ensured.
The technical scheme of the invention for solving the technical problems is that the backup power supply device comprises backup batteries, power switches, drivers, backup battery voltage detection circuits, load current detection circuits, mains supply voltage detection circuits and controllers, wherein multiple paths of backup batteries, the power switches, the drivers and the backup battery voltage detection circuits are arranged, the number of the backup batteries is the same as that of the backup battery voltage detection circuits and corresponds to the number of the backup batteries one by one, the number of the backup batteries is the same as that of the power switches and corresponds to the number of the circuits of the drivers one by one, each backup battery is connected with the load power through the corresponding power switch, each power switch is connected with the controller through the corresponding driver, input ends of each backup battery voltage detection circuit are electrically connected with a power supply line between the corresponding backup battery and the corresponding power switch, each backup battery voltage detection circuit is the same as the number of the circuits, the number of the backup battery voltage detection circuits is the same as that of the circuits corresponds to one by one, each backup battery voltage detection circuit is connected with the common power supply line between the load power switch and the input ends of the corresponding power supply line, each backup battery voltage detection circuit is connected with the common power supply line between the load voltage detection circuit and the load power supply line, and the common power supply line is connected with the load voltage detection circuit, and the common power supply line is connected with all the load voltage detection circuits.
Based on the backup power supply device, the invention further provides a power supply method of the backup power supply device.
A power supply method of a backup power supply device, which uses the backup power supply device to supply power, comprises the following steps,
S1, detecting the voltage U1 output by the corresponding backup battery in real time through each backup battery voltage detection circuit, detecting the voltage U2 at two ends of a load in real time through a load voltage detection circuit, detecting the current I flowing into the load in real time through a load current detection circuit, and detecting the mains supply voltage U3 for supplying power to the load in real time through a mains supply voltage detection circuit;
s2, if the mains supply voltage U3 is powered down or the voltage U2 is lower than a first set value, a controller is used for controlling a driver corresponding to a backup battery with the highest voltage U1 to drive a corresponding power switch to be turned on, so that the backup battery with the highest voltage U1 is put into operation;
S3, if the voltage U1 of the backup battery for supplying power to the load is lower than a second set value, selecting another backup battery with the highest voltage U1 from the rest backup batteries, controlling a corresponding driver to drive a corresponding power switch to be turned on through a controller so as to enable the other backup battery with the highest voltage U1 selected from the rest backup batteries to be put into operation, and controlling the corresponding driver to drive the corresponding power switch to be turned off through the controller so as to enable the backup battery which is put into operation previously and has the voltage U1 lower than the second set value to be cut off and put into operation;
S4, when the mains supply voltage U3 is recovered to supply power, the current I flows reversely and the voltage U2 is normal, the input backup battery is charged through the mains supply until the voltage U1 of the input backup battery reaches a third set value and is full, and the corresponding driver is controlled by the controller to drive the corresponding power switch to be turned off, so that the input and full-charged backup battery is cut off and input;
s5, if the voltage U1 of the backup battery is lower than a third set value, charging the backup battery with the lowest voltage U1 until the backup battery is full, and then cutting off the charging;
and S6, repeating the step S5 until all the standby batteries are fully charged.
The backup power supply device and the power supply method thereof have the beneficial effects that the backup power supply device and the power supply method thereof adopt a plurality of backup batteries to switch power supply without power interruption, so that the reliability of power supply is ensured.
Detailed Description
The principles and features of the present invention are described below with reference to the drawings, the examples are illustrated for the purpose of illustrating the invention and are not to be construed as limiting the scope of the invention.
Embodiment one:
As shown in fig. 1, the backup power supply device comprises a backup battery, a power switch, a driver, a backup battery voltage detection circuit, a load current detection circuit, a mains supply voltage detection circuit and a controller, wherein the backup battery, the power switch, the driver and the backup battery voltage detection circuit are all provided with multiple paths, the number of paths of the backup battery and the backup battery voltage detection circuit is the same as that of the power switch and corresponds to that of the backup battery voltage detection circuit one by one, the number of paths of the power switch and the driver is the same as that of the power switch and corresponds to that of the power switch one by one, each path of the backup battery is connected with the load power through the corresponding power switch, the input end of each path of the backup battery voltage detection circuit is connected with a power supply line between the corresponding backup battery and the power switch, the output end of each path of the backup battery voltage detection circuit is connected with the common power supply line between the input end of the power switch and the load circuit, and the input end of the power switch is connected with the common power supply line between the input end of the power switch and the controller, and the input end of the power switch is connected with the common power supply. In this particular embodiment, the backup battery is provided with three ways, and in other embodiments, the backup battery may be provided with two, four, five or more ways.
In this embodiment, there are the following preferred embodiments:
Preferably, as shown in fig. 2, the mains supply voltage detection circuit includes a voltage transformer PT and an operational amplifier A1, two input ends of the voltage transformer PT are respectively connected to a zero line and a live line of the mains supply through a resistor R1 and a resistor R2, two output ends of the voltage transformer PT are respectively connected to a forward input end and a reverse input end of the operational amplifier A1, two anti-parallel diodes D1 and D2 are further connected between two output ends of the voltage transformer PT, a resistor R3 and a capacitor C1 which are connected in parallel are connected between the reverse input end and the output end of the operational amplifier A1, and an output end of the operational amplifier A1 is electrically connected with the controller. In the preferred embodiment, the mains voltage detection circuit in fig. 2 only detects one phase voltage in the mains, and if three phases of voltages are required, three mains voltage detection circuits may be provided. The mains supply voltage detection circuit adopts a voltage transformer and an operational amplifier to convert the mains supply voltage into a signal suitable for being collected by the controller.
Preferably, as shown in fig. 3, the circuit structure of the backup battery voltage detection circuit is the same as that of the load voltage detection circuit, and each circuit structure of the backup battery voltage detection circuit comprises an operational amplifier A2, the homodromous input end and the reverse input end of the operational amplifier A2 are respectively and electrically connected to the positive electrode and the negative electrode of the power supply circuit between the corresponding backup battery and the power switch through a resistor R4 and a resistor R5, the homodromous input end of the operational amplifier A2 is also grounded through a resistor R6 and a capacitor C2 which are mutually connected in parallel, a resistor R7 and a capacitor C3 which are mutually connected in parallel are connected between the reverse input end and the output end of the operational amplifier A2, and the output end of the operational amplifier A2 is electrically connected with the controller through a resistor R8. In the preferred scheme, the backup battery voltage detection circuit adopts resistor voltage division and then adjusts the backup battery voltage into a signal suitable for being collected by the controller through the operational amplifier.
Preferably, the load current detection circuit is specifically a hall current sensor. The load current (direct current signal) is collected by a commercial hall current sensor and transmitted to a controller.
Preferably, the controller is specifically a singlechip of STM32F429VET6 type. The controller is composed of a minimum system of a singlechip and can receive and control other units, the controller in the preferred scheme adopts STM32F429VET6 to integrate ADC (analog to digital converter), can collect and detect power data detected by a backup battery voltage detection circuit, a load current detection circuit and a mains supply voltage detection circuit, and can control a driver to carry out switching operation on a power device of a power switch.
Preferably, the driver is internally integrated with two paths of power device drivers. In the preferred scheme, the driver can adopt a driver of a model 2SC0115T, and the driver receives signals sent by the controller and drives the upper power device and the lower power device of the same group in the power switch to be turned on or turned off.
Preferably, each power switch comprises a plurality of groups of parallel power device groups, each power device group consists of two power devices which are connected in reverse series, the control poles of the two power devices of each power device group in each power switch are respectively and electrically connected with the controller through two power device drivers in the corresponding drivers, one parallel end of all the power device groups in each power switch is electrically connected with the positive pole of the corresponding backup battery, the other parallel end of all the power device groups in each power switch is electrically connected with the positive pole of the load, and the negative pole of the backup battery is electrically connected with the negative pole of the load. In the preferred scheme, two power devices are connected in reverse series to turn on or block the backup power supply from being connected with the load side, the power devices can adopt NMOS (N-channel metal oxide semiconductor) tubes, the model is HY5208, and the temperature rise can be according to the requirementTo determine that the number of the groups of groups,For rated current of the NMOS tube, R DS is the resistance when the NMOS tube is conducted, R BJA is the thermal resistance, when the temperature rise does not meet the actual use condition, a plurality of groups of two NMOS tube groups which are reversely connected in series are connected in parallel to reduce R DS, and in addition, a heat dissipation forced air cooling and water cooling structure can be additionally arranged in the power switch to reduce R BJA so as to meet the temperature rise requirement.
Preferably, each power switch protection circuit comprises an inductor L, the inductor L in each power switch protection circuit is connected in series on the power supply line between the parallel end of all the power device groups in the corresponding power switch and the positive electrode of the load, one end of the inductor L is connected to the negative electrode of the corresponding backup battery through a capacitor C4, and the other end of the inductor L is connected to the negative electrode of the corresponding backup battery through a capacitor C5. In the preferred embodiment, the inductor is used to limit the surge current and protect the power switch.
Preferably, a first hot plug connector is arranged on a power supply line between the positive electrode of each backup battery and a parallel end of all the power device groups in the corresponding power switch; the anodes of the backup batteries are electrically connected to a parallel end of all the power device groups in the power switch through the corresponding first hot plug connectors, second hot plug connectors are arranged on power supply lines between the cathodes of the backup batteries and the cathodes of the loads, and the cathodes of the backup batteries are electrically connected to the cathodes of the loads through the corresponding second hot plug connectors. In the preferred scheme, the first hot plug connector and the second hot plug connector are used for being capable of being replaced and connected with a new backup battery at any time, and replacement is convenient.
Embodiment two:
As shown in fig. 4, a power supply method of a backup power supply device, which uses the backup power supply device to supply power, includes the following steps,
S1, detecting the voltage U1 output by the corresponding backup battery in real time through each backup battery voltage detection circuit, detecting the voltage U2 at two ends of a load in real time through a load voltage detection circuit, detecting the current I flowing into the load in real time through a load current detection circuit, and detecting the mains supply voltage U3 for supplying power to the load in real time through a mains supply voltage detection circuit;
s2, if the mains supply voltage U3 is powered down or the voltage U2 is lower than a first set value, a controller is used for controlling a driver corresponding to a backup battery with the highest voltage U1 to drive a corresponding power switch to be turned on, so that the backup battery with the highest voltage U1 is put into operation;
S3, if the voltage U1 of the backup battery for supplying power to the load is lower than a second set value, selecting another backup battery with the highest voltage U1 from the rest backup batteries, controlling a corresponding driver to drive a corresponding power switch to be turned on through a controller so as to enable the other backup battery with the highest voltage U1 selected from the rest backup batteries to be put into operation, and controlling the corresponding driver to drive the corresponding power switch to be turned off through the controller so as to enable the backup battery which is put into operation previously and has the voltage U1 lower than the second set value to be cut off and put into operation;
S4, when the mains supply voltage U3 is recovered to supply power, the current I flows reversely and the voltage U2 is normal, the input backup battery is charged through the mains supply until the voltage U1 of the input backup battery reaches a third set value and is full, and the corresponding driver is controlled by the controller to drive the corresponding power switch to be turned off, so that the input and full-charged backup battery is cut off and input;
s5, if the voltage U1 of the backup battery is lower than a third set value, charging the backup battery with the lowest voltage U1 until the backup battery is full, and then cutting off the charging;
and S6, repeating the step S5 until all the standby batteries are fully charged.
The standby power supply device and the power supply method thereof adopt the multi-path standby battery to switch power supply without power failure, thereby ensuring the reliability of power supply.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.