Electronic – Switch mode power supply

power supplyswitch-mode-power-supplywall-wart

I am currently using a 5V DC, 1 amp wall wart to my circuit which is on a PCB. The wall wart plugs into the PCB using a barrel jack. All in all, my circuit uses around 300mA and can take between 3.3 and 5V.

However, I am really not a fan of the wall wart. I thought about trying to "hide" it in the enclosure but it doesn't fit well. So I have been looking into alternatives.

I came across the LNK304, LNK305, and LNK306, an "efficient off-line switcher IC that can support , -boost and flyback topologies". It looks promising to me. Specifically, on page 4 of the datasheet there is this picture.

enter image description here

My question is, is this a viable replacement for my wall wart? Is there a better option? What else would I need to get this to 5V, 300mA? Would it be Ok to add the circuit to my PCB (with proper spacing for tracks on the board)? Should I put this in a metal case connected to ground or a plastic case? Is there anything else I should know that would help in making this transition?

If you need more information, let me know. Any information on this would be great. Thanks.

Best Answer

This is not suitable for your project, as it is not isolated. This means that your entire circuit will be potentially at high voltage. You don't actually mention what the circuit is, but I'm assuming it's not of the kind where a non-isolated supply would be acceptable.

You need a supply that uses a transformer, which will isolate your circuit from the mains. If you are not experienced with designing power supplies, I would advise purchasing a ready made module this time round, both for safety and the fact switching supplies are little more complex than linear supplies.
There should be plenty of suitable switching modules around, check Farnell, Mouser, eBay, etc.