Pages: [1] 2   Go Down
Author Topic: Sparkfun has the Atmega328 in stock  (Read 1195 times)
0 Members and 1 Guest are viewing this topic.
Netherlands
Offline Offline
Sr. Member
****
Karma: 0
Posts: 414
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Like the title says: http://www.sparkfun.com
Logged

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

I know this is probably a dumb question... Can you put the Arduino bootloader on the ATMega328 and plug it into an Arduino board?

(Laugh away please... I am quite skilled in Analog electronics.)

Jules
Logged

Great things can be done when there is no reason to do them except because you feel like it...

Connecticut, US
Offline Offline
Edison Member
*
Karma: 2
Posts: 1036
Whatduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The bootloader code must be different, to account for the change in memory configuration, and the compiler must be told to compile your sketches with this in mind, but essentially, yes.  Shortly, the new Arduino IDE 0013 will support the new chip as an alternate.
Logged

Boston, MA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1024
wiblocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Can you put the Arduino bootloader on the ATMega328 and plug it into an Arduino board?
I did  smiley-wink

See my bootloader application hint at http://tinyurl.com/5rfmrz

(* jcl *)
Logged


England
Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I know this is probably a dumb question... Can you put the Arduino bootloader on the ATMega328 and plug it into an Arduino board?

Please, someone, tell me if I've got any of this wrong.

First point: The new chip is pin-compatible, so, hardware-wise, upgrading a classic Arduino with a socketed processor is about as easy an upgrade as possible.

BUT -
Second point: Unless you change the definitions in the development environment, and (at least) the landmarks in the bootloader, then the software can't know that there's more space available, and consequently, even if it would work, it wouldn't work any better.
Third point: It seems that the next release of the Development Environment, release 13, will support the new chip, with an appropriately tweaked bootloader. At that point, those of us that can change a socketed chip (if not much else) will be able to download the new software and swap-up the main chip to enjoy about twice the space for our programs to play in. But for now, its a little more complex than that.
Logged

Boston, MA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1024
wiblocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Points one and two are correct.

For point three you need to get the bootloader on the ATmega328. I use the
ladyada USB-Tiny and a Makefile

It is not much work to get Arduino-0012 to use the ATmega328.

(* jcl *)
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16518
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well to put a clearer picture on it, the 328 has been avalible with a proper Arduino bootloader preinstalled and a patched Arduino Version 11 IDE avalible for downloading. I've been running the 328 for a couple of months now.

http://spiffie.org/know/arduino_328/download.shtml

Lefty
Logged

SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 106
Posts: 6373
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sparkfun and Adafruit are selling mega328s WITH a modified bootloader on them already.  The mega328s first appeared back in Early November, and promptly sold out, to become available AGAIN in January...

(actually, it looks like the Sparkfun 328 is "bare."  oops.)
« Last Edit: January 27, 2009, 10:01:37 pm by westfw » Logged

Connecticut, US
Offline Offline
Edison Member
*
Karma: 2
Posts: 1036
Whatduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would buy some of these loose 328s, but I'm not much for early adoption.  Let someone else find the bootloader/ide bugs.  smiley
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 60
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is required to make it work with a different clock?
Logged


Boston, MA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1024
wiblocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Change AVR_FREQ in the bootloader Makefile.

(* jcl *)
Logged


0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 60
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So is there any side effect to trying to run the arduino with the 328 at 20Mhz?
Logged


0
Offline Offline
God Member
*****
Karma: 0
Posts: 511
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

weird baud rates and timings await you.
« Last Edit: January 30, 2009, 07:08:58 am by dcb » Logged

0
Offline Offline
Faraday Member
**
Karma: 7
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
weird baud rates and timings await you.
Theoretically a correct boards.txt entry will solve that, but I don't think anyone has tested it yet.

I'm tempted, just because I need to populate a new board but I'm out of 16MHz crystals, but happen to have a 20MHz on hand.

-j

Logged

0
Offline Offline
God Member
*****
Karma: 2
Posts: 854
Arduino rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It appears to be $2.66 each when you buy 504 at Digikey.  

So...who's organizing the group buy?  ;D
Logged

Pages: [1] 2   Go Up
Jump to: