we can use of rectifier...
by using solar panels we can convert light energy into d.c current and then by using inverter we can convert d.c current into alternating current