Using Arduino Uno R3 as a programmer for ATtiny85

I am trying to program an ATtiny85 IC with an Arduino Uno as an ISP. I have set up the Arduino as an In System Programmer, but whenever I try to burn the bootloader, I get this:

Sketch uses 676 bytes (8%) of program storage space. Maximum is 8192 bytes.
Global variables use 9 bytes (1%) of dynamic memory, leaving 503 bytes for local variables. Maximum is 512 bytes.
"C:\Users\natha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\natha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -pattiny85 -cstk500v1 -PCOM3 -b19200 "-Uflash:w:C:\Users\natha\AppData\Local\Temp\arduino\sketches\EC5E1DD5FE4D0481B34F7022D867442E/Blink.ino.hex:i"

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Users\natha\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

     Using Port                    : COM3
     Using Programmer              : stk500v1
     Overriding Baud Rate          : 19200
     AVR Part                      : ATtiny85
     Chip Erase delay              : 400000 us
     PAGEL                         : P00
     BS2                           : P00
     RESET disposition             : possible i/o
     RETRY pulse                   : SCK
     serial program mode           : yes
     parallel program mode         : yes
     Timeout                       : 200
     StabDelay                     : 100
     CmdexeDelay                   : 25
     SyncLoops                     : 32
     ByteDelay                     : 0
     PollIndex                     : 3
     PollValue                     : 0x53
     Memory Detail                 :

                              Block Poll               Page                       Polled
       Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
       ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
       eeprom        65    12     4    0 no        512    4      0  4000  4500 0xff 0xff
       flash         65     6    32    0 yes      8192   64    128 30000 30000 0xff 0xff
       signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
       lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
       lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
       hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
       efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
       calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

     Programmer Type : STK500
     Description     : Atmel STK500 Version 1.x firmware
     Hardware Version: 2
     Firmware Version: 1.18
     Topcard         : Unknown
     Vtarget         : 0.0 V
     Varef           : 0.0 V
     Oscillator      : Off
     SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

avrdude done. Thank you.

Failed programming: uploading error: exit status 1

How can I fix this? I triple checked the connections. I am a beginner at this, but I think the problem is that the device signature is 0.

Very likely a wiring problem.

Please post a pic of a hand-drawn wiring diagram, with pins and connections clearly labeled. Be sure to show all the details of the ATtiny wiring (oscillator connection, decoupling capacitors, reset circuity and how it is powered).

Also post a link to the tutorial you are following.

Which core do you have installed? I prefer the ATTinyCore core by Spence Konde. There are installation instructions on the GitHub page. It is the best core that I found.

I triple checked the wiring.

Good luck with your project.

I don't know if this answers your question, or what a core really is, in software, but my boards manager in the Arduino IDE is "attiny" by David A. Mellis.

All zeros in signature means that the target doesn't answer. It can be wiring (more probably) or your attiny chip non-worked or bad.

If you looking for help - post pictures of your connection, as indicated in post#2.
There is no point in talking without this.

What is an Arduino core?

I think that it would be worth it to install the ATTiny core. Follow the instructions on the ATTinyCore GitHub page. It allows more flexible choices of clock frequency, source and other parameters.

I might do that, but I have other problems to fix right now.

In the diagram that you posted there is missing the 10uF cap that goes between the Uno reset and ground. That prevents the Uno from trying to upload the bootloader code.


Make sure to observe polarity when connecting the cap.

In the boards menu, choose Uno and the serial port to which the Uno is connected (no cap on Uno reset).

Load the Uno with the Arduino as ISP sketch.

Wire the tiny85 to the Uno as shown. Do not forget the cap from Uno reset to ground

Choose the tiny85 variety that you want in the boards menu and set the clock source, clock frequency, and other options as necessary.

Choose Arduino as ISP in the programmer menu.

Burn bootloader.

All the wiring diagrams are also missing the required 100 nF decoupling capacitor across the Vdd and GND pins of the ATtiny.

I cannot find the Vdd pin on my arduino, only a Vin pin

It still give the invalid signature error, even after putting the 10uf cap

You don't use a resonator.
Are you sure that your Attiny is configured for internal clock source?
Is this a first time when you use this chip?

It is my first time using the Attiny, but I have done some research and it looks like the clock already defaults to 1MHz.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.