How to limit battery charge voltage and current

It is better to follow @amarok’s suggestion.