1 of 20

Unit 3 - Oscillation

Lab 3C: Damped Oscillations

UCLA Physics Department

1

University of California, Los Angeles

Department of Physics and Astronomy

Physics 4AL

2 of 20

Outline of Lab 3C

  • 3C In-Lab
    • Overview of damped oscillations
    • Obtain data for a damped harmonic oscillator using the Arduino
    • Fit this data to the model for an underdamped harmonic oscillator
    • Analyze the energy of the oscillator over time

UCLA Physics Department

UCLA Physics Department

2

3 of 20

Damped Oscillations

UCLA Physics Department

3

4 of 20

Damped Oscillations

  • While our mass-spring system worked well for a simple harmonic oscillator, many systems involve a form of damping
  • Oscillating systems with damping
    • Can oscillate within a decaying “envelope” that bounds these oscillations.
    • Underdamped regime of the oscillator

4

Damping term

Differential equation for SHM

Differential equation for damped oscillations

5 of 20

Underdamped Regime

  • The oscillator’s position (a function of time):

  • Similar to the simple oscillator scenario
  • The amplitude of the sinusoid decays with time

  • A new parameter: 𝛕 (the lifetime of the decay)

5

6 of 20

Damping with Eddy Currents

  • In this lab, to create damping, we will use eddy currents
  • Eddy currents
    • Created in metals when a magnet moves past the metal surface
    • Currents create damping by�creating opposing magnetic fields,�which push back against the magnet

  • Energy is transferred out of the motion�and into heat from the current

6

Image source: Wikipedia - Eddy Currents

7 of 20

Experimental Setup

  • Use the same Arduino setup as from lab 3A
  • String up the Arduino like you did in lab 3A
  • We will be working with the same springs.
  • Make sure that you don’t stretch them out too far, or they WILL break!

7

8 of 20

Experimental Setup

  1. Weigh your Arduino setup with the magnetized mass
  2. Attach the magnetized mass to the spring
  3. Your Arduino will be attached as shown underneath the metal tubing

8

Step o

9 of 20

Experimental Setup

4. Remove the Arduino from the spring and replace it with a few masses to weigh down the spring (so when you hang your arduino, there will be room for the arduino to oscillate)

5. Add the metal tube by sliding it up from below and screwing it into the holder

6. Attach the Arduino to the spring and remove the masses. Ensure that the magnetized mass and the string don’t directly touch the metal tube

9

10 of 20

TA Checkpoint 1 - Damped Oscillation Data

  • Pull down your Arduino setup by a few centimeters and release
  • Collect data for 10-15 periods of oscillation.
  • No Accelerometer used: No calibration needed but can still have it on the Arduino.
  • Save your data to a text file and import this data into python. You can use the notebook in Unit 3 to import and analyze your data
    • Physics_4AL_2023-24/Unit 3/Unit 3 - Lab 3C.ipynb
  • Plot your distance vs. time data

10

11 of 20

Fitting a Damped Oscillator

UCLA Physics Department

11

12 of 20

Fitting to a Damped Harmonic Oscillator

  • Recall how to fit data to a function:
    • scipy.curve_fit
    • Define a function to fit to (new function!)
    • A function has new parameters
    • Guess parameters

  • Refer to Lab 3B

12

13 of 20

Guessing the Lifetime

  • Guessing the lifetime ()
    • Analyze the envelope of the amplitude. If we select just the peaks of the sinusoid, we can get points for our guesses
  • Guess the heights of the first two peaks, y(t0) and y(t1)

  • Subtract the offset from these peaks and divide them from each other

13

14 of 20

Guessing the Lifetime

  • By doing this, we eliminate the component of the sinusoid, the amplitude, and the offset

  • We can then take the natural log of this expression and divide appropriately to obtain the lifetime:

14

15 of 20

TA Checkpoint 2 - Damped Oscillation Fit

  • Obtain a good guess for the lifetime of the oscillator

  • Fit your position vs. time data to a damped harmonic oscillator.
    • Things to note: Including good guess parameters
    • Things to note: Order of parameters in the guesses and in the fitted coefficients

  • Plot your distance vs. time with the best-fit.
  • Your fit should match your data well!
    • If not a good fit, what would you tweak? (Refer to Lab 3B)

15

16 of 20

Energy of Harmonic Oscillations

UCLA Physics Department

16

17 of 20

Energy of a Harmonic Oscillator

  • In a harmonic oscillator, the energy switches between kinetic energy and potential energy.
  • What is the potential energy for mass-spring system?

UCLA Physics Department

17

offset/mean value

Potential energy: elastic potential energy of the spring.

x0 (the equilibrium position) can be found by finding the mean of displacement which is the offset in your best fit parameters

18 of 20

Energy of a Harmonic Oscillator

UCLA Physics Department

18

All energy is in potential energy

Spring is unstretched, all energy is in kinetic energy.

19 of 20

TA Checkpoint 3 - Energy vs. Time Plots

  • Using the spring constant you found in lab 3A, determine the potential energy of your system from your position data

  • Use theoretical differentiation by taking the derivative of the position fit function to obtain your velocity. Determine the kinetic energy of your system from your velocity data
  • Create a plot that includes 1. your potential energy, 2. kinetic energy, 3. total energy (potential + kinetic) as a function of time. Be sure to include a title, axis labels, and a legend

UCLA Physics Department

19

20 of 20

Post-Lab Requirements for lab 3C

  • Plot your distance vs. time for the damped oscillator.
  • Plot your energies vs. time (kinetic, potential, and total).
  • Describe the shape of your total energy over time. Explain whether this result makes sense based on the model for the damped harmonic oscillator

20