Mobile Sensor Motion

API used
acceleration (excl. gravity)
acceleration (incl. gravity)
rotation rate
interval

Demo based on HTML5 Rocks article.