#87 Six, yes SIX, GPIO pins on an ATTiny85
27.8 هزار بار بازدید -
7 سال پیش
-
So you like the ATTiny85
So you like the ATTiny85 chip but wish you could use ALL the pins as GPIO pins? Your wish is granted!
OK, you have to build (or buy) a fuse resetter (I show you how) but it's a small project that just about anyone with a soldering iron can successfully complete (Benny built mine and he's got no thumbs, remember). And if you watched my video last week (#86) you got an inadvertent sneak peek! Oops!
If you really don't want to build one for a few dollars, you can always buy one ready made, but at least by watching this video you will understand what it is doing.
There are some minor "gotchas" to watch out for (just one or two but definitely worth knowing about) but when it comes down to it YES you CAN have all SIX GPIO pins working on a Tiny85, as I prove in this video.
I wish I had known this a few years ago as I would now be using my ATTiny85 instead of a Nano to control my fridge door alarm, that's for sure. Sometimes a Tiny85 is all you need. And it can run off batteries for weeks if not months, as my previous video on the Tiny85 mentioned.
The code I used to reset the fuse can be found here:
https://github.com/RalphBacon/ATTiny8...
===============================
LINKS LINKS LINKS and MORE LINKS!
===============================
High Voltage programming/Unbricking for Attiny - Yikes! Invalid device signature
https://arduinodiy.wordpress.com/2015...
ATTiny85 Spec Sheet (Good Bedtime Reading, really!) Page 184-185 has graphs showing the current/voltage.
http://www.atmel.com/images/atmel-258...
Embedded Fuse Calculator (for all ATMEL chips)
http://www.engbedded.com/fusecalc/
All about ATMEGA328P (Uno/Nano) Fuse Settings
http://www.martyncurrey.com/arduino-a...
Setting and reading AtTiny85 fuses
https://dntruong.wordpress.com/2015/0...
You can use AVRDUDE (that's the AVR DownandUploadDEr - contrived or what?) to give you info on fuses too.
Run PowerShell from Windows Start Button, then execute these commands:
CD "C:\Program Files (x86)\Arduino\hardware\tools\avr\bin"
./avrdude.exe -c stk500v1 -p attiny85 -P com7 -U lfuse:r:-:i -v -C ..\etc\avrdude.conf -b 19200 -F
1. You can remove the -F that just skips an invalid signature (like if you have the RESET pin configured as an IO pin!)
2. ** Note the path must be in quotes **
3. If you are not running a 64-bit Windows version (eg Windows 10) your path might be different so remove the (x86) bit from the path.
OK, you have to build (or buy) a fuse resetter (I show you how) but it's a small project that just about anyone with a soldering iron can successfully complete (Benny built mine and he's got no thumbs, remember). And if you watched my video last week (#86) you got an inadvertent sneak peek! Oops!
If you really don't want to build one for a few dollars, you can always buy one ready made, but at least by watching this video you will understand what it is doing.
There are some minor "gotchas" to watch out for (just one or two but definitely worth knowing about) but when it comes down to it YES you CAN have all SIX GPIO pins working on a Tiny85, as I prove in this video.
I wish I had known this a few years ago as I would now be using my ATTiny85 instead of a Nano to control my fridge door alarm, that's for sure. Sometimes a Tiny85 is all you need. And it can run off batteries for weeks if not months, as my previous video on the Tiny85 mentioned.
The code I used to reset the fuse can be found here:
https://github.com/RalphBacon/ATTiny8...
===============================
LINKS LINKS LINKS and MORE LINKS!
===============================
High Voltage programming/Unbricking for Attiny - Yikes! Invalid device signature
https://arduinodiy.wordpress.com/2015...
ATTiny85 Spec Sheet (Good Bedtime Reading, really!) Page 184-185 has graphs showing the current/voltage.
http://www.atmel.com/images/atmel-258...
Embedded Fuse Calculator (for all ATMEL chips)
http://www.engbedded.com/fusecalc/
All about ATMEGA328P (Uno/Nano) Fuse Settings
http://www.martyncurrey.com/arduino-a...
Setting and reading AtTiny85 fuses
https://dntruong.wordpress.com/2015/0...
You can use AVRDUDE (that's the AVR DownandUploadDEr - contrived or what?) to give you info on fuses too.
Run PowerShell from Windows Start Button, then execute these commands:
CD "C:\Program Files (x86)\Arduino\hardware\tools\avr\bin"
./avrdude.exe -c stk500v1 -p attiny85 -P com7 -U lfuse:r:-:i -v -C ..\etc\avrdude.conf -b 19200 -F
1. You can remove the -F that just skips an invalid signature (like if you have the RESET pin configured as an IO pin!)
2. ** Note the path must be in quotes **
3. If you are not running a 64-bit Windows version (eg Windows 10) your path might be different so remove the (x86) bit from the path.
7 سال پیش
در تاریخ 1396/03/05 منتشر شده
است.
27,820
بـار بازدید شده