Battery groups are widely used in production and life. Optimal charging can not only shorten the charge time, but also improve the performance and life of the battery pack. A constant current or constant voltage charging method is commonly used. This type of method cannot adjust the charge capacity in time according to the change of charging capacity of storage battery, and the charge performance is not high. This paper designs a fuzzy PID controller. In the case of variable load and interference, the battery group can still be charged by the optimal charging current. Through the simulation results, the fuzzy PID controller works well and verifies the feasibility of the charging controller.