Novice Question - Integrating ATmega328 into circuit

Hi!

I’m Chris, a high school student from Alabama. For the past year or so I’ve dabbled in Arduino circuits, trying to teach myself what I can as I go. After purchasing my first car, a 98 Honda, I decided to take on building a replacement speedometer for it as an Arduino project. Then a friend of mine asked for help with a project of her own, and I ended up volunteering my Duemilanove and never got it back. :roll_eyes:

So now I’m looking at buying another, but my projects tend to be on the small side, and I’d rather not devote an entire Arduino to something. Instead, I’d like to be able to program an ATmega and then remove it and integrate it into it’s own standalone circuit.

Right now, I plan to purchase a Diavolino, a USB interface for it, a spare ATmega328, a 16MHz clock, and a power regulator. Once the first Arduino has a program on it, I’d like to remove it from the Diavolino and use the 16MHz clock and the power regulator to allow it to run on it’s own. Is this the correct direction/idea? Should the Diavolino power regulator work, or do I need the 7805 specifically? There’s a Radioshack near me, so I hope I won’t have to worry about the resistors and caps. :sweat_smile:

I’m looking to spend a little more than the price of a regular Arduino, and then be able to re-use it for the least cost possible by permanently integrating the ATmegas into their own circuits when finished.

I’m taking my plan and list of materials from this manual thing.
Diavolino
USB interface
ATmega328
16MHz Clock
Power Regulator
7805

(Also, this seems to be a pretty nice post editor, but where is the ability to create inline hyperlinks?)
edit Nevermind, I figured it out XD

Sure, you can build up a minimal '328 circuit, add a 7805 & couple of 1uF caps before & after it if you are not running from a 5V wallwart or 3 AA or C batteries.
All the caps, resistor, crystal, socket, can be had inexpensively from www.dipmicro.com with inexpensive shipping as well.

What you propose is sound.

You could get a "Proto Shield" at R.S. and make a dedicated 'using Arduino as ISP' fixture.

Depending how small your projects are, you might consider the ATtiny core that our very own Coding Badly has worked out - you can get ATtiny85s and programme them with Arduino. You can find out a lot about that over in the Microcontrollers section.

Nothing "needs" a 7805 as a 5V source. A regulated 5V source is a regulated 5V source, some are good for more current than others.

I would also get FTDI Basic for downloading sketches http://www.gravitech.us/arliandpropr.html

An AVR ISP for downloading bootloaders is also very convenient http://www.mdfly.com/index.php?main_page=product_info&cPath=5&products_id=415

If you have a Diavalono, then you can run the Optiloader sketch on it for downloading bootloaders into blank parts as well. https://github.com/WestfW/

Awesome, thank you!