Sei sulla pagina 1di 48

8.

Using a suitable simulation tool, execute the Least Mean Square weight adaptation
algorithm for updating the coefficients of FIR Adaptive filter. Analyze its
performance with different values of step size.
CHANNEL EQUALIZER DESIGN USING LMS ALGORITHM
EX.NO:
DATE :
AIM:
To simulate adaptive filters for noise cancellation using MATLAB.7.0.1.
EQUIPMENTS REQUIRED:
1) Personal computer
2) MATLAB.7.0.1 software.
THEORY:
A filter with adjustable parameter is called an adaptive filter, It is used to estimate
and ultimate a noise component in desired signal. We consider the sine signal as the signal to be
estimated. The noise sequences is generated randomly v1(n) and v2(n) are the sequences and
d(n) is the desired signal. Consider the noisy signal as r(n) and r(n)=d(n)+v(n).The reference
signal v2(n) is used to estimate v1(n) using a 12th order adaptive noise canceller with coefficient
that are updated using normalized LMS Algorithm the estimate of d(n) is produced with a step
size B=0.25.
ALGORITHM:
1. Initialize the filter length,delay and adaptive filter coefficient.
2. Initialize the stepsize = 0.25
3. Generate the desired signal and the input signal that is applied to the filter.
4. Initialize the converter (counter) to zero to the length of the input signal and repeat
the following step until the counter reaches the length of the input signal.
5. Shift the data for delay.
6. Update the buffer.
7. Calculate the enhanced signal.
8. Update the weight.
9. Finally get all the waveform and plot it.

FLOW CHART:

Start

Initialize Filter Length


Delay & Adaptive Filter
Coeffcients

Initialize The Step Size To 0.25

Generate The Desired Signal d(n) and Input


y(n)

For N=0 To
Length y(n)

Shift The Data For Delay And Update The


Buffer
Calculate The Enhanced Signal and Update The Weight

Next

Plot All The Waveforms

Stop

PROGRAM:
%adaptive filtering using LMS algorithm
%X delayed input data buffer
%y measured signal
% W coefficient vector
% E enhanced signal
clear all;
N=20;
%filter length
M=0;
%delay
w0=1;
%intial value of adaptive filter coefficient
SF=2048;
%factor for reducing the data samples-11 bits ADC command
mu=0.25;
x=zeros(N,1);
delay=zeros(1,M+1);
w=w0*ones(N,1);
signal=sin(2*pi*0.055*[0:1000-1]);
noise=randn(1,1000);
nfilt=fir1(12,0.25);
%11th order pass filter
fnoise=filter(nfilt,1,noise); %correlated noise data
d=signal+fnoise;
y=d/SF;
if w0==0
sf=SF;
%scaling factor for display
else
sf=SF/N/w0;
end;
for i=1:length(y)
if M>0
delay(2:M+1)=delay(1:M);
end;
delay(1)=y(i);
x(2:N)=x(1:N-1);
x(1)=delay(M+1);
%update buffer
E(i)=signal(i)-w'*x;
%enhanced signal
w=w+2*mu*E(i)*x;
%update the wgts
end;
figure(1);
subplot(3,1,1),plot(1:length(signal),signal*sf);
title('actual length');

xlabel('->time(sec)');
ylabel('->amp(v)');
subplot(3,1,3),plot(1:length(signal),noise*sf);
title('noise signal');
xlabel('->time(sec)');
ylabel('->amp(v)');
figure(2);
subplot(3,1,1),plot(1:length(y),y*sf);
title('input signal');
xlabel('->time(sec)');
ylabel('->amp(v)');
subplot(3,1,3),plot(1:length(E),E*sf);
title('enhanced signal');
xlabel('->time(sec)');
ylabel('->amp(v)');

OUTPUT:

->amp(v)

->amp(v)

FIG 1:

FIG 2:

actual length

200
0
-200

100

200

300

400
500
600
->time(sec)

700

800

900

1000

700

800

900

1000

noise signal

500
0
-500

100

200

300

400
500
600
->time(sec)

->amp(v)
->amp(v)

input signal

0.2
0
-0.2

100

200

300

400
500
600
->time(sec)

700

800

900

1000

700

800

900

1000

enhanced signal

200
0
-200

100

200

300

400
500
600
->time(sec)

RESULT:
Thus, the adaptive filters are simulated for noise cancellation.

