I've played with Arduino projects for a while and I'm starting to create more permanent projects on prototyping board. One of the problems I've run into is the power supply. I would like to power it off 120v mains without an outlet or wall power supply, all on one board. I've searched around the web but no great solutions have presented themselves. My best idea so far is taking the PCB out of a USB wall adapter, but I'm wondering if anyone has any other ideas.
In other words, I'm looking for a way to transform 120v to 5v with minimal parts that are not too expensive and can be easily placed on prototyping board.
In other words, I'm looking for a way to transform 120v to 5v with minimal parts that are not too expensive and can be easily placed on prototyping board.
You won't beat the price of the wall wart just buying the components, those things are made in bulk and they have access to bulk prices.
However the thought of mains electricity being on a bread board fills me with horror, don't do it or put the Darwin awards people on alert.