Solar panels generate electricity when sunlight strikes photovoltaic (PV) cells, producing direct current (DC) that an inverter converts into AC power for your home or business. When any part of a panel is shaded, the light available to those cells drops and so does the current they.