Solar panels produce electricity through PV (photovoltaic) panels, that convert the solar rays they are exposed to into direct current (DC) electricity. They do this by stimulating the electrons of silicon cells in the PV panels, using light photons from the sunlight. These electrons then convert this movement into electricity, which can be channeled into renewable energy in your generator.