# Digital Modulation Techniques Simulation Using MATLAB

1012 Different types of modulation techniques are used in telecommunication for transmitting and receiving radio frequency (RF) signals. With MATLAB tools we can analyse the modulation techniques used for these signals along with their mathematical representation. We can analyse carrier frequency parameters like amplitude, phase, and the frequency. Simulation with MATLAB tools helps us obtain the real-world characteristics.

Digital modulation is digital-to-analogue conversion (DAC) while demodulation or detection is analogue-to-digital conversion (ADC). The modulated digital signal can be transmitted through various media like cables, microwaves, or satellites. The following types of digital modulation techniques are simulated in this project:

1. Phase shift keying (PSK): (a) binary phase shift keying (BPSK), (b) quadrature phase shift keying (QPSK), and (c) eight phase shift keying (8PSK)
3. On-off keying (OOK)

## BPSK modulation

In PSK modulation, phase of carrier signal is changed in accordance with the input digital data. It is a digital modulation technique that is used for video, aircraft, and satellite signals. The most straightforward type of PSK is called Binary Phase Shift Keying (BPSK), where ‘binary’ refers to the use of two phase offsets (one for logic high, one for logic low).

That is, BPSK is a two-phase modulation scheme, where the 0’s and 1’s in a binary message are represented by two different phase states in the carrier signal: =0° for binary 1 and =180° for binary 0.

We can think of BPSK as simply inverting the carrier in response to one logic state and leaving it alone in response to the other logic state.

In BPSK modulation, the phase of the RF carrier is shifted 180 degrees in accordance with a digital bit stream (modulating input binary signal). A ‘1’ causes a phase transition, and a ‘0’ does not produce any transition. However, both peak amplitudes of the BPSK signals remain constant as phase changes.

Run the digital_modulation.m file and select the BPSK option from the drop-down menu on the right side of the screen. You will get the simulated output of BPSK modulated signal as shown in Fig. 1.

The incoming modulated BPSK signal is multiplied with carrier signal generated by the carrier generator. The output of the multiplier contains high-frequency and low-frequency components.

## QPSK modulation

QPSK is a form of PSK in which two information bits out of 00, 01, 10, or 11 are modulated at a time, selecting one of four possible carrier phase shifts of 0, 90, 180, or 270 degrees. QPSK allows the signal to carry twice as much information as ordinary PSK using the same bandwidth. QPSK is used for satellite transmission of MPEG2 video, cable modems, videoconferencing, cellular phone systems, and other forms of digital communication over an RF carrier.

QPSK phase is changed in accordance with binary bits 1 and 0. The program output of QPSK modulated signal is shown in Fig. 2.

## 8PSK modulation

We can achieve bandwidth efficiency when we represent each signal element to map more than one bit. In BPSK modulation, digital data of 1 and 0 are represented by 180-degree phase change. Here, one bit per symbol is used. In QPSK modulation these are represented by phase shift of 90 degrees and so two bits are mapped on each signal. In multilevel PSK more than two bits are mapped using different phase angles. In 8PSK eight different phase angles are used where the incoming bits are encoded using three bits. Fig. 3 shows the simulation output of 8PSK signal.

ASK is a type of amplitude modulation which represents binary data in the form of variations in the amplitude of a signal. Any modulated signal has high-frequency carrier signal. In ASK modulation, the level of signal amplitude can be used to represent binary logic 0’s and 1’s. Thus, logic 0 is represented by the lower level amplitude of carrier signal and logic 1 by the higher amplitude of carrier signal as shown in Fig. 4.

## OOK modulation

OOK modulation is a popular technique used in control applications because of its simplicity and low implementation cost. It has the advantage of allowing the transmitter to idle during the transmission of a ‘0,’ thus conserving power. The disadvantage of OOK modulation lies in the presence of an undesired signal. As the proliferation of control and data communication apparatus increases, so does the aggravation of not being able to communicate.

OOK is a form of ASK modulation that represents digital data as the presence or absence of a carrier signal. We can think of carrier signal as an on or off switch. In its simplest form, the presence of a carrier signal represents a binary ‘1’ and its absence represents a binary ‘0’ as shown in Fig. 5.

## QAM modulation

QAM has been used for some analogue transmissions including AM stereo transmissions. QAM provides a highly effective form of modulation for data and is used in cellular phones and Wi-Fi systems.

QAM is a signal in which two carriers shifted in phase by 90 degrees (that is, sine and cosine) are modulated and combined. As a result of their 90° phase difference, they are in quadrature and hence the name. Often one signal is called the in-phase or ‘I’ signal and the other the quadrature or ‘Q’ signal. The modulated output waveform obtained from MATLAB simulation is shown in Fig. 6.