- Upload the ArduinoISP sketch from the examples menu to your arduino
- Connect your arduino board to the ATtiny as pictured below
- Connect the 10uf capacitor (included)
- set the Tools/Board Menu option to ATtiny85 (w/ Arduino as ISP)
- Upload your sketch to the ATtiny!
Configuring Arduino Uno as a ISP (In-System Programming)
To program the ATtiny85 we need to first set Arduino Uno in ISP mode. Connect your Arduino Uno to the PC. Open Arduino IDE and open the ArduinoISP example file (File -> Examples -> ArduinoISP) and upload it.
Adding ATtiny85 Support to Arduino IDE
By default Arduino IDE doesn't support ATtiny85 so we should add ATtiny boards to Arduino IDE. Open File -> Preferences and in the Additional Boards Manager URLs give this url https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json.
After this is done open Tools -> Board -> Board Manager
After opening Board Manager scroll down the list where it says "attiny by Davis A. Mellis". Click on that and install it.
Connect the Arduino board to the ATtiny as shown in the following diagram. Use the dot in the corner of the ATtiny to orient it properly. You should also connect a 10 uF capacitor between reset and ground on the Arduino board as shown in the diagram (the stripe on the capacitor that’s marked with a negative sign (-) should go to ground). The capacitor prevents the Arduino board from resetting (which starts the bootloader), thus ensuring that the Arduino IDE talks to the ArduinoISP (not the bootloader) during the upload of sketches. (The capacitor is needed if you’re using an Arduino Uno, and might also be necessary for an Arduino Duemilanove.)
Please be aware that being tiny comes at a price. These chips only support the following commands