1. SparkFun Electronics learn.sparkfun.com
1
Setting up the ATTiny85 in Arduino
using the TinyAVR Programmer
If this isyourfirsttime programminganATTiny85 usingthe TinyAVR Stick,we'll needtodoa little setup
inArduino.Whatwe needto dois add new boardsfilesforthe ATTiny85and thenconfigure Arduinoto
program thischip.Let'sget started.
1. Go to http://www.sparkfun.com/attinyBoards Thiswill re-directyoutoa JSON configurationfile.
2. Clickon the full URL inthe Addressbar.Click CTRL-Ato highlightall of itand CTRL-C to copyit.
Thisis a Boards Manager URL thatwe are goingto insertintoArduinotoadd the necessary
ATTinyBoard Files.
3. OpenupArduinoandClickon FilePreferencestoopenupthe Preferences Window.
2. SparkFun Electronics learn.sparkfun.com
2
4. Now,clickon the textbox that says Additional Boards Manager URLs, andpaste (CTRL-V) the
URL that youcopiedabove. If the textbox isnotblank,adda comma at the endand appendthis
URL to the end.
5. Whenyou're done,youshouldhave somethinglike this.ClickOK.
6. Nowto add the newboardfiles inthe BoardsManager. Go to ToolsBoardBoards
Manager…
3. SparkFun Electronics learn.sparkfun.com
3
7. WhenBoards Manager finishes loading, type attinyinthe searchbar. Clickthe selection
once on the attiny Boards file thatcomesup,and finally ClickonInstall.Whenit'sdone,click
Close.
8. Now,youshouldsee anewboards optionforATTiny.Click ToolsBoardsATTiny.It'snearthe
bottomof the list.
4. SparkFun Electronics learn.sparkfun.com
4
9. Withthe ATTiny,there are several variationsof thisboard,sowe needtoselectthe type.Click
ToolsProcessorATTiny85.
10. Finally,we needtoconfigurethe programmer.Toprogramthe ATTiny, we will be usingthe
USBTinyISPto program the chip.Selectthisunder ToolsProgrammerUSBTinyISP
11. Congratulations! That'sit.You're now readyto program yourchip.Plugin the chip intoyour
TinyAVRProgrammer.Payspecial attentiontothe orientation of the chip.If youplugit in
backwards,the chipwill getveryhot.Checkthat the notch / dotare pointinginthe same
direction.
12. Now, write some linesof code, ortrythe BlinkExample
underFileExamples01.BasicsBlink.Change all of the
pin13s to 0s. Nowjustclick Upload!