• No results found

EXPERIMENT NO 6

N/A
N/A
Protected

Academic year: 2020

Share "EXPERIMENT NO 6"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

BE(EXTC) SEM VII (RCOE) Page 1

Name : _________________________________________

Branch : Electronics & Telecommunication (SEM VII)

Subject : Mobile Communcation

Experiment No: 06

Title : To Implement OFDM Transmitter using MATLAB.

Date :

Subject In-Charge Sign

:

(2)

BE(EXTC) SEM VII (RCOE) Page 2

EXPERIMENT NO: 06

AIM

:

To Implement OFDM Transmitter using MATLAB.

APPARATUS: MATLAB 7

THEORY:

BLOCK DIAGRAM OF OFDM

Orthogonal frequency-division multiplexing (OFDM) is a method of encoding digital data on multiple carrier frequencies. OFDM has developed into a popular scheme for wideband digital communication, used in applications such as digital television and audio broadcasting, DSL Internet access, wireless networks, powerline networks, and 4G mobile communications.

OFDM is a frequency-division multiplexing (FDM) scheme used as a digital multi-carrier modulation method. A large number of closely spaced orthogonal sub-multi-carrier signals are used to carry data on several parallel data streams or channels. Each sub-carrier is modulated with a conventional modulation scheme (such as quadrature amplitude modulation or phase-shift keying) at a low symbol rate, maintaining total data rates similar to conventional single-carrier modulation schemes in the same bandwidth.

(3)

BE(EXTC) SEM VII (RCOE) Page 3

narrowband interference and frequency-selective fading due to multipath) without complex equalization filters. Channel equalization is simplified because OFDM may be viewed as using many slowly modulated narrowband signals rather than one rapidly modulated wideband signal. The low symbol rate makes the use of a guard interval between symbols affordable, making it possible to eliminate intersymbol interference (ISI) and utilize echoes and time-spreading (on analogue TV these are visible as ghosting and blurring, respectively) to achieve a diversity gain, i.e. a signal-to-noise ratio improvement. This mechanism also facilitates the design of single frequency networks (SFNs), where several adjacent transmitters send the same signal simultaneously at the same frequency, as the signals from multiple distant transmitters may be combined constructively, rather than interfering as would typically occur in a traditional single-carrier system.

ADVANTAGES

 High spectral efficiency as compared to other double sideband modulation schemes, spread spectrum, etc.

 Can easily adapt to severe channel conditions without complex time-domain equalization.

 Robust against narrow-band co-channel interference.

 Robust against intersymbol interference (ISI) and fading caused by multipath propagation.

 Efficient implementation using Fast Fourier Transform (FFT).

 Low sensitivity to time synchronization errors.

 Tuned sub-channel receiver filters are not required (unlike conventional FDM).

 Facilitates single frequency networks (SFNs); i.e., transmitter macrodiversity.

DISADVANTAGES

 Sensitive to Doppler shift.

 Sensitive to frequency synchronization problems.

 High peak-to-average-power ratio (PAPR), requiring linear transmitter circuitry, which suffers from poor power efficiency.

 Loss of efficiency caused by cyclic prefix/guard interval.

(4)

BE(EXTC) SEM VII (RCOE) Page 4 PROGRAM:

clc; clear all; close all;

%... % Initiation

%...

no_of_data_bits = 64%Number of bits per channel extended to 128

M =4 %Number of subcarrier channel

n=256;%Total number of bits to be transmitted at the transmitter

block_size = 16; %Size of each OFDM block to add cyclic prefix

cp_len = floor(0.1 * block_size); %Length of the cyclic prefix %... % Transmitter

%... %... % Source generation and modulation

%... % Generate random data source to be transmitted of length 64

data = randsrc(1, no_of_data_bits, 0:M-1);

figure(1),stem(data); grid on; xlabel('Data Points'); ylabel('Amplitude') title('Original Data ')

% Perform QPSK modulation on the input source data

qpsk_modulated_data = pskmod(data, M);

figure(2),stem(qpsk_modulated_data);title('QPSK Modulation ')

%... %...

% Converting the series data stream into four parallel data stream to form % four sub carriers

S2P = reshape(qpsk_modulated_data, no_of_data_bits/M,M) Sub_carrier1 = S2P(:,1)

Sub_carrier2 = S2P(:,2) Sub_carrier3 = S2P(:,3) Sub_carrier4 = S2P(:,4)

figure(3), subplot(4,1,1),stem(Sub_carrier1),title('Subcarrier1'),grid on; subplot(4,1,2),stem(Sub_carrier2),title('Subcarrier2'),grid on;

subplot(4,1,3),stem(Sub_carrier3),title('Subcarrier3'),grid on; subplot(4,1,4),stem(Sub_carrier4),title('Subcarrier4'),grid on;

%... %... % IFFT OF FOUR SUB_CARRIERS

%... %...

number_of_subcarriers=4; cp_start=block_size-cp_len;

ifft_Subcarrier1 = ifft(Sub_carrier1) ifft_Subcarrier2 = ifft(Sub_carrier2) ifft_Subcarrier3 = ifft(Sub_carrier3) ifft_Subcarrier4 = ifft(Sub_carrier4)

