Keeping a PC powered on with an Arduino Some background... I needed an option to…
Almost everyone who mess with the ATTiny85 end at least one time with a dead one caused by bad fuses. I’m in that group 🙂
So, I was looking for a solution.
The solutions are:
I decided to go on with the first solution and ordered the parts from Taydaelectronics.com
I found few posts about how to build it:
https://sites.google.com/site/wayneholder/attiny-fuse-reset
http://www.gammon.com.au/forum/?id=12898
http://www.simpleavr.com/avr/hvsp-fuse-resetter
I received the parts (I wanted the last one) and started to build.
But…
I was too lazy.
I searched for more ways and found this one: Link
But It didn’t work for me, even the Anonymous guy method down in the comments who gave some codes of ISP to try.
I googled again and found my hero!
http://www.larsen-b.com/Article/260.html
I needed some more search to find out how to use the External Clock of another AVR but in the end I found it.
I’ve used a fresh ATTiny85 for this.
The steps to make it work:
int main() { DDRB = 0xFF; while (1) { PORTB = ~PINB; asm volatile("nop"); asm volatile("nop"); } return 0; }
-U lfuse:w:0xa2:m -U hfuse:w:0xdf:m
-U efuse:w:0xff:m
(Usually goes like this: avrdude -p attiny85 -c stk500v1 -P YOURCOMPORT -b 19200 -U lfuse:w:0xa2:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m)