Professional Documents
Culture Documents
Burn Arduino Bootloader Into An Fresh Atmega2560
Burn Arduino Bootloader Into An Fresh Atmega2560
Arduino, easy to use, easy to learn and whats the best part? Its open source.
Anyone can modify it in whatever way they want. So why not make one for our own?
As a first step, we ordered ATmega2560 16AU from ATMEL as sample ICs. It is
surface mounted on a breakout board from NEX-Robotics.
Then it comes the real game, burning the bootloader and making it ready to be
programmed by Arduino IDE.
1. Things we need:
• Programming Arduino, either a Uno or Mega, I have tested with both of
them, I hope every other Arduino will work.
• 16 MHz crystal
• Two capacitors of 18-22 pF
• Jumpers
• ATmega2560 to be bootloaded.
2. We need to get the bootloader sketch from Nick Gammon. You can get it form
his site or here [http://goo.gl/t7oogN] .
3. Place it in your Arduino IDE's sketch folder, "sketchbook".
4. Load the sketch in Arduino IDE, connect your programming arduino and upload
the code, and remove the arduino.
5. Now we need to connect the ATmega to be programmed to the programming
arduino.
[http://1.bp.blogspot.com/-
d_OkcysZNSU/UkxOd7QFsQI/AAAAAAAAElY/yX1rVFIIuzQ/s1600/PinMap2560.png]
For that, we need to connect the ICSP header of the Arduino to the ATmega.
[http://1.bp.blogspot.com/-
DWM7OmUK_dI/UkxOdp2pCII/AAAAAAAAElQ/GUurYMtEyaI/s1600/icsp.jpg]
The ICSP header provides direct connection to the SPI interface of the chip.
We need to connect these of two chips directly. For an ATmega2560, its like
this:
signal. [http://2.bp.blogspot.com/-ek-
WDA6W8ww/UkxdcTKGg2I/AAAAAAAAElo/eVNOc1iZO6s/s1600/Crystal_resonator_schematic.jpg]
The 16MHz crystal should be connected to XTAL1 (pin 34) and XTAL2 (pin 33)
of ATmega2560, as shown in the figure.
7. The circuit part is over. Now we need to connect the Arduino to USB port and
start the Serial Monitor. It will show something like this, if everything is
fine:
Thats it:)
14 View comments
-+---------------------
BE innovative
HTTPS:/www.Innovationstracking.com
Reply
Replies
Reply
First of all I m very thankful of this Writer, the blog helps me a lot complete my brother's project on 2560,
as I m native Mechanical Engineer.
Thank you very much....
I finally succeed in uploading bootloader in 2560 using UNO,
but whenever I tried to upload any sketch, it gave errors.
Regards
Rinkesh Patel.
www.rinkeshpatel.com
Reply
Replies
Elec K June 30, 2016 at 3:22 AM
Hi patel
can you please say which programmer did you use to upload the code.
thanks in advance
Reply
Replies
Reply
Replies
Reply
Enter your comment...