Solar panels, also known as PV panels, convert sunlight into electricity. They are made of several solar cells, which are made of layers of silicon, phosphorous, and boron. The cells absorb photons from sunlight, which creates an electric current. The rate at which solar panels generate electricity varies depending on the amount of direct sunlight and the quality, size, number, and location of panels in use.