Burning bootloader

Hi

I am wondering if this method could be used to burn the Arduino bootloader to the Atmega168 ?

It looks like not too much of a trouble building this thing :slight_smile:

I looked all over and talked to all kinds of people and every path led me to the USBtinyISP, which you can pick up from ebay really cheaply (about 15$ plus 5$ shipping).

This is the user I purchased mine from, and though it took about 2 weeks to arrive, I’m glad to now have one:

http://cgi.ebay.com/USBtinyISP-AVR-ISP-Atmel-programmer-Arduino-bootloader_W0QQitemZ190348157207QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item2c51a26117

You could always try that instructible project, but whats 15 dollars to save you 10 hours of time of screwing with something that probably isn’t directly integral to your projects? I was going to try the parrallel programmer:

http://arduino.cc/en/Hacking/ParallelProgrammer?from=Main.ParallelProgrammer

But I didn’t have those particular parts around and found, after shipping, i was gonna spend 8 dollars just on the item and most people said they had heard nothing good.

With the USBtinyISP, you simply plug it into usb and open arduino.exe and hit “Tools->Burn Bootloader” and BAM… well… BAM, eventually… they take about 3 minutes to burn… (and no, I’m not in kahoots with the above seller… haha)…

I know it would be much simpler to just order the USBtiny but as I live in Iceland everything takes much longer time to get here than otherwise, except if I use Fedex or other expensive method of shipping. On top of expensive shipping there are quite high taxes and our currency fell more than 50% of what it was a year ago, so everything is twice as expensive as before :o

The other thing is that I have all the parts to make the Parallell burner and am quite used to soldering and making things. I think I´ll try that to begin with. I just have to be sure that someone sells Atmega chips here :smiley:

Heh, good point. This also may be totally useless to you, but I buy my atmega328 chips from mouser:

http://www.mouser.com/ProductDetail/Atmel/ATMEGA328P-PU/?qs=sGAEpiMZZMvu0Nwh4cA1wRKJzS2Lmyk%2b%2FV%2bWGuyD%2F%2Fo%3D

If you already have an Arduino then you could use MEGA-ISP.

I already programmed an ATmega168 using this procedure.

I used an external RS232 level converter connected to Arduino Rx and Tx pins. If you use Arduino’s USB port the you won’t be able to program since Arduino will reset every time you open the port and enter its own programming mode and MEGA-ISP Sketch won’t run (I hope you understand what I mean. Sometimes is difficult to me explain things in English).

I use avrdude like this:

avrdude -c avrisp -p m168 -P com1 -b 19200 -e -s -U lock:w:0x3f:m -U efuse:w:0x00:m -U hfuse:w:0xdd:m -U lfuse:w:0xff:m
avrdude -c avrisp -p m168 -P com1 -b 19200 -U flash:w:ATmegaBOOT_168_diecimila.hex:i -U lock:w:0x0f:m

Run each line at a time.

Don’t forget to put crystal and capacitors in target atmega168.