How to Program Micronucleus Bootloader on ATTiny85 and Digispark

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 56

  • @brianhenning6030
    @brianhenning6030 3 года назад +3

    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.

  • @robintel
    @robintel Год назад

    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!

  • @johnwilkerson3391
    @johnwilkerson3391 4 года назад +4

    Awesome video ! Absolutely one of the best technical videos I've ever seen. Keep up the good work !

  • @laizalott
    @laizalott 4 года назад +1

    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!

  • @baseandtrance1110
    @baseandtrance1110 3 года назад +1

    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

  • @aymenbasly1340
    @aymenbasly1340 Год назад +1

    I love you man thank you for this amazing video . That helped a lot. Keep up the good work!

  • @Bukvoezhka
    @Bukvoezhka 3 года назад +1

    I was able to recovery mine Digispark! thank you!!

  • @queenidog1
    @queenidog1 Год назад +1

    excellent video

  • @iot_enthusiast
    @iot_enthusiast 5 лет назад +1

    Awesome ....you explain so well. Never miss watching your videos!

  • @gwinvan22
    @gwinvan22 4 года назад

    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.

  • @electronic7979
    @electronic7979 5 лет назад +2

    Very useful video 👍

    • @emremat33
      @emremat33 4 года назад

      Ben burada 10uF yerine 47uF 10v kapasitör kullansam sorun olur mu?

  • @YellowPurple
    @YellowPurple Год назад

    ❤❤❤

  • @tonylaw5438
    @tonylaw5438 4 года назад +1

    thank you very much for this

  • @ifixelektronika3590
    @ifixelektronika3590 3 года назад

    worked like a charm thanks

  • @guillaume8437
    @guillaume8437 3 года назад

    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.

  • @PedroKolbEmmel
    @PedroKolbEmmel 3 года назад

    Great video, but how can i find de serial port? it seems that you are pointing to a file instead. thanks

  • @LuizGustavo-bd8nn
    @LuizGustavo-bd8nn Год назад

    Thanks for the video man. I don't have an arduino uno, is there any way to use an ESP8266 instead?

  • @sinopulence
    @sinopulence 4 года назад

    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).

  • @chrixtianr8888
    @chrixtianr8888 9 месяцев назад

    Is it possible to do this with an arduino Nano or Micro?

  • @alnoorratansi9364
    @alnoorratansi9364 4 года назад

    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.

    • @alnoorratansi9364
      @alnoorratansi9364 4 года назад

      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!"

  • @emremat33
    @emremat33 4 года назад +2

    what happens if i use 47uf 10v capacitor?

    • @GadgetReboot
      @GadgetReboot  4 года назад +1

      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.

  • @johnadams6757
    @johnadams6757 Год назад

    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.

    • @GadgetReboot
      @GadgetReboot  Год назад

      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

    • @johnadams6757
      @johnadams6757 Год назад +1

      @@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.

    • @GadgetReboot
      @GadgetReboot  Год назад

      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.

  • @hellosevn
    @hellosevn 4 года назад

    Can i reverse this but use the same pinout to load bootloader for the uno (ATTiny85 Digispark -> arduino uno)?

    • @GadgetReboot
      @GadgetReboot  4 года назад

      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.

  • @elshiftos
    @elshiftos 3 года назад

    Is it necessary to upload the ISP code to the Arduino Uno before carrying out the above steps?

    • @GadgetReboot
      @GadgetReboot  3 года назад

      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

    • @elshiftos
      @elshiftos 3 года назад

      @@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

  • @user-vg8on1vq8c
    @user-vg8on1vq8c 2 года назад

    How in 5 pin disable reset?

  • @drkazmawjiMScmedicine
    @drkazmawjiMScmedicine 3 года назад

    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

    • @GadgetReboot
      @GadgetReboot  3 года назад

      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.

    • @GadgetReboot
      @GadgetReboot  3 года назад

      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

    • @drkazmawjiMScmedicine
      @drkazmawjiMScmedicine 3 года назад

      @@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.

  • @tg569
    @tg569 5 лет назад +1

    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

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      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.

    • @emremat33
      @emremat33 4 года назад +1

      @@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?

    • @GadgetReboot
      @GadgetReboot  4 года назад

      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

    • @emremat33
      @emremat33 4 года назад

      @@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.

    • @GadgetReboot
      @GadgetReboot  4 года назад

      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.

  • @emremat33
    @emremat33 4 года назад

    i couldnt find avrdude.conf file

    • @GadgetReboot
      @GadgetReboot  4 года назад

      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

    • @emremat33
      @emremat33 4 года назад +1

      @@GadgetReboot i found it, thank you

  • @MusicalBox
    @MusicalBox 5 лет назад +2

    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 ;)

    • @GadgetReboot
      @GadgetReboot  5 лет назад +1

      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.

  • @drkazmawjiMScmedicine
    @drkazmawjiMScmedicine 3 года назад

    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..