I am trying to program ATTin85 using Arduino
I used the hardware support file from "High-Low Tech"
here http://hlt.media.mit.edu/?p=1695
With this schematic:
I downloaded the ArduinoISP sketch on the Uno board, then chose "ATTiny85 internal 8Mhz" with "Arduino as ISP"
then tried burning the Bootloader and tried uploading a sketch but the IDE gives:
"
avrdude.exe: please define PAGEL and BS2 signals in the configuration file for part ATtiny85avrdude.exe: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override this check.
"
so I tried to using avrdude from CMD
"avrdude -P COM5 -b 19200 -c avrisp -p t85 -v -e -U flash:w:worked.cpp.hex"
so it gives
"avrdude: please define PAGEL and BS2 signals in the configuration file for part
ATtiny85
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0xffffff
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.
avrdude done. Thank you."
I tried another ATTiny85 chip and got the same result!
I've used the exact same instructions to program an Attiny45 using an Uno with no problems. I am running my Attiny at 1Mhz which I believe is the default.
Maybe you should try 1Mhz just to see if that works. If so it would suggest the fuses are not being set properly for 8Mhz - but I'm afraid I have no idea why or what to do.
0xffffff means bad wiring - it hasn't managed to get a real device signature off the chip.
[/quote]
I checked the resistance between the pins of the ATTiny and the ends of the jumpers that are in the Arduino.
I also used a different set of jumpers, different board, different chip. No luck at all ~_~
It could mean that you have incorrectly programmed the fuses so that it requires an external oscillator. If you are using ArduinoISP, you can modify the sketch to output an 8MHz square wave from one of the PWM pins which you can then feed in to the XTAL1 pin of the attiny.
I know this is probably a stupid comment, but are you sure you have the Attiny the right way round?
Have you checked that there is 5v and Gnd at the appropriate Attiny pins?
I think there is advice in the ArduinoISP file about using LEDs to monitor the uploading - may be useful. I did see a web page about this (the LEDS) somewhere, but I can't remember. Google might find it for you.
on the upper arm of the Arduino the (yellow,green,blow,red) are connected to (13,12,11,10)
on the lower part (red,orange,white) are (reset,5V,GND)
I did a continuity check on from the legs of the ATTiny to arduino, and also checked the voltage, and changed the bread-board just now.
The Atmel logo looks wrong to me, the lines in the logo are far too thick and the rightmost of the two vertical lines in the 'm' doesn't go all the way to the top.
The writing is also far too white (that's what called my attention in the first place). I always had trouble getting the writing on Atmel chips to appear at all in photographs but yours is as clear as day. Notice that you can't read the writing on the Uno's ATMega328 in your first photograph - that's what I'd expect to see from that distance/angle.
The date codes are a bit weird. You say you bought them ten months ago but the date codes say 2005/2006.
All in all ... I'd say there's a good chance they're fakes. There might be nothing at all inside the chips.
fungus:
The Atmel logo looks wrong to me, the lines in the logo are far too thick and the rightmost of the two vertical lines in the 'm' doesn't go all the way to the top.
The writing is also far too white (that's what called my attention in the first place). I always had trouble getting the writing on Atmel chips to appear at all in photographs but yours is as clear as day. Notice that you can't read the writing on the Uno's ATMega328 in your first photograph - that's what I'd expect to see from that distance/angle.
The date codes are a bit weird. You say you bought them ten months ago but the date codes say 2005/2006.
All in all ... I'd say there's a good chance they're fakes. There might be nothing at all inside the chips.