Introduction: Burning Sketch to Atmega328P-PU on a Breadboard Using Arduino Uno As Programmer

Picture of Burning Sketch to Atmega328P-PU on a Breadboard Using Arduino Uno As Programmer

There already are several instructables on how to burn Arduino sketch to Atmega328P-PU on a breadboard using different USB - UART modules. However, as most such modules are made in China, they are poorly documented, wrongly labeled, strangely designed, some of them require the pressing of reset button at the right time, and some of them just DOA (Dead On Arrival). All these issues cause great headache for those who want to build a simplified Arduino.

As most people start their journey with Arduino from Arduino Uno, below is a quick summary of how to burn Arduino sketch to Atmega328P-PU on a breadboard using Arduino Uno as programmer.

Step 1: Wiring Diagram

Picture of Wiring Diagram

Step 2: Setting Up Arduino Uno Board As Programmer

Please refer to the below post on how to setup Arduino Uno board as programmer.

http://wei48221.blogspot.tw/2015/07/burning-arduin...

Step 3: Preparing the Sketch to Be Written Into Atmega328P-PU on the Breadboard

Picture of Preparing the Sketch to Be Written Into Atmega328P-PU on the Breadboard

We will be using the Blink sketch that comes with the Arduino IDE as the example for this post.

First, load the Blink sketch into Arduino IDE.

Step 4:

Picture of

Second, select the board type for the Atmega328P-PU on the breadboard. Because the Atmega328P-PU is loaded with Arduino Uno bootloader (see the post http://wei48221.blogspot.tw/2015/07/burning-arduin...), "Arduino Uno" is selected as the board type.

Step 5:

Picture of

Third, select "Arduino as ISP" as the Arduino Uno board will be used as the programmer.

Step 6:

Picture of

Fourth, select "Upload Using Programmer". This will compile and upload the sketch to the Atmega328P-PU on the breadboard.

Step 7:

Picture of

Check the Text Console for any error message.

Step 8:

Picture of

If all goes well, the LED attached to Pin 19 of Atmega328P-PU (Pin 13 of Arduino Uno) will start flashing immediately after the upload is completed.

Step 9: References

Comments

vipul.swamy (author)2016-04-28

oh yeah...!! Its works, Thanks sir.

MichaelE71 (author)2015-11-24

It works! Thanks.