Pages: [1]   Go Down
Author Topic: How can I use ATmega328 chip alone?  (Read 3299 times)
0 Members and 1 Guest are viewing this topic.
Norway
Offline Offline
Newbie
*
Karma: 1
Posts: 44
Arduino rocks harder than ever!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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? smiley-wink
Logged

Best regards, Fredrik

Norway
Offline Offline
Newbie
*
Karma: 1
Posts: 44
Arduino rocks harder than ever!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And use my Arduino Duemilanove ase a programmer?
Logged

Best regards, Fredrik

Phoenix, Arizona USA
Online Online
Faraday Member
**
Karma: 42
Posts: 5611
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Rural Arizona
Offline Offline
Edison Member
*
Karma: 7
Posts: 1711
Incorrigible tinkerer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Norway
Offline Offline
Newbie
*
Karma: 1
Posts: 44
Arduino rocks harder than ever!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

Best regards, Fredrik

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 639
Posts: 34726
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 10
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Don't forget the capacitors for the crystal.
Logged

Norway
Offline Offline
Newbie
*
Karma: 1
Posts: 44
Arduino rocks harder than ever!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is a decoupling the same as a capacitor?
Logged

Best regards, Fredrik

Norway
Offline Offline
Newbie
*
Karma: 1
Posts: 44
Arduino rocks harder than ever!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What type of decoupling does i nedd to order? And where can i use a decoupling?
Logged

Best regards, Fredrik

Cumming, GA
Offline Offline
Edison Member
*
Karma: 20
Posts: 1663
Ultimate DIY: Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

« Last Edit: October 23, 2010, 03:29:52 pm by pwillard » Logged

Sydney, Australia
Offline Offline
Full Member
***
Karma: 3
Posts: 230
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Is life really that serious...??!

0
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: