ECSE 1010 Proof of Concepts - Alpha Lab03

0. Lab Document

1. Prove the Result of Summing 3 Sinusoidal Waves in the Time and Frequency Domains

Description

We are going to sum 3 basic type of sine wave and check its spectrum of frequency domain. See if that matches our expectation.

Analysis

To determine the time domain signal and frequency spectrum of summing 3 sinusoidal waves. We can use the properties of sinusoidal waves in time and frequency domains.

For example, Sine Wave $250Hz$, $500Hz$ and $750Hz$ should have a result of time domain like

/ecse-1010-poc-lab03/P1-1-b.avif
P1-1-b

For the frequency domain, it should be like

/ecse-1010-poc-lab03/P1-1-c.avif
P1-1-c

Since the sum is made by 3 single sine wave.

Simulation

/ecse-1010-poc-lab03/P1-2-a.avif
P1-2-a
/ecse-1010-poc-lab03/P1-1-b.avif
P1-1-b
/ecse-1010-poc-lab03/P1-1-a.avif
P1-1-a

Discussion

Both our sketch and the simulation of frequency domain has 3 positive identical peaks. Which proves our analysis. The reason that they are not fully matched is due to Discrete Fourier Transform.

The sine wave used in this simulation is discrete sine wave. Unlike normal Fourier Transform, how many data point leads to how many frequency it went through. But the value in $dBm$ is extremely low. So, it makes no different.

2. Prove the Concept of Fourier Analysis by Determining Which Two Basic Types of Signals were Summed to Create This Mystery Signal

Description

We are going to find out two basic types of signals of a summed up signal by Fourier Analysis. To do that we are going to use the peak finder in spectrum analyzer in MATLAB.

Analysis

We can pick the most strong signal in frequency spectrum. That should be the two basic types of signals were summed to create this mystery signal.

Simulation

Let’s load Mystery Signal Audio File

/ecse-1010-poc-lab03/P2-2-a.avif
P2-2-a

The time domain looks like

/ecse-1010-poc-lab03/P2-1-a.avif
P2-1-a

And the frequency domain looks like

/ecse-1010-poc-lab03/P2-1-b.avif
P2-1-b

Discussion

Use the peak finder, the top 2 positive frequency are

Peak Number Frequency ($Hz$) Magnitude ($dBm$)
1 $101.5050$ $25.2965$
2 $749.5751$ $19.6980$

So, the two basic types of signals were summed to create this mystery signal are

  • Sine Wave $101.5050Hz$
  • Sine Wave $749.5751Hz$

3. Prove the Concept of Fourier Synthesis by Reconstructing the Mystery Signal in the Time Domain

Description

After find out the top 2 basic type of wave inside the mystery signal. We are going to reconstruct it and see if that matches the original work. We may use more than top 2 signal to get a better fitting.

Analysis

A signal composed of two sine waves with frequencies of $101.5050 Hz$ and $749.5751 Hz$ can be mathematically expressed as follows:

$$ x(t) = \sin(2\pi \times 101.5050 , t) + \sin(2\pi \times 749.5751 , t) $$

  • $t$: Represents time in seconds.
  • $\sin$: The sine function, which generates the oscillating waveform.
  • $2\pi \times f , t$: Converts the frequency $f$ from Hertz (cycles per second) to radians per second, which is necessary for the sine function argument.

a more general form can be written as

$$ x(t) = A_1 \sin(2\pi f_1 t + \phi_1) + A_2 \sin(2\pi f_2 t + \phi_2) $$

Where

  • $A_1$ and $A_2$ are the amplitudes of the sine waves.
  • $f_1 = 101.5050 Hz$ and $f_2 = 749.5751 Hz$ are the frequencies.
  • $\phi_1$ and $\phi_2$ are the phase shifts.

Assuming both sine waves have an amplitude of 1 and no phase shift, the expression simplifies to:

$$ x(t) = \sin(2\pi \times 101.5050 , t) + \sin(2\pi \times 749.5751 , t) $$

Simulation & Discussion

/ecse-1010-poc-lab03/P3-2-a.avif
P3-2-a

Use the peak finder, the top 5 positive frequency are

Peak Number Frequency ($Hz$) Magnitude ($dBm$)
1 $101.5$ $25.2965$
2 $749.6$ $19.6980$
3 $148.4$ $-3.2694$
4 $694.9$ $-13.9588$
5 $1350.8$ $-14.5331$

Then, build a layout with 5 basic wave instead of 2 for better result

/ecse-1010-poc-lab03/P3-2-b.avif
P3-2-b

Let’s check the result

/ecse-1010-poc-lab03/P3-2-c.avif
P3-2-c

The power is not exactly matched, since they were adjusted by hand. But they are close, and get a result reconstructing signal of time domain like

/ecse-1010-poc-lab03/P3-2-d.avif
P3-2-d

Compare our reconstructing signal to the original signal, they share the same period and shape.

/ecse-1010-poc-lab03/P2-1-a.avif
P2-1-a

