Here be various bits of code for collecting and modeling IMU data from an arduino breakout board.