I did a project back in collage with arduino.ı was trying to evaluate the natural frequency of a bar with an accelerometer.Accelerometer was glued below the bar and was connected to arduino microprocessor with cables.I did some coding on Arduino inteface and it was basically C language.Although i just wrote a code to convert the output of the accelerometer, you can look for open-source codes.