Make your own DigiSpark USB!

Поделиться
HTML-код
  • Опубликовано: 30 июн 2024
  • In this tutorial I will show how to build a Digispark and how to flash the bootloader.
    The Digispark is an ATtiny85 based microcontroller development board with integrated USB interface
    It can be programmed using the Arduino IDE directly via USB.
    It is a very cool and small all-in-one development board, and because it can act as a USB mouse or keyboard it is very popular for hacks and pranks.
    Links:
    Digispark Windows Drivers:
    github.com/digistump/Digistum...
    How to build Arduino ISP programmer (start at 2:04):
    • Program ATtiny85 direc...
    2 Board URL’s for the Arduino Board Manager:
    (file-preferences-additional board URL)
    Micronucleus : drazzy.com/package_drazzy.com_...
    DigiSpark : digistump.com/package_digistum...
  • НаукаНаука

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

  • @jespertjoh
    @jespertjoh 10 месяцев назад +8

    It works! I've never been so excited about a blinking LED in my life😀

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  10 месяцев назад +3

      Congratulations! Micro-controllers are great, like Lego's on steroids ;-)

    • @mr.sparshbansal
      @mr.sparshbansal 4 месяца назад +1

      Hi, may ik that did you connect the cathode of led with 330 ohm resistor.

  • @haideralikhan5947
    @haideralikhan5947 Год назад +3

    I actually enjoyed this video. Very informative on how to get started with the attiny

  • @lexguti7150
    @lexguti7150 5 месяцев назад +1

    The tutorial is quite clear. Thanks a bunch.

  • @TechBerto173
    @TechBerto173 Год назад +4

    I like watching your videos, very informative and clearly explained. Thanks.

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

    great tutorial

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

    video was great.
    😁😁

  • @ovalwingnut
    @ovalwingnut 5 месяцев назад

    Very COoL. By the way, are you recording this in a "bathroom"? I'm asking for a friend.. Actually, now that I think about it I could be "listening to it" in-a-bathroom ;:Oo

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

    Can it work with VisualStudio Code & PlatformIOs? Are the drivers also required?

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

    Awesome tutorial, thank you very much! After dozens of different articles -- your video collects all in one masterpiece! I have headache with this simple scheme, because of wrong voltage of zener diodes :( those two gave me a lot of problems.

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

      Thank you Konstantin!
      For me both 3.3 and 3.6V zeners worked, which value caused problems for you?

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

      By the way, you really need to solder this, I never got it working on a solder-less breadboard ;-)

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

      @@smartpowerelectronics8779 I don't know why, but scheme doesn't work with 1N4729A

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

      @@smartpowerelectronics8779 at my experience with BZX55C3V6 works both on breadboard and soldered.

  • @albertof2675
    @albertof2675 4 месяца назад

    Do the CDC examples work for you with this configuration?
    Keyboard and mouse do work fine, but I'm unable to make "serial" communication to work properly.

  • @GnuReligion
    @GnuReligion Год назад +3

    An odd thing ... the DIP ATtiny85 costs about the same as a Digispark clone.
    Have you tried to build the V-USB circuit into the head of a USB-A plug? Tight work, but possible.
    After installing Micronucleus, one can fuse out the Reset, and with 4 GPIO available, create a useful 6-pin ISP/SPI device.
    IMHO, the V-USB circuit, 8-pin socket, and 6-pin keyed SPI header are a nifty combination.

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  Год назад +2

      For a SO8 is should fit. Never tried though. The Digispark clones are cheap, and cost-wise it is not really worth the effort to make one yourself. but I learned a lot from doing it ;-)

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

      @@smartpowerelectronics8779 You are my kind of maniac! Virtually all my projects are for self-education, and "not really worth the effort."

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

    Could you comment on using USB2.0 vs USB3.0? Also, I see you are using Arduino 1.8, Would this work on Arduino 2.0 or newer versions? Thank you!

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

      Programming using Arduino 2.0 works OK
      For the USB version, a USB3 port worked for programming, but the speed etc . is the same as for USB2.
      I heard that there are issues with newer Windows versions

  • @GovindKumar-yo6py
    @GovindKumar-yo6py 5 месяцев назад

    I have founded truly useful, do you have the official link of the schematic circuit ?

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  5 месяцев назад

      Thank you GovindKumar! No I did not make a schematic, the circuit as shown in the video is all there is, you can make a screenshot 🙂

  • @Koddra
    @Koddra 10 месяцев назад +1

    A really nice and informative video but i still have one question. What pins do you use on the ATtiny85 for the D+ and D- pins of the USB?

  • @metamud8686
    @metamud8686 Год назад +3

    9:45 if you open up the board manager box, you DON'T add a comma, lest you end up with TWO commas, as demonstrated in this video (at 9:52).
    EITHER: you don't open the box, but separate by comma's by yourself in the URL entrybox, OR you open up the box and put one URL per row (as it window tells you to) WITHOUT a trailing comma

  • @JuanBotes
    @JuanBotes Месяц назад

    thanks \o/

  • @luisfelipesaldivar5100
    @luisfelipesaldivar5100 16 дней назад

    hi sir, i´m having some issues related to the drazzy's and digistump url's for the arduino board manager, Digistump's website was shut down, or at least that's what I think,do you know what happened to both repositories? and also, do you still have the files for arduino IDE board manager core by any chance? I was thinking if windows 11 is the problem, cause the drivers don't work here.
    Thank you in advance.

  • @jumbo999614
    @jumbo999614 8 месяцев назад

    I use different setting to burn bootloader:
    board: attiny/ATtiny25/45/85
    clock: 8mhz
    Can still use this diy USB upload-sketch pcb to program it?

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  8 месяцев назад +1

      You have to burn the "Board "Attiny85 (Micronucleus/Digispark)" /ATTinyCore/Attiny85 (Micronucleus/Digispark) bootloader.
      This bootloader includes the timings and code for USB communication.
      Other bootloaders will not work, then you need to use a USB to Serial (FTDI)

    • @jumbo999614
      @jumbo999614 8 месяцев назад

      @@smartpowerelectronics8779 Thank you

  • @AnakinShane
    @AnakinShane Месяц назад

    Hi, there,
    Why did you set "pinMode" to 1 and "digitalWrite" to 1, when the led is connected to 6 ?

    • @smartpowerelectronics8779
      @smartpowerelectronics8779  Месяц назад +1

      Hi Anakin Shane, yes that is confusing. The physical pin6 of the DIP-8 package is connected to PB1 or GPIO1 or "Arduino pin" 1. IN the software you refer to the "GPIO" number. You can see the pin out at the bottom of this website: electroprogramics.com/2020/08/31/introduction-to-attiny85/ 🙂

    • @AnakinShane
      @AnakinShane Месяц назад

      @@smartpowerelectronics8779 Thanks for answer.

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

    Hello please help me with error when I plug attiny85 to pc it shows up error cant recognize device. But I set up all right.

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

      *Did you install the Digispark drivers (see my video 2"56).
      *If you insert the device you should hear a sound from Windows (sound = good!). If not, I suggest you reverse D+ and D-, maybe you made a mistake ;-)
      *Without the drivers in "device manager" you will find a unrecognized device under "Universal Serial Bus Controllers"
      *With the drivers you will find "linusb-win32 Usb Devices, Digispark Bootloader" in Windows device manager.

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

    I made it, now i have a question how can i write or read in serial ?

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

      Check this video, seems possible ruclips.net/video/zxmyfiFbo2c/видео.html

    • @mr.sparshbansal
      @mr.sparshbansal 4 месяца назад

      Hi may i know did you connect the cathode of led with 330 ohm resistor

  • @user-oc5qk2pc7w
    @user-oc5qk2pc7w Год назад

    can i load the bootloader with ISPprogrammer?

  • @StevenCookFX
    @StevenCookFX 6 месяцев назад

    Getting an error when trying to install the ATTINYCORE package. :(

  • @user-by7sm9lc8m
    @user-by7sm9lc8m 5 месяцев назад

    Ok

  • @qddk9545
    @qddk9545 Год назад +2

    No comments. I suppose most people don´t have a clue what happened in this video. Like in a book or a film, set the scene before diving deep into the soup, so people
    know what to expect.

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

      Thanks QD, must say that I was struggling how to get this content into a "simple" instruction. It works if you follow all the steps, but still it is a bit complex to fit into 13 minutes.

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

    If you want to do it correct, don't do it like this...

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

      Do you have a link to a better way? The USB interface hardware is far from perfect, but it worked for me. I do prefer using a real USB interface like a FTDI which gives much more stable results.