Battery blocks of photovoltaic panels