Nbnfinal
Nbnfinal
📑 Contents
1. Cover Page ...................................................... i
2. Abstract ......................................................... ii
3. Introduction ..................................................... 1
4. Theoretical Background .................................... 2
5. System Design .................................................. 3
6. MATLAB Implementation .................................. 4
7. Results and Analysis ........................................ 5
8. Applications of QPSK ....................................... 6
9. Future Scope .................................................... 7
10. Conclusion ...................................................... 8
11. MATLAB Code ................................................ 9
12. Simulation Output Plot ................................... 10
Of course! Here's your full expanded, polished, and more descriptive project content —
Unlike simple modulation methods like Binary Phase Shift Keying (BPSK), QPSK allows
transmission of two bits per symbol, effectively doubling the data rate without increasing
bandwidth requirements.
In this project, we aim to simulate a wireless communication system that uses QPSK
modulation over an Additive White Gaussian Noise (AWGN) channel.
The primary goal is to observe the system's behavior under varying noise conditions and
evaluate its performance based on the Bit Error Rate (BER).
This project will deepen our understanding of practical digital communication systems
and their robustness in noisy environments.
🧠 2. Theoretical Background
QPSK works by modulating the phase of a carrier signal. It uses four distinct phase shifts
to encode information:
Each phase shift represents a unique two-bit combination, thus allowing two bits to be
transmitted simultaneously with each symbol.
The system's performance is measured in terms of BER vs. Eb/N0, where Eb is the energy
per bit and N0 is the noise power spectral density.
🧪 3. System Design
The system is designed with the following components:
• Bit Generation:
A random sequence of binary bits (0s and 1s) is generated to represent the source
information.
Bits are grouped in pairs and mapped into complex QPSK symbols with specific phase
shifts.
• Channel (AWGN):
• Demodulation:
Received noisy symbols are decoded back into the original bit stream based on the
quadrant in which they lie.
• Performance Metric:
The system performance is evaluated by calculating the Bit Error Rate (BER) at different
Eb/N0 values.
Block Diagram:
💻 4. MATLAB Implementation
Here is the MATLAB code used to simulate the QPSK system over an AWGN channel:
clc;
clear;
close all;
% Parameters
N = 1e5; % Number of bits
EbN0_dB = 0:2:20; % SNR range in dB
% Bit Generation
bits = randi([0 1], 1, N);
% QPSK Modulation
symbols = (1/sqrt(2)) * ((1-2*bits(1:2:end)) + 1j*(1-2*bits(2:2:end)));
for k = 1:length(EbN0_dB)
EbN0 = 10^(EbN0_dB(k)/10);
noise_var = 1/(2*EbN0);
% AWGN noise
noise = sqrt(noise_var) * (randn(size(symbols)) + 1j*randn(size(symbols)));
% Received Signal
rx_symbols = symbols + noise;
% Demodulation
rx_bits = zeros(1, N);
rx_bits(1:2:end) = real(rx_symbols) < 0;
rx_bits(2:2:end) = imag(rx_symbols) < 0;
% BER Calculation
BER(k) = sum(bits ~= rx_bits)/N;
end
% Plotting
figure;
semilogy(EbN0_dB, BER, 'bo-', 'LineWidth', 2);
grid on;
xlabel('Eb/N0 (dB)');
ylabel('Bit Error Rate (BER)');
title('QPSK over AWGN Channel');
legend('Simulation');
This simple and clean code simulates the system behavior and plots the BER vs. Eb/N0
graph.
• At low SNRs (low Eb/N0), the BER is high due to significant noise interference.
• At higher SNRs (high Eb/N0), the BER approaches zero, indicating that QPSK
performs well under good channel conditions.
• Compared to other modulation techniques like BPSK, QPSK offers double the data
rate for the same bandwidth while maintaining acceptable error performance.
Sample Graph (Simulation Output): (You can run the code and take a screenshot of
this plot to attach.)
🌐 6. Applications of QPSK
QPSK finds numerous applications in real-world systems due to its high spectral
efficiency, noise robustness, and simplicity:
Used in Wi-Fi networks for efficient data transmission over short ranges.
🔮 7. Future Scope
There is significant scope for extending this project further:
• Channel Enhancements:
Simulate QPSK under Rayleigh and Rician fading channels to model more realistic
mobile environments.
• Hardware Simulation:
• Multi-User Simulation:
These future developments will enhance system robustness and provide exposure to more
advanced communication system design.
✅ 8. Conclusion
The simulation successfully demonstrates the behavior of a QPSK-modulated system over
an AWGN channel.
The results confirm theoretical expectations: as SNR improves, the Bit Error Rate drops
significantly.
This project provides valuable insights into the functioning of wireless communication
systems and sets a foundation for more complex simulations in future work.
📎 9. Output Plot