Thanks to an idea from students in my icm class (see Catherine’s “greedy game-animated sprite”), I developed a Processing library that grabs values from Apple’s sudden motion sensor. The library is a JNI implementation of Unimotion by Lincoln Ramsay. It hasn’t been tested on an intel mac, so let me know if it works for people!

Download the library here.

The above video is a brief demo of it in action. . . Now, what to use it for?!?!?


21 Responses to “Processing Sudden Motion Sensor Library”  

  1. 1 Matthew Stroud

    Wow, thats just incredable. thats just funky

  2. 2 Greg Johns

    Very nice. I’m testing out the library now, and am coming up with all sorts of ideas for this. Computers new fangled input = FUN. Thanks for sharing

  3. 3 Lucas Longo

    Sure does work on the Intel Macs… excellent library!!

  4. 4 Claudio Midolo

    Thats so funny, wanna try now!

  5. 5 carolina

    [00:00:37] this is awesome!

  6. 6 angelo

    That’s so cool.
    Nice one.

  7. 7 james

    daniel – re: your history of the motion software – you may also want to add dave chatting to the list of contributors. he had worked on a jni wrapper for sms before you:

    http://homepage.mac.com/dave_chatting/boiling-frogs/motion/README.html

    the above page was linked to from the site of pall thayer, who is already a part of your history. chatting is the maker of sms-enabled powerbook puppet:

    http://cefn.com/curiosity/?p=133

    i’m not commenting on this to get into some “who did it first” question. very glad you put together a p5 wrapper, partly as chatting’s downloadable archive was not unzipping properly anyway. :) you he are both trying to work on cool new stuff enable us to do so. so, many cheers.

  8. 8 Daniel

    Thanks for the info, I will add the information to the history!

  9. 9 aaajiao

    intel mac can run

  10. 10 Dave Chatting

    Great work! Works well on my PowerBook G4

    Thanks very much for the credit for my stuff too – I’d like to rewrite my Flash interface to use this too – shouldn’t be too hard… let you know when I’m done!

    Cheers,
    Dave

  11. 11 tizoc

    [00:00:41] is it possible to download this??

  12. 12 DasAutomat

    hi daniel,

    here is a small project i did with the help of you library. i made a digital marionette…
    i have some pictures and videos on my site.

    let me know what you think!

    http://dasautomat.com/?p=61

    cheers

    Andi

  13. 13 Joshua Dickens

    [00:00:20] very nice. Methinks I need to get back into processing…

  14. 14 Dave Chatting

    Hi,

    As promised, but much later than I’d hoped, here is my new improved Flash interface based on the Unimotion JNI wrapper: http://homepage.mac.com/dave_chatting/boiling-frogs/motion/

    We used this to create the PowerBook Puppet in Flash.

    Cheers,
    Dave

  15. 15 Justin

    Doesn’t work for me on a Macbook Pro Core Duo – this error appears – Exception in thread “Thread-2″ java.lang.UnsatisfiedLinkError: no UnimotionLib in java.library.path

  16. 16 dan fuller

    [00:00:33] how do u download this its so cool

  17. 17 Kris Walker

    Such a bummer that it doesn’t work for me either. I get infinity values from my SMS with the library and the traces do not show up in the real-time scrolling window. Such a bummer. I e-mailed Daniel, so maybe he’ll get back to me next week. I have a Intel Macbook Pro 2.2 GHz Core Duo, and SMS is currently enabled. Disabling/reenabling it does not fix the problem. Rebooting does not fix the problem. I wonder if there is a different way of determining if SMS is actually working (rather than assuming it is based on what pmset tells me).

  18. 18 Kris Walker

    Actually, I was not reading this thread well. I just realized this was on PSMSlib, not SMSLib from Daniel Griscom. So the previous message does not directly relate to this thread (I’m sorry). I just downloaded this library and tried java -jar sms.jar, but I got “Failed to load Main-Class manifest attribute from sms.jar”. I’m a java newbie, and I did a google on that message, but it seems like a headache.

  19. 19 Daniel

    Kris: the library only works with Processing. It has no main class and can’t be executed on its own.

  1. 1 ITEEPEE » Blog Archive » A New Library for Processing with Apple Motion Sensor
  2. 2 ITEEPEE » Blog Archive » A greedy game- animated sprite with AMS


Leave a Reply