9.Using a suitable simulation tool, execute the Recursive Least Square weight
adaptation algorithm for updating the coefficients of FIR Adaptive filter. Analyze its
performance with different values of step size.

FIR RLS ALGORITHM

PROGRAM:

%FIR:
clear all
close all
hold off
%no of system pts
N=2000;
inp=randn(N,1);
n=randn(N,1);
[b,a]=butter(2,0.25);
Gz=tf(b,a,-1);
h=[b -a(2:length(a))];
%channel system order fixed as we have 5 elements (3 in a and 2 in b)
inporder=3;
outorder=2;
sysorder=inporder+outorder;
y=lsim(Gz,inp);
%add some noise
n=n*std(y)/(15*std(n));
d=y+n;
totallength=size(d,1);
%take only 50 pts for training(N-inorder47=50-3)
N=50;
%begin of the alg
%forgetting factor
lambda=0.999;
%initial P matrix
delta=1e2;
P=delta*eye(sysorder);
w=zeros(sysorder,1);
for n=inporder:N
u=inp(n:-1:n-inporder+1);
outp=d(n-1:-1:n-outorder);
u=[u;outp];
phi=u'*P;
k=phi'/(lambda+phi*u);
y(n)=w'*u;
e(n)=d(n)-y(n);

w=w+k*e(n);
P=(P-k*phi)/lambda;
%just for plotting
Recordedw(1:sysorder,n)=w;
end
%check for results
for n=N+1:totallength
u=inp(n:-1:n-inporder+1);
outp=d(n-1:-1:n-outorder);
u=[u;outp];
y(n)=w'*u;
e(n)=d(n)-y(n);
end
hold on
plot(d)
plot(y,'r');
title('System output');
xlabel('samples');
ylabel('True and estimated output');
figure
semilogy((abs(e)));
title('Error curve');
xlabel('samples');
ylabel('Error value');
figure
plot(h,'r+');
hold on
plot(w,'.');
legend('Filter weights','Estimated filter weights',4);
title('Comparison of the filter weights and estimated weights');
figure
plot(Recordedw(1:sysorder,sysorder:N)');
title('Estimated weights convergence');
xlabel('Samples');
ylabel('Weights value');
axis([1 N-sysorder min(min(Recordedw(1:sysorder,sysorder:N)'))
max(max(Recordedw(1:sysorder,sysorder:N)'))]);
hold off
OUTPUT:
FIG1:

System output

2.5
2

True and estimated output

1.5
1
0.5
0
-0.5
-1
-1.5
-2

200

400

600

800

1000 1200
samples

1400

1600

1800

2000

1800

2000

FIG2:
Error curve

10

-1

10

Error value

-2

10

Comparison of the filter weights and estimated weights

1
-3

10
0.8
0.6
-4
10
0.4
-5

10
0.2 0

FIG 3:

200

400

600

800

1000 1200
samples

1400

1600

0
-0.2
-0.4

Filter weights
Estimated filter weights
1

1.5

2.5

3.5

4.5

FIG 4:
Estimated weights convergence

1
0.8

Weights value

0.6
0.4
0.2
0
-0.2
-0.4

10

15

20

25
30
Samples

35

40

45

50

RESULT:
Thus, the adaptive filters are simulated for noise cancellation
10.Analyze the BER performance of Direct Sequence spread spectrum CDMA system

using a suitable simulation tool.

PERFORMANCE EVALUATION OF SIMULATED DSSS CDMA SYSTEM


EX.NO:
DATE:
AIM:
To evaluate the performance of CDMA system using WICOMM-TS.
APPARATUS REQUIRED:
1. Personal computer.
2. WICOMM-TS.
THEORY:
Code Division Multiple Access (CDMA) is a spread spectrum technique that uses a wide
bandwidth for different applications. But at the same time more than one user can use the same
frequency is all done by using a code called pseudo random code (PN)
In CDMA there are no limitations in the use of frequencies. And the same time so many users
can also use this same frequency. But it is free from interference and jamming and it can provide
an extra data security.
SPREAD SPECTRUM COMMUNICATIONS:
CDMA is a form of Direct Sequence Spread Spectrum communications. In general,
Spread Spectrum communications is distinguished by three key elements:
1. The signal occupies a bandwidth much greater than that which is necessary to send the
information. This results in immunity to interference and jamming and multi-user access.
2. The bandwidth is spread by means of a code which is independent of the data.

The independence of the code distinguishes this from standard modulation schemes in which
the data modulation will always spread the spectrum somewhat.
3. The receiver synchronizes to the code to recover the data. The use of an independent code and
synchronous reception allows multiple users to access the same frequency band at the same time.
In order to protect the signal, the code used is pseudo-random. It appears random, but is actually
deterministic, so that the receiver can reconstruct the code for synchronous detection. This
pseudo-random code is also called pseudo-noise (PN).
DIRECT SEQUENCE SPREAD SPECTRUM:
CDMA is a Direct Sequence Spread Spectrum system. The CDMA system works directly
on 64 Kbit/sec digital signals. These signals can be digitized voice, ISDN channels, modem data,
etc.
Signal transmission consists of the following steps:
1. A pseudo-random code is generated, different for each channel and each successive
connection.
2. The Information data modulates the pseudo-random code (the Information data is spread).
3. The resulting signal modulates a carrier.
4. The modulated carrier is amplified and broadcast.
Signal reception consists of the following steps:
1. The carrier is received and amplified.
2. The received signal is mixed with a local carrier to recover the spread digital signal.
3. A pseudo-random code is generated, matching the anticipated signal.
4. The receiver acquires the received code and phase locks its own code to it.
5. The received signal is correlated with the generated code, extracting the Information data.

Advantages:

Improved call quality, with better and more consistent sound as compared to AMPS
systems
Simplified system planning through the use of the same frequency in every sector of
every cell
Enhanced privacy

Improved coverage characteristics

Increased talk time for portable

Block Diagram:
Transmitter:

User1 spreading
code generation
(Orthogonal/Non
orthogonal/mixe
d codes)

Random
Data
generatio
n User1

Random
Data
generatio
n User2

QAM
Modulatio
n
Up
sampl
e

QAM
Modulatio
n
User2
Spreading
code
generation
(Orthogonal/N
o
orthogonal/mix
ed codes)

Receiver:

WindowT
Tx
Interfac
e

User2 Dispreading code


generation(Orthogonal/nonorthogonal/mixed codes)
WiCOM
M-T Rx
interfac
e block

Down
sampl
e

Despread
User1
data

De-spread
User 2 Data

User 1
Data

User 2
Data

User2 Dispreading code


generation
(Orthogonal/nonorthogonal/mixed codes)

PROCEDURE:

QAM
Demo
d

QAM
Demod

BER
calculatio
n

BER
Calculatio
n

Step1: Connect WiCOMM-T in base band loop back.


Step2: Choose the orthogonal spreading code.
Step3: Keep the power of user1 as 1dB and power of User2 as 1 dB
Step4: Generate the transmitter modem sample.
Step5: Transmit and receive modem sample through WiCOMM-T.
Step6: Choose the corresponding de-spreading code in receiver code.
Step7: Analyze the received modem samples
Step8: Observe the various plots generated by MATLAB and tabulate the BER value.

OUTPUT:

RESULT:
Thus the performance evaluation of Direct sequence spread spectrum CDMA system was
simulated using WICOMMT and its output was verified.

12. Using MATLAB simulink tool, simulate the OFDM transmitter model and plot the
necessary waveforms.

OFDM TRANSCEIVER DESIGN


EX.NO:
DATE:
AIM:
To design OFDM Transmitter Model using Matlab 7.0 Software and plot the corresponding
BER performance
APPARATUS REQUIRED:
1) Matlab 7.0 Software
2) Personal computer
THEORY:
Frequency division multiplexing (FDM) is a technology that transmits multiple signals
simultaneously over a single transmission path, such as a cable or wireless system. Each signal
travels within its own unique frequency range (carrier), which is modulated by the data (text,
voice, video, etc.)The basic idea of OFDM is to divide the available spectrum in to several sub
channels (Sub carriers) .By making all sub channels narrowband; they experience almost flat
fading, which makes equalization very simple. To obtain a high spectral efficiency the frequency
response of the sub channels are overlapping and orthogonal, hence the name OFDM
Multiplexing generally refers to independent signals those produced by different sources
In OFDM Multiplexing is applied to independent signals but those independent signals are a
subset of the one main source
1. In OFDM the signal itself is first split into independent channels, modulated by data
and then re multiplexed to create the OFDM carrier to reduce ISI and Frequency
selective fading

2. Sub carriers are orthogonal to each other in frequency domain

DESIGN PROCEDURE:
1) First, the N input complex symbols are padded with zeros to get Ns symbols that are
used to calculate the IFFT. The output of the IFFT is the basic OFDM symbol
2) Based on the delay spread of the multipath channel, a specific guard time must be
chosen (say Tg ) . Number of samples corresponding to this guard time must be taken
from the beginning of the OFDM symbol and appended at the end of the symbol.
Likewise, the same number of samples must be taken from the end of the OFDM
symbol and must be inserted at the beginning.
3) The OFDM symbol must be multiplied with the raised cosine window to remove the
power of the outofband subcarriers.
4) The windowed OFDM symbol is then added to the output of the previous OFDM
symbol with a delay of Tr, so that there is an overlap region of r Tb between each
symbol
The following are the most important design parameters of an OFDM system design

Bit Rate required for the system.

Bandwidth available.

BER requirements. (Power efficiency).

RMS delay spread of the channel.

OFDM SIMULATION FLOWCHART:

In

Serial to
Parallel

IFFT`

Parallel to
Serial

Out

PROGRAM:

TRANSMITTER PROGRAM:
clear all;
close all;
clc;
%=================================================================
% OFDM System Parameters
N

= 64;

% length of OFDM IFFT (16,32,64,...,2^n)

= 16;

% number of QAM constellation points (4,16,64,256)

numOfZeros = N/4+1;

% numOfZeros must be an odd number and lower


% than N. The zero padding operation is
% necessarry in practical

% Implementations.
GI
BW

= 1/4;
= 20;

numOfSym

= 128;

% Guard Interval (1/4,1/8,1/16,...,4/N)


% OFDM signal Band width in MHz
% number of OFDM Symbols

EbNo = [0:20];
den = 1;
num = ones(16,1)/16;
%============================================================
% Main Program
%==============================================================
% data generation
randint txData = randint(N-numOfZeros,numOfSym,M,0);
% QAM modulation
txDataMod = qammod(txData,M);
mean(abs(txDataMod(:,2)).^2);

% must be 1 i.e. the average power

% zeros padding
txDataZpad =[txDataMod((N-numOfZeros+1)/2:end,:);...
zeros(numOfZeros,numOfSym);...
txDataMod(1:(N-numOfZeros-1)/2,:)];
% Note : in practice zero padding operation must be followed by a standard. Usually the
% last part of data frame shifts to the first part of zero padded frame.
%============================================================
% IFFT
txDataZpadIfft = sqrt(N)*ifft(txDataZpad,N);
%==============================================================
% Apply windowing function to each time domain waveform
for i = 1:64
txDataZpadIfft1(i,:) = txDataZpadIfft(i,:);
end
% Guard Interval Insertion
txDataZpadIfftGI =[txDataZpadIfft1((1-GI)*N+1:end,:);txDataZpadIfft];

OUTPUT:

BER for OFDM, and Theory

10

OFDM
THEORY
-1

BER

10

-2

10

-3

10

-4

10

6
8
EbNo (dB)

10

12

14

RESULT:
Thus OFDM Transmitter Model was implemented by Matlab7.0 and its Output and BER
performance is plotted successfully

OFDM RECEIVER DESIGN


EX.NO:
DATE:
AIM:
To design OFDM Transceiver Model using Matlab 7.0 Software and plot the corresponding
BER performance
APPARATUS REQUIRED:
3) Matlab 7.0 Software
4) Personal computer
THEORY:
Frequency division multiplexing (FDM) is a technology that transmits multiple signals
simultaneously over a single transmission path, such as a cable or wireless system. Each signal
travels within its own unique frequency range (carrier), which is modulated by the data (text,
voice, video, etc.)The basic idea of OFDM is to divide the available spectrum in to several sub
channels (Sub carriers) .By making all sub channels narrowband; they experience almost flat
fading, which makes equalization very simple. To obtain a high spectral efficiency the frequency
response of the sub channels are overlapping and orthogonal, hence the name OFDM
Multiplexing generally refers to independent signals those produced by different sources
In OFDM Multiplexing is applied to independent signals but those independent signals are a
subset of the one main source
3. In OFDM the signal itself is first split into independent channels, modulated by data
and then re multiplexed to create the OFDM carrier to reduce ISI and Frequency
selective fading
4. Sub carriers are orthogonal to each other in frequency domain

DESIGN PROCEDURE:
5) First, the N input complex symbols are padded with zeros to get Ns symbols that are
used to calculate the IFFT. The output of the IFFT is the basic OFDM symbol
6) Based on the delay spread of the multipath channel, a specific guard time must be
chosen (say Tg ) . Number of samples corresponding to this guard time must be taken
from the beginning of the OFDM symbol and appended at the end of the symbol.
Likewise, the same number of samples must be taken from the end of the OFDM
symbol and must be inserted at the beginning.
7) The OFDM symbol must be multiplied with the raised cosine window to remove the
power of the outofband subcarriers.
8) The windowed OFDM symbol is then added to the output of the previous OFDM
symbol with a delay of Tr, so that there is an overlap region of r Tb between each
symbol
The following are the most important design parameters of an OFDM system design

Bit Rate required for the system.

Bandwidth available.

BER requirements. (Power efficiency).

RMS delay spread of the channel.

OFDM SIMULATION FLOWCHART:

In

Out
Serial to
Parallel

FFT`

Parallel to
Serial

PROGRAM:

RECEIVER PROGRAM:
% Guard Interval removal
rxDataZpadIfft = txDataZpadIfftGI(GI*N+1 :N+GI*N,:);
%==========================================================
% FFT operation
rxDataZpad

= 1/sqrt(N)*fft(rxDataZpadIfft,N);

%==============================================================
% zero removal and rearrangement
rxDataMod

=[rxDataZpad((N-(N-numOfZeros-1)/2+1):N,:);...

rxDataZpad(1:(N-numOfZeros+1)/2,:)];
%==============================================================
% Demodulation
rxData =qamdemod(rxDataMod*sqrt(10),M);
%Received Data
qamdemod(rxDataMod/mean(std(rxDataMod))*mean(std(txDataMod)),M);
%=============================================================
txDataZpadIfftGI1 = reshape(txDataMod,1,6016);
% you cannot use txDataZpadIfftGI or txDataSig those are zero paded and ifft/fft
%formed so you care only about qam modulated data whixh is txDataMod
rxDataMod1 = reshape(rxDataMod,1,6016);
ber1 =semianalytic(txDataZpadIfftGI1,rxDataMod1,'qam',M,numOfSym*12,EbNo);
%increase the sampling to be sufficient
% no need for num,den because it wouldnot work here
bertheory = berawgn(EbNo,'qam',M);
%=========================================================

figure(1)
semilogy(EbNo,ber1,'-b'); grid on; hold on;
semilogy(EbNo,bertheory,'-m');
title('BER for OFDM, and Theory');
axis([0 14 0.0001 1]);
xlabel('EbNo (dB)'); ylabel('BER');
legend('OFDM','THEORY');
hold off;
%==============================================================

OUTPUT:

BER for OFDM, and Theory

10

OFDM
THEORY
-1

BER

10

-2

10

-3

10

-4

10

6
8
EbNo (dB)

10

12

14

RESULT:
Thus OFDM Transceiver Model was implemented by Matlab7.0 and its Output and BER
performance is plotted successfully

OFDM TRANSCEIVER DESIGN


EX.NO:
DATE:
AIM:
To design OFDM Transceiver Model using Matlab 7.0 Software and plot the corresponding
BER performance
APPARATUS REQUIRED:
5) Matlab 7.0 Software
6) Personal computer
THEORY:
Frequency division multiplexing (FDM) is a technology that transmits multiple signals
simultaneously over a single transmission path, such as a cable or wireless system. Each signal
travels within its own unique frequency range (carrier), which is modulated by the data (text,
voice, video, etc.)The basic idea of OFDM is to divide the available spectrum in to several sub
channels (Sub carriers) .By making all sub channels narrowband; they experience almost flat
fading, which makes equalization very simple. To obtain a high spectral efficiency the frequency
response of the sub channels are overlapping and orthogonal, hence the name OFDM
Multiplexing generally refers to independent signals those produced by different sources
In OFDM Multiplexing is applied to independent signals but those independent signals are a
subset of the one main source
5. In OFDM the signal itself is first split into independent channels, modulated by data
and then re multiplexed to create the OFDM carrier to reduce ISI and Frequency
selective fading
6. Sub carriers are orthogonal to each other in frequency domain

