How to connect and charge photovoltaic cells