Development of a Battery Charging Management Unit for Renewable Power Generation