DESIGN PROCEDURE:
9) First, the N input complex symbols are padded with zeros to get Ns symbols that are
used to calculate the IFFT. The output of the IFFT is the basic OFDM symbol
10) Based on the delay spread of the multipath channel, a specific guard time must be
chosen (say Tg ) . Number of samples corresponding to this guard time must be taken
from the beginning of the OFDM symbol and appended at the end of the symbol.
Likewise, the same number of samples must be taken from the end of the OFDM
symbol and must be inserted at the beginning.
11) The OFDM symbol must be multiplied with the raised cosine window to remove the
power of the outofband subcarriers.
12) The windowed OFDM symbol is then added to the output of the previous OFDM
symbol with a delay of Tr, so that there is an overlap region of r Tb between each
symbol
The following are the most important design parameters of an OFDM system design

Bit Rate required for the system.

Bandwidth available.

BER requirements. (Power efficiency).

RMS delay spread of the channel.

OFDM SIMULATION FLOWCHART:

PROGRAM:
TRANSMITTER PROGRAM:
clear all;
close all;
clc;
%=================================================================
% OFDM System Parameters
N

= 64;

% length of OFDM IFFT (16,32,64,...,2^n)

= 16;

% number of QAM constellation points (4,16,64,256)

numOfZeros = N/4+1;

