Programming the ATtiny 45-85. A guide.

Hi all
I do hope I am allowed to do this as I would like to give something back to the forum for the help I have received so far from you great folks.

It will hopefully help those who like me are just starting out with the Arduino and the coding that goes with it.
It is a small pcb I made to take the ATTiny chips and plug onto the Arduino UNO, also after a lot of trial and error, the instructions to dump your sketch code onto it. You will however need to watch the shrinkify tutorial on youtube. How-To: Shrinkify Your Arduino Projects - YouTube
as you will need ATtiny files.

You will need a piece of strip board, led, ic socket (8 pin), 10uF 25v capacitor, 220ohm resistor and some link wire.
I wont explain where it all goes as the 3 pictures are simple to follow


On this image, the bottom left first pin fits into pin 13 and the bottom right fits into pin reset, all other pins will line up to the correct locations.

The routine I found that works is using the 1.0.4 version of the Arduino software.

Plug the Arduino in, make the board as uno and select the com port for your configuration.
Set the programmer as "AVRISP MKII"
Load the "ArduinoISP" sketch and upload it to the Arduino.

Close the ide software, unplug the Arduino and plug in the board you just made.
plug the Arduino back into the pc and reload the ide.

In the ide tools menu change the board to ATtiny 85 (w/Arduino as ISP)
Load the sketch you want to put on the chip
In the tools menu change the programmer as "Arduino as ISP"

upload your sketch and put:
#include <WProgram.h>
#include <Arduino.h>
at the top of your code

you should see the led on the new pcb flash when it is done.

This has now worked for me 9 times without any problems.

I do however take no responsibility if it goes wrong for you.

Enjoy

Don

Of course you are now responsible ... We have your forum name and if anything goes wrong, we will hunt you down and flame you to a crisp... Like a crispy, burnt tiny85!
]:smiley:
Edit: my guess is the Exhibits forum is the most proper location. Mods will move as necessary.

OK, so like I have always used the "Arduino as ISP" in the settings, but based on your statement below, I guess the AVRDUDE utility works with either...

Set the programmer as "AVRISP MKII"
Load the "ArduinoISP" sketch and upload it to the Arduino.

i use an Adafruit ZIF shield modified to work with the 328 or the tiny85... Saves those bent pins!
Edit add: ATtiny support on modified Adafruit programmer shield - Exhibition / Gallery - Arduino Forum

I now use Coding Badly's tiny core on Google and I have now gone to Nick Gammon's ISP script, however, as it seems superior in the 1284 burns. I was having some issues with the MIT core that do not occur with this;
https://code.google.com/p/arduino-tiny/

Ray