How to configure photovoltaic panels and batteries