Tesladude said:
Ignore that last post, i fixed it..
I am making this for an acquaintance of mine, not producing and selling, but I understand I must still make correct safety procedures.
I do not know why the fuse and switch are switched nor why the transformer should be grounded, I have an idea but honestly do not know, but allas that is the reason I am here, to learn.
So please enlighten me on the reasonings behind these safety precautions.
It's not so much that the transformer should be grounded (most transformers do not offer a place to make an electrical connection to the core material). It's that you should use a 3-prong power plug (at least in the US -- Europe is different I believe), and make a solid mechanical connection from the Earth Ground lead in the power cable to the metal enclosure of your power supply.
The reason is to help protect against single faults of the Hot wiring in your power supply. You absolutely want to guarantee that if there is a single fault, that it cannot cause the metal enclosure to become energized with the Hot voltage. That would present a serious shock hazard to any user of the power supply.
So if there is a single fault in the HOT wiring inside the power supply, and a loose Hot lead makes contact with the metal enclosure, that will blow the Hot entry fuse and open the circuit. That's why the very first place the Hot lead needs to go when entering the power supply is to the fuse, and not to something like a switch before the fuse.
Be sure to wire the fuse so that the Hot end is the end away from the user-accessible end of the fuse enclosure (if you are using a panel-mounted tubular type fuse). Also be sure to use a good wire grommet arrangement to mechanically strain relieve the power cord as it enters your power supply enclosure. The cooling holes that you drill in the top and bottom of your enclosure need to be too small to be able to drop a paperclip into, especially over the AC Mains wiring portion of the power supply. All AC Mains wiring should be totally inaccessible by human hands/fingers when your power supply enclosure is closed up.
There are other safety considerations about shock hazards and fire hazards, but those are the main ones for power supplies powered by the AC Mains (again, in the US where Underwiters Laboratories or UL is the main company where you submit your designs for testing and approval).
If others have some additional safety rules to mention, please chime in. Also, if anybody can speak to variations in this for European safety approvals, that would be helpful.