i would suggest to research 18650 battery powerwalls with battery management chips. find a couple u-tube channels which discuss this.