Design and Implementation of Power Supply Controller with Different Input Energysources