% numOfZeros must be an odd number and lower


% than N. The zero padding operation is
% necessarry in practical

% Implementations.
GI
BW

= 1/4;
= 20;

numOfSym

= 128;

% Guard Interval (1/4,1/8,1/16,...,4/N)


% OFDM signal Band width in MHz
% number of OFDM Symbols

EbNo = [0:20];
den = 1;
num = ones(16,1)/16;
%============================================================
% Main Program
%==============================================================
% data generation
randint txData = randint(N-numOfZeros,numOfSym,M,0);
% QAM modulation
txDataMod = qammod(txData,M);

mean(abs(txDataMod(:,2)).^2);

% must be 1 i.e. the average power

% zeros padding
txDataZpad =[txDataMod((N-numOfZeros+1)/2:end,:);...
zeros(numOfZeros,numOfSym);...
txDataMod(1:(N-numOfZeros-1)/2,:)];
% Note : in practice zero padding operation must be followed by a standard. Usually the
% last part of data frame shifts to the first part of zero padded frame.
%============================================================
% IFFT
txDataZpadIfft = sqrt(N)*ifft(txDataZpad,N);
%==============================================================
% Apply windowing function to each time domain waveform
for i = 1:64
txDataZpadIfft1(i,:) = txDataZpadIfft(i,:);
end
% Guard Interval Insertion
txDataZpadIfftGI =[txDataZpadIfft1((1-GI)*N+1:end,:);txDataZpadIfft];

