A new method of making electricity from sunlight has just been testedAT THE moment, there are two reliable ways to make electricity from sunlight. You can use a panel of solar cells to create the current directly, by liberating electrons from a semiconducting material such as silicon.