Your Image

AMPLITUDE MODULATOR AND DEMODULATOR - PLC SIMULATION



What is Modulation

Amplitude Modulation is actually a term we are all familiar with. This method, which allows us to multiply the message signal with a much higher frequency signal in the spatial domain and transmit this message to longer distances, is just the technical manifestation of the AM expression we see on radios.

Sample Image 1

What is Demodulation

Demodulation is a technique that allows us to convert the high-frequency, high-amplitude signal modulated with the carrier signal back into the original message signal. In this method, the modulated signal is multiplied again with the carrier signal and then passed through a low-pass filter, and as a result, we synthesize a signal with properties very close to our original signal.

This block diagram represents our modulation and demodulation processes:

Sample Image 2

Let's create a message and a carrier signal and apply the operations we mentioned to these signals, first in the spatial domain and then in the frequency domain, according to their needs.

Sample Image 2
Sample Image 2



Now if we are ready, we can start the Codesys presentation. First of all, I would like to show the function blocks I use in the project:

Sample Image 2

I used Sinc Function in low pass filter design.

Sample Image 2

I used Hamming Window to make the results from the Sinc Function cleaner and normalized.

Sample Image 2

Since we are in the spatial domain, I can only use my filter on the signal by convolving it, so the convolution function I created is:

Sample Image 2

Sample Image 2

Sample Image 2

Sample Image 2

Sample Image 2

Here is my PLC HMI:

Sample Image 2