Go Down

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


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


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


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.


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


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

You need 16MHz.

but how reliable it is

Use plenty of decoupling:-


Don't forget the capacitors for the crystal.


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


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


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.


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.




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.


Go Up