Solar photovoltaic panels are used to convert the sun's energy into electricity. A converter is used to convert the electricity from DC to AC electricity. Any excess electricity can be stored in batteries or exported to the electrical grid and sold to the local electrical utility.