Author Topic: Arduino uno as ISP  (Read 6498 times)

0 Members and 1 Guest are viewing this topic.

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Arduino uno as ISP
« on: March 28, 2012, 03:49:09 am »
Hi, guys

I've been goggling this for the last few days and can't find any answers.  So here we go.
I have a Arduino uno rev3 (Love It) and I have a ATMEGA328P-PU that came preloaded with the arduino bootloader.
https://www.adafruit.com/products/123
I put the chip in the arduino uno and it worked great but I had to select "DUEMILANOVE with ATMEGA328" as my board to get it to work.

I would like to put the ATMEGA328 on a breadboard and program it with the arduino.
But I don't know how to hook it up.
I've seen this web site http://arduino.cc/en/Tutorial/ArduinoToBreadboard but it said it only works on the Duemilanove and not the uno.  And I'm not sure how that is going to work with my setup.
Thank you all very much
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4208
  • Country: us
Re: Arduino uno as ISP
« Reply #1 on: March 28, 2012, 04:04:27 am »
>> I had to select "DUEMILANOVE with ATMEGA328"
There are several bootloaders for the m328 floating around.  This means that your "chip with bootloader" has a different bootloader (probably "ATmegaBoot" or "AdaBoot") than what ships on the Uno ("optiboot.")

>> I would like to put the ATMEGA328 on a breadboard and program it with the arduino.
With a sketch, or with a new bootloader, or with an arbitrary .hex file and no bootloader?
For the first, you'd need to remove the 328 in your Arduino and jumper over the serial pins (0, 1, Gnd), because you would still be using the bootloader on the chip that was having the sketch "uploaded" to it.
For the latter two, you'd wire up the ISP connections (usually Gnd, 13, 12, 11, and 10 to Gnd, 13, 12, 11, and RESET), following one of the many tutorials on using ArduinoISP.  The "Uno only" problems have mostly been fixed or worked around; it's a matter of disabling the auto-reset on the Arduino...
 

Offline cowboy303Topic starter

  • Regular Contributor
  • *
  • Posts: 82
  • Country: us
Re: Arduino uno as ISP
« Reply #2 on: March 28, 2012, 03:13:03 pm »
>> I had to select "DUEMILANOVE with ATMEGA328"
There are several bootloaders for the m328 floating around.  This means that your "chip with bootloader" has a different bootloader (probably "ATmegaBoot" or "AdaBoot") than what ships on the Uno ("optiboot.")
the website I got it from says AdaBoot.
Quote
>> I would like to put the ATMEGA328 on a breadboard and program it with the arduino.
With a sketch, or with a new bootloader, or with an arbitrary .hex file and no bootloader?
Sorry I should have been more clear.
I would like to upload a sketch to the atmega328 chip as if it were in the arduino it's self.
I think I know how to do it but I would like to make sure. this tells me how to hook up the aduino http://arduino.cc/en/Tutorial/ArduinoToBreadboard
Will it work for the arduino uno or is there extra hardware I need on the reset line?
And what happens to the stuff on digital pins zero and one since those or the ones with with RX and TX on them is it OK to have a led or a switch on them.
Thanks again very much.

 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4208
  • Country: us
Re: Arduino uno as ISP
« Reply #3 on: March 29, 2012, 05:57:33 am »
The second section of that web page ("Uploading Using an Arduino Board") should work with any of the standard bootloaders (Adaboot, AtmegaBoot, or optiboot) in the target cpu on the breadboard.
 

Offline kirill578

  • Newbie
  • Posts: 8
Re: Arduino uno as ISP
« Reply #4 on: March 31, 2012, 11:39:45 am »
The arduino uno has a different boot loader, which resets the chip whenever serial data is sent, or something like that.
You can put 40uF+ Cap across the reset pin and ground, and follow the tutorial http://arduino.cc/en/Tutorial/ArduinoToBreadboard

worked for me
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf