3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to program a AVR (arduino) with another arduino

Step 6Burning the Arduino bootloader

Burning the Arduino bootloader
«
  • atmega_rbbb2.jpg
  • Selection_005.png
  • atmega_rbbb1.jpg
  • testing_atmega.jpg
  • mega-isp-header.jpg
Connecting
I cheated a bit cause i used a RBBB to simplify the connections. The schema is on picture #2.
If you use 2 arduinos use the picture #3 and connect the ISP pin to the ICSP 2x3header on the second(slave) arduino.Only connect the usb power to the first board.

The GUI way
This is a little tricky cause you can't just use Tools-> Burn Bootloader -> w/ AVR ISP cause the default speed is too big for mega-isp.
Find avrdude.conf that comes with arduino IDE  (in arduino/hardware/tools/avrdude.conf) and change the boundrate for avrisp programmer from 115200 to 19200 (around line 312 )
Find and change in avrdude.conf 
programmer
  id    = "avrisp";
  desc  = "Atmel AVR ISP";
  baudrate = 115200;    # default is 115200
  type  = stk500;
;

to:
programmer
  id    = "avrisp";
  desc  = "Atmel AVR ISP";
  baudrate = 19200;    # default is 115200
  type  = stk500;
;

Now you can use Tools-> Burn Bootloader -> w/ AVR ISP (after you select the proper board from the Tools menu)

Commanline
You can also use the commandline:
Edit arduino/hardware/bootloaders/atmega/Makefile
and change ISPTOOL/PORT/SPEED to:
# enter the parameters for the avrdude isp tool
ISPTOOL    = avrisp
ISPPORT    = /dev/ttyUSB0
ISPSPEED   = -b 19200


no you can write
$ make diecimila_isp
to burn fuses and the bootloader.

Test
Now connect you new arduino to usb and burn the blinky!
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
9
Followers
2
Author:kabturek
if you can't open - you don't own it