Based on Recover Bricked ATtiny Using Arduino as high voltage programmer This program restores the default fuse settings of the ATtiny. The fuses can then easily be changed with the programmer you use for uploading your program.
- Added option to press button instead of sending character to start programming
- Improved serial output information
- After programming the internal LED blinks
- Added timeout for reading data
Just copy the content of the HVProgrammer.cpp file into a new Arduino sketch and run it.
In the Arduino serial monitor with baudrate 115200 you will see something like:
START C:\...\ArduinoSketches\sketch_feb09a\sketch_feb09a.ino
Version 2.2 from Feb 9 2019
Press button at pin 6 to start process or enter any character to start process...
and after button press or sending a character you see
Reading signature from connected ATtiny...
Reading complete..
Signature is: 6C6C
Reading fuse settings from ATtiny...
LFuse: 6C, HFuse: 7E, EFuse: 7F
Reading complete.
No valid ATtiny signature detected! Try again.
if no ATtiny is attached.
This circuit uses an Arduino nano and an ebay DC-DC Step-Up Modul