This shows you the differences between two versions of the page.
fft [2015/03/19 13:59] schultz created |
fft [2015/03/19 14:34] (current) schultz |
||
---|---|---|---|
Line 7: | Line 7: | ||
- Connect the function generator to the oscilloscope. The signal should be a sinusoidal signal with a frequency of around f=10 kHz and an amplitude of 1 Vpp. You should be able to see a good sinusoidal signal with a very small amount of noise. | - Connect the function generator to the oscilloscope. The signal should be a sinusoidal signal with a frequency of around f=10 kHz and an amplitude of 1 Vpp. You should be able to see a good sinusoidal signal with a very small amount of noise. | ||
- | - Push the math ‘button’, located in the grey square on the right of the front of the oscilloscope as indicated in the red box in Figure 1 and select the FFT Operator using a ‘soft key’. | + | - Push the math ‘button’, located in the grey square on the right of the front of the oscilloscope as indicated in the red box in the following picture and select the FFT Operator using a ‘soft key’. {{ :scope.jpg?100 |}} |
- | {{ :scope.jpg?100 |}} | + | - The following picture shows you approximately what your signal should look like. The yellow trace is the time varying signal and the pink trace is the frequency domain representation (Fourier domain). {{ :scope2.jpg?100 |}} |
- | - Figure 2 shows you approximately what your signal should look like. The yellow trace is the time varying signal and the pink trace is the frequency domain representation (Fourier domain). | + | |
- FFT Overview | - FFT Overview | ||
- With the FFT algorithm the mapping of the time varying signal to frequency depends on the total time band, the total number of samples, and the sampling rate. | - With the FFT algorithm the mapping of the time varying signal to frequency depends on the total time band, the total number of samples, and the sampling rate. | ||
Line 17: | Line 16: | ||
- If you want a better frequency resolution you need a wider time window. | - If you want a better frequency resolution you need a wider time window. | ||
- Play around with the time window to see the effect on frequency resolution. | - Play around with the time window to see the effect on frequency resolution. | ||
- | - Set the time/division to 20 s. This time resolution produces about 2 periods of the sine wave. This time resolution is what the auto scale will typically change the time resolution to. | + | - Set the time/division to 0.02 ms. This time resolution produces about 2 periods of the sine wave. This time resolution is what the auto scale will typically change the time resolution to. |
- | i. We have an f=10 kHz signal so set the frequency span to 100 kHz and the Center to 50 kHz. You do this by pushing the Math ‘button’ and using the ‘soft keys’ where is says Span and Center. | + | - We have an f=10 kHz signal so set the frequency span to 100 kHz and the Center to 50 kHz. You do this by pushing the Math ‘button’ and using the ‘soft keys’ where is says Span and Center. |
- | ii. Use the cursor to pin point the f=20 kHz signal. You select the cursor using a ‘button’, change it to the FFT trace using ‘soft key’, and use a ‘knob’ to move the cursor. | + | - Use the cursor to pin point the f=10 kHz signal. You select the cursor using a ‘button’, change it to the FFT trace using ‘soft key’, and use a ‘knob’ to move the cursor. |
- | iii. Notice how coarse the frequency signal is. The oscilloscope lists your FFT Resolution in the button right corner. | + | - Notice how coarse the frequency signal is. The oscilloscope lists your FFT Resolution in the button right corner. |
- | b. Increase the time/division by a factor of 10 (time/division = 0.2 ms). Make sure that the frequency span is still 100 kHz and the center is 50 kHz. | + | - Increase the time/division by a factor of 10 (time/division = 0.2 ms). Make sure that the frequency span is still 100 kHz and the center is 50 kHz. |
- | c. Increase the time/division by a factor of 10 (time/division = 2 ms). Make sure that the frequency span is still 100 kHz and the center is 50 kHz. | + | - Increase the time/division by a factor of 10 (time/division = 2 ms). Make sure that the frequency span is still 100 kHz and the center is 50 kHz. |
- | d. Notice how the spike at f=10 kHz gets more narrow as the time/division increases. | + | - Notice how the spike at f=10 kHz gets more narrow as the time/division increases. |
- | e. In summary, it takes a lot of periods of a signal to produce a good frequency domain representation. Therefore, the signal needs to be zoomed out to get a good frequency domain signal. See Figure 2. | + | - In summary, it takes a lot of periods of a signal to produce a good frequency domain representation. Therefore, the signal needs to be zoomed out to get a good frequency domain signal. |
+ | - You can adjust the amplitude and position of the purple signal (this is the FFT signal) by using the knobs in the gray math box. The red box in the following picture shows how you change the amplitude of the FFT signal {{ :scope3.jpg?100 |}} and the following picture shows how to shift the signal up and down. {{ :scope4.jpg?100 |}} You can push the shifting button to put the FFT signal in the middle of the screen. | ||