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.
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.