Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c02/h02/mnt/19116/domains/blog.emocapsule.com/html/wp-includes/cache.php on line 36

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c02/h02/mnt/19116/domains/blog.emocapsule.com/html/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /nfs/c02/h02/mnt/19116/domains/blog.emocapsule.com/html/wp-includes/theme.php on line 507
Emo-Capsule » Blog Archive » First Steps with Processing - Accelerometer Controller and Dance Mat

First Steps with Processing - Accelerometer Controller and Dance Mat

May 15th, 2007 by Hannah

I was playing around with a single accelerometer. For another project, it has been configured with 2 buttons and the 1, 3-axis accelerometer. Using the ProControll library with Processing I made a simple program that allows you to choose a colour, Hue Saturation and Brightness based on the accelerometer orientation. By holding down a button, the current colour is selected and you can paint with it (sort of like painting in air, except with 3 axes of rotation so it’s a bit tricky). And finally, the other button clears the screen. Starting from nothing, the whole project took a couple of hours.

After installing the ProControll library, I got to thinking that we could really use ANY kind of input device. I tried hooking up my dance mat (using a PS2 -> USB converter) and modified one of the example ProControll programs to use the dance mat arrows to rotate a cube (using the OpenGL library in Processing). It took litterally minutes.

I’ll post the source for both tomorrow.

If you have any kind of interesting hardware, I highly recommend hooking it up and playing with it. In a very short amount of time you can get stuff working in Processing. If nothing else, it will be good for mock-ups and prototypes. There are sound and video libraries too so check it out.

Fiiinally, one last thing. I just got a book out of the Carleton Library “Emotion and Adaptation” by Lazarus. It seems to offer a somewhat scientific background about emotions relating to psychology. It seems like it might be useful theory to help us make and support our design decisions. Time permitting and depending on the assigned readings, I will try to make some notes on the useful bits of the book.

That was long.

2 Responses to “First Steps with Processing - Accelerometer Controller and Dance Mat”

  1. admin Says:

    Hannah, that is amazing. When you talked about input methods and sound it just crossed my mind that I have a electric piano hooked up to my computer through MIDI -> USB. I know sound is not what I am suppose to be focusing on, but if I have some spare time I will see what I can get. It would be neat to be able to do something with an actual piano.

  2. Eric Chan Says:

    Shiz Hannah, that is awsome. Great to know that we’ve got dem libs.
    I definitely got to get a hold of them.

    I haven’t checked out the wii stuff yet that I recieved from one of the fitc speakers. It would be neat if it were modified and used in processing as well.

    Great work as always dood.

Leave a Reply