Processing Sudden Motion Sensor Library
Published October 28th, 2006 in ITP, blog, p5, programming, teaching_
watch video!
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!
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 Pingback on Oct 29th, 2006 at 6:23 am
- 2 Pingback on Oct 29th, 2006 at 7:13 am
Wow, thats just incredable. thats just funky
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
Sure does work on the Intel Macs… excellent library!!
Thats so funny, wanna try now!
this is awesome!
[00:00:37]
That’s so cool.
Nice one.
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.
Thanks for the info, I will add the information to the history!
intel mac can run
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
is it possible to download this??
[00:00:41]
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
very nice. Methinks I need to get back into processing…
[00:00:20]
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
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
how do u download this its so cool
[00:00:33]
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).
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.
Kris: the library only works with Processing. It has no main class and can’t be executed on its own.