Author Topic: Getting started with your Digispark!  (Read 35532 times)

shawn

  • Newbie
  • *
  • Posts: 8
Getting started with your Digispark!
« Reply #15 on: December 20, 2012, 05:56:38 am »
Thanks for the fix, that was exactly my problem. Sorry I couldn\'t respond sooner with the fact that it was Windows. Everything works perfectly now.

dmcinnes

  • Newbie
  • *
  • Posts: 21
Getting started with your Digispark!
« Reply #16 on: December 20, 2012, 09:21:15 am »
digistump: I\'m getting this error now:
Binary sketch size: 818 bytes (of a 6,010 byte maximum)
Running Digispark Uploader...
Plug in device now...
sh: /Applications/Digispark: No such file or directory


digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Getting started with your Digispark!
« Reply #17 on: December 20, 2012, 11:06:42 am »
New build going up now - that I *hope* should finally fix this one, to be honest and it\'s probably obvious OS X is not my area of expertise, but at least I have a os x machine to replicate issues on. This issue had to do with spaces in the path, but after fixing it I discovered several more and addressed them as well.

This all tests out as working on my OS X 10.7 late 2011 Mac Mini with i7 with every test I could come up with this time.

Luckily only the uploader and avrdude-dummy-router get compiled, so once those work we should be set for cross compatability

Thanks for your patience - new build will be on the wiki in about 5 min

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Getting started with your Digispark!
« Reply #18 on: December 20, 2012, 11:07:27 am »
@Casey - see the change log topic on this forum

dmcinnes

  • Newbie
  • *
  • Posts: 21
Getting started with your Digispark!
« Reply #19 on: December 20, 2012, 04:52:25 pm »
@digistump awesome, it works! Thanks so much! I know you\'re crazy busy with shipping

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Getting started with your Digispark!
« Reply #20 on: December 20, 2012, 06:24:14 pm »
Could we get some example code for how to talk to DigiUSB from the computer side? I couldn\'t find any. :)

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Getting started with your Digispark!
« Reply #21 on: December 20, 2012, 11:57:53 pm »
You know what? Don\'t worry about it. Here\'s a thing: http://rubygems.org/gems/digiusb

It\'s a digispark terminal gadget, for talking to DigiUSB! You\'ll need ruby 1.9.3 and libusb 1.x installed (on a mac, do it with homebrew!) then you can gem install digiusb, and you\'ll have a digiterm program you can use to basically telnet in to the spark and have a bit of a chat, rather a lot like the serial console in the arduino program, except, you know, working..

It\'s also a neat little ruby library you can use to talk to the digispark in your programs - get and put characters and strings. Neat eh? I\'ve only tested it on my mac, but it should be trivial to install on linux. For windows, I have no idea, so good luck with that!

https://github.com/Bluebie/digiusb.rb for source code and to see examples. Maybe I\'ll put some comments in the code later so it generates some real docs, but I think it\'s pretty straight forward - works a lot like a file, except you do a DigiUSB.sparks.last to grab a reference to the most recently plugged in one, instead of a File.open(...)

Don\'t know ruby? Maybe you should. It\'s a pretty keen language. ^_^

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Getting started with your Digispark!
« Reply #22 on: December 20, 2012, 11:59:53 pm »
P.S. it seems to anger the micronucleus gods if you have both the arduino program waiting for your digispark to get plugged in, and digiterm also waiting. Maybe they fight or something? I have no idea!

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Getting started with your Digispark!
« Reply #23 on: December 21, 2012, 12:04:50 am »
Awesome, thanks - it should work for windows too, just use the RubyInstaller and then install the Gem.

Here is the python that goes with the DigiBlink example - we\'ll have some binaries of it available soon: http://cl.ly/300y3k1q0e0R/DigiBlink.zip

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Getting started with your Digispark!
« Reply #24 on: December 21, 2012, 12:06:57 am »
While I\'m at it - here is a binary (very beta) for windows to connect a Digispark to CheerLights (cheerlights.com) - load the DigiBlink sketch onto the Digispark, plug in an RGB shield, and run this program - it will be in your tray: http://cl.ly/300y3k1q0e0R/DigiBlink.zip

Sturgeon

  • Newbie
  • *
  • Posts: 9
Getting started with your Digispark!
« Reply #25 on: December 21, 2012, 06:46:25 am »
How can I tell if the Windows driver is working correctly?

JeffRand

  • Newbie
  • *
  • Posts: 44
Getting started with your Digispark!
« Reply #26 on: December 21, 2012, 06:53:33 am »
@Sturgeon I would say if you can successfully upload the start example, it is working correctly. Are you having any specific issues?

Sturgeon

  • Newbie
  • *
  • Posts: 9
Getting started with your Digispark!
« Reply #27 on: December 21, 2012, 07:16:47 am »
OK, I see the Windows device manager sees the digispark.  The issue is that the example does not load.  The IDE (Arduino 1.0.3) just sit there waiting to upload.  Should it be trying to connect to COM1?

JeffRand

  • Newbie
  • *
  • Posts: 44
Getting started with your Digispark!
« Reply #28 on: December 21, 2012, 08:28:26 am »
It will say \"Digispark (TinyCore) on COM1\" in the lower right corner. But when you press the Upload button, you should see the following:

Binary sketch size: 756 bytes (of a 6,010 byte maximum)
Running Digispark Uploader...
Plug in device now...

Edit: I thought there are a problem with the bottom Digispark, in the programmer list but it doesn\'t seem to matter which I pick now.

« Last Edit: December 21, 2012, 08:34:32 am by JeffRand »

Sturgeon

  • Newbie
  • *
  • Posts: 9
Getting started with your Digispark!
« Reply #29 on: December 21, 2012, 08:59:11 am »
Thanks Jeff,  That is as far as I get. I now think that Windows 7 does not recognize the spark. I get an pop-up error message \"USB Device Not Recognized\" in the bottom right and I also see the device manager say \"Unknown Device\". Moments later all the messages are gone and I do not see the Spark.   Should the Spark show in the Device manager? Or is it there as the boot loader runs?

Thanks!!