How to share power supply with lithium batteries