A rectifier is an electrical device which uses 4 diodes to turn an alternating current into a direct current.