Go Down

Topic: Pickit 2 with the ATMega (Read 5 times) previous topic - next topic

chuff014


Hmm. It looks like the PicKit has got a UART mode, so with the right connections it may work. I haven't tested it. Which Arduino board do you have? Why not just use the USB interface?


I want to use a pair of barebones arduinos in my project, to cut costs. I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.

Nick Gammon

Right, then we have to get the terminology right. Will these barebones boards have a bootloader on them? If not, the FTDI interface won't put it there. You need an ICSP programmer (one that uses the SPI interface) and I strongly doubt that the Pic Kit will do that. Its interface will be for PIC chips.

To save costs, if you have at least one Arduino already you can use that as an ICSP programmer. Search for "Arduino as ISP". I wrote a sketch that lets you put code onto SD cards and program bare baords, as described here:

http://www.gammon.com.au/forum/?id=11638

Example in use:



However you can get cheap ISP programmers.  eg. This one for $20:

http://www.pololu.com/catalog/product/1300


dhenry

Quote
I want to use a pair of barebones arduinos in my project, to cut costs.


A standalone programmer for the price of a cup of latte.

Quote
I just wanted to know if I can use my existing programmer, or if I'd have to buy a programmer.


Yes you can. But standalone programmer for avr is easier.

chuff014

So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.

I can use the Pickit 2 to flash in place, but not to burn.

fungus


So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?
I do have a couple of unburnt ATMegas in transit.


Yes. You can also use it to program ATtiny chips like the ATtiny84 and ATtiny85, etc. Make really small devices.

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Go Up