RECEIVER PROGRAM:
% Guard Interval removal
rxDataZpadIfft = txDataZpadIfftGI(GI*N+1 :N+GI*N,:);
%==========================================================
% FFT operation
rxDataZpad

= 1/sqrt(N)*fft(rxDataZpadIfft,N);

%==============================================================
% zero removal and rearrangement
rxDataMod

=[rxDataZpad((N-(N-numOfZeros-1)/2+1):N,:);...

rxDataZpad(1:(N-numOfZeros+1)/2,:)];

%==============================================================
% Demodulation
rxData =qamdemod(rxDataMod*sqrt(10),M);
%Received Data
qamdemod(rxDataMod/mean(std(rxDataMod))*mean(std(txDataMod)),M);
%=============================================================
txDataZpadIfftGI1 = reshape(txDataMod,1,6016);
% you cannot use txDataZpadIfftGI or txDataSig those are zero paded and ifft/fft
%formed so you care only about qam modulated data whixh is txDataMod
rxDataMod1 = reshape(rxDataMod,1,6016);
ber1 =semianalytic(txDataZpadIfftGI1,rxDataMod1,'qam',M,numOfSym*12,EbNo);
%increase the sampling to be sufficient
% no need for num,den because it wouldnot work here
bertheory = berawgn(EbNo,'qam',M);
%=========================================================
figure(1)
semilogy(EbNo,ber1,'-b'); grid on; hold on;
semilogy(EbNo,bertheory,'-m');
title('BER for OFDM, and Theory');
axis([0 14 0.0001 1]);
xlabel('EbNo (dB)'); ylabel('BER');
legend('OFDM','THEORY');
hold off;
%==============================================================