figure(4), subplot(4,1,1),plot(real(ifft_Subcarrier1),'r'), title('IFFT on all the sub-carriers')

subplot(4,1,2),plot(real(ifft_Subcarrier2),'c') subplot(4,1,3),plot(real(ifft_Subcarrier3),'b') subplot(4,1,4),plot(real(ifft_Subcarrier4),'g')

(5)

BE(EXTC) SEM VII (RCOE) Page 5

%... % ADD-CYCLIC PREFIX

%... %... for i=1:number_of_subcarriers,

ifft_Subcarrier(:,i) = ifft((S2P(:,i)),16)% 16 is the ifft point for j=1:cp_len,

cyclic_prefix(j,i) = ifft_Subcarrier(j+cp_start,i)

end

Append_prefix(:,i) = vertcat( cyclic_prefix(:,i), ifft_Subcarrier(:,i))

% Appends prefix to each subcarriers end

A1=Append_prefix(:,1); A2=Append_prefix(:,2); A3=Append_prefix(:,3); A4=Append_prefix(:,4);

figure(5), subplot(4,1,1),plot(real(A1),'r'),title('Cyclic prefix added to all the sub-carriers')

subplot(4,1,2),plot(real(A2),'c') subplot(4,1,3),plot(real(A3),'b') subplot(4,1,4),plot(real(A4),'g')

figure(11),plot((real(A1)),'r'),title('Orthogonality'),hold on

,plot((real(A2)),'c'),hold on ,

plot((real(A3)),'b'),hold on ,plot((real(A4)),'g'),hold on ,grid on

%Convert to serial stream for transmission

[rows_Append_prefix cols_Append_prefix]=size(Append_prefix) len_ofdm_data = rows_Append_prefix*cols_Append_prefix

% OFDM signal to be transmitted

ofdm_signal = reshape(Append_prefix, 1, len_ofdm_data);

figure(6),plot(real(ofdm_signal)); xlabel('Time'); ylabel('Amplitude'); title('OFDM Signal');grid on;

(6)

BE(EXTC) SEM VII (RCOE) Page 6

RESULT:

0 10 20 30 40 50 60 70

0 0.5 1 1.5 2 2.5 3

Data Points

A

m

p

lit

u

d

e

Original Data

0 10 20 30 40 50 60 70

-1 -0.8 -0.6 -0.4 -0.2 0 0.2 0.4 0.6 0.8 1

(7)

BE(EXTC) SEM VII (RCOE) Page 7

0 2 4 6 8 10 12 14 16

-1 0 1

Subcarrier1

0 2 4 6 8 10 12 14 16

-1 0 1

Subcarrier2

0 2 4 6 8 10 12 14 16

-1 0 1

Subcarrier3

0 2 4 6 8 10 12 14 16

-1 0 1

Subcarrier4

0 2 4 6 8 10 12 14 16

-0.5 0 0.5

IFFT on all the sub-carriers

0 2 4 6 8 10 12 14 16

-0.5 0 0.5

0 2 4 6 8 10 12 14 16

-0.5 0 0.5

0 2 4 6 8 10 12 14 16

(8)

BE(EXTC) SEM VII (RCOE) Page 8

0 2 4 6 8 10 12 14 16 18

-0.5 0 0.5

Cyclic prefix added to all the sub-carriers

0 2 4 6 8 10 12 14 16 18

-0.5 0 0.5

0 2 4 6 8 10 12 14 16 18

-0.5 0 0.5

0 2 4 6 8 10 12 14 16 18

-0.5 0 0.5

0 10 20 30 40 50 60 70

-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4

Time

A

m

p

lit

u

d

e

(9)

BE(EXTC) SEM VII (RCOE) Page 9

0 2 4 6 8 10 12 14 16 18

-0.5 -0.4 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4

References

Related documents

In summary, high-SF LHW pretreatment conditions could generate highly digestible substrates but high enzyme loadings were required to achieve high conver- sions due to

The Rijndael algorithm specified as a symmetric block cipher that can process data blocks of 128 bits using cryptographic keys of 128, 192 and 256 bits [25].. 3 P ROPOSED

The study: In this retrospective observational study, an SB (50 × 36 × 25 cm, weight: 500 g) was used in diverse settings: a) as a home incubator in the early neonatal period, b)

A conclusion from the results of the randomised MRC vitamin study [1] is that neural tube defects are a vitamin deficiency disorder and accordingly require appropri- ate

Data aggregation can be carried on either in cloudlet (thorough the Wi-Fi connection between concentrator and the cloudlet) or the cloud (LTE). In studies, the

Effect of Linoleic Acid and Hydraulic Retention Time on Anaerobic Effect of Linoleic Acid and Hydraulic Retention Time on Anaerobic Sulfate Reduction in High Rate Reactors..

An IoT-based intelligent home-based health care platform, which perfectly connects smart sensors attached to the human body for biological monitoring and

• This system proposes secure data sharing and key distribution scheme for dynamic groups. In which, the key distribution is done without using any secure communication channels. •