my dear your idea of using microcontroller is a welcome one but it will seem so difficult but you can try that of ATMELcontroller that has battery capacity OR TRY THIS AT electronics-tele.blogspot.com
walking along the way charging your phone,solar have made everything so easy in power supply ,to design a solar charger,and how it works .check it out here electronics-tele.blogspot.com
HI dont you think that using solar charger/power supply will be a nice one for you. To know how to design a solar charger/power supply at esae visit [ftp=ftp://electronics-tele.blogspot.com]electronics-tele.blogspot.com[/ftp]