| With development of information technology and modernization, people’s living standards is greatly improved, users increasingly demand for supply reliability. For large-scale event, office buildings and high-rise buildings and other places, once the power supply system suddenly fails, not only the normal social life is disruptted, but also it will result in significant political influence and economic losses. In order to guarantee uninterrupted power supply and maintain social stability, research of emergency power technology is necessary.With the rapid development of modern power electronics technology, emergency power supply technical level has been greatly improved, which ensures the safety and reliability of power supply system. This article introduces emergency power system which is based on the STM32F103 embedded system, firstly it analyses the charge and discharge characteristics and chemical reaction mechanism of lithium iron phosphate, a battery model is built combined with practical application. Secondly, several common battery equalization circuits are analyzed, by comparing its advantages and disadvantages, the lossless equalization circuit structure based on inductor is selected. Then model of lithium iron phosphate, five-stage charging, charging and discharging protection circuit, balancing control circuit, dual power switch module are simulated with matlab/simulink simulation software. And the overall block diagram of a battery management system and emergency power system are designed, the battery management system includes the smallest system, power module, the voltage acquisition module, the current acquisition module, the temperature acquisition module, equalization module, dual power fast switch module, charging and discharging control module. Acquisition module is used for real-time collecting each cell voltage and temperature of battery group, and the current flowing through the entire battery pack; Balancing module is used to judge two batteries who has maximum voltage and minimum voltage, according to the value of the acquired voltage, energy is transferred by inductance, the battery voltage finally reaches agreement; Dual power switch module is used to switch between the main and auxiliary power source within 2ms, achieving uninterrupted power supply: Charge-discharge control module is used to switch charging and discharging circuit of battery pack. Finally, each module of emergency power system will be designed with software. After modeling and simulation of system and actual test of prototype, results show that emergency power system achieves the desired objectives and requirements. |