The principle used to generate electricity from the solar panels is the same as that used to generate electricity from the chemical reaction using a standard battery. The basic working of solar panels depends on the semi conductor property of silicon. The silicon is a unique substance that has revolutionized the way electronic appliances work. This property is used to generate electricity from the solar panels. In order to understand how solar panels work we need to understand how silicon works at an atomic level.