Composite Pattern AM Demodulation Using Bandpass Filtering and Envelop Detection

Total Page:16

File Type:pdf, Size:1020Kb

Composite Pattern AM Demodulation Using Bandpass Filtering and Envelop Detection

COMPOSITE PATTERN AM DEMODULATION USING BANDPASS FILTERING AND ENVELOPE DETECTION

Updated 9-16-05 LGH

Assume you have Np modulated patterns for a My row by Nx column pattern image. Let Np =4, Nx=1024, My =768. Let =1 and kNp =92. For other frequencies let kn=(n-1) kNp/Np for n=1,2,… Np. If we let the PMP patterns be

2k pmp y 2 n 1  sPMP,n x, y cos    M y N p  and the Carrier patterns be

2kn x  sc,n x, y cos   N x  then the modulated pattern is

sn x, y sc,n x, y1 sPMP,n x, y

Figure 1: Sample of 2nd modulated pattern.

The individual modulated patterns are combined by

N p sCP x, y AP  BP sn x, y n1

Where Ap and Bp are chose to map the values from 0 to 255.

1 Figure 2: Sample Composite Pattern.

ANALYSIS AND VISUALIZATION

Perform a 2-D Discrete Fourier Transform (hint: use fft2 in MATLAB) on the composite pattern and point out the Np different channel signals in the DFT domain. Plot real, imaginary and magnitude spectra as an image. You can suppress the “dc” term by letting SCP[u,v]=0;

M 1 y N x 1   j2ux  j2vy  S u,v  s x, y exp   CP     CP     y0 x0  N x M y 

Figure 3: 2-Dimensional FFT of CP. The dc is zeroed out and the origin is shifted to the center of the image.

Perform a 1-D DFT (Hint: use fft and perform on each row) on each row and plot, real, imaginary and magnitude of resulting matrix. Indicate where the channels are based on the magnitude image.

2 N x 1   j2ux    SCP u, y  sCP x, yexp  x0  N x 

Figure 4: Partial DFT of the CP. Note the cosine amplitude is preserved in the vertical space direction.

DEMODULATION OF Nth CHANNEL

Bandpass filter that channel. For simplicity use a rectangular filter given by

k k  u  n   u  n   N   N  H u rect x   rect x  BP,n B B  x   x     

3 Figure 5: All four BandPass filters shown in 1-D format. where Bx/2 is half way between adjacent channels. Hint: negative frequencies wrap around so for k=0 is dc then if k<0, the computer index is knew=Nx-k. The intermediate result is

GCP,n u, y  SCP u, yH BP,n u

Inverse DFT (hint: use ifft) back to the space domain such that

1 N x 1  j2ux    gCP,n x, y  GCP,n u, yexp  N x u0  N x 

4 Figure 7: Bandpass filtered channel. and square such that

2 fCP,n x, y  gCP,n x, y

Then DFT back to frequency domain and lowpass filter with a rectangular filter (hint: use irect) centered about the origin. The filter is given by  u    H LP u rect   BLPx  where BLPx is equal to twice the value of the first carrier frequency k1. The response is

RCP,n u, y FCP,n u, yH LP u

Square root the resulting envelope in the space domain to get the PMP estimate.

~ sPMP,n x, y rCP,n x, y

5 Figure 8: Demodulated channel.

DEMODULATION OF ALL CHANNELS

Perform these steps for all Np channels and show results.

PHASE RETRIEVAL

With all Np demodulated images, the phase is retrieved by

 N p   ~s x, ysin2 (n 1) / N     PMP,n p  x, y  arctan n1  N p   ~    sPMP,n x, ycos2 (n 1) / N p   n1 

Plot the phase image.

6 Figure 9: Left is phase. By using a negative sine on one of the atan2(y,-x), parameters, the phase is shifted properly.

7

Recommended publications