Arduino Uno ISP to ATtiny85

I am trying to program an ATtiny85 with an Arduino Uno as an ISP using this tutorial and arduino software 0022. Whenever I upload it, I get this error. http://www.hobbytronics.co.uk/arduino-attiny

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

Does anyone know what this means and how I can fix it? Thanks.

Sorry, after doing some further reading I realized that I can ignore that.

However when I connect the LED up it does not blink? I did not burn the bootloader to the ATtiny which this tutorial does not address?

The LED does work and has been connected up to 5v > resistor > led > gnd to test that it works.

When I select the board (ATtiny85 w/ Arduino ISP) and click burn bootloader I get this error:

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
avrdude: invalid byte value (null) specified for immediate mode
avrdude: write to file 'null' failed

You don't need to trouble yourself with bootloader.
Post your code and schematic of your wiring.

I got the Attiny85 to program and then the LED would light up for about 3 seconds without blinking and then turn off. I am using the simple blink example sketch and schematic from the tutorial. I left it plugged into the Uno while it was running the sketch and kept the 10uF capacitor across reset and gnd. Should I unplug anything?

After running it a few more times it appears that is is very briefly blinking for a fraction of a second and then staying light. After about 3 seconds it still quits out.

The Attiny has a 20mhz internal clock. Would that make a difference?

The Attiny has a 20mhz internal clock. Would that make a difference?

If you didn't do the "Burn bootloader" it is running at 1MHz.

Are you sure it isn't just blinking very slow? like 8sek on and 8sek off ?

It seems to be blinking really fast for a short period of time and then completely cutting out regardless of whether the 10uF capacitor is in or not.

Could something be shorting?

Just to be clear when the sketch is running can I leave SCK,MOSI etc. plugged into the Arduino pins and the capacitor connected?

I really appreciate your help.

Just to be clear when the sketch is running can I leave SCK,MOSI etc. plugged into the Arduino pins and the capacitor connected?

Yes, although I would connect the LED to pin 2 or 3, as they are not used for programming

I have a proto-shield that I use for buring sketches to 85s with.
I don't run the sketch with the 85 on that proto-shield though.
I transfer the '85 to a separate breadboard to test/verify the sketch/operation.

I have tried the led on all of the pins. Pins 3-4 do nothing and pins 0-2 each seem to cause the led to be brighter but they all still cut out after a few second of flashing.

It still does not make sense though why they cut out after a few seconds?

While the led is flashing the TX and RX led on the UNO flash wildly and then also cut out.

Please post the sketch that you're using, etc.

attiny85.JPG

I have no idea why but it just started working. I did not change any wires or the program but out of frustration I uploaded the sketch agian and it started working. I have changed the times and it blinks faster or slower.

One last question. Right now the ATtiny is hooked up only to 5v GND and the LED and everything is working. Does the reset pin need to be connected to 5v with a 10k resistor? I thought that it did, but it seems to be working right now.

THANK YOU EVERYONE!!

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.
 
  This example code is in the public domain.
 */

void setup() {                
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(0, OUTPUT);     
}

void loop() {
  digitalWrite(0, HIGH);   // set the LED on
  delay(2000);              // wait for a second
  digitalWrite(0, LOW);    // set the LED off
  delay(2000);              // wait for a second
}

Does the reset pin need to be connected to 5v with a 10k resistor?

That would be a very good idea, if you don't do it you could see some strange things happen when your Attiny resets without any reason.
And a 100NF (0.1 uF) cap between 5V and ground

Does that also apply for the ATtiny85 and 2313?

Erni:

That would be a very good idea, if you don't do it you could see some strange things happen when your Attiny resets without any reason.
And a 100NF (0.1 uF) cap between 5V and ground

Does that also apply for the ATtiny85 and 2313?

I am not sure we are talking about the same thing.

The resitor and capacitor is needed for ATtiny85 and 2313 or any other Attiny, or Atmega328 if you use them in a standalone project

That answered my question.

The resitor and capacitor is needed for ATtiny85 and 2313 or any other Attiny, or Atmega328 if you use them in a standalone project

Additionally, would it damage an Arduino if the Uno was connected to the SCK pin for example of the ATtiny85 and I used it as an LED pin so that the LED was lighting up on the breadboard while it was still connected to pin 13 on the Arduino Uno?

No it woulddn't damage the Arduino (I have done that often), but it might interfer with the programming.
That is why I usually use pin 3 or 4, as they are not used for programming.

Edit:
Possible problems: