Mobile Device Accelerometer JS Model Documents

This material has 3 associated documents. Select a document title to view a document's information.

Main Document

Mobile Device Accelerometer JS Model 

written by Wolfgang Christian

The Mobile Device Accelerometer JavaScript model reads the direction and magnitude of the proper acceleration g. An arrow shows the projection of g onto the screen and  output fields show the numerical g components. Users can tilt and shake their device and record the changing acceleration.

Users should lock the screen orientation to maintain a fixed view.

Last Modified May 5, 2021

This file has previous versions.

Supplemental Documents

Device Permissions Test 

Test EJS hardware /accelerometer model element.

Last Modified May 5, 2021

This file has previous versions.

Source Code Documents

Accelerometer Calibration Source Code 

JavaScript EJS source for accelerometer calibration.

Last Modified January 4, 2024