Making a simple AC/DC power supply

I must acknowledge: pepe34 has been trying to tell us this since the first reply to the OP. I didn't realize that is what he was trying to explain until just now.