Introduction: Burn Arduino Bootloader on Atmega-328 TQFP and DIP Chips on Breadboard

Parts required (Hardware)

 

  1. Arduino Uno Board (1)
  2. TQFP 32 to DIP 28 Adapter (1) Link
  3. Atmega TQFP 32 pin chip (1)
  4. Atmega DIP 28 pin chip (1)
  5. 10K resistor (1)
  6. 16MHz crystal (1)
  7. 18pf - 22pf capacitor (2)
  8. Tact Switch (1)
  9. Jumper wires (few)
  10. LED (1)
  11. 560 Ohm resistor (1)
  12. 10uF electrolytic cap (optional)
  13. Breadboard (1)
  14. Arduino Pins (2x6 pins, 2x8 pin socket)
  15. ZIF socket 28 pin (1)

 

Software pre-requisites : Arduino software installed

If you like this Instructable. I greatly appreciate your Vote for this Instructable @  https://www.instructables.com/contest/123dcircuits...

Thank You

Step 1: Burn Arduino ISP to Arduino Board

Connect Arduino Uno board to your computer. Start Arduino program and from examples choose "ArduinoISP" sketch and upload it to "Arduino Uno" board. Please make sure you select the correct board name and serial port. Now this board is ready to program new Atmega-328 chips on the breadboard as shown in the next step.

Step 2: Arrange All Components on Breadboard

Wire all components as shown in this picture on the breadboard. The Ziff socket is placed starting on pin 21, Add markings on the Breadboard to show Pin 1, Pin 14, Pin 15, Pin 28 of Atmega dip28 chip as it will be easy to wire later. The Breadboard does not show power, But run power +5V and GND from breadboard to Arduino board.

Step 3: Update Signature Inside Avrdude Conf File

It is recommended to first test burn bootloader on a Atmega 328 DIP-28 chip. I have Atmega 328-PU chips which requires signature to be updated inside avrdude conf file as shown in the picture.

Please make a backup of avrdude file and copy it so original file is left untouched and you can fail back to it if required. This file can be found under "C:\arduino-1.0.1\hardware\tools\avr\etc\avrdude".

Please restart Arduino program after you update "avrdude" config file.

The "#" sign in from of the signature indicates comment (not used by arduino)

Step 4: Burn Bootloader to Atmega-328 DIP Chip

Review all connections, select Arduino ISP Sketch and Burn boot-loader. If you receive Errors check the connections and jumpers. The 3rd picture shows boot-loader burning in action.

Step 5: Placing the Chip in TQFP Adapter

Connect 8 pin, 6 pin sockets as shown to DIP28 pins of TQFP adapter. This is to raise it on breadboard and to have a good view of pins on the breadboard. Please pay close attention to Electro Static Discharge which can damage the chip when loading and removing it from the socket. Align the pins of the chip as shown in the picture.

Step 6: Connect TQFP on Breadboard

Remove the ZIF Socket and Install the TQFP adapter on the breadboard as shown. Make sure original avrdude config file is selected for burning the boot-loader. Restart Arduino program, select burn bootloader option from the menu. Also, after you do this you have to upload your actual program for this Chip to work in your Project.

This is my first instructable and hope this will be helpful to the current and new Arduino users.

Comments

author
NicoA5 made it!(author)2016-08-31

how to determine the "avrdude" that have been edited and we will use to burn?

whether we need to delete the original "avrdude" from the old directory and change that we have to edit ?

Im still confused about it...

author
Audigi made it!(author)2016-11-01

Sorry for the late reply. Arrggh Missed it. Always keep a copy of your original AVRDude file and you can modify the existing one.

author
JonathanC256 made it!(author)2016-11-01

Hi, do you need a genuine arduino to burn the bootloader onto a new chip. Or is this also possible with an arduino clone from china?

author
Audigi made it!(author)2016-11-01

It may work I never tried it. I normally recommend buying Genuine Arduino chip from a reputable source like Mouser, Digikey or Newark electronics. I never source my Electronics from other sources and even if I did I see the performance vary and I have to throw them (I lost money I invested in it).

For Ex: Long ago, I bought Analog devices AD823 Opamps from eBay. The OpAmps I got from Newark and clones were exactly the same, but performance was so different. The OpAmp clone would distort after I cross about 50% of the Volume on the same circuit board when I replace it with Genuine Opamp from NewArk Electronics, I would get Excellent results and I could move my Volume closer to max.

I don't work for either of these companies, but I do support Genuine parts and companies which make these parts because it helps the company. Clones do not help the company in any way rather its like Pirating a CD or DVD.

Hope this helps.

author
FedericoR made it!(author)2016-02-08

Hi Guys, thanks for the tutorial. I did this step and the code uploaded nicely to the ATMEGA 328 P AU. I am now encountering some problems at the moment I should upload my code using a FTDI. Any hap on this mattter? Thanks much!

author
Audigi made it!(author)2016-02-08

These instructions are to make a Blank Atmega 328 chip to burn Arduino bootloader on it. After that, you can connect FTDI interface to upload Normal Arduino code to it.

author
FedericoR made it!(author)2016-02-09

Thanks much Audigi. could you please add the schematics for the ATMega328P AU ? There are more pins, and not sure how are supposed to be wired. Thanks much for your help

author
relic1974 made it!(author)2015-12-13

I've programmed many ATmega chips using various methods (UNO as ISP, USBTiny, Atmel Studio, etc). I'm now starting a project using the ATmega32U4 44 pin TQFP iC (Leonardo).

Do you know of any specific configuration or settings to consider for these chips? Also ... once the bootloader has been burned I should be able to use the on-board USB host to upload sketches correct?

Thanks in advance for any advice! I'll probably pick up one of those TQFP to DIP adapters. The 44 pin versions can be found here for anyone else interested...

http://www.ebay.com/itm/261576185880?_trksid=p2055119.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT

author
Audigi made it!(author)2016-02-08

Relic,

Sorry to get back to you so late. But I did not test this setup with Atmega32u4 Leonardo.

author
vj01 made it!(author)2014-04-09

is it possible to get the schematic for the TQFP

author
GSAV55 made it!(author)2014-03-09

What does this do or allow you to do?

author
Audigi made it!(author)2014-03-10

This Instructable shows you how to burn arduino bootloader to new/existing Atmega 328P DIP/TQFP chips.

author
mjs2324 made it!(author)2014-03-09

this is great, very well done.

author
Paul_Stone made it!(author)2014-03-01

post also electronic schematic :)

author
Audigi made it!(author)2014-03-01

Please give me couple of days. I have to draw it and post.

author
baecker03 made it!(author)2014-03-07

very well done, will vote up

author
Audigi made it!(author)2014-03-05

Paul,

Here is the Schematic for wiring new Atmega 328P with Arduino Uno. Also, Please vote in the Contests for this Instructable. Thank You.

IMG_1436_Schematic.jpg
author
padbravo made it!(author)2014-03-01

Join the request for the schematic...

author
Audigi made it!(author)2014-03-05

Here is the Schematic for wiring new Atmega 328P with Arduino Uno. Also, Please vote in the Contests for this Instructable. Thank You.

IMG_1436_Schematic.jpg
author
padbravo made it!(author)2014-03-05

Sure!

and tks!

author
Audigi made it!(author)2014-03-01

Give me some time I will post the schematic of Arduino connections on the Breadboard.

author
ramachillara made it!(author)2014-03-03

Pretty awesome

author
joey56 made it!(author)2014-03-02

Awesome

author
audreyobscura made it!(author)2014-03-01

This is awesome. Great documentation. Do you think that you could add a little bit of info to this i'ble about why you made it? I'm curious as why you needed to do this.

Thanks!

author
atiwari18 made it!(author)2014-03-01

its good .....and thank you for publish this knowledge

author
Audigi made it!(author)2014-03-01

Thank You Atiwari.

author
Audigi made it!(author)2014-03-01

First let me say, Thank You Audrey. Appreciate it. I always document my electronic experiments in a notebook, thought of my own blog but never had time, so its coming out this way. I am glad you like it.

About This Instructable

73,202views

321favorites

License:

Bio: I did my Masters and Bachelors in computer science. I have been tinkering with Computers & Electronics at a very young age. I am always fascinated ... More »
More by Audigi:Wireless 3D Printing & Monitoring using Astroprint and Raspberry PiPIR Energy Save Light SwitchNew Generation Efficient *AA* Battery Power modules
Add instructable to: