Electric device for converting AC to DC voltage with switching system. The DC voltage output is stable.