These sample sketches will get you up and running using a Parallax Memsic 2125 accelerometer.
-
Arduino_Accelerometer.pde takes the X and Y input from the accelerometer and sends them out in a serial connection.
-
Processing_Accelerometer.pde then reads that data and draws an ellipse in the window.