Battery Capacity Detection System Principle