lunes, 14 de noviembre de 2016

Digispark, reset disable

A few weeks ago i bought some chinese digisparks, 3 for 6 bucks. Everything worked fine and i started playing with them. But there was a problem. I couldnt get a signal out of Pb5, and the analog converter ADC0 in Pb5, couldnt go under 2,45V because the attiny85 would reset.
It seems that chinese digisparks dont have the reset fuse disabled. So i started searching a way to set the fuses right. This is what i got:
First we need to install arduino ISP, on an arduino uno, or similar. You can get Arduino ISP on examples
     Arduino ISP program
Now you will need to conect the arduino to the digispark, with this configuration: 
GND-->GND
5v-->5v
10-->p5
11-->p0
12-->p1
13-->p2 
And you will need to connect  a 10uF capacitor to the reset of an arduino and to ground
Next step is to install AVRDUDESS.
Now you have to open it and set everything as it is on the image below
 AVRDUDESS
Now you have to press first "Detect" and if it recognises the attiny85, then you have to press in the box of "Fuses & lock bits"the first Read. You will get 3 hexadecimal values.
Then you have to take this values and put them in this Calculator. Put attiny85 as AVR, and put the values in their places

Later you have to press the bit 7 RSTDISBL, and put it to high, and recalculate.
 
There  will come new hexadecimal values, You have to copy them into the AVRDUDESS console, and press Write. After that your fake digispark will became a real digispark. Just try it, loading a blink program on Pb5


1 comentario:

  1. Thank you so much for this easy tutorial, it worked for me!
    I've been searching for a solution for hours before I finally found this

    ResponderEliminar