Author Topic: Processing? Firmata?  (Read 3560 times)

dougal

  • Sr. Member
  • ****
  • Posts: 289
Processing? Firmata?
« on: September 24, 2013, 07:34:38 am »
Has anyone tried doing anything with Processing or Firmata on the Digispark? Is there enough space for a stripped down Firmata that could use USB instead of serial (and can that be done on the Processing side)? I don't have anything in particular in mind, just curious.

kehribar

  • Newbie
  • *
  • Posts: 18
Re: Processing? Firmata?
« Reply #1 on: September 24, 2013, 10:24:04 am »
Hi,

Littlewire firmware started to become the 'firmata' of the digispark.

Downsize is that currently only C library is supported in the computer side. Also we have Jenna's great littlewire.rb library for Ruby.

For an example usage you can look at that project: http://artoo.io/documentation/platforms/digispark/ They are using littlewire firmware + littlewire.rb + their custom library to control robots / external hardware on digispark platfrom.


Also, Once upon a time, I was supporting a Processing library for the littlewire too. But it was only working on the Windows.


Best,
ihsan.

dougal

  • Sr. Member
  • ****
  • Posts: 289
Re: Processing? Firmata?
« Reply #2 on: September 24, 2013, 11:35:28 am »
Ah, I've always been a little confused as to exactly what Littlewire was. So it serves much the same function as Firmata, then? Also, thanks for reminding me about artoo -- I had run across it a few days ago, but had forgotten to bookmark it.


I've also toyed around with a sketch that works kind of like Firmata. I totally stole it from node-duino. It passes messages back and forth via DigiUSB, and lets you send commands to set pin modes and perform digital/analog read/write calls.

Bluebie

  • Sr. Member
  • ****
  • Posts: 486
Re: Processing? Firmata?
« Reply #3 on: September 24, 2013, 04:58:36 pm »
It's probably technically possible to make a firmata firmware for digispark, which implements an actual cdc232 port. On windows it would require a little driver, but on mac and linux it should just work. Much like the cdc232.hex firmware included with littlewire.


I think some people are playing around with trying to make a CDC serial library for Digispark, but I don't know how far that has advanced yet. Hopefully it'd be close enough to the functionality of an arduino that Firmata would mostly Just Work.