Hi, i'm using an arduino uno to program an attiny85. Yesterday all where ok, i'm trying a simple led blinking and works. Today i dont know where i have touch the code:
int led = 1;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
verified - no errors
upload:
avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
maybe ... it's possible ... i've touch the menu - boot - burn bootloader ... i really don't know, How i can fix all?
You have a wire connecting B1 (digital pin 1) on the ATtiny85 (aka t85) to digital pin 12 on your Uno. Put a resistor in middle. Anything between 220 ohms and 1K ohms will work well. The purpose of the resistor is to protect your Uno (and the t85) until you resolve the problem.
Including series resistors on the other two programming lines (digital pin 11 and digital pin 13 on your Uno) is also a good idea.
juanmol:
i'll try, but ... why i don't need it yesterday?
You did not need it yesterday because programming was working.
You have the t85 programmed to output on one of the programming pins. If the programmer (your Uno) is not asserting RESET on the target, the target will continue outputting while the programmer tries to program. This can result in a short-circuit between the the processors and may damage either or both processors.
I suspect from your posts that you did not read (or did not understand) Reply #1 so I will restate the most important part...
The purpose of the resistor is to protect your Uno (and the t85) until you resolve the problem.
The resistor(s) serve no other purpose. They will not help you resolve the problem.