How to connect batteries in series with photovoltaic panels