tutorial about programming ATTINY85 with Arduino Nano

Using, learning, programming and modding the Gigatron and anything related.
Forum rules
Be nice. No drama.
Post Reply
giobbi
Posts: 38
Joined: 11 Jul 2021, 22:12

tutorial about programming ATTINY85 with Arduino Nano

Post 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
bmwtcu
Posts: 145
Joined: 01 Nov 2018, 12:02

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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.
giobbi
Posts: 38
Joined: 11 Jul 2021, 22:12

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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...
walter
Site Admin
Posts: 159
Joined: 13 May 2018, 08:00

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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
giobbi
Posts: 38
Joined: 11 Jul 2021, 22:12

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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?
walter
Site Admin
Posts: 159
Joined: 13 May 2018, 08:00

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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.
giobbi
Posts: 38
Joined: 11 Jul 2021, 22:12

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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
giobbi
Posts: 38
Joined: 11 Jul 2021, 22:12

Re: tutorial about programming ATTINY85 with Arduino Nano

Post 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
walter
Site Admin
Posts: 159
Joined: 13 May 2018, 08:00

Re: tutorial about programming ATTINY85 with Arduino Nano

Post by walter »

Glad to hear that has solved your problem!
Post Reply