This shows you the differences between two versions of the page.
milestone_2_task_2 [2023/01/18 15:24] scott light.zip |
milestone_2_task_2 [2023/01/23 12:11] (current) scott [Anti-Aliasing Filter Design] |
||
---|---|---|---|
Line 87: | Line 87: | ||
The performance of the laser tag system can be improved by reducing the noise that ultimately ends up across the band of frequencies we care about (~1 - 5 kHz). We are not going to be investigating all of the noise sources in our system, but we are going to look into one of the easiest noise sources to reduce: the optical noise produced by the fluorescent lights in our lab room. | The performance of the laser tag system can be improved by reducing the noise that ultimately ends up across the band of frequencies we care about (~1 - 5 kHz). We are not going to be investigating all of the noise sources in our system, but we are going to look into one of the easiest noise sources to reduce: the optical noise produced by the fluorescent lights in our lab room. | ||
- | We measured the signal produced by the fluorescent lights and saved it as a MATLAB file {{:light.zip|}}. This data is all noise. After unzipping this file you can load it directly into MATLAB. It contains two variables, t and y. (Use the MATLAB load command.) | + | We measured the signal produced by the fluorescent lights and saved it as a MATLAB file ({{:light.zip|}}). This data is all noise. After unzipping this file you can load it directly into MATLAB. It contains two variables, t and y. (Use the MATLAB load command.) |
You should get a plot similar to the following. | You should get a plot similar to the following. | ||
Line 134: | Line 134: | ||
The specifications of the filter are provided at the top of the lab. You will be using the FIR filter design process that you used in ECEN 380 Lab #5 Task #2. For your convenience, here are links to the ECEN 380 Lab #5 and the discrete filter design handout: | The specifications of the filter are provided at the top of the lab. You will be using the FIR filter design process that you used in ECEN 380 Lab #5 Task #2. For your convenience, here are links to the ECEN 380 Lab #5 and the discrete filter design handout: | ||
- | {{:lab_5_fall2016.pdf|ECEN 380 Lab #5}} | + | {{:lab5_fall2018.pdf|ECEN 380 Lab #5}} |
{{:filter_design_notes.pdf|Handout on discrete time filter design.}} | {{:filter_design_notes.pdf|Handout on discrete time filter design.}} | ||
Line 257: | Line 257: | ||
==== Noise Reduction ==== | ==== Noise Reduction ==== | ||
- | Now that you have finished the design of the anti-aliasing filter, your final job is to see how well it reduces the aliased noise. Do the following: | + | Now that you have finished the design of the anti-aliasing filter, your final job is to see how well it reduces the aliased noise. Do the following: |
- | - Load in your optical noise sample (the one that is 500ms long with 50,000 samples) | + | - Load in the optical noise sample ({{:light.zip|}}, which is 500ms long with 50,000 samples) |
- | - Plot the noise spectrum (frequency domain) **without using your FIR filter** (just like you did before) | + | - Plot the noise spectrum (frequency domain) **without using your FIR filter** (like you did before) |
- Down-sample to Fs = 10kHz | - Down-sample to Fs = 10kHz | ||
- Plot the noise from 1kHz to 5 kHz | - Plot the noise from 1kHz to 5 kHz | ||
- | - Plot the noise spectrum (frequency domain) **using your FIR filter before down-sampling** | + | - Plot the noise spectrum (frequency domain) **using your FIR filter** |
- | - Filter the noise signal with your FIR filter | + | - Filter the noise signal with your FIR filter //before down-sampling// |
- Down-sample the signal to Fs = 10kHz | - Down-sample the signal to Fs = 10kHz | ||
- Plot the noise from 1kHz to 5 kHz | - Plot the noise from 1kHz to 5 kHz | ||
Line 323: | Line 323: | ||
The following items need to be shown to the TAs for pass off: | The following items need to be shown to the TAs for pass off: | ||
- MATLAB code portion showing design of FIR low pass anti-aliasing filter | - MATLAB code portion showing design of FIR low pass anti-aliasing filter | ||
- | - List of FIR filter coefficients | + | - List of FIR filter coefficients (with at least 17 significant digits) |
- List of achieved filter specifications | - List of achieved filter specifications | ||
- Frequency response plot of the low pass FIR filter | - Frequency response plot of the low pass FIR filter |