Using the Arduino Uno to program ATTINY84-20PU (Newark item # 68T3783)
1) Ensure the Arduino IDE is NOT running.
2) Create new folder named "tiny" in your Arduino "hardware" folder
3) Download the Arduino-Tiny archive (ZIP-file)http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0016.zip
3) Copy and paste the contents of the ZIP-file into the "tiny" folder:
The contents should look like this:
4) Create a new file named "boards.txt" in the tiny directory.
5) Open the "boards.txt" file and the "Prospective Boards.txt" file using a text editor.
6) Copy board entries of interest from "Prospective Boards.txt" to "boards.txt"
(or copy the entire contents of "Prospective Boards.txt" to "boards.txt").
Board entries are delineated by a long line of pound-signs.
7) Save and close "boards.txt". Close "Prospective Boards.txt". The contents of the "tiny" directory should now look like this:
8 ) Start the Arduino IDE and ensure the new boards of interest are listed under
the [Tools] [Board] menu. If you copied all available boards from "Prospective Boards.txt" to "Boards.txt" you see boards such as ATtiny84, ATtiny44, ATtiny24, ATtiny85, ATtiny45, ATtiny25, ATtiny4313, and ATtiny2313.
9) Before connecting any ATtiny to the Arduino, upload the ARduinoISP sketch to your Uno by selecting [File] [Examples] ArduinoISP. Make sure your Arduino board is selected ([Tools][Boards](yourboard) and the AVR ISP programmer is selected ([Tools] [Programmer] AVR ISP.
10) Now your Uno is ready to be used as an ISP.
11) Select board to be programmed [Tools][Boards] Attiny84 @ 1MHz (internal oscillator; BOD disabled)
12) Select use Arduino as ISP [Tools]Programmer]Arduino as ISP
13) Connect the ISP pins of Arduino Uno to the Target AVR as indicated, in this case the ATtiny84.
Arduino 5V to ATtiny84 Pin 1
Arduino Pin 10 to ATtiny84 Pin 4
Arduino Pin 11 to ATTiny84 Pin 7
Arduino Pin 12 to ATtiny84 Pin 8
Arduino Pin 13 to ATtiny84 Pin 9
Arduino GND to ATtiny84 Pin 14
Arduino RESET to 10uF cap
10uF cap to GND
14) Create sketch for ATtiny. I tried the blink sketch: [File] [Example][Basics]Blink and modified the LED pin to match a pin on the ATtiny. That is, I change "int led = 13;" to read "int led = 0;"
15) Upload modified blink sketch to ATtiny84.
15) Remove ATtiny84 from Arduino Uno.
16) Connect ATtiny for Blink Program
ATtiny Pin 1 to 5V (I used Arduino as a pwr supply)
ATtiny Pin 2 to LED (apparently this is Pin 0 when programming the blink sketch)
LED to Resistor
Resistor to GND
ATtiny Pin 14 to GND (I used Arduino as a pwr supply)
17) Apply power and LED should blink.