How to compensate for the voltage difference of the battery pack