While on a larger scale, there may be the right info here: DIY Lithium Battery Balancer and monitoring (BMS)