Introduction: Programing an Attiny With Arduino IDE

Attinys are an excellent way to shrink your Arduino project. I recently tried to follow this great instruction from the High-Low Tech website, but it looks like it is out of date. They have some tutorials and if you don't have an ATtiny programmer follow this tutorial. This instructable is how to program an Attiny on Arduino 1.0.6

Step 1: Download the Files

Go ahead and download this folder from the High-Low Tech website. Now go to your applications folder, and right click on Arduino then select Open Package Contents.

Step 2: Add the Files

Now navigate to the hardware folder. Go to Content >> Resources >> Java >> Hardware. Go head and drag the ATtiny folder, which is in the folder that you downloaded in the last step, and place it in this hardware folder.

Step 3: Blink Blink

Go ahead and open up Arduino and go to File >> Examples >> Basics >> Blink. Change 13 to 0. Your program should look like this...

void setup() {

pinMode(0, OUTPUT);

}

void loop() {

digitalWrite(0, HIGH);

delay(1000);

digitalWrite(0, LOW);

delay(1000);

}

Now we need to change the board so go to Tools >> Boards >> ATtiny 85 (internal 8 MHz clock). If your ATtiny doesn't have the bootloader go ahead and click Tools >> Burn Bootloader. Now you can upload your program. (You may have to change your programmer by going to Tools >> Programmer >> USBtinyISP)

Comments

author
IraM1 (author)2015-04-18

Nothing works… :( With Arduino IDE 1.6.3 show package contents you can get to the hardware by: Contents >> Java >> Hardware. And this is where I put the attiny folder but it doesn't work. This a different path than you show ("Resources" seams to lead nowhere). I first tried Sparkfuns instructions, "make a folder called hardware within your Arduino Sketchbook directory". That didn't work either. The IDE works great with my UNO…

Any ideas??? Mac OSX 10.8.5

Thanks

author
peterfoxflick (author)IraM12015-04-20

In order to get it to work with the 1.6.3 IDE you need to add a folder.

Right now inside the attiny folder looks like attiny >> boards.txt, variants. You need to add a avr folder between them. Change it to be attiny >> avr >> boards.txt, variants. I hope this fixes the problem, let me know if it still doesn't work.

author
IraM1 (author)peterfoxflick2015-05-18

I've been using Arduino IDE 1.0.6 with the Tiny Programmer because I still can't get 1.6.3 to work. Your last comments did work fine though, thanks. The board can be selected and the programmer can be selected, but there is no option under port that seems to coincide with the Tiny Programmer. In 1.0.6 I can select the right port and upload fine but not in 1.6.3? In 1.0.6 the ports start with "dev/tty." and "dev/cu." but in 1.6.3 the "dev/tty." selections are not available. Why is it not accessible? Sorry to bother you again but I'm tired of jumping back and forth between versions! :(

Thanks again for the help!

author
peterfoxflick (author)IraM12015-04-20

Heres a Pic of what it should look like

ATtiny New.tiff
author
peterfoxflick (author)2014-11-23

Thanks I didn't think about it that way.

author
peterfoxflick (author)2014-11-22

Please let me know if you have any questions

About This Instructable

3,419views

47favorites

Bio: I'm an eagle scout from Colorado. I like to program, Arduino (if thats a verb) and make cool things. I also like to hike ... More »
More by peterfoxflick:ATtiny Flower PotPrograming an Attiny With Arduino IDEATtiny Dark Detector
Add instructable to: