A bi-directional DC-DC conversion circuit is designed by using a non-isolated Buck-Boost circuit as a main circuit, using synchronous rectification technology with STM32F103ZET6 microcontroller core in this paper. The use of software compensation networks, digital calibration technology and PID control algorithm enables the sys- tem control and grants high accuracy. Battery charge and discharge mode has high efficiency and can automatically switch. The entire system structure is simple, the man-meachin...