Solar panels collect renewable energy. In the 20th century some used the heat of the sun to make steam for a steam engine to turn a generator. Nowadays producing electricity from the sun's light is cheaper. This is a solid state way of producing electricity, meaning that it has no moving parts. 