Go Down

Topic: How can I use ATmega328 chip alone? (Read 3 times) previous topic - next topic

KapteinFredrik

Hi. I am wondering how i can use the ATmega328 chip alone, without some Arduino boards. Can this be done by placing a socket to a breadboard, and put the chip into the socket, and just connect power then it will work? ;)
Best regards, Fredrik

KapteinFredrik

And use my Arduino Duemilanove ase a programmer?
Best regards, Fredrik

cr0sh

Quote
Can this be done by placing a socket to a breadboard, and put the chip into the socket, and just connect power then it will work?


More or less; if you want it to continue to work @ 16 MHz, you'll need a few extra parts (crystal & caps, or a resonator). Without the crystal/resonator, you would have to reburn the bootloader and set the fuses to use the internal oscillator (@ 8 MHz, IIRC). Alternatively, you could run it 20 MHz with a different crystal (and different fuse settings).

Note that for anything other than 16 MHz, certain functionality in the Arduino libraries (mostly having to do with the timers) has to be changed to continue to be accurate.
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Ran Talbott

The RBBB is a nice (and cheap) way to build a "minimalist" Arduino for building into custom assemblies or plugging into a breadboard.  Or to make a "programmer board" if you really do want to plug just the chip into a custom design.

Modern Device also has really good prices on ATMega chips pre-programmed with the bootloader.

KapteinFredrik

Thanks for useful answers:)

I don't know which crystal mhz i should use. I want it to work just like my duemilanove  ;D

I dont care about the space the whole thing use, but how reliable it is. This project is for automatic start for a marine diesel engine...
Best regards, Fredrik

Grumpy_Mike

Quote
I don't know which crystal mhz i should use.

You need 16MHz.

Quote
but how reliable it is


Use plenty of decoupling:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

MicrocontrollerGuy

Don't forget the capacitors for the crystal.

KapteinFredrik

is a decoupling the same as a capacitor?
Best regards, Fredrik

KapteinFredrik

What type of decoupling does i nedd to order? And where can i use a decoupling?
Best regards, Fredrik

pwillard

#9
Oct 23, 2010, 10:28 pm Last Edit: Oct 23, 2010, 10:29 pm by pwillard Reason: 1
Decoupling is about taming the POWER feed.  You use the small capacitors, like 0.1uF, to capture spikes and such that occur on the power bus when things change state (Example, you engage a relay)

Sooo, you put decoupling capacitors as close as possible to the pins responsible for powering the AVR Chip.  If there are OTHER IC's in your design... do the same with them.

+5V -------||------->GND   The CAP (shown as a gap) goes across/between/as close as possible to... the SUPPLY pins.


pocketscience

Quote
Recommended: Grumpy_Mike's tutorial:  http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

This is one of the most often quoted links on this forum... and rightfully so.


I like the PicoDuino...

I use it in my breadboard proto's, then move to fully standalone once the project is working.


G.
Is life really that serious...??!

aaroncrum

https://sites.google.com/site/aaroncrum/aloneatmega328

Here is a full tutorial, with video on how to set up an ATMega328 on a breadboard. I have it doing a pin13 blink program.

-Aaron

Go Up