Solar panels array connected in series or in parallel