How Do Solar Panels Generate Electricity? PV solar panels generate direct current (DC) electricity. With DC electricity, electrons flow in one direction around a circuit. This example shows a battery powering a light bulb. The electrons move from the negative side of the battery, through the lamp, and return to the positive side of the battery.