The different in detail may due to leak of more basic type of waves and different power of basic type of waves.

4. Prove the Concept of an Analog High-Pass Filter Using an Inductor and a Resistor and Could I Make a Low-Pass Filter Using the Same Components?

Circuit Schematic

For low-pass filter

/ecse-1010-poc-lab03/P4-1-a.avif
P4-1-a

For high-pass filter

/ecse-1010-poc-lab03/P4-1-b.avif
P4-1-b

Description

We will make HF and LF filter using an inductor and a resistor. And check the result of frequency respond using network analyzer function in Analog Discovery 3.

Analysis

The cutoff frequencies for both the LR Low-Pass and LR High-Pass filters using component values

  • Resistor ($R$): $510 \Omega$
  • Inductor ($L$): $1 mH = 0.001 H$

The cutoff frequency for both filters is given by:

$$ f_c = \frac{R}{2\pi L} $$

Plugging in the Values

$$ \begin{align*} f_c &= \frac{510}{2 \times \pi \times 0.001} \\ f_c &= \frac{510}{0.00628318} \approx 81,000 \text{ Hz} \end{align*} $$

Simulation

For low-pass filter

/ecse-1010-poc-lab03/P4-3-a.avif
P4-3-a

We got a cut off frequency around $82.37kHz$

/ecse-1010-poc-lab03/P4-3-a-b.avif
P4-3-a-b

For high-pass filter

/ecse-1010-poc-lab03/P4-3-b.avif
P4-3-b

We got a cut off frequency around $80.69kHz$

/ecse-1010-poc-lab03/P4-3-b-b.avif
P4-3-b-b

Measurement

I am using the network analyzer to draw a frequency respond diagram. For low-pass filter, we had a setup like

/ecse-1010-poc-lab03/P4-4-a-b.avif
P4-4-a-b

We got a cut off frequency around $79.48kHz$

/ecse-1010-poc-lab03/P4-4-a.avif
P4-4-a

For high-pass filter

/ecse-1010-poc-lab03/P4-4-a-b.avif
P4-4-a-b

We got a cut off frequency around $80.98kHz$

/ecse-1010-poc-lab03/P4-4-b.avif
P4-4-b

Discussion

Our Simulation matches our Analysis. The Measurement also matches our Simulation and Analysis. Both of them has a cut off frequency around $80kHz$ with mark of $-3dBm$.

5. Prove the concept of using Fourier Analysis to associate audible features of an audio signal with specific frequency ranges in its frequency spectrum

Description

We are going to find out the leading signal of the given signal and try to reconstruct it. After reconstruction, we are going to compare some key feature to the original signal.

Analysis

/ecse-1010-poc-lab03/P5-1-a.avif
P5-1-a
/ecse-1010-poc-lab03/P5-1-b.avif
P5-1-b

We used high-pass and low-pass filter to split two frequencies within a signal up. We ran these two frequencies, the original signal, and the two frequencies summed into the spectrum analyzer. We see the sum of the two filtered frequencies is fit to the original.

Then, we point out the main frequency from splay

/ecse-1010-poc-lab03/P5-2-a.avif
P5-2-a

which are

  • $440.5Hz$
  • $480.1Hz$

Simulation & Discussion

Then, we reconstructed it.

/ecse-1010-poc-lab03/P5-2-b.avif
P5-2-b

They have identical shape and frequency domain.

/ecse-1010-poc-lab03/P5-2-d.avif
P5-2-d
/ecse-1010-poc-lab03/P5-2-d.avif
P5-2-d

6. Prove the Concept of Filtering Out or Isolating a Particular Range of Frequencies of a Signal

Description

We are going to simulate the LP filter and using Simulink to create a mid-pass filter. After this, we are going to apply this to a song and see what can it change.

Analysis

We simulated a low-pass filter. Red is the raw signal, and the black is the filtered signal. As we can see, part of signal got removed.

/ecse-1010-poc-lab03/P6-2-a.avif
P6-2-a

With the formula of

$$ F_{low} = \frac{1}{2 \pi RC} $$

we can get the capacitance of the target LP filter.

$$ \begin{align*} 300 &= \frac{1}{2 \pi \cdot 1K \cdot C} \\ C &= 5.6 \times 10^{-7} \end{align*} $$

Simulation & Discussion

Our audio file was that of Mary Had a Little Lamb. We wanted to hear a higher pitched version of it.

/ecse-1010-poc-lab03/P6-1-a.avif
P6-1-a

by applying a Mid-pass filter from $800Hz$ to $1700Hz$, we are able to remove part of the signal and able to hear about the sound. We isolate a specific, higher range of the song. We end up with a higher pitched version of the song and some high pitched screechy sound accompanying it. The higher pitched version is also less loud.

/ecse-1010-poc-lab03/P6-1-b.avif
P6-1-b
/ecse-1010-poc-lab03/P6-1-c.avif
P6-1-c

Related Content

0%