Programming ATtiny24(a)

  • Follow the instructions for "Installing ATtiny support in Arduino 1.6.4" here: http://highlowtech.org/?p=1695
  • Copy the text below and paste it at the bottom of C:\Users\yourusername\AppData\Local\Arduino15\packages\attiny\hardware\avr\1.0.2\boards.txt
  • attiny24.name=ATtiny24 (internal 1 MHz clock)
    attiny24.bootloader.low_fuses=0x62
    attiny24.bootloader.high_fuses=0xdf
    attiny24.bootloader.extended_fuses=0xff
    attiny24.upload.maximum_size=2048
    attiny24.build.mcu=attiny24
    attiny24.build.f_cpu=1000000L
    attiny24.build.core=arduino:arduino
    attiny24.build.variant=tiny14
    
    attiny24-8.name=ATtiny24 (internal 8 MHz clock)
    attiny24-8.bootloader.low_fuses=0xe2
    attiny24-8.bootloader.high_fuses=0xdf
    attiny24-8.bootloader.extended_fuses=0xff
    attiny24-8.upload.maximum_size=2048
    attiny24-8.build.mcu=attiny24
    attiny24-8.build.f_cpu=8000000L
    attiny24-8.build.core=arduino:arduino
    attiny24-8.build.variant=tiny14

  • (Re)Start the Arduino IDE
  • Connect the Arduino Uno pins to the Attiny as follows:
  •    ATtiny   |     UNO
     -----------------------
     VCC (1)    |    5v
     GND (14)   |    GND
     RESET (4)  |    10
     MOSI (7)   |    11
     MISO (8)   |    12
     SCK (9)    |    13
  • In the Arduino IDE, go to File->Examples->ArduinoISP
  • Go to Tools->Board and select "Arduino UNO"
  • Go to Tools->Programmer and make sure "AVRISP mkII" is selected
  • Upload the sketch to the UNO

  • Open the sketch you want to write to the ATtiny
  • Go to Tools->Board and select the Attiny24 with whichever internal clock you have (probably 8MHz)
  • Go to Tools->Programmer and set it to "Arduino as ISP"
  • Upload