Today we are going to burn a bootloader in to ATMega328PU using an Arduino Mega 2560. This method can also be used on the ATMega8 16PU and other microcontrollers.



Parts List:  1xATmega328

1xArduino Mega 2560

1x 16Mhz Crystal
1 x 100uF capacitor
2 x 22pF capacitors
1 x 1k Ohm resistors
1 x LED

And some jumper wires



The wiring is very simple

pin name:    ATMega328         Mega(1280 and 2560)

RESET:      1:                       53

MOSI:        17:                     51

MISO:        18:                     50

SCK:          19:                      52



Note: LED goes to pin 19 with the 1K resistor on the ATMega328 and the 100uF Capasitor is needed after we upload the sketch to the arduino Mega 2560.

Step 1: Uploading the ArduinoISP

Uploading the Arduino ISP sketch

 After you have made all the connections beetween the arduino and the ATMega328 (Do not Have the 100uF capacitor connected on this step)

Wew need to upload the ISP sketch into the arduino.



Go to File>Examples>ArduinoISP



Now we need to select our arduino board   Tools>Board>Arduino Mega2560



Now we need to Set our Serial Port in my case is COM 4



Tools>Serial Port>COM4



Ok now we are ready to upload the Sketch.

We hit upload and wait till the sketch is uploaded.

<p>I can't find 'arduino pro or pro mini(5v,16mhz) w/ atmega328 pu' in board menu.</p><p>Should i have to install and additional board?</p><p>Please help.</p><p>Thanks!!</p>
<p>Works perfectly! This tutorial is the only complete, functioning way that I can see on the net to make the Arduino Mega ADK function as an ISP. Just out of curiosity and learning, why is the 100uf cap needed across reset and +5 rails? I ask, because the boot loader will not burn without it.</p>
<p>to disable the autoreset function on the mega.</p><p>if the autoreset is still there the sketch will not upload to the pro mini</p>
<p>Try holding down the shift button when uploading the sketch. Otherwise you upload the sketch to the mega. When you hold your cursor over the upload button then press SHIFT with the latest 1.6.3 Arduino IDE it will say UPLOAD &quot;USING PROGRAMMER&quot;</p>
<p>I have tries this method several times with my 2560 and ATmega328-PU to no avail. The bootloader completes successfully but when I upload a sketch, such as blink on digital pin 8, nothing happens.. Any help would be much appreciated</p>
Does the sketch upload to your microcontroller with out any problems?
<p>I actually think it was just a bad chip. I tried another one and it worked flawlessly. Thank you :)</p>
To burn the bootloader onto a ATMega8 16PU, everything stays the same except when choosing the microcontroller you go to Tools&gt;Board&gt;Arduino NG or Older w/ATMega8 <br> <br>Like I said before I have never run into any problems using this method.

About This Instructable




Bio: Master Diesel Tech, in California. I love electronics and everything science .
More by verdelj:How to write a library the easy wayBootloading ATmega328 with Arduino Mega2560FM Radio the easy way
Add instructable to: