Arduino and Processing Sketches for the ADXL345 Accelerometer