a timer that goes logic high or low every 15mins ( using tiny85 chip)

Thread Starter

timtim1234

Joined Nov 30, 2023
246
First your hook your uno up load the code i posted then you hook the attiny as listed uno pin 11 to attiny mosi , uno pin 12 to attiny moso , uno pin 13 to attiny sck , uno pin 10 to attiny reset
Power and ground

Next you set the attiny as your board set chip attiny clock 8mhz bootloader you want then hit the burn bootloader
ohhh i thought you wanted me to unhook pin 10 i will try what u say will let you know
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
nope same error :(

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Failed chip erase: uploading error: exit status 1
 

be80be

Joined Jul 5, 2008
2,395
You probably bricked that chip you'll need a high voltage programmer to fix it

go to file then down to preferences click show verbose output during upload

and post that

It look like this but show you errors

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

         System wide configuration file is "/home/burt/.arduino15/packages/ATTinyCore/hardware/avr/1.5.2/avrdude.conf"
         User configuration file is "/home/burt/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         Setting bit clk period        : 5.0
         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    12    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          2    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 = 0x1e930b (probably t85)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "/tmp/arduino/sketches/3A9C11F89B4B085F6A5A15D84FADD915/Blink.ino.hex"
avrdude: writing flash (456 bytes):

Writing | ################################################## | 100% 0.72s

avrdude: 456 bytes of flash written
avrdude: verifying flash memory against /tmp/arduino/sketches/3A9C11F89B4B085F6A5A15D84FADD915/Blink.ino.hex:
avrdude: load data flash data from input file /tmp/arduino/sketches/3A9C11F89B4B085F6A5A15D84FADD915/Blink.ino.hex:
avrdude: input file /tmp/arduino/sketches/3A9C11F89B4B085F6A5A15D84FADD915/Blink.ino.hex contains 456 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.36s

avrdude: verifying ...
avrdude: 456 bytes of flash verified

avrdude done.  Thank you.
 
Last edited:

be80be

Joined Jul 5, 2008
2,395
If you setup the chip to program and you do it wrong it flashes who knows what to the chip been the done that flashed th atmeg bootloader to a atiny
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
just in case if it was bricked i tried another chip same thing :( if you know of some schematic diagram for a simple programmer i could make one. well if i have all the parts here
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
also every website i lookup shows the same UNO to the tiny85 wiring. I check my wiring many times.

At this point, I am not sure what else to do
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
Well update I have spent hours on this and still no luck same error I have tried everything I even went on the web and lookup the error and tried the "fixes" no luck. This is why I like hardware instead of programming..lol

anyway i don't know if I will order anymore "programmers" I don't want to have a pile of them here and not work..lol

I would like to thank everyone for helping :)
 

MrChips

Joined Oct 2, 2009
34,824
Welcome to the Arduino world!

You need to know and understand how the Arduino platform works. In order for the Arduino to run it has to have a working program in the first place.

This is why I use the AVR Pocket Programmer. I run bare bones code directly on the ATtiny85.
I don't use Arduino.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
Welcome to the Arduino world!

You need to know and understand how the Arduino platform works. In order for the Arduino to run it has to have a working program in the first place.

This is why I use the AVR Pocket Programmer. I run bare bones code directly on the ATtiny85.
I don't use Arduino.
Ya, I can see why you do now! lol ohh well it is what it is :)
 

be80be

Joined Jul 5, 2008
2,395
I used arduino without the cores it let you write code in C and load hex files but thats been while back

If you do what o ask in post 103 we could probably get you going.
 

Thread Starter

timtim1234

Joined Nov 30, 2023
246
here it is
"C:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -v -v -v -pattiny85 -cstk500v1 -PCOM6 -b19200 -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2:m

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\Admin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

Using Port : COM6
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done. Thank you.

Failed chip erase: uploading error: exit status 1
 

be80be

Joined Jul 5, 2008
2,395
It should be this STK500.
stk500v1 the wrong progammer

There are 3
arduino as isp . Thats the one you want
Not the arduinoisp
Or arduinoisp.org
 
Top