Step 2: Time to Burn the bootloader

Picture 1: First: select the board you want to upload to. 
Ex. for my Atmega328 chip and an external 16MHz crystal i chose: Arduino Duemilanove or Nano /w Armega 328 ( see pic 1 )

Picture 2:  Goto Tools -> Burn Bootloader -> w/ Arduino as ISP
The board will begin bootloading.

Picture 3: When bootloading is successful you can enjoy your new homemade Arduino.

If you get errors :

1. Make sure you selected the correct board ( Picture 1 )
2. When getting this error:  avrdude: stk500_getsync(): not in sync: resp=0x00
You did not put an 100nF capacitor between +5v and RESET pin on the Arduino Mega 2560
3. IF you still get another error search on google 
4. If you still find no solution goto arduino forum : http://arduino.cc/forum/index.php/board,67.0.html
and post your problem + a link to this instructables.

<p>thanks for the great tutorial! it worked with the blink sketch with an atmega328 on a breadboard... but after uploading, it seemed even my mega got the blink sketch, as the onboard led started blinking. is this suppoesd to happen? or did i do something wrong?</p>
<p>I'm thinking that may be a pre-loaded sketch also written to the device with the bootloader, as mine came up with a 2x 1/2-second blinks, 1 second wait, loop indicator after re-burning my 2560 yesterday. (and seeing a XDRduino (mega2560 R3 Clone) running the same sketch out of the box, err.. Static Bag.)</p>
<p>I'm wondering if the reverse can be done? I.E. reburning the bootloader for a 2560 using an UNO? My 2560 is acting up when I try connecting it to a Linux platform, requiring multiple unplug./reconnect's from the USB cable.. (when attempting to send a sketch to 2560, it remarks that it cannot locate the device, even though I know it's connected.) Also, it requests a weird USB port, other than /dev/ttyUSB0.) the Uno is a R2, (no SDA/SCL pins to the left of Ref).. latest IDE is V1.0.6 (yes, it will load under Linux/Ubuntu-Debian, despite the latest canonical being 1.0 on Ubuntu Software.)</p>
<p>Update, I seem to have figured it out, partially, and with a small question.. </p><p>I found a few more tutorials on how to hook up the Duemilinova or the UNO as an SPI master device (ArduinoISP in the examples).. After a 1st attempt, accidentally swapping MOSI/MISO, got the error LED lit, 2nd attempt, I managed to get the bootloader to burn, ran perfect for 160 seconds (19200 baud, Crikey! Forgot how slow that was! and couldn't change it to anything faster because the ArduinoISP loader will not sync correctly.) no error LED, the mega2560 showing a 2 blink, 1 second wait loop, but the IDE saying an incorrect response, (response on another computer) .. But, two examples compiled, uploaded, and ran from the 2560.. So, I'm hoping I've fixed the problem. </p>
<p>thanks for the great tutorial! it worked with the blink sketch with an atmega328 on a breadboard... but after uploading, it seemed even my mega got the blink sketch, as the onboard led started blinking. is this suppoesd to happen? or did i do something wrong?</p>
<p>thanks a million for this! works a charm :)</p>
By the way, the bootloader also seems to be hardcoded to 16MHz - and this now allows me to upload my scripts via the serial interface as well. <br>I just tell it to upload, hit the reset, and away it goes. This never worked at the 14.7456MHz frequency either and gave the errors mentioned in my other post.
I have run into the avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51 (or resp=0x68 or resp=0x?? where ?? can be any number of different numbers) and the one thing that nobody seems to mention, which I finally figured out on my own is that serial is VERY timing dependant - and as such, if your serial library derives it's timing from the processor's clock, then your clock must be running at the same frequency. <br>I had a project where the serial communications simply wouldn't work after I moved the project off the Arduino board. <br>The problem? When I moved the project, I used a 14.7456MHz oscillator. I used that frequency because it usually makes writing serial timing easier since the baud rates are even divisions of this frequency. Unfortunately since I was using a standard library when developing it on the Arduino, it was all made for a 16MHz clock. <br>Once I changed the standalone circuit crystal to 16MHz, suddenly everything worked! <br>I hope this helps someone in the future !!! I know I was stumped for quite a while with this!
This project is great <br>Thanks for the tutorial
I had some problems with burning the bootloader. <br>I used Arduino MEGA 2560 and tried to burn bootloader in Arduino Duemilanove 326P. <br>Everything was connected according to the tutorial, but It resulted in error messages &quot;out of sync&quot;. <br>I solved it by changing the heartbeat from 40 to 20.
Thanks for the tutorial. Most of the documentation out there assumes you are using an Uno or a Due. I made a video to illustrate the differences for the Mega type boards.<br> <br> Check it out here:<br> <a href="https://www.youtube.com/watch?v=DebJ1s5I3QM" rel="nofollow">https://www.youtube.com/watch?v=DebJ1s5I3QM</a>
If you keep having problems and want to fix them just buy an programmer from Atmel , they are only like 30 USD and are really easy to use whit AVR studio and you can burn the Arduino firmware whit it.
hi sir, <br> I am bharat i am using Arduino mega 2560 while uploading i getting this error what to do next sir to overcome this problem please help me <br> thanking you <br> <br> <br> <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\WInterrupts.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WInterrupts.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\wiring.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\wiring_analog.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_analog.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\wiring_digital.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_digital.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\wiring_pulse.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_pulse.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\wiring_shift.c -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_shift.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\CDC.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\CDC.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\HardwareSerial.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\HardwareSerial.cpp.o <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\HardwareSerial.cpp: In function 'void store_char(unsigned char, ring_buffer*)': <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\HardwareSerial.cpp:82: warning: comparison between signed and unsigned integer expressions <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\HardwareSerial.cpp: In member function 'virtual size_t HardwareSerial::write(uint8_t)': <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\HardwareSerial.cpp:390: warning: comparison between signed and unsigned integer expressions <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\HID.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\HID.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\IPAddress.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\IPAddress.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\main.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\main.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\new.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\new.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\Print.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Print.cpp.o <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)': <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\Print.cpp:44: warning: '__progmem__' attribute ignored <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\Stream.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Stream.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\Tone.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Tone.cpp.o <br>C:\arduino-1.0.1\hardware\arduino\cores\arduino\Tone.cpp:93: warning: only initialized variables can be placed into program memory area <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\USBCore.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\USBCore.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\WMath.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WMath.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\arduino-1.0.1\hardware\arduino\variants\mega C:\arduino-1.0.1\hardware\arduino\cores\arduino\WString.cpp -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WString.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WInterrupts.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_analog.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_digital.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_pulse.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\wiring_shift.c.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\CDC.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\HardwareSerial.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\HID.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\IPAddress.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\main.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\new.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Print.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Stream.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\Tone.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\USBCore.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WMath.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\WString.cpp.o <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.elf C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.o C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\core.a -LC:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp -lm <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.elf C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.eep <br>C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.elf C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.hex <br>Binary sketch size: 5,198 bytes (of a 258,048 byte maximum) <br>C:\arduino-1.0.1\hardware/tools/avr/bin/avrdude -CC:\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM3 -b115200 -D -Uflash:w:C:\DOCUME~1\SH\LOCALS~1\Temp\build8476703640344052643.tmp\ReadAnalogVoltage.cpp.hex:i <br> <br>avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36 <br> Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ <br> Copyright (c) 2007-2009 Joerg Wunsch <br> <br> System wide configuration file is &quot;C:\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf&quot; <br> <br> Using Port : \\.\COM3 <br> Using Programmer : wiring <br> Overriding Baud Rate : 115200 <br>avrdude: wiring_open(): releasing DTR/RTS <br>avrdude: wiring_open(): asserting DTR/RTS <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] <br>avrdude: Recv: <br>avrdude: stk500v2_ReceiveMessage(): timeout <br>avrdude: stk500v2_getsync(): timeout communicating with programmer <br> <br>avrdude done. Thank you. <br> <br>
So, my question is...You can't actually upload a <strong>sketch</strong> to a breadboarded Arduino with a Mega 2560 as a programmer, only the bootloader? Is this correct? Unfortunately, I'm not a programmer (yet), but can't a sketch be written to board #1, an Arduino board (Uno, Mega 2560, BBB, etc.) that contains a sketch inside of it that is output , as data would be sent to any other device (motor, LCD, etc.), &nbsp;to board #2, an Arduino board (Uno, Mega 2560, BBB, etc.)? I suppose that the sketch on board #1 would cause it to be uploaded to board #2. Essentially, board #1 would be acting as a PC (or Mac) that is uploading a sketch to an Arduino. Would the sketch end up being too large, or is it just not&nbsp;feasible?<br> <br> Just a thought,<br> Apt (or am I??)&nbsp;
Hi ... i try your tutorial but it doesn't work i always have this error :<br>avrdude: Device signature = 0x000000<br>avrdude: Yikes! Invalid device signature.<br> Double check connections and try again, or use -F to override<br> this check.
That means it cannot read the device id of the micro controller.<br> The software or you messed up something. Retry a couple of times, that&nbsp;will&nbsp;probably fix it.<br> <br>
Hello, <br> <br>i used a 100uF Cap and get &quot;avrdude: stk500_getsync(): not in sync: resp=0x00&quot; <br>DO i really need a 100nF? <br> <br>
you can try a value like 1/2uF like posted below. <br>The error means that it cannot synchronize correctly.
Maybe add that a 0.1&micro;F Cap is the same as 100nF for people that are new to electronics and don't understand u/n/pF.<br><br>A more simple idea would be to absorb the ground pulse from the auto reset capacitor with a larger cap 2uf+. I had a 2.2uf 50v cap lying around and use that to prevent the board from auto resetting. yet the reset button will work fine. :)<br><br>Simple modification of the blink code to test the 2.2uf cap connection from GND and RESET. The image shows the counter was not reset no matter how many times I connected/disconnected from the serial line but pressing the button caused a reset back to 1.<br><br>/*<br> Blink<br> Turns on an LED on for one second, then off for one second, repeatedly.<br> <br> This example code is in the public domain.<br> */<br><br>// a simple counter to show the number and it betting reset when the reset button is pressed but not when you connect or disconnect from the serial.<br>int counter = 0;<br><br>void setup() { <br> // initialize the digital pin as an output.<br> // Pin 13 has an LED connected on most Arduino boards:<br> pinMode(13, OUTPUT); <br>// create a serial connection with a speed of 9600<br>Serial.begin(9600); <br>}<br><br>void loop() {<br>// increment the counter to show it's working<br> counter++;<br>// print the counter to the serial connection<br> Serial.println(counter, DEC);<br><br> digitalWrite(13, HIGH); // set the LED on<br> delay(1000); // wait for a second<br> digitalWrite(13, LOW); // set the LED off<br> delay(1000); // wait for a second<br>}
I had to make one modification to the sketch to get it to work. I had to change the pin definitions at the beginning to this:<br><br><br>#define SCK 52<br>#define MISO 50<br>#define MOSI 51<br>#define RESET 53<br>
Cool! I don't have an arduino mega but I am getting one soon! I am sooo gonna try this once I get it!!!
I found out it was difficult because nobody posted on the arduino forum how to ArduinoISP using Mega 2560 so i had to look it up myself.<br>Now i found it i wanted to help other people that are also struggling.<br><br>I also posted a the high resolution version of the picture how to hook up the arduino. Please post ur experiences when you try this whit you're mega.<br><br>Gr. Spike
Ok!<br>I only have one instructable using the arduino...probably have more soon...<br>why not have a look at my ibles?!
I just added an new page to my instructions and went to look at yours.<br>Nice guitar hero mod , i jut got guitar hero on pc but the keyboard sux.<br>I need to look for some buttons so i can make me an arduino guitar hero controller.

About This Instructable


86 favorites


Bio: I like electronics and make allot of stuff. I also enjoy helping other people whit problems that i have endured and couldn't find an ... More »
More by tsillen: How to use Arduino Mega 2560 as Arduino isp
Add instructable to: