Python script for QPSK modulation and demodulation
It first generates 16 bits binary signal then perform modulation, add noise and demodulate the signal. Since, we add some noise after modulation, demodulated signal obtained does not exactly matches with the original signal.
To plot the graphs we use matplotlib and to store the data (which we want to plot) we use numpy, hence you need to install the following:
pip install matplotlib
pip install numpy
To run the code:
python QPSK_modulation_demodulation.py
The output generated is in the form of graph. There are total 6 graphs generated:
- Carrier wave (sine wave)
- Carrier wave (cosine wave)
- Original signal (16 bits)
- Modulated wave
- Noise
- Demodulated wave (16 bits)
Here, the original signal and demodulated signal will not be exact beacause of noise. For example: