Solar panels are devices that convert sunlight into electricity. They are made up of photovoltaic (PV) cells that absorb sunlight and generate direct current (DC) electricity. An inverter is used to convert this DC electricity into alternating current (AC) electricity, which is usable in homes and businesses.