Page 1 of 1

tutorial about programming ATTINY85 with Arduino Nano

Posted: 17 Jul 2021, 02:52
by giobbi
Hello guys and gals,

is there any tutorial that explains how to upload the babelfish code into the AtTiny85 chip using Arduino Uno?

I've found generic tutorials, but I'm new about that chip (I'm growing old and I know how to program eprom only, LOL), so I'm feeling unsure about this part. And I don't know what the "burning the fuse" should be...

Giovi

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 18 Jul 2021, 23:50
by bmwtcu
https://circuitdigest.com/microcontroll ... ng-arduino
https://github.com/kervinck/gigatron-ro ... _fuses.txt

Googled these, but haven't tried it myself. I highly recommend checking out norgate's Pluggy Reloaded.

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 21 Jul 2021, 01:40
by giobbi
I hit at the same results, but I'm (still) confused about the "burning the fuses" I've read somewhere here in the forum...

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 21 Jul 2021, 07:11
by walter
That's needed to get it to run at 8MHz. It needs to be done only once.

Create a file fuses.txt with:
fuses_lo = 0x00e2
fuses_hi = 0x00df
lock_byte = 0x00ff

Then set them:
minipro -p attiny85 -w fuses.txt -c config

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 23 Jul 2021, 16:00
by giobbi
walter wrote: 21 Jul 2021, 07:11 minipro -p attiny85 -w fuses.txt -c config
do you mean I could/should use a tl866 programmer to program the attiny85 ?

Mine tl866 (clone) is on the road, I bought one to program the eprom, since my eprom programmer can't manage it... But I believed I need ad Arduino Uno to program the attiny85.

Out of curiosity: if you want to use the Arduino Uno anyway, how should you use the fuse.txt file?

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 24 Jul 2021, 08:27
by walter
Sorry, I missed the Arduino Nano bit. I've always used a TL866 programmer to program the ATtiny and set the fuses.
How you'd set the fuses using an Arduino Nano I don't know.

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 24 Jul 2021, 15:24
by giobbi
walter wrote: 24 Jul 2021, 08:27 Sorry, I missed the Arduino Nano bit. I've always used a TL866 programmer to program the ATtiny and set the fuses.
How you'd set the fuses using an Arduino Nano I don't know.
Actually it's quite interesting to know you can program the Attiny85 with a TL866 programmer, I didn't know. It simplify a lot my life.
Thanks for the info, it's quite useful!

cheers,
Giovi

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 07 Aug 2021, 22:06
by giobbi
walter wrote: 21 Jul 2021, 07:11 That's needed to get it to run at 8MHz. It needs to be done only once.

Create a file fuses.txt with:
fuses_lo = 0x00e2
fuses_hi = 0x00df
lock_byte = 0x00ff

Then set them:
minipro -p attiny85 -w fuses.txt -c config
Walter, the command line option didn't work for me, however from inside the MiniPro GUI there's the option for the fuse setting, so I solved anyway.
And your clue about to do that using MiniPro was priceless! Thanks again!

-- Giovi

Re: tutorial about programming ATTINY85 with Arduino Nano

Posted: 08 Aug 2021, 12:48
by walter
Glad to hear that has solved your problem!