Hi Erni,
I have managed to get the Tiny85 programmed at 8Mhz on my 1.5.2 IDE from my Arduino Uno Rev 3...Yippee...
It is presently running a strip of Nexpixels all on its own!
There are a few pitfalls along the way so for the benifit of anyone reading in here is a few tips.
-
Download the right core files for your IDE. If you are using Arduino IDE 1.xxxx then the cores are available here:-
https://code.google.com/p/arduino-tiny/
The file names of the zip files don't on first read match your IDE but that ok. Download them and unzip them in to a tempory directory instalation.
So for example:-
IDE 1.0.1 will use core files :- Arduino-tiny-0100-0018.zip
and
IDE 1.5.4 will use core files:- Arduino-tiny-0150-0020.zip
-
Once you have downloaded and unpacked them, open the README.TXT file and carefully follow the installation instructions.
You will need to create a 'hardware' directory usually in your sketch folder. (some other installs require it to be inthe IDE directory) Make sure it is spelt correctly and it is case sensative! The core files need to go in a sub directory of the 'hardware' directory 'tiny'. The readme.txt file will be specific for the core file package.
-
Next using a text editor open the 'Perspective Boards.txt' file and then resave it as 'boards.txt'. I think it is wise to be case specific. This is the list of board that the new core files support. It can be edited to only list the chips you are interested in but for now don't bother. You can do that later.
-
Now load up the IDE, and you should notice more boards under Tools-Boards menu. If not, go back and examine your set up. Something is not right and you might have missed out a step in the REDME.TXT file... It is easy to jump ahead of yourself and miss something simple.
-
Without adding anything to your Uno board, plug it in and upload to it the ArduinoISP sketch from the File-Examples menu. Not much will appear to happen, thats OK.
-
Now hook up the AtTiny85 to the Uno with these pin outs:-
Arduino +5V ---> ATtiny Pin 8
Arduino Ground ---> ATtiny Pin 4
Arduino Pin 10 ---> ATtiny Pin 1
Arduino Pin 11 ---> ATtiny Pin 5
Arduino Pin 12 ---> ATtiny Pin 6
Arduino Pin 13 ---> ATtiny Pin 7
Google 'Arduino AtTiny85' and load of ilustrations should come up to assist you.. Dont forget the capacitor across GND and Reset, but only add the once you are trying to programme the TINY85, it you want to programme the UNO it need to be removed.
-
In the Tools menu for the first time test choose programmer and select 'Arduino as ISP'. This is often defaulted to ARVISP mkII. and if so you will likely get :-
'arvdude: usbdev_open(); did not find any USB device "USB" ' error.
This is becasue the IDE can not see the chip. Check you connections, wires can come loose, and check the setting for the board and the programmer.. Also if you have any unused instances of the IDE open check they have got 'Arduino as ISP' selelcted as well. Sometime other windows casue issues. Either close them or double check...
-
Select the board you want to use and in the Tools-Board menu, and then at the bottom of the Tools menu select 'Burn Bootloader' Not much will appear to happend.
-
Select the blink sketch, and change the pin assignment from 13 to 0. The Tiny uses different pin assignments not only in code but also physically on the chip. Pin 0 in code is pin 5 on the chip.
-
Upload the sketch to the tiny85. If all gos well there will be a pause for compiling, and then alot of flashing light on the UNO RX and TX leds. also you will likely get the 'arvdude: please define PAGEL and BS2 signals xxxxxxxxx' error. Thats ok and normal.
-
Disconnect the 5V line to the Tiny85, Now connect a diode and reisitor across pin 4(Gnd) and 5(Sig) of the Tiny85 and reconnect the 5V line and you should have a flashing LED.
Hope that helps some people.
Liam