Programing an Attiny With Arduino IDE
by peterfoxflick in Circuits > Arduino
4778 Views, 53 Favorites, 0 Comments
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
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.
Downloads
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.
Downloads
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)