As a part of electric bicycles, the main function of the BMS is to accurately estimate the remaining capacity of the battery based on real-time detection of its working status, make early predictions for faulty batteries, prevent overcharging and discharging.