Pickit 2 with the ATMega

Can I use it to program the chip on an Arduino board with the FTDI interface?

What is "pickit 2"?

An ICSP programmer device for the MicroChip range of processors.

I think the simple answer is: No.

Can I use it to program the chip on an Arduino board with the FTDI interface?

Yes, you can.

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?

[quote author=Nick Gammon link=topic=132444.msg996495#msg996495 date=1352929094] 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? [/quote]

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.

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:

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.

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.

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.

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.

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

So would the $15 pocket AVR programmer from Sparkfun be able to burn the bootloader?

Yes. Better yet, $5 avr programmers can do that too.

Where's a $5 AVR programmer?

http://www.ebay.com/sch/i.html;jsessionid=B963627E40ECEEA2581357A48E3273E6?_sacat=0&_from=R40&_nkw=usbasp&_nkwusc=uspasp&_rdc=1

Yes, you can.

Maybe in a parallel universe, ie programming a PIC. [would be nice if "just once" there was some explanation attached to those comments, so we wouldn't have to be mind readers all the time].

I have PICKIT2 and PICKIT3 and actually do most of my programming on PICs. The PICKITs and PICs in general use completely different programming algorithms from AVR, and have 3 output pins, Mclr/Vpp [typically 13V for programming], plus SCLK and SDA lines, which are not Sclk, MOSI, MISO.

Also, I've used the UART mode of the PICKIT and it really doesn't work all that well for some reason,but maybe could be jiggered for downloading sketches to an Arduino bootloader [which is unnecessary in any case], but doubtful for recoding a raw AVR. Better to use an FTDI Friend/etc on a board without a USB chip.

I also bought one of the AVR programming dongles from Pololu, but never could get it installed properly on my notebook, so to burn bootloaders, I use 2 Arduino boards connected via the ICSP headers, and run the bootloader sketch from the IDE on the master board.

http://dangerousprototypes.com/2010/04/07/program-your-avr-with-pickit2/

the owner seems to have disappeared, though.

http://dangerousprototypes.com/2010/04/07/program-your-avr-with-pickit2/

I guess that shows how much I know, LOL.

Another wasting of time thread. Go buy a $5 programmer.