Skip to content

Tag Archives: accelerometer

Senior Project, Application Launcher, System Customizations

11-Jan-10

It has been a while since my last update, and since then we have gotten completely usable two-glove audio output, without accelerometer-based articulations. It is very cool (we can kind of play the Tetris A Theme, but no one is very good at using the gloves yet). Just today we got the accelerometer all working; we have rotation and vertical motion output fit to the correct ranges. Despite having the software all written, we don't have the gloves working with full articulations due to the issue of actually mounting the accelerometers on the gloves and the Arduinos on the wristbands. We have already bought most of the components we'll need to do this, so I expect to have the entire thing working by the end of this weekend. When we finish, I'll post the final parts list, pictures, and latest code, along with instructions for constructing your own pair of musical gloves as a DIY project. Next!

I haven't been very motivated to finish it since the current version works fine, but I'm almost done with a re-write of my application launcher. The new version will by extensible via plugins and will be able to run in the background (as opposed to starting up every time you summon it). Aside from the rewrite, I added some neat shorthand directory launching support, which allows me to open "/home/ifx/Code/Launcher/final" by typing "/lau/f" and pressing enter. Regex is pretty neat.

Finally, I think I'm going to make a post about all the interesting customizations I have made to my Arch Linux install. These would include my mouse gestures (I have some that actually do useful, non-obvious things), my Conky configuration, and, of course, my .bashrc.

Accelerometer Working!

05-Oct-09

Today we got the accelerometer working! We'll need to change how it is set up to get cleaner output, but we do in fact have some output. Also, our conductive fabric (which we had previously been told would be delayed for four weeks) will be here much sooner, though we needed to sacrifice the privilege of using pink fabric for the grey which we are now getting.

Next up is writing the code to use the accelerometer data to produce a rotation and vertical acceleration.

We also decided to document our work with photos, so I'll be uploading photos either to this site or to some photo hosting site at some point.

As a side note, I am also writing a program to use a wacom tablet as instrument with Python + Pygame. Pressure will map to volume, vertical position to frequency, and horizontal position to time until note is played. The interface will be a leftward-scrolling window in which you can draw with the wacom tablet. When whatever you have drawn hits the left side of the window, it will make sound. I'll post more about this later, but if anyone has a good way of getting Wacom Tablet pressure data in Python, feel free to tell me. For some reason reading from /dev/input/wacom (a symlink to whatever /dev/input/event* the tablet is actually mapped to) doesn't work, and I can only get position data using Python's Xlib bindings. It also does not show up as a joystick in Pygame (my laptop's accelerometer does, though), which would have been nice.