Simple usage of the accelorometer