Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Four-Spring Accelerometer JS Model Documents

Main Document

Four-Spring Accelerometer JS Model 

written by Wolfgang Christian

The Four-Spring Accelerometer mobile JavaScript Model shows how a mobile device detects acceleration.  The simulation displays the forces and dynamics of a small mass connected to four walls by springs and it is designed to use  the accelerometer on your mobile device to respond to the direction of the gravitation field g and the mobile device's xy-acceleration. You may need to lock the orientation of your screen to maintain a fixed view as you tilt your device. For use on computers without an accelerometer or for classroom use, uncheck Sensor to simulate a tilted device in the view.

The Four-Spring Accelerometer mobile JavaScript Model was developed using version 5 of the Easy Java Simulations (EJS 5) modeling tool. Although EJS is a Java program, EJS 5 creates stand-alone JavaScript programs that run in almost any browser.

Published October 11, 2016
Last Modified December 7, 2016

This file has previous versions.

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics