How to Program an ATtiny using the Arduino

Learn how to program the ATtiny85 using the Arduino as a ISP and why use a microcontroller instead of the Arduino for your projects.

The programming guide used was from:

Learn more at

Duration : 0:9:8






24 responses to “How to Program an ATtiny using the Arduino”

  1. rluquett Avatar

    thank you for …
    thank you for letting me try it by myself, I did realize that we need to upload the ISP program? first before uploading the ATtiny program.

  2. Pavel Anni Avatar
    Pavel Anni

    Worked? for me with …
    Worked? for me with Arduino 1.0.1. Thanks!

  3. oskhar000 Avatar

    Yes that was the? …
    Yes that was the? Problem ๐Ÿ˜€
    Now i used the 0022 version of Arduino Software and it works.
    Thank you very much ๐Ÿ™‚

  4. insidegadgets Avatar

    Hi, I think I know …
    Hi, I think I know what’s happening, you are using Arduino 1.0 (or higher) software with? the older ATtiny45/85 core. You need to view the new HIT tutorial and grab the new ATtiny Core here:

  5. oskhar000 Avatar

    Hay ๐Ÿ™‚ Good Vid.

    Hay ๐Ÿ™‚ Good Vid.
    But its not? working ๐Ÿ™

    Blink.cpp:8:21: error: Arduino.h: No such file or directory
    Blink.cpp: In function ‘void setup()’:
    Blink:10: error: ‘OUTPUT’ was not declared in this scope
    And some more errors
    Do you know what it means?

  6. Randy Lott Avatar
    Randy Lott

    It’s “dwee-me-la-no …
    It’s “dwee-me-la-no-vey” according to their sound? file.

  7. dedly13 Avatar

    if? you were …
    if? you were wondering its pronounce do-mill-en-oh-vay

  8. insidegadgets Avatar

    I’m running Arduino …
    I’m running Arduino 0021?

  9. jonathans1212 Avatar

    What version of the …
    What version of the IDE are you using? I’m using version 1.0. And nothing works only? errors

  10. grundgemonster Avatar

    Great. Thanks for? …
    Great. Thanks for? making and uploading.

  11. vSxScopeZz Avatar

    duel-milan-ovay …
    duel-milan-ovay thats what it says ^^?

  12. insidegadgets Avatar

    Hi, the 168 is like …
    Hi, the 168 is like the 328, it just has less RAM so that won’t be the issue. Please double check your wiring. Can you confirm you uploaded the ArduinoISP sketch (without the ATtiny85 connected) and then after that you connect the ATtiny85 and upload your ATtiny85 sketch? Another thing to try is? to disable the auto-reset on the Arduino by connecting a 120 Ohm resistor from 5V to Reset.

  13. insidegadgets Avatar

    I’m assuming that …
    I’m assuming that this relates to ArduinoISP. I think it’s because the sketch already uses the serial pins (0 and 1) to communicate to your computer so you shouldn’t use pins 0 or 1 for anything else. If this is happening in a different sketch and assuming that sketch doesn’t use serial, could? you link me to the sketch?

  14. MrTony95 Avatar

    Hello, this video …
    Hello, this video is very interesting, but I have a question. Can you tell me why when I change the number of pins 13? to 0, the program tells me that the output has not been declared for this scope? Thanks ๐Ÿ˜‰

  15. MagicalPonyFromMars Avatar


  16. legoclockfreak710 Avatar

    thanks man! your …
    thanks man! your video might have less pixles than minecraft… but at least you make a better tutorial than the guys at makezine!!!
    p.s.? i subbed! =)

  17. BlueSmew Avatar

    I get the same …
    I get the same thing when? trying it with Arduino software version 1. It works fine in Arduino 0022, however.

  18. insidegadgets Avatar

    Looks to be an …
    Looks to be an issue with the ArduinoISP sketch, I found someone else having problems too and they? provided a patch that should work: code(dot)google(dot)com/p/arduino/issues/detail?id=730

  19. mavnova Avatar

    After the …

    After the two expected errors, I am getting a third? one.

    avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
    avrdude: stk500_cmd(): protocol error

    Do you have any idea what this could be ?

  20. wouse101 Avatar

    always wanted to …
    always wanted to get to grips with these, and this? video has helped! cheers insidegadgets.

  21. insidegadgets Avatar

    Have PM’d you?
    Have PM’d you?

  22. Francis Rohan Avatar
    Francis Rohan

    buts thats not …
    buts thats not possible we cannot use the attiny? 45 85 library for attiny 2313!!and there are no other lib for attiny2313

  23. insidegadgets Avatar

    Yes you do, if you …
    Yes you do, if you search for? arduino-tiny, download the latest version and then place it into the Arduino\hardware directory like we did in this video.

    Connect Arduino Pin 13 to ATtiny2313 Pin 19 (SCK), Arduino Pin 12 to ATtiny2313 Pin 18 (MISO), Arduino Pin 11 to ATtiny2313 Pin 17 (MOSI) and Arduino Pin 10 to ATtiny2313 Pin 1 (Reset).

  24. Francis Rohan Avatar
    Francis Rohan

    hey dont we need …
    hey dont we need another library for the attiny 2313??? could u just xplain me how to do it? (p.m me)

Leave a Reply