Renewable Energy Towards Smart Grid