Author Topic: Digispark not recognized (but works the whole day fine)  (Read 2872 times)

matt

  • Newbie
  • *
  • Posts: 3
Digispark not recognized (but works the whole day fine)
« on: May 22, 2017, 09:49:21 am »
Yes i know - this kins of question is always ask here. My Windows 7 64 bit doesn't recognized my digispark. But the thing here is: It works finde. The whole day. I programmed some stuff on the Arduino IDE 1.8.1 and there wasn't any problems. Also my test programs worked fine (some stuff with the keyboard library). But just from one second to another: Can't recognized usb.
I tried a hub, all of my usb ports, another computer, usb cable..  nothing. So is my digispark broken after a few programming-attempts?

bulrush

  • Newbie
  • *
  • Posts: 7
Re: Digispark not recognized (but works the whole day fine)
« Reply #1 on: May 23, 2017, 04:36:15 am »
Digispark has some minor differences with the Arduino products. The DS does not act like a USB device. Here is how you program a DS.

  • Do not connect the DS yet.
  • Make your program in the IDE.
  • Click the Arduino IDE Upload button.
  • When the IDE says "Waiting for board" or something like that, plug in the DS.
  • The program will be sent to the Digispark.
  • Now the program should be running, with a power light on, and maybe some other light blinking.
This little issue fooled me for a while.
« Last Edit: May 25, 2017, 08:24:10 am by bulrush »

matt

  • Newbie
  • *
  • Posts: 3
Re: Digispark not recognized (but works the whole day fine)
« Reply #2 on: May 23, 2017, 10:29:20 am »
Well thats weird. I was just writing a text, that i flashed my digispark correct (i know about the 60 second timer when you compile a script for this on the Arduino IDE. And just when this meesage appear you have to plug it in your port, not before). I just tried the keyboard example and it worked know. Something has o be weird with my scirpt (maybe to long for the 6kb flash?).

Well.

bulrush

  • Newbie
  • *
  • Posts: 7
Re: Digispark not recognized (but works the whole day fine)
« Reply #3 on: May 25, 2017, 08:25:26 am »
Sometimes a loose USB connection will cause problems. Your USB cable also has to have the data lines as well as the power lines connected.

I made a USB switch so I can turn the DS on and off while reprogramming it. Very handy so I don't have to pull out the DS and put it in each time.

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Digispark not recognized (but works the whole day fine)
« Reply #4 on: May 28, 2017, 07:46:17 pm »
Matt, if it's to big for the flash (program) memory... the Arduino IDE shouldn't even let it be loaded. But if it's using to much SRAM (memory) then it could be unstable and crash. But I would think you would still be able to program it, as the bootloader runs before your program is allowed to run.

To see what I mean about the SRAM - have a look at this post: http://digistump.com/board/index.php/topic,2574.0.html