{ x: event.acceleration.x, y: event.acceleration.y, z: event.acceleration.z }; var accelerationIncludingGravity = { x: event.accelerationIncludingGravity.x, y: event.accelerationIncludingGravity.y, z: event.accelerationIncludingGravity.z }; var rotationRate = { alpha: event.rotationRate.alpha, beta : event.rotationRate.beta, gamma: event.rotationRate.gamma }; }; Acceleration, acceleration with gravity and rotation rate can all be read from the event object when listing for device motion events. What you do with them then is anybody’s guess. Good luck.