How to produce batteries for photovoltaic storage devices