5V/12V/24V 2A switching power supply for electrical device