To harness the power of the sun and generate electricity, a photovoltaic system is required. This system uses solar cells to capture the sun’s rays and convert them into direct current. This direct current is then sent to an inverter where it is converted into alternating current (electric current).