PDA

View Full Version : How to integrate that atmega328 into a final project?



SXRguyinMA
09-18-2010, 09:48 AM
What's needed? How does one go about it? Basically I want to make a board for my Tempest SXR project that I can plug the atmega chip onto, that way I can use my Arduino for other projects. I know I'll need an external crystal, but other than that I've got no idea how to go about it

NightrainSrt4
09-18-2010, 11:32 AM
I can't find the schematic at this moment, but iirc you're going to want a preburned atmega, a few capacitors and resistors, external timer, voltage regulator, a 28pin socket, and an led if you want it. Can't remember the exact specs off the top of my head, sorry.

EDIT:Here's a link to how to put together a protoino, which is essentially what you are building. Has all the extra programming stuff stripped and is only the basics (caps, chip, resistors, timer, vreg, etc) (http://www.spikenzielabs.com/SpikenzieLabs/Prototino.html)

SXRguyinMA
09-18-2010, 12:06 PM
sweet thanks! I'll be using the atmega328 that's currently in my arduino in project Tempest SXR, but I want the arduino board to do more projects with, and pick up another pre-burned atmega328 to mess with, that way my arduino it's held hostage in my computer lol

SXRguyinMA
09-18-2010, 12:42 PM
after looking over that site it's a neat idea, but for $24 I can buy a whole separate arduino off ebay lol

If I can find out what components I need and how to hook them up I can solder it all to a small PCB (or try etching my own) and do it that way

NightrainSrt4
09-18-2010, 01:03 PM
I wasn't saying to buy that board. I was just pointing out that it had referenced the parts you would need. What is on that board is everything you'd need, even if you were to do it yourself.

Didn't mean to point to that as a purchase, just as a reference for what parts you would need to integrate it yourself.

SXRguyinMA
09-18-2010, 01:58 PM
duh I knew that :facepalm: lol

Oneslowz28
09-19-2010, 06:10 PM
check out the AVR kit from protostack.com

SXRguyinMA
09-20-2010, 09:13 AM
I'll check that out thanks!

SXRguyinMA
09-20-2010, 09:23 AM
I think page 2 of this (http://www.protostack.com/download/Datasheet%20(PB-MC-AVR28-DS-V1.5).pdf) helps out a ton. I just need to find out what pins to connect the sensor and servo to now. thanks!

Oneslowz28
09-20-2010, 07:00 PM
Ask and ye shall receive http://arduino.cc/en/Hacking/Atmega168Hardware

SXRguyinMA
09-20-2010, 11:49 PM
you rock! I'm assuming that's the same for the 328....I can't seem to find a page on that though :D

Oneslowz28
09-21-2010, 05:46 PM
I am 99.9% positive the 128 and 328 are pin for pin the same. Its the flash that's different.

crenn
09-22-2010, 06:03 PM
168 and 328 are the same except for the flash size. They're listed in the same reference manual.