A power supply is an electrical device that provides electric power to an electrical load. It converts electrical energy from a source (like mains power or a battery) into the correct voltage , current, and frequency to power the load. It supplies energy to various active electronic components that require power, such as operational amplifiers and others.