I recently bought some Attiny 85's and I wanted to use the Arduino as an ISP to program them. To do this, I followed the instructions from this website (referred to by the Arduino website) Program an ATtiny Using an Arduino
The files and info from this link date back to 2011, so the updates brought to the Arduino IDE since might be the source of my problems:
After following all steps, when I click Upload, I get the following errors (from IDE, before uploading (while compiling)):
Blink.ino:10:21: error: Arduino.h: No such file or directory
Blink.ino: In function 'void setup()':
Blink:15: error: 'OUTPUT' was not declared in this scope
Blink:15: error: 'pinMode' was not declared in this scope
Blink.ino: In function 'void loop()':
Blink:20: error: 'HIGH' was not declared in this scope
Blink:20: error: 'digitalWrite' was not declared in this scope
Blink:21: error: 'delay' was not declared in this scope
Blink:22: error: 'LOW' was not declared in this scope
Blink.ino:10:21: error: Arduino.h: No such file or directory
Blink.ino: In function 'void setup()':
Blink:15: error: 'OUTPUT' was not declared in this scope
Blink:15: error: 'pinMode' was not declared in this scope
Blink.ino: In function 'void loop()':
Blink:20: error: 'HIGH' was not declared in this scope
Blink:20: error: 'digitalWrite' was not declared in this scope
Blink:21: error: 'delay' was not declared in this scope
Blink:22: error: 'LOW' was not declared in this scope
I tried following all the tips from an old thread talking about this http://forum.arduino.cc/index.php/topic,51709.0.html but they are not very relevant to my problem. My guess, as I said in the beginning, is that it has to do with updated IDE files or file paths for compiling. Does anyone have an idea, a guess or know what I have to do to resolve this?
Well now everything compiles great! but I get an error: uppon further reading, I found that I needed to put a capacitor (10uf) between the ground pin of the attiny and the reset of the arduino uno (i use R3). I also read to put a capacitor (same one) between ground and reset directly on the Arduino, but I believe that this ends up doing the exact same as the previous option)
this did not resolve the error, which is the following:
avrdude: usbdev_open(): did not find any USB device “usb”
cyberrave:
I found that I needed to put a capacitor (10uf) between the ground pin of the attiny and the reset of the arduino uno (i use R3).
Is the ground pin of the ATtiny connected to GND on the Uno?
I also read to put a capacitor (same one) between ground and reset directly on the Arduino, but I believe that this ends up doing the exact same as the previous option)
It does. Pick one spot.
avrdude: usbdev_open(): did not find any USB device "usb"
Thanks! it was the programmer, I had no Idea there was such an option!
It works just fine! (with a few expected errors: avrdude:
please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85 )