Mass and Spring Simple Harmonic Oscillator JS Model
written by
Wolfgang Christian, Francisco Esquembre, and Colleen L. Countryman
The Mass and Spring Simple Harmonic Oscillator mobile JavaScript model illustrates the forces and dynamics of a simple oscillator. This simulation uses the accelerometer on mobile devices to read the direction of the gravitation field g. You may, of course, need to lock the orientation of your screen to maintain a fixed view as you rotate your device. For use on computers without an accelerometer or for classroom use, the demo mode simulates a gravitational field in the y-direction.
The Mass and Spring Simple Harmonic Oscillator 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.
Please note that this resource requires
at least version 1.5 of Java (JRE).
Mass and Spring EPub (beta)
An ePub containing the Mass and Spring with Accelerometer simulation. download 264kb .epub
Last Modified: July 28, 2018
Released under a CC Noncommercial-Share Alike license.
Vertical Mass and Spring Simple Harmonic Oscillator JS Model
Vertical Mass and Spring Simple Harmonic Oscillator JS Model download 353kb .zip
Last Modified: May 3, 2021
previous versions
Simple Vertical SHO Model
A simple SHO simulation without narrative for classroom use. download 353kb .zip
Last Modified: May 3, 2021
previous versions
Simple Horizontal SHO Model
A simple horizontal model without narrative for in-class discussion. download 360kb .zip
Last Modified: May 3, 2021
previous versions
Horizontal SHO with Accelerometer Source Code The Horizontal SHO with Accelerometer source code archive contains an XML representation Horizontal SHO with Accelerometer for use with EJS. Unzip this archive in your EJS workspace to compile and run this model using EJS 5. Although EJS is a Java program, EJS 5 …
The Horizontal SHO with Accelerometer source code archive contains an XML representation Horizontal SHO with Accelerometer for use with EJS. Unzip this archive in your EJS workspace to compile and run this model using EJS 5. Although EJS is a Java program, EJS 5 creates a stand alone JavaScript program from this source code.
9-12: 4F/H1. The change in motion (direction or speed) of an object is proportional to the applied force and inversely proportional to the mass.
4G. Forces of Nature
6-8: 4G/M1. Every object exerts gravitational force on every other object. The force depends on how much mass the objects have and on how far apart they are. The force is hard to detect unless at least one of the objects has a lot of mass.
11. Common Themes
11B. Models
6-8: 11B/M2. Mathematical models can be displayed on a computer and then modified to see what happens.
AAAS Benchmark Alignments (1993 Version)
4. THE PHYSICAL SETTING
E. Energy Transformations
4E (9-12) #1. Whenever the amount of energy in one place or form diminishes, the amount in other places or forms increases by the same amount.
F. Motion
4F (6-8) #3. An unbalanced force acting on an object changes its speed or direction of motion, or both. If the force acts toward a single center, the object's path may curve into an orbit around the center.
<a href="https://www.compadre.org/OSP/items/detail.cfm?ID=14063">Christian, W, F. Esquembre, and C. Countryman. "Mass and Spring Simple Harmonic Oscillator JS Model." Version 1.0.</a>
W. Christian, F. Esquembre, and C. Countryman, Computer Program MASS AND SPRING SIMPLE HARMONIC OSCILLATOR JS MODEL, Version 1.0 (2016), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461).
W. Christian, F. Esquembre, and C. Countryman, Computer Program MASS AND SPRING SIMPLE HARMONIC OSCILLATOR JS MODEL, Version 1.0 (2016), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461>.
Christian, W., Esquembre, F., & Countryman, C. (2016). Mass and Spring Simple Harmonic Oscillator JS Model (Version 1.0) [Computer software]. Retrieved October 6, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461
Christian, W, F. Esquembre, and C. Countryman. "Mass and Spring Simple Harmonic Oscillator JS Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461 (accessed 6 October 2024).
Christian, Wolfgang, Francisco Esquembre, and Colleen L. Countryman. Mass and Spring Simple Harmonic Oscillator JS Model. Vers. 1.0. Computer software. 2016. Java (JRE) 1.5. 6 Oct. 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461>.
@misc{
Author = "Wolfgang Christian and Francisco Esquembre and Colleen L. Countryman",
Title = {Mass and Spring Simple Harmonic Oscillator JS Model},
Month = {August},
Year = {2016}
}
%A Wolfgang Christian %A Francisco Esquembre %A Colleen L. Countryman %T Mass and Spring Simple Harmonic Oscillator JS Model %D August 22, 2016 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461 %O 1.0 %O application/javascript
%0 Computer Program %A Christian, Wolfgang %A Esquembre, Francisco %A Countryman, Colleen L. %D August 22, 2016 %T Mass and Spring Simple Harmonic Oscillator JS Model %7 1.0 %8 August 22, 2016 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=14063&DocID=4461
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.
Use the Easy Java Simulations Modeling and Authoring Tool to edit and to explore the source code for the Mass and Spring Simple Harmonic Oscillator JS Model.