Arduino uno as ISP - Page 1
Forum section: electronics / beginners

author: cowboy303
author_rank: Regular Contributor
timestamp: March 28, 2012, 03:49:09 am
content: Hi, guysI'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/123I 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 sitehttp://arduino.cc/en/Tutorial/ArduinoToBreadboardbut 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

author: westfw
author_rank: Super Contributor
timestamp: March 28, 2012, 04:04:27 am
content: >> 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...

author: cowboy303
author_rank: Regular Contributor
timestamp: March 28, 2012, 03:13:03 pm
content: Quote from: westfw on March 28, 2012, 04:04:27 amthe website I got it from says AdaBoot.QuoteSorry 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 aduinohttp://arduino.cc/en/Tutorial/ArduinoToBreadboardWill 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.

author: westfw
author_rank: Super Contributor
timestamp: March 29, 2012, 05:57:33 am
content: 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.

author: kirill578
author_rank: Newbie
timestamp: March 31, 2012, 11:39:45 am
content: 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 tutorialhttp://arduino.cc/en/Tutorial/ArduinoToBreadboardworked for me