Further proof that I have no life :D
I had some spare time today and after spending about half a day doing a new compositional piece, I had to switch gears to do other things not music related. Oh wait, this is. :P
So far, the Teensy 2.0 has been great. After following the instructions from their website (copy udev files - whatever that is - and running the Teensyduino installer), the Arduino environment now has added options for the Teensy.
Everything appears to work as per the arduino. There is a teensy loader program that appears when you compile, and it appears to be the glue that installs the code into the μC.
One thing that caught me out was that the Teensy does not have a 3.3v output connector like the Arduino; I'd connected the ADXL335 to the 5V, then several minutes in something at the back of my mind told me.... adxl335... 3.3v.... Thankfully the accelerometer seemed unharmed by it's short dance with over-voltaging. Is voltaging a word?
I am not posting the code for this guy as it's mainly a test bed for my low pass filter tests; the code is basically mush. In any case, the current LPF implemented is the digital low pass filter straight off wikipedia. There are other things I want to try like supersampling, kernel based filtering,
The arduino simply sends CSV with 6 values; 3 values for the filtered and 3 values for the unfiltered. The processing sketch then opens a serial port, uses the java split() method to extract the data and then draws it on the screen.
Well, time for bed.