Warning! Switching supply is not for beginners, because most of its circuits are connected to fatal mains voltage. When bad design, the mains voltage can reach the output! Capacitors can remain charged to dangerous voltage even after disconnected from mains. Everything you do at your own risk, for any injury to health or property I do not take responsibility.