Step 1: LOAD ArduinoISP to Arduino UNO
- Launch Arduino IDE
- Click Menu File > Examples > ArduinoISP
- Click Menu Tools > Board > Arduino UNO
- Click Menu Tools > Serial Port > Select the COM port
- Click Menu Tools > Programmer > Arduino as ISP
- Click Upload
- Done
Install a LED on pin 9 to verify that the programmer is working
a 220-ohm resistor to GND LED to Resistor and Pin 9. The
LED will blink id if theprogrammer is working.
Step 2: Uploading the Sketch to ATtinyxxx
- Click Menu File > Examples > 01.Basics > Blink2
- Change OUTPUT pin to 03
- Change Delay to 200
- Click Tools > Board > Attiny85 (internal 1mhz clock)
- Click Menu Tools > Serial Port > Select the COM port
- Click Menu Tools > Programmer > Arduino as ISP
- Click File > Upload Using Programmer
- Error message:
file for part ATtiny85 avrdude: please define PAGEL and BS2
signals in the configuration filefor part ATtiny85 - Done
Install a 220-ohm resistor to GND to LED Resistor to Pin 5
LED should now blink.
ATtiny Programmer Schematic
- Arduino pin 10 to slave reset (ATtiny85 on pin1, ATtiny 84 on pin4)
- Arduino pin 11 to MOSI (ATtiny 85 on pin 5, ATtiny 84 on pin 7)
- Arduino pin 12 to MISO (ATtiny 85 on pin 6, ATtiny 84 on pin 8)
- Arduino pin 13 to SCK (ATtiny 85 on pin7, ATtiny 84 on pin 9)
- Arduino Gnd to GND
- Arduino Gnd to GND
- Instal 10 microfarad capacitor between Gnd and reset pin on Arduino
(capacitor is polarized, negative to Gnd).
(Note: I do use the 10uf cap on reset ATtiny84)
(Note: I don’t use the 10uf cap on reset ATtiny85)
Arduino ISP ATtiny Programmer: