How to connect solar photovoltaic batteries