Use a lab clamp to attach the spring to a support rod so that the spring hangs downward. Attach a mass to the bottom of the spring. it is advisable to attach a square of cardboard to the bottom of the mass so that the motion sensor is better able to "see" the mass as it oscillates. Your mass should be able to oscillate freely without striking the motion sensor. If your lab stand is not tall enough to accommodate this, then hang the mass over the edge of a counter.

Step 3:
Configure the DataStudio software to display a position-time graph. Click the "Setup" button and increase the sampling rate of the motion sensor to 50 Hz.
Pull the mass downward slightly and let it go so that it begins to oscillate. Click "Start" in the DataStudio software and record data for a few seconds before stopping.
Step 4:
Repeat if necessary to obtain a smooth oscillating curve on your position-time graph. Use the graph to determine the time from one peak to another on the graph. This is facilitated in DataStudio by using the smart tool in the DataStudio graph to measure the time from one peak to the next peak. This value represents the period of the spring's simple harmonic motion; record it in your notes.

Step 5:
Repeat steps 3 and 4 with the other two masses.