The error indicates that either the Arduino ISP sketch is not installed or that auto-reset is still firing. I suggest working through the steps a second time.
http://hlt.media.mit.edu/?p=1695 Updated for UNO and 1.0 IDE. Works well, I have tested it. Of course, Coding_Badly's response still applies, but also make sure everything is wired and powered correctly. I spent an hour messing with the IDE files only to realize my reset resistor was connected to GND.
I am not sure whether I have to use a capacitor or a resistor to disable the autoreset. So now I have used a 150 Ohm resistor (not have 120) between Reset and Ground. Is this another option? is this right?
Anyway, I obtain the same error as before. This is really frustrating....
I am not sure whether I have to use a capacitor or a resistor to disable the autoreset.
You may not have to use either. The latest Optiboot does not require disabling auto-reset. If you purchased the Uno recently, it may already have a "good" bootloader installed. Try...
Removing the capacitor and / resistor
Re-uploading the ArduinoISP sketch (don't forget to change the board selection to Uno)
Uploading a test to the ATtiny
So now I have used a 150 Ohm resistor (not have 120) between Reset and Ground. Is this another option? is this right?
I load file/examples/ArduinoISP
I set board = Arduino Uno
I upload it
No errors
Then I load Blink example.
board = Attiny internal 1MHz
Programmer = Arduino as ISP (and this was selected before, for the previous case as well)
I upload it
I get this error:
Binary sketch size: 768 bytes (of a 8192 byte maximum)
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: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
in the last case, if the capacitor is used. the error is:
Binary sketch size: 768 bytes (of a 8192 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
It should work well. I suggest using the 120 ohm resistor method to disable auto-reset. You will have to find a combination of resistors to get the value in the correct range. I don't know if using a capacitor is appropriate with the FTDI chip.
If you get the Nano working as an ISP, I also suggest updating the Uno bootloader. Not having to fiddle with auto-reset is very nice!
removing capacitor or resistor does not help....
Unfortunately, you are not the first person to have trouble disable auto-reset on an Uno. You may want to search through the forum for other suggestions.
And just to make certain you are not wasting your time with the Nano... Whenever you get the "expect=0x14, resp=0x51" error or the "not in sync: resp=0x00", you have to re-upload the Arduino ISP sketch. There is a very good chance the sketch was erased when the bootloader ran. If you have not been re-uploading the Arduino ISP sketch when that error occurred, this would be a good time to start from scratch using the capacitor to disable auto-reset.
I load file/examples/ArduinoISP
I set board = Arduino Uno
I upload it
No errors
Did you disable auto-reset at this point?
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
These can be ignored.
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
However, I cannot upload the Blink example after that. I have first upload again the ArduinoISP sketch...
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: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x64
avrdude: stk500_cmd(): programmer is out of sync
If I am quick enough for setting 8Mhz... it is very strange it does not work for the Blink example...
What I found to work, 10k resistor between attiny RST and +v AND 22nF cap between attiny RST and Arduino reset pin. No modification/parts added to arduino. Don't remember where I found these instructions. Let us know.