Lilypad accelerometer program

Hi there,

Im having trouble writing a program for my Lilypad accelerometer and was wondering if anyone out there could lend me a hand! :-[

I have the Arduino duemailanove starter pack and the Lilypad accelerometer based on the ADXL330 accelerometer. I need to write a program than detects and then records the vibration of a vibrating motor.

I would really appreciate any help at all, thanks!

I have not used the accelerometer , but if you are just looking for vibration - you may also try this (3 bucks).

Piezo Vibration Sensor - Large