This paper shows the potential of artificial intelligence (AI) in Li-ion battery charging methods by introducing a new charging algorithm based on artificial neural networks (ANNs). The proposed charging algorithm is able to find an optimized charging current profile, through ANNs, considering the real-time conditions of the Li-ion batteries. To test and validate the proposed approach, a low-cost battery management system (BMS) was developed, supporting up to 168 cells in series and n cells in parallel. When compared with the multistage charging algorithm, the proposed charging algorithm revealed a shorter charging time (7.85%) and a smaller temperature increase (32.95%). Thus, the results show that the proposed algorithm based on AI is able to effectively charge and balance batteries and can be regarded as a subject of interest for future research.