OUTPUT:

BER for OFDM, and Theory

10

OFDM
THEORY
-1

BER

10

-2

10

-3

10

-4

10

6
8
EbNo (dB)

10

12

14

RESULT:
Thus OFDM Transceiver Model was implemented by Matlab7.0 and its Output and BER
performance is plotted successfully

21.Plot the radiation characteristics of a microstrip patch antenna using a suitable


simulation tool. Also measure its directivity, gain and 3 dB beamwidth.

SIMULATION OF MICROSTRIP ANTENNAS


EX.NO:
DATE:
AIM:
To Simulate and estimate the parameters of microstrip antenna using ADS Software.
APPARATUS REQUIRED:
1. Personal computer.
2. ADS Software.
THEORY:
A microstrip patch antenna in its simplest configuration consists of radiating patch on
one of the dielectric substrate, which has ground plane on the other side. The Patch conductors
usually made of copper or gold can be virtually assumed to be of any shape. However,
convectional shapes are normally used to simplify analysis and performance prediction .The
radiating elements and the feed line is usually photo etched on the dielectric substrate. The basic
configuration of a microstrip patch antenna is shown in Fig 1.

The radiating patches may square, rectangular, circular, and elliptical or any other configuration.
Square, rectangular, and circular shapes are the most common because of ease of analysis and
fabrication .Some of the advantages of the microstrip antennas compared to convectional
microwave antennas are
1) Low weight, low volume,
2) Low fabrication cost,
3) Easy mass production,
4) Linear and circular polarization is possible with simple feed,
5) Easily integrated with MIC,
6) Feed

lines

and

matching

networks

can

be

fabricated

simultaneously

with

antenna structure.
Patch antennas find a variety of application starting from military to commercial, because
of there ease of design and fabrication. Patch arrays are
Extensively used in phased array radar application and in applications requiring high directivity
and narrow beam width.

DESIGN:
1) Select an appropriate substrate of thickness (h) and dielectric constant ( ) for the design of
the patch antenna.
2) Calculate the physical parameters of the patch antenna as shown in the geometry in fig 2
using the given formula.

The width and length of


is given by

The depth of the feed line into the

The other dimensions are

the radiating surfaces

patch is given by

SIMULATION STEPS USING ADS:


Create a new workspace with millimeter dimensions; name it as PatchAntenna_wrk.
Open new layout cell and name it as Lab1_Patch.
Create a model of the patch antennas in the layout windows of ADS. The model can be
created as follows. Click insert >> polygon and the cursor appears on the screen with
dotted lines. Now select insert>>coordinate entry and give the coordinates for the
polygon one by one and keep on clicking apply at each coordinate entry without giving
OK. [(0,0); (0,29.2) ; (29.2,29.2); (29.2,0); (17.5,0); (17.5,12); (16.1,12); (16.1,-10);
(13.1,-10); (13.1,12); (11.7,12); (11.7,0); (0,0)].

Connect a pin at the feed point of the antenna.

Go to the EM >> Simulation setup and click on the substrate. Now click new to accept
the 25 mil Alumina template. Define the substrate as below, modify the default substrate
height, dielectric constant, TanD and conductor height and define it as copper by click on
technology >> Material definitions ( select it from add from data base list).
Changing the name of the dielectric is optional as it has no bearing on the simulation.

Click on cond and change it intrude into substrate and enter the height as 35 micron.

In EM >> Simulation setup >>frequency plan, set the simulation frequency range as
2.1GHz

to

2.7

and add a new

GHz ( adaptive sweep)


single point of 2.4 GHz

Click on S Parameter >>simulate, observe the simulation results in the data display.

For far field antenna pattern, EM >> post processing>> far field, and select the desired
frequency 2.4 GHz , impedance real- 50 ohm and click on apply and compute.
\

For far field computation will be done and results will be displayed in post processing
window.

We can use window >> tile and go to plot properties (from the bottom tabs) and then
select far field cut.

We can use window >> tile and go to plot properties (from the bottom tabs) and then
select far field >> antenna parameters >> ok >> Display antenna parameters to see
the required data.

RESULT:
Thus Microstrip Patch Antenna parameters were simulated and estimated successfully.

Potrebbero piacerti anche