User Tools

Site Tools


milestone_2_task_3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

milestone_2_task_3 [2015/05/20 16:37]
schultz [Resources]
milestone_2_task_3 [2023/01/15 00:38] (current)
scott [Pass Off]
Line 2: Line 2:
  
 ===== Overview ===== ===== Overview =====
-This tasks involves ​put the various parts of the signal processing algorithm together. ​ This task will help you understand ​the signal processing algorithm and demonstrate that your signal processing algorithm works.+This task involves ​putting ​the various parts of the signal processing algorithm together. ​ This task will help you see the entire ​signal processing algorithm ​at work, and will demonstrate that the filters you designed in Tasks 1 and 2 actually do what they were designed to do.
  
 Essentially,​ this milestone combines Task 1 and Task 2 together. Essentially,​ this milestone combines Task 1 and Task 2 together.
  
 ===== General Requirements ===== ===== General Requirements =====
-  * Add a square wave to the optical noise +  * Add a square wave at one of the player frequencies ​to the optical noise provided in Task 2.  Remember that these signals should all be sampled at 100 ksamples/s. 
-  * Decimate the signal +  * Decimate the signal ​(a two-step process): 
-    * Filter the signal ​through ​using your low pass filter +    * Filter the 100 ksamples/​s ​signal using your low pass FIR filter 
-    * Down-sample the signal to  +    * Down-sample the signal to 10 ksamples/s 
-  * Filter the signal ​with the 10 bandpass filters +  * Filter the resulting 10 ksamples/​s ​signal ​using the 10 IIR bandpass filters 
-  * Calculate and display the power +  * Calculate and display the signal energy of each of the 10 resulting filtered signals
- +
  
 ===== General Notes ===== ===== General Notes =====
-Measured ​signal from fluorescent lights: {{:​light.zip|}} +For your convenience,​ the measured ​signal from the fluorescent lights ​can be found here: {{:​light.zip|}} 
-player frequencies:​ 1471, 1724, 2000, 2273, 2632, 2941, 3333, 3571, 3846, 4167+ 
 +The ten player frequencies ​(in Hz) are: 1471, 1724, 2000, 2273, 2632, 2941, 3333, 3571, 3846, 4167
  
 ===== Specifications ===== ===== Specifications =====
-  - Low pass filter +  - For the anti-aliasing filter, use your low-pass filter ​designed in Task 2 
-    - FIR +    - Filter is Finite Impulse Response (FIR) 
-    - length ​81 +    - Filter is described by 81 '​b'​ coefficients 
-  - Bandpass filters +    - Of the 'a' coefficients of an FIR filter, only a_0 is non-zero, and has a value of 
-    - IIR +    - For this task, you should just read in your '​b'​ coefficients from the file you saved them in when you designed ​the filter in Task 2 
-    - length 11 + 
-    - Ten filters centered at player frequencies +  ​Use your bank of band-pass filters designed in Task 1 
-===== Pass Off ===== +    - Filters are Infinite Impulse Response ​(IIR
-Show the following plots for shot by player 1. +    - Each filter is described by 11 '​b'​ coefficients ​and 11 '​a'​ coefficients 
-  ​Square wave for player ​+    - The center-of-passband frequencies ​for the filters ​are the ten player frequencies 
-    - f=1471Hz +    - For this task, you should read in your '​b'​ and '​a'​ coefficients from the file(s) you saved them in when you designed the filter in Task 1
-    - Amplitude of 0.1V (square wave with voltage of either 0 or 0.1V) +
-    - x-axis of 4 ms near the middle of the spectrum +
-    - y-axis of -1V to 1V +
-    - Sampling frequency of Fs=100kHz +
-  - Optical noise (from lights.mat+
-    - Same axis as square wave +
-  - Sum of optical noise and square wave +
-    - Same axis as square wave +
-  ​Decimated signal +
-    ​Low pass filtered and then down-sampled to Fs=10kHz +
-    - Same axis as square wave +
-  - Signal filtered by bandpass filter centered at f=1471Hz +
-  - The power for the signal through all 10 bandpass ​filters +
-    - Signal length of 200ms+
  
-===== What is Needed in the Lab Book ===== 
 ===== Resources ===== ===== Resources =====
-Creating ​the signal as a square wave added to the optical noise:+Here is the MATLAB code for creating ​the signal.
 <​code>​ <​code>​
-load light %y and t are variable for noise +%Load in optical ​noise 
-Fs=100e3;+load light 
  
 %we only want 200ms of data or 200e-3*100e3 = 20000 sample %we only want 200ms of data or 200e-3*100e3 = 20000 sample
Line 61: Line 46:
 y1=0.1*(0.5+0.5*square(2*pi*freq*t));​ y1=0.1*(0.5+0.5*square(2*pi*freq*t));​
  
 +%Add square wave to the noise
 y2=y+y1; y2=y+y1;
 +
 </​code>​ </​code>​
 +
 +After creating the signal you will be using the MATLAB code that you developed as part of Task 1 and Task 2.
 +
 +===== What is Needed in the Lab Report =====
 +Please include the following in the Lab Report for Milestone 2, Task 3:
 +  - Clearly labeled versions of the graphs required for pass off, with a brief description for each graph of exactly what we are looking at, and how we can tell from the graph that things are working correctly. ​ (For example, on the frequency domain plot of noise + the player 1 square wave signal, note where the fundamental player 1 frequency peak from the square wave appears in the plot, and note the major noise peaks that we see in the spectrum.)
 +  - A 1-paragraph summary of what was accomplished in this task
 +
 +===== Pass Off =====
 +Show the following plots for a shot by player 1:
 +  - Time-domain plot of square wave for player 1
 +    - f = 1471Hz
 +    - Amplitude of 0.1V (square wave with voltage of either 0 or 0.1V)
 +    - Zoom in on a section of the x-axis 4ms wide when you are showing this for pass off
 +    - y-axis of -1V to 1.5V
 +    - Sampling frequency of Fs = 100kHz
 +  - Time-domain plot of optical noise (from lights.mat)
 +    - Same axis as square wave
 +  - Time-domain plot showing sum of optical noise and square wave
 +    - Same axis as square wave
 +  - Frequency-domain plot of sum of optical noise and square wave (on an axis going from 0 to 50 kHz)
 +  - Frequency-domain plot of decimated signal (on an axis going from 0 to 5 kHz)
 +    - Low pass filter signal and then down-sampled to Fs = 10kHz
 +    - Then use fft to view in frequency domain
 +  - Frequency-domain signal filtered by bandpass filter centered at f = 1471Hz
 +  - Frequency-domain signal filtered by bandpass filter centered at another player frequency
 +  - The signal energy for the signal through all 10 bandpass filters
 +    - Signal length of 200ms
  
milestone_2_task_3.1432161452.txt.gz · Last modified: 2015/05/20 16:37 by schultz