Charging principle of solar panels