Batch 10
Batch 10
(Autonomous)
Perundurai, Erode – 638 060
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
for
Submitted by
THARANYA S (22ECR216)
THARUNIGA M(22ECR217)
THIRUGNANAGURU S(22ECR218)
I.ABSTRACT:
1. System Overview
The next step in the BPSK modulation process is the creation of the
carrier signal. The carrier is a high-frequency sine wave that will be modulated
according to the binary input signal. The carrier frequency is chosen to be ten
times the bit rate, Fc =10×Bit rate=10×1 MHz=10 MHz. The amplitude of the
carrier signal is chosen to be Ac =10VThe modulation process involves shifting
the phase of the carrier signal to represent the binary data.
Specifically, when the binary input is 1, the phase of the carrier is set to
000 radians (Pc1), and when the input is 0, the phase is set to π radians (Pc2).
The modulated signal is then generated by multiplying the carrier signal with the
binary input, where the carrier undergoes a phase shift depending on whether the
binary bit is 0 or 1. This modulation process ensures that the binary data is
embedded in the phase of the carrier wave.
2.4 Time Domain Representation
The channel is modeled by a simple linear system with a constant gain factor,
h=1h = 1h=1, representing the attenuation or amplification of the signal during
transmission. The noise is represented by a zero-mean Gaussian noise
component, which is added to the transmitted signal to simulate the effects of
environmental interference. This noise introduces random variations, causing bit
errors in the received signal.
4. Design of the BPSK Demodulator
The received signal is first processed to remove the noise and recover the original
data. The demodulation process involves correlating the received signal with the
local carrier signal. The correlation operation allows the demodulator to detect the
phase shift of the carrier, which indicates whether the transmitted bit was 0 or 1.
After correlation, the result is integrated over the bit period TbT_bTb to calculate
the accumulated energy corresponding to the phase shift. The integration step
reduces the noise and allows for better detection of the binary data. Once the
signal is integrated, a threshold decision rule is applied: if the accumulated energy
is greater than a certain threshold, the bit is detected as 1; otherwise, it is detected
as 0.
The output of the demodulator is a sequence of bits that represents the recovered
data. The bit error rate (BER) is calculated by comparing the received bits with the
original transmitted bits. The accuracy of the demodulation process is critical,
especially in noisy environments, as any errors in bit recovery can affect the
integrity of the transmitted data.
V.RESULTS AND DISCUSSIONS
PROGRAM:
clc,
clear all,
close all;
nb = 100;
% Digital signal per bit
digit = [];
for n = 1:1:N
if x(n) == 1;
sig = ones(1,nb);
else x(n) == 0;
sig = zeros(1,nb);
end
digit = [digit sig];
end
% BPSK Modulation
Ac = 10; % Carrier amplitude for binary input
br = 1/Tb; % Bit rate
Fc = br*10; % Carrier frequency
Pc1 = 0; % Carrier phase for binary input '1'
Pc2 = pi; % Carrier phase for binary input '0'
t2 = Tb/nb:Tb/nb:Tb; % Signal time
mod = [];
for (i = 1:1:N)
if (x(i)==1)
y = Ac*cos(2*pi*Fc*t2+Pc1); % Modulation signal with carrier signal 1
else
y = Ac*cos(2*pi*Fc*t2+Pc2); % Modulation signal with carrier signal 2
end
mod=[mod y];
end
% Received signal y
y = h.*x + w; % Convolution
% BPSK Demodulation
s = length(t2);
demod = [];
for n = s:s:length(y)
t4 = Tb/nb:Tb/nb:Tb;
c = cos(2*pi*Fc*t4); % carrier siignal
mm = c.*y((n-(s-1)):n); % Convolution
t5 = Tb/nb:Tb/nb:Tb;
z = trapz(t5,mm); % intregation
rz = round((2*z/Tb));
if(rz > Ac/2) % Logical condition
a = 1;
else
a = 0;
end
demod = [demod a];
end
disp('Demodulated Binary Information at Receiver: ');
disp(demod);
SIMULATION OUTPUT:
The simulation begins with the generation of a binary input sequence. The
BPSK modulator converts this binary data into a phase-shifted carrier signal. The
simulated time-domain representation of the BPSK signal illustrates distinct phase
shifts corresponding to binary 0s and 1s. A visual inspection of the waveform
confirms accurate phase modulation.
• Key Observations:
o The carrier signal exhibits a phase of 0 radians for binary 1 and π\piπ
radians for binary 0.
o The time-domain plot aligns with the expected theoretical representation
of BPSK signals.
VI.CONCLUSION
The results underscore the efficiency of BPSK in bandwidth utilization and its
capability to resist noise, making it a preferred modulation scheme in various
applications, including wireless communication, satellite systems, and digital data
transmission.Real-time testing further demonstrates the applicability of BPSK in
real-world scenarios, despite slight deviations due to hardware imperfections and
environmental factors. The simplicity of BPSK’s implementation, combined with its
effectiveness in noisy environments, highlights its versatility and reliability for
modern communication systems.