Physics report on using various code to visualize data.
Physics report on using various code to visualize data.
Standing Waves
I. Purpose
The purpose of this lab is to investigate the behavior of waves in a simple system, a wire
with fixed points at both ends. If you drive the wire at certain specific frequencies, a standing wave
with relatively large amplitude will be produced. These frequencies are resonances of the system
and have many similarities to the resonance you observed in the forced harmonic motion apparatus.
You will find the resonant frequencies, determine how they depend on the parameters of the
system, see how to find the weighted average of several measurements, and compare your results
to a simple theory.
III. References
For more on the physics of waves see Appendix E, your Physics 273 textbook, or “Waves
- Berkeley Physics Course Volume 3” by Frank Crawford. For how to find the weighted average,
see Appendix A of this lab manual, or page 31 from Lyon, or Chapter 7 from Taylor. For more on
using the oscilloscope, see Appendix G.
Figure 1. Snapshots at fixed time showing three lowest frequency standing waves on a string held
fixed x = 0 and 1.0 m. The fundamental mode n=1 (blue) has one anti-node (place of maximum
displacement). The n=2 mode (red) has 2 anti-nodes and mode n=3 (green) has 3 anti-nodes.
VI. Equipment
standing wave apparatus with function generator
photogate sensor and power supply
2-channel oscilloscope meter stick
LabPro LinFit and LnLnfit Excel spreadsheets
Waves LoggerPro Template.cmbl Waves-Excel Template-Exp 11
QUESTION A1: A wire of length Lo has mass mo and linear mass density µ = mo/Lo. Assume
that σmo is the uncertainty in mo and σLo is the uncertainty in Lo. In the space below or on a
separate piece of paper, use propagation of errors and simplify to find an equation for the
uncertainty σµ in µ.
1. Go to the Excel Templates folder on the Desktop and open Waves-Excel Template-Exp 11.
Save a copy in the Documents folder with your name in the title.
2. Measure the mass mo of the wire sample that is kept at the front of the lab, which has a length
of Lo=2.000 m ± 2 mm, and record in the first worksheet. Also estimate the uncertainty σmo in
the wire mass m.
QUESTION A2: Compute the mass density µ and the uncertainty σµ in the mass density µ. Make
sure you use SI units in this lab - meters, kilograms and seconds!
3. Add weight to the hanger (see Figure 2) so that the wire is supporting a total mass of M = 0.200
kg. Note: since the holder has a 0.050 kg mass, this means you need to add 0.150 kg - double
check that you actually have a total mass of 0.200 kg. Record the tension T = Mg in your
spreadsheet.
4. For best results, the wire should be a bit shorter than 1 m long between the two fixed points.
That way you can use a 1 meter ruler to measure the length. Make sure the fixed points are
pushed up against the clamps so they won’t move. Measure the Length L of the wire between
the fixed points and record L and its uncertainty in your spreadsheet.
(b)
Figure 2. (a) Photo of wave apparatus showing wire going between N (red) and S (blue) poles of
magnet. (b) Circuit schematic shows moving wire connected in series with function generator
voltage supply Vs and 10 Ω resistor. Wire is driven by Lorentz force from current in wire as it goes
through magnet. Position of the wire is measured using an LED and optical sensor. Channel 1 of
the scope measures ac drive voltage Vs while Channel 2 measures voltage output Vyopt from optical
sensor, which is proportional to the wire’s displacement y at the location of the sensor. Output
voltage Vs from function generator and output voltage Vyopt from optical sensor are monitored by
the Vernier LabPro box, which digitizes and transfers signals to the computer using Logger Pro.
(b)
Figure 3. (a) Channel 1 and Channel 2 inputs and control panel on right side of oscilloscope.
(b) Display panel on the left side of the scope after the Measure button was pushed.
5. The magnet should have the North pole (red) closest to you when you face the apparatus (see
Fig. 2) and be placed near one end of the wire. Also check that the wire centered in the gap
between the two pole faces.
6. Turn on the photogate power supply. Examine the circuit and setup diagram shown in Figure 2.
Verify that your apparatus is set up as in Figure 2 and check in particular that the wire, 10 Ω
resistor, and function generator are connected to form a closed circuit.
7. Turn on the oscilloscope (on-button is on top of scope) and let it go through automated set-up.
8. Turn on the function generator, set the frequency range switch to the 1-100 Hz range and the
waveform to Sine wave. Adjust the amplitude knob to about the 9 or 10 o’clock position which
will generate between 0.5 V and 1 V.
9. Push the Ch 1 Menu button (see Fig. 3(a)) and use the soft-keys to set scope channel 1 AC
coupled and BW limit: On. Do the same for Ch 2. Next push the Trigger Menu button (see
Fig. 3(a)) and verify that the trigger is set to:
Trigger Source: Ch 1 Slope: Rising Coupling: HF Reject Mode: Normal
Verify that Ch 1 shows the sine wave drive from the oscillator and that a trace is visible for Ch
2 (just a flat line might be visible at this point). Adjust the Vertical knobs for both channels and
the Horizontal knob and to get a nice looking display.
10. Push the Measure button on the scope and use the soft-keys to set the scope so it is displaying
the peak-to-peak voltages of Ch 1 and Ch 2 and the frequency of channel 1 (see Fig. 3(b)).
11. Carefully examine the apparatus and then take a picture using the web camera. Paste the
picture into your spreadsheet.
3. Make a plot of the frequency fn versus the mode number n and show your instructor. Be sure to
label your plot axes, don’t forget to add units, and add a title - Plot B: Frequency vs Mode #.
2. After you have entered all the data into LinFit 3, click on the gray Macro button. It will ask if
you want to force the intercept ao to zero, click Yes, which is what Equation (5) implies.
3. After you run LinFit 3, copy everything in it (title cell, data, errors, and fitting results) except
for the macro button and paste a copy into the first worksheet in your spreadsheet.
QUESTION C1: Is the resonant frequency fn consistent with being linearly proportional to the
harmonic number n?
QUESTION C2: How did you determine you answer to Question C1?
4. For each of your measured values fn calculate fn /n and the uncertainty in fn /n.
5. Now fill in the rest of the template for Part C and calculate the weighted mean < fn /n> and the
uncertainty in the weighted mean (see Equations A.14 and A.15 in Appendix A).
QUESTION C3: Compare the value you found for the weighted mean < fn /n> to the value LinFit
3 found for a1. Also compare your value for the uncertainty in the weighted mean to the value
LinFit 3 obtained for σa1. Use complete sentences and clearly state each value obtained.
4. Adjust the function generator frequency to drive the fundamental mode at its resonance.
5. The scope should now be showing two sinusoidal curves with the same frequency; Ch 1 is the
drive voltage and Ch 2 is the output voltage Vyopt from the optical sensor, which gives an output
that is directly related to the wire’s y-position at the gate. If you see two sine waves, adjust the
horizontal and vertical scales on the scope to get a nice display. If you do not see a sine wave
on CH 2, make sure the function generator is set to the first resonance frequency and the output
is in the 200-400 mV range. If you see a distorted sine wave on CH 2, check that the function
generator is not applying more than 400 mV peak-to-peak and the gate is no more than 3” from
the fixed point. Then try turning the drive voltage down to 200 mV peak-to-peak. If the
distortion is small, you can try turning the y-knob (see Figure 4 (a)) by a little bit (less than a
full rotation) and see if the CH 2 output becomes a nice sine wave. If you still don’t see a good
output, the gate height may need to be adjusted and you will need to get your instructor.
6. Adjust the scope so that you can clearly see the signal from both channels.
7. Have your instructor verify that you have set everything up correctly - especially the optical
gate. Do not go past this point unless your instructor has checked that everything is OK.
8. Go to the LoggerPro folder and open “Waves LoggerPro Template.cmbl”. Figure 5 shows the
layout for this panel, which is similar to the one you used for the forced harmonic motion
experiment. Click Collect to acquire 0.2 s of Ch 1 and Ch 2 data at 1000 samples/s.
9. Note how this LoggerPro template automatically fits the data in each channel to a sine wave and
displays the fit parameters including the amplitude (which it calls A), the frequency (B) and the
phase (D). Verify that the fit curves (thin black curves) in the top two panels look like they
are close fits to the data. If they are not close fits to the data, try clicking on and moving the [
or ] symbols on the plot which define the region being fitted.
10. Looking at the scope Ch 2, tune the function generator to the fundamental frequency. Then
have LoggerPro collect the drive voltage (Ch 1) and voltage output Vyopt from the optical gate
(Ch 2) versus time. Click on the box with the fit parameters for the source voltage Vdrive and
copy (Ctlr C). Then go to Part D in you spreadsheet and paste (Ctrl V) into the location that is
highlighted in yellow and says ”click here and paste Auto Fit Vdrive table”. Do the same for
the fit parameters for Vyopt. This gets the fit parameters A, B, C, D into your spreadsheet
template. Also select all of the t, Vs and Vyopt data in LoggerPro and paste into the designated
spot in your spreadsheet template. The template will automatically plot the data and fit for Vs(t)
and Vyopt(t).
11. Once you have pasted in your data for the resonance, the template will generate a list of target
frequencies, which are in a tight range near the resonance. Repeat the previous step for the 7
additional target frequencies listed in the template.
12. Once you have filled in all the measurements, your spreadsheet will finish making plots of the
amplitude versus frequency and phase versus frequency. Examine these plots to answer the
following questions.
Question D1 - Using the result Q = f1/∆f from Experiment 10-Forced Harmonic Motion, where ∆f
is the full width of the peak at 1/ 2 = 0.707 of the maximum, what is the approximate Q of the
wire’s fundamental resonance?
Question D2 - By how much does the phase change when you sweep through the resonance?
Question D3 - How does your answer to Question D2 compare to the total phase change when
you sweep through the resonance in a simple harmonic oscillator (as in Experiment 10).
QUESTION E2: Is the value for µ that you obtained in Step 5 consistent with the value you
reported in Question A2? Explain how you determined the answer to this question.
IX. Homework (Submit your answers to the homework to Expert TA before the deadline)
Questions and multiple choice answers on Expert TA may vary from those given below. Be sure
to read questions and choices carefully before submitting your answers on Expert TA.
#1. Suppose that you measured harmonic frequencies fn of 23 Hz, 48 Hz, 73 Hz, and 101 Hz for
n = 1, 2, 3, 4 with an uncertainty of 1 Hz in each frequency measurement.
(a) Find the weighted average of fn/n.
(b) What is the uncertainty in the weighted average of these frequencies?
#2. (a) What was the mass per unit length of the wire used in this experiment?
(b) How much tension would you need to apply to the wire in this experiment in order for the
wave speed to equal the speed of sound in air (assume 340 m/s)?
(c) What is the total mass you would need to hang on the end of the wire to get the tension
found in part (b) of this problem?
#3. In Appendix E, it is stated that y=f(x±vst) is the general solution to the wave equation E.1
when f is ANY well-behaved function of x±vst. Show that this is true by substituting into
Equation E.1 and working out the derivatives.
#4. Did you find that the mass density you predict from fitting the frequencies differed
significantly from the measured mass density? In complete sentences, consider what might
be causing this discrepancy and suggest an experiment you could do to test your ideas.
#5H. [This Question is for Hotshots Only] Suppose the optical gate in this setup gives a
sensitivity to motion of the wire of about 0.25 V/mm (see Figure 4). With some averaging
on the scope (an advanced scope function that we don’t use in class), the electrical noise
level can be reduced to about 0.25 mV. What is the smallest motion of the wire that can be
detected?