absolutely a fabulous video that helped me gain a deeper knowledge of the attiny85. Thank you for sharing this information. I think this chip is excellent for small form factor projects.
Thank you, this helped a lot. Initially, I thought that my attiny85s were a loss, but this gave them a life and a purpose. The fact that you've explained everything from scratch, helped significantly. Thank you! Vielen Dank! Merci beaucoup! Muchos Gracias! Molto grazie! Mulțumesc frumos!
Thanks dude! I got some "CJMCU" attiny85 round-disc things which seemed to have no bootloader, despite instructions stating to "program them like digispark" devices. Maybe I didn't understand what I had...regardless, followed your clear instructions and now have some working usb-programmable attiny85 devices without a separate ISP. Fantastic!
Extremely Helpful and AWESOME Work man. This is the thing that used to drive me crazy since i always used to burn boot loader from the ide itself this was a confusing thing which u simplified to spoon feeding . Thank You Pal, Great Work
Thanks for the unbricking step by step. I had set the fuses on one of my Digispark ATTiny85s to some incorrect values and this recovered them. The bootloader works now to upload sketches but Windows Device Manager still flags it as an unknown USB device for some reason.
How would you use the digispark to burn a bootloader onto a nano? this is what i cant find. I have micronucleus on attiny85 already, but dont have any arduinos that work to be able to burn a bootloader to my two new nanos (chinesium).
Hi, once the attiny85 has been programmed can it be removed and used in a project by it self or do you need the Digispark board included in your project. I am having a problem , if I take the attiny85 out of Didgispark board and put it in my project it does not work. If I use the Digispark board with the Attiny85 and run wires to the project board the circuit works. can you think of anything I might be doing wrong.
Found this on another website, Now my attiny85 works. "ATTINY85 + Micronucleus, vcc + gnd does not work, also need to power pin2? ive got a cheap usb digispark type adapter for my attiny85's. I used the in system programmer to load micronuclus from my Arduino Mega, and now I can program no problem using the digispark usb adapter. however, when I transfer the 85 to a breadboard it does not run my program. I used my volt meter I noticed pin 2 from the usb adapter was also powered. so I jumpered vcc to pin 2 and it starts working on my breadboard. does anyone know if this is somthing related to the 85, or the bootloader? seems silly to me. took for ever to figure out how to get it to work on my breadboard. anyone have any ideas whats going on? Thanks!"
I have spent several days trying to put a bootloader on an ATtiny85 and I have found a few very good examples on how to do it but I keep coming to a dead end and can't finish the job. I have completed every step in your example and again I almost finish but have a problem that ends my progress. If I could read your command line command so that I could modify it to my system I could accomplish what I am trying to do but I can't read it, the text is too small. Yes, I see the example in the text below but it is not complete enough for me to completely understand.
I looked at the command line in the video and here's what it seems to be (on a MAC so it would look different on another system, and I manually downloaded a different version of avrdude and put it on a usb stick that had a volume name "GR_ROOT" so I directly referenced that so it wouldn't try to use the avrdude installed with arduino IDE). /Volumes/GR_ROOT/avrdude -C /Volumes/GR_ROOT/avrdude.conf -P /dev/cu.wchusbserialfd1220 -b 19200 -c avrisp -p attiny85 -Uflash:w:/Volumes/GR_ROOT/t85_default.hex:i -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
@@GadgetReboot Thank you very much, you went to a lot of trouble to get that for me. I really do appreciate it. I believe I can make it work now. I have tried so many different things and it seems like such an easy task and I have not been able to accomplish it, perhaps I can now.
I remember it took me a hassle to figure out how to get avrdude working and realizing I had to get a separate copy, but now I totally forget everything (I think it's been 3 years) so I'll probably have to rewatch this video myself the next time I need to do it.
The ISP in the uno is what makes it act as a programmer for the ATTiny and should be put in before the reset capacitor is added, otherwise the uno itself won't be able to go into reset in order to receive the ISP code. So with no ISP code, uno is the target device being programmed. With ISP code and reset bypassing capacitor, uno is a dedicated programmer and ATTiny is the target device
@@GadgetReboot Ah, ok. I just spent hours trying to get a Leonardo Pro Micro to interface with an ATTiny85 so I could install micronucleus. The last thing I tried was to upload a pinout modified version of examples\ArduinoISP to Leonardo, and boom, it worked! A lot of the guides out there don't include the instruction to first upload ArduinoISP, which doesn't help noobs like me. Thanks
Thanks but i am getting this " System wide configuration file is "/Users/.../Desktop/avdprog/avrdude.conf" error at /Users/.../Desktop/avdprog/avrdude.conf:332 unrecognized character: "w""... Kindly advice. Many Thanks
I remember having to do some weird things but I think I had to either update avrdude or else install a second copy somewhere specific and directly run that one by using the full path to avrdude and the full path to the conf file so it wouldn't run whatever it finds in the system path. 2010 being 11 years old, there's probably some things that need updating.
Like this example in the video description: /folderpath/avrdude -C /folderpath/avrdude.conf -v -P COMPORTNAME -b 19200 -c avrisp -p attiny85 -Uflash:w:/folderpath/t85_default.hex:i -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m I am directly calling avrdude from some /folderpath location, and also /folderpath/avrdude.conf to specifically say which conf file to use, then it worked. Then whatever older copy was installed already is ignored
@@GadgetReboot wow..you were fast to reply. Greatly appreciated. I will download from git hub the lastest copy that they have and also check for latest copy of avrdude.config. oh yeah, I am using the attiny85 board from Banggood. (black). Than will follow your instructions to the latter. indeed will post back on how i got on. Again fabulous attention to my request. Much appreciated.
Can anyone tell me if there is no boot loader installed will PC detect a device has been plugged in? I bought two on ebay and nothing happens when I plug it in the USB port. I tried on both USB 2 and USB 3 computers. Thanks
If there is no boot loader, it won’t detect as a USB device because ATtiny doesn’t have built-in USB support, it’s all done in software with the boot loader. That’s how I ended up going down the rabbit hole having to do high-voltage programming to set and clear flags and allow me to upload this boot loader myself and then everything was fine again.
@@GadgetReboot i have a digispark attiny85 clone. when i plug board in, computer says usb device is not recognized. so how can i fix this? am i have to burn bootloader?
If it’s a brand new board and you’re not sure if it has the micronucleus boot loader, it may need to be programmed. I can’t remember for sure but I think there should be an on-board LED blinking when it is powered up to show it has been properly prepared. If the boot loader is there, it could be that the computer drivers are not installed if they are needed, or it could just be unlucky USB port hardware incompatibility since the board isn’t a true USB device so it’s not always guaranteed to work on every port. This page has a bunch of troubleshooting information regarding all these possibilities including trying to plug it into different ports or into a USB hub just to see if it responds anywhere. digistump.com/wiki/digispark/tutorials/connecting
@@GadgetReboot i installed all drivers but nothing happened. When i plug the board, the computer beeps several times, and the screen says the device is faulty. But card is new. İt cant be broken.
Is it still faulty? I can’t think of any other ideas unless it actually is faulty as a manufacturing defect but it may be most likely that it needs the boot loader programmed because maybe it just means it’s not communicating because it’s blank.
I struggled with mine as well and it turns out I had two or three different files in different locations. I can’t remember how I found out where they all were but this thread rings a bell where I can get the Arduino IDE to show me where the file is while I am programming and Arduino IDE is using the file. forum.arduino.cc/index.php?topic=94434.0
Haters gonna hate! Sometimes I wonder what thumbs down really means to different people who do it anyway, maybe it’s because they’re tired of that kind of content and nothing was really otherwise wrong. One thing is for sure, when you start getting negative feedback, you know you’re growing and doing something right. I smile when I see it.
the version that I am using is: avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23 Copyright (c) 2000-2005 Brian Dean, www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch..
absolutely a fabulous video that helped me gain a deeper knowledge of the attiny85. Thank you for sharing this information. I think this chip is excellent for small form factor projects.
Thank you, this helped a lot.
Initially, I thought that my attiny85s were a loss, but this gave them a life and a purpose.
The fact that you've explained everything from scratch, helped significantly.
Thank you! Vielen Dank! Merci beaucoup! Muchos Gracias! Molto grazie! Mulțumesc frumos!
Awesome video ! Absolutely one of the best technical videos I've ever seen. Keep up the good work !
Thanks!
Thanks dude! I got some "CJMCU" attiny85 round-disc things which seemed to have no bootloader, despite instructions stating to "program them like digispark" devices. Maybe I didn't understand what I had...regardless, followed your clear instructions and now have some working usb-programmable attiny85 devices without a separate ISP. Fantastic!
Extremely Helpful and AWESOME Work man. This is the thing that used to drive me crazy since i always used to burn boot loader from the ide itself this was a confusing thing which u simplified to spoon feeding .
Thank You Pal, Great Work
I love you man thank you for this amazing video . That helped a lot. Keep up the good work!
I was able to recovery mine Digispark! thank you!!
excellent video
Awesome ....you explain so well. Never miss watching your videos!
Thanks!
Thanks for the unbricking step by step. I had set the fuses on one of my Digispark ATTiny85s to some incorrect values and this recovered them. The bootloader works now to upload sketches but Windows Device Manager still flags it as an unknown USB device for some reason.
Very useful video 👍
Ben burada 10uF yerine 47uF 10v kapasitör kullansam sorun olur mu?
❤❤❤
thank you very much for this
worked like a charm thanks
Hello, thanks for this tuto. It may be of use.
By the way, is D3 diode on the schematics biased the right way? It doesn't seem so.
Great video, but how can i find de serial port? it seems that you are pointing to a file instead. thanks
Thanks for the video man. I don't have an arduino uno, is there any way to use an ESP8266 instead?
How would you use the digispark to burn a bootloader onto a nano? this is what i cant find. I have micronucleus on attiny85 already, but dont have any arduinos that work to be able to burn a bootloader to my two new nanos (chinesium).
Is it possible to do this with an arduino Nano or Micro?
Hi, once the attiny85 has been programmed can it be removed and used in a project by it self or do you need the Digispark board included in your project. I am having a problem , if I take the attiny85 out of Didgispark board and put it in my project it does not work. If I use the Digispark board with the Attiny85 and run wires to the project board the circuit works. can you think of anything I might be doing wrong.
Found this on another website, Now my attiny85 works. "ATTINY85 + Micronucleus, vcc + gnd does not work, also need to power pin2?
ive got a cheap usb digispark type adapter for my attiny85's. I used the in system programmer to load micronuclus from my Arduino Mega, and now I can program no problem using the digispark usb adapter.
however, when I transfer the 85 to a breadboard it does not run my program. I used my volt meter I noticed pin 2 from the usb adapter was also powered. so I jumpered vcc to pin 2 and it starts working on my breadboard.
does anyone know if this is somthing related to the 85, or the bootloader?
seems silly to me. took for ever to figure out how to get it to work on my breadboard.
anyone have any ideas whats going on?
Thanks!"
what happens if i use 47uf 10v capacitor?
I think that should work also. I think it just needs to be a minimum certain value to make sure it can maintain the signal long enough.
I have spent several days trying to put a bootloader on an ATtiny85 and I have found a few very good examples on how to do it but I keep coming to a dead end and can't finish the job. I have completed every step in your example and again I almost finish but have a problem that ends my progress. If I could read your command line command so that I could modify it to my system I could accomplish what I am trying to do but I can't read it, the text is too small. Yes, I see the example in the text below but it is not complete enough for me to completely understand.
I looked at the command line in the video and here's what it seems to be (on a MAC so it would look different on another system, and I manually downloaded a different version of avrdude and put it on a usb stick that had a volume name "GR_ROOT" so I directly referenced that so it wouldn't try to use the avrdude installed with arduino IDE).
/Volumes/GR_ROOT/avrdude -C /Volumes/GR_ROOT/avrdude.conf -P /dev/cu.wchusbserialfd1220 -b 19200 -c avrisp -p attiny85 -Uflash:w:/Volumes/GR_ROOT/t85_default.hex:i -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
@@GadgetReboot Thank you very much, you went to a lot of trouble to get that for me. I really do appreciate it. I believe I can make it work now. I have tried so many different things and it seems like such an easy task and I have not been able to accomplish it, perhaps I can now.
I remember it took me a hassle to figure out how to get avrdude working and realizing I had to get a separate copy, but now I totally forget everything (I think it's been 3 years) so I'll probably have to rewatch this video myself the next time I need to do it.
Can i reverse this but use the same pinout to load bootloader for the uno (ATTiny85 Digispark -> arduino uno)?
Not sure, I think it would depend if anyone made ATTiny code to allow that to act as an ISP device, assuming that code could even fit in the Tiny.
Is it necessary to upload the ISP code to the Arduino Uno before carrying out the above steps?
The ISP in the uno is what makes it act as a programmer for the ATTiny and should be put in before the reset capacitor is added, otherwise the uno itself won't be able to go into reset in order to receive the ISP code. So with no ISP code, uno is the target device being programmed. With ISP code and reset bypassing capacitor, uno is a dedicated programmer and ATTiny is the target device
@@GadgetReboot Ah, ok. I just spent hours trying to get a Leonardo Pro Micro to interface with an ATTiny85 so I could install micronucleus. The last thing I tried was to upload a pinout modified version of examples\ArduinoISP to Leonardo, and boom, it worked!
A lot of the guides out there don't include the instruction to first upload ArduinoISP, which doesn't help noobs like me.
Thanks
How in 5 pin disable reset?
Thanks but i am getting this " System wide configuration file is "/Users/.../Desktop/avdprog/avrdude.conf"
error at /Users/.../Desktop/avdprog/avrdude.conf:332 unrecognized character: "w""... Kindly advice. Many Thanks
I remember having to do some weird things but I think I had to either update avrdude or else install a second copy somewhere specific and directly run that one by using the full path to avrdude and the full path to the conf file so it wouldn't run whatever it finds in the system path. 2010 being 11 years old, there's probably some things that need updating.
Like this example in the video description:
/folderpath/avrdude -C /folderpath/avrdude.conf -v -P COMPORTNAME -b 19200 -c avrisp -p attiny85 -Uflash:w:/folderpath/t85_default.hex:i -U lfuse:w:0xe1:m -U hfuse:w:0xdd:m -U efuse:w:0xfe:m
I am directly calling avrdude from some /folderpath location, and also /folderpath/avrdude.conf to specifically say which conf file to use, then it worked. Then whatever older copy was installed already is ignored
@@GadgetReboot wow..you were fast to reply. Greatly appreciated. I will download from git hub the lastest copy that they have and also check for latest copy of avrdude.config. oh yeah, I am using the attiny85 board from Banggood. (black). Than will follow your instructions to the latter. indeed will post back on how i got on. Again fabulous attention to my request. Much appreciated.
Can anyone tell me if there is no boot loader installed will PC detect a device has been plugged in? I bought two on ebay and nothing happens when I plug it in the USB port. I tried on both USB 2 and USB 3 computers.
Thanks
If there is no boot loader, it won’t detect as a USB device because ATtiny doesn’t have built-in USB support, it’s all done in software with the boot loader. That’s how I ended up going down the rabbit hole having to do high-voltage programming to set and clear flags and allow me to upload this boot loader myself and then everything was fine again.
@@GadgetReboot i have a digispark attiny85 clone. when i plug board in, computer says usb device is not recognized. so how can i fix this? am i have to burn bootloader?
If it’s a brand new board and you’re not sure if it has the micronucleus boot loader, it may need to be programmed. I can’t remember for sure but I think there should be an on-board LED blinking when it is powered up to show it has been properly prepared.
If the boot loader is there, it could be that the computer drivers are not installed if they are needed, or it could just be unlucky USB port hardware incompatibility since the board isn’t a true USB device so it’s not always guaranteed to work on every port.
This page has a bunch of troubleshooting information regarding all these possibilities including trying to plug it into different ports or into a USB hub just to see if it responds anywhere.
digistump.com/wiki/digispark/tutorials/connecting
@@GadgetReboot i installed all drivers but nothing happened. When i plug the board, the computer beeps several times, and the screen says the device is faulty. But card is new. İt cant be broken.
Is it still faulty? I can’t think of any other ideas unless it actually is faulty as a manufacturing defect but it may be most likely that it needs the boot loader programmed because maybe it just means it’s not communicating because it’s blank.
i couldnt find avrdude.conf file
I struggled with mine as well and it turns out I had two or three different files in different locations. I can’t remember how I found out where they all were but this thread rings a bell where I can get the Arduino IDE to show me where the file is while I am programming and Arduino IDE is using the file.
forum.arduino.cc/index.php?topic=94434.0
@@GadgetReboot i found it, thank you
I can't tell off course, but all you said in this video must be totally wrong man... Nobody gives a thumb down for no reason ;)
Haters gonna hate! Sometimes I wonder what thumbs down really means to different people who do it anyway, maybe it’s because they’re tired of that kind of content and nothing was really otherwise wrong. One thing is for sure, when you start getting negative feedback, you know you’re growing and doing something right. I smile when I see it.
the version that I am using is: avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
Copyright (c) 2000-2005 Brian Dean, www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch..