Lab 4: Detect an unknown signal

The goal: How can you figure out if a signal is just noise? Or perhaps it is a signal? One very powerful method is to use fourier analysis.


About FFT analysis

Make sure to work through this tutorial on basic FFT analysis here, before stating: FFT tutorial

Overview:

Our signal will be a generated brightness level on a computer screen. You can build a simple detector using the photoresistor from your kit. Set it up as an analog voltage divider (using the 1.0 kΩ resistor as the reference). Then, hold the photoresistor as close the screen as possible and record the values. Here you can see the measurement in progress.

  1. You will need to record your values with very accurate millisecond time deltas. To do this, use the code shown in the notes here: Signals Notes.

  2. You will need to record about 20 seconds of data to get enough to have a decent resolution for the frequency spectrum.

  3. Your signals will be made up of 4 different sin functions, all between 1 and 10 Hz, added together. This means you will detect 4 main frequencies in your FFT, which will appear as 4 peaks in your FFT graph.

  4. Here is a known signal to practice on. Test Signal Generator →. It is created by a sinusoidal function with a frequency of 2.5 Hz. You can test your code and measurements methods with this one. You should be able to reproduce the following graph of the FFT spectrum from the test signal.

    A 2.5 Hz signal in the test experiment.

Each student will have their own 'mystery signal'. Make sure to use the link that corresponds to your student ID number (the last 4 digits are shown).

Student ID Number (last 4) Your Link
2551 Signal ID 1
7463 Signal ID 2
5358 Signal ID 3
7042 Signal ID 4
7958 Signal ID 5
7357 Signal ID 6
9531 Signal ID 7
4424 Signal ID 8
1421 Signal ID 9
7131 Signal ID 10
4881 Signal ID 11
0896 Signal ID 12
8408 Signal ID 13
5804 Signal ID 14
6338 Signal ID 15
0870 Signal ID 16
5165 Signal ID 17
2708 Signal ID 18
9293 Signal ID 19
8580 Signal ID 20
7805 Signal ID 21
7781 Signal ID 22
4611 Signal ID 23
2928 Signal ID 24

To be included in your report

  1. Brief Introduction. Think of a real world example of where an FFT analysis might be useful. (And don't just copy something from here. Be original.)
  2. Circuit Diagram
  3. Your results of the FFT analysis (plots and frequency values)
  4. Links to Data
  5. Links to your analysis code

Some further reading on FFT can be found on these pages:

From Berkeley Python Numerical Methods
Miscellaneous Labs/Book