An Arduino sketch which samples a 3-axis accelerometer and saves the samples to an SD-card.