Solar energy can be harnessed anywhere via the use of Solar Photovoltaic cells which converts sunlight falling on it directly into electricity. Solar cells are made of semiconducting material. It is basically a p-n junction with 2 halves of silicon, one doped with Boron and the other with Phosphorous, sandwiched together.