CEE575 Recap Fouriers theorem loosely states that that every - - PowerPoint PPT Presentation

cee575 recap
SMART_READER_LITE
LIVE PREVIEW

CEE575 Recap Fouriers theorem loosely states that that every - - PowerPoint PPT Presentation

Fourier Series and Fourier Transform CEE575 Recap Fouriers theorem loosely states that that every function can be completely expressed as a sum of sines and cosines of various amplitudes and frequencies. The Fourier series tells you


slide-1
SLIDE 1

CEE575

Fourier Series and Fourier Transform

slide-2
SLIDE 2

Recap

  • Fourier’s theorem loosely states that that every function can be completely expressed as

a sum of sines and cosines of various amplitudes and frequencies.

  • The Fourier series tells you the amplitude and frequency of the sines and cosines that you

should add up to recreate your original function

Source: http://mathtools.stanford.edu/reader/Ch5_Fourier_Analysis.pdf

slide-3
SLIDE 3

Signals: When time domain analysis is not enough

Once we’ve collected data using an ADC, we often need to process and analyze it. This could entail:

  • Cleaning up the data/signal (Filtering)
  • Extracting “interesting” parts of the data stream

Time (noisy) Frequency Example: extracting damage info from accelerometer readings

Interesting Noise Noise

slide-4
SLIDE 4

Example 2: filtering out noise on agoutis signals

  • Say you are recording whale noise in the ocean using

a piezo sensor.

  • There is a lot of background noise, and all you want to

do is extract the the actual whale call:

Interesting

Time (noisy) Frequency

slide-5
SLIDE 5

Joseph Fourier

(21 March 1768 – 16 May 1830)

slide-6
SLIDE 6

Remember

slide-7
SLIDE 7

Example

http://maxim.ece.illinois.edu/teaching/fall08/lec8.pdf

slide-8
SLIDE 8

Animation: http://en.wikipedia.org/wiki File:Fourier_series_and_transform.gif

slide-9
SLIDE 9

Power spectrum representation

  • For the square wave example, you could see that not every component sine wave

contributed equally to the final summed signal. Some have higher amplitudes (are more important) than others

  • Once we know the Fourier series for a square wave, the square wave can easily be

expressed in the frequency domain. This involves plotting the amplitude or the power

  • spectrum. These spectrums will tells us about the relative importance of each sine

component

  • dd

amplitude frequency

Power=Ampltide2

slide-10
SLIDE 10

Step by step

  • A nice example of Fourier’s Theorem is the creation of a

square wave by summing the appropriate component sine

  • waves. Since this function is odd, the only contribution

waves will be sines (see course notes)

  • In the figure below, the top panels represents a waveform

and the bottom panel represents the sine waves that are added together to form the waveform. Each column contains one more component sine wave than the previous

  • panel. As you can see, as you add up more sine waves,

the resulting waveform starts to look more and more like a square wave

slide-11
SLIDE 11

The frequency-, or power-spectrum, tells us how prevalent any given frequency component is etc… Notice how some frequencies are not even present in our reconstruction

slide-12
SLIDE 12

Another look

The figure below is another simple example of plotting the same signal in both the time domain and frequency domain. The sine waves represented by the top two rows are summed to create the waveform in the bottom row. The right column shows how much power is in each frequency (“power spectrum”). Notice that the power is zero at most frequencies. This is because the waveforms in this example are composed of either 1 or 2 sine waves, so most frequencies are not contributing any power to the signal.

slide-13
SLIDE 13

A closer look at amplitude and phase

https://engineering.purdue.edu/ME365/Textbook/chapter8.pdf

slide-14
SLIDE 14

The power of the transform

Sensor Difficult to interpret Easier to interpret

slide-15
SLIDE 15

The Fourier transform

See notes…

slide-16
SLIDE 16

Visualizing various transforms

FT DTFT DFT/FFT Discrete Discrete Continuous Discrete Continuous Continuous t x(t) n x[n] n x[n] ω X(ω) ω X(ω) Ω X[Ω]

slide-17
SLIDE 17

Visualizing various transforms

FT DTFT DFT/FFT Discrete Discrete Continuous Discrete Continuous Continuous t x(t) n x[n] n x[n] ω X(ω) ω X(ω) Ω X[Ω]

Most Useful In real world

slide-18
SLIDE 18

Real-world use: a note on sampling

slide-19
SLIDE 19

Sampling

slide-20
SLIDE 20

Aliasing examples

slide-21
SLIDE 21

Nyquist sampling rate

Reminder – to avoid aliasing, sample at twice (or more) of the expected

  • frequencies. E.g. If you know your sensor gives you signals up to 200 KHz,

measure at 500-600KHz to avoid aliasing.

Harry Nyqist (1889–1976)

Gist: Sample twice as fast as you would need to capture the highest frequency you are interested in. A good rule of thumb is to actually sample 4-6 times as fast, just to be safe (more on this later). Example: If we are measuring building motion (up to 1KHz), Nyquist would tell us to measure at 2KHz, but to be safe we will measure at 5KHz.

slide-22
SLIDE 22

FFT: See notes…

slide-23
SLIDE 23

FFT visualized

http://www.dspguide.com/ch12/2.htm

slide-24
SLIDE 24

Working with signals in MATLAB

In most real-world scenarios, for collected sensor information, your will know the following:

  • Fs – The sampling frequency (Hz, or some other inverse time unit)
  • delta_t (Ts) – Sampling interval (s, or some time unit)
  • Note that Delta_t=1/Fs. If you know one, you know the other
  • N – The number of data points
  • X – the vector of signal data points (length N), in most cases the voltage read by the ADC

MATLAB

  • To plot the data in reasonable units, we need to create a time vector
  • t = 0:t_delta:(N-1)*t_delta;
  • Then just plot the data
  • plot(t,x);
slide-25
SLIDE 25

Taking the FFT

We can now take the fft of our signal using the FFT function Y= fft(x); To plot this in a physically meaningful way, we need to calculate the DFT frequency vectored. Remember that for k data points, the DFT will sample the frequency spectrum at locations 2*pi*k/N. Then we can define f_delta = (Fs/N); f=0:f_delta:f_delta*(N-1); And then plot (plot only half the outputs due to symmetry): plot(f(1:N/2),abs(Y_noisy(1:N/2))); xlabel('Freqeuncy (Hz)'); ylabel('Amplitude');