Basic Principle of Power Supply
Transformer steps down high voltage AC mains to low voltage AC
Rectifier converts AC to DC, but the DC output is varying
Smoothing smoothes the DC from varying greatly to small ripple
Regulator eliminates ripple by setting DC output to a fixed voltage