MECE 4372 Mechanics Control Vibration Lab Lab Report 4
MECE 4372 Mechanics Control Vibration Lab Lab Report 4
Lab Report 4
OBJECTIVE
One objective of the lab is to generate a triangular wave on MATLAB and compare different
summations of a Fourier series to create a triangular wave. Another objective is to compare
simulation and experimental inputs and outputs of a system with a triangular wave input.
EXPERIMENTAL SETUP
EXPERIMENTAL PROCEDURE
Part 1:
Figure 3 shows the results of Part 1 of Lab 4 which was to approximate a triangular wave with an
amplitude of 1 and frequency of 30 Hz using different number of Fourier terms for
approximation. The code used for Part 1 can be found in Appendix A and turned in with this lab
report.
Figure 4 - Plot Showing Experimental and Simulation Results for a Triangular Wave at 0.5 Hz
Figure 5 shows the plot for a triangular wave input at 5 Hz.
Figure 5 - Plot Showing Experimental and Simulation Results for a Triangular Wave at 5 Hz
Figure 6 shows the plot for a triangular wave input at 15 Hz.
Figure 6 - Plot Showing Experimental and Simulation Results for a Triangular Wave at 15 Hz
Figure 7 shows the plot for a triangular wave input at 30 Hz.
Figure 7 - Plot Showing Experimental and Simulation Results for a Triangular Wave at 30 Hz
DISCUSSION
Part 1:
Figure 3 shows the results from Part 1 of Lab 4. As the number of terms in the series summation,
N, increases from 1 to 20, the graph looks closer to a triangular wave. This happens because
more terms are added to the summation which relates to a more accurate representation of a
triangular wave.
Part 2:
For all plots in Part 2, the simulated and experimental input are close together and maintain the
same trend as expected. The amplitudes of both inputs are the same. Figure 4 shows the results
for a triangular wave at 0.5 Hz. The experimental has an amplitude that is about 1 V greater than
the simulated output. The experimental output amplitude is around 4.7 V, and the simulated
output amplitude is around 3 V. Figure 5 shows the results of a triangular wave at 5 Hz. The
amplitude has dropped from the 0.5 Hz plot. The experimental output amplitude is around 2.7 V,
and the simulated amplitude output is around .7 V. Additionally, the output amplitude does not
line up with the input amplitude. Figure 6 shows the results of a triangular wave at 15 Hz. The
amplitude is lower than the amplitude in the 5 Hz plot. The experimental output amplitude is
around 1 V, and the simulated output amplitude is around 0.4 V. Also, the amplitudes of the
output do not match the input amplitudes. Figure 7 shows the results of a triangular wave at 30
Hz. The amplitudes of the output are lower than the input, and the amplitudes of the output do
not match. Also, the amplitudes of the output do not line up with the input amplitudes.
As the frequency increases from 0.5 Hz to 30 Hz, the output amplitudes begin to decrease due to
a filtering effect. At 0.5 Hz, the input signal is seen in the output, and the output receives most of
the signal. As the frequency increases, less of the signal/data is being transmitted. The combined
system is a low-pass filter which was seen in the previous lab Bode plots, so this filtering effect
matches the low-pass filter effect.
CONCLUSION
In Part 1, a plot was made to see the difference in triangular waves by using different numbers of
Fourier terms for approximation, and N = 20 showed a good approximation for a triangular
wave. In Part 2, plots were made for different frequencies of a triangular wave input. The
experimental and simulated input and output were close together at the lowest frequency, 0.5 Hz,
and the inputs and outputs were different as the frequency increased. This trend is due to the
combined system being a low-pass filter which produced the filtering effect.