Atmega328 120 Volt Power

Hello,

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.

Thanks!

http://sound.westhost.com/articles/power-supplies2.htm

Or, do a google image search on "transformerless power supply". Lots of stuff to read up on.

I wired up one of the transformerless power supplies on a breadboard for a prototype and it worked pretty well.

I suggest something like this http://www.digikey.com/product-detail/en/VSK-S1-5U/102-2595-ND/3465373.

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.

Or you can one this 5V 1A Built-in Industrial Power Switching Power Supply Board Module for low cost
http://www.ebay.com/itm/5V-1A-Built-in-Industrial-Power-Switching-Power-Supply-Board-Module-/290908896220?pt=LH_DefaultDomain_0&hash=item43bb857bdc&_uhb=1#ht_2373wt_903

Ok, Solutions: $11 or $2.99 or this for $2.50: http://yourduino.com/sunshop2/index.php?l=product_detail&p=123

The high-volume most common devices are the best buy.

DISCLAIMER: Mentioned stuff from my own shop...

Thanks guys!

They all look like great ideas, and the links are promising.

11$ for the all in one ac/dc converter is probably too much, but the supplies linked to on ebay might be perfect. I'll order some right away!

Thanks again.