Skip to content

rakshitha581/DSBSC-using-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

DSBSC-using-python

AIM: To write a program to perform DSBSC modulation and demodulation using COLAB and study its spectral characteristics.

EQUIPMENTS REQUIRED

• Computer with i3 Processor • CO LAB.

Note: Keep all the switch faults in off position Algorithm:

1.Define Parameters: • Fs: Sampling frequency. • T: Duration of the signal. • Fc: Carrier frequency. • Fm: Frequency of the message signal. • Amplitude: Maximum amplitude of the message signal. 2.Generate Signals: • Message Signal: A sinusoidal signal that will be modulated. • Carrier Signal: A high-frequency sinusoidal signal used for modulation. 3.DSBSC Modulation: • Modulated Signal: Multiply the message signal by the carrier signal to produce the DSBSC signal. 4.DSBSC Demodulation: • Multiplication: Multiply the modulated signal by the carrier signal to get the product of the message signal with itself (i.e., the original message signal plus high-frequency components). 5.Visualization: Plot the message signal, carrier signal, DSBSC modulated signal, and the recovered signal after demodulation. PROCEDURE:

1.Refer Algorithms and write code for the experiment. • Open SCILAB in System • Type your code in New Editor • Save the file 2.Execute the code • If any Error, correct it in code and execute again • Verify the generated waveform using Tabulation and Model Waveform MODEL WAVEFORM: WhatsApp Image 2025-10-22 at 15 31 22_f87da31c PROGRAM:

import numpy as np
import matplotlib.pyplot as plt
Am = 3.2     
Ac = 6.4      
fm = 214    
fc = 2140    
fs = 21400   
t = np.arange(0, 2/fm, 1/fs)
m = Am * np.cos(2 * np.pi * fm * t)
plt.subplot(3, 1, 1)
plt.plot(t, m)
c = Ac * np.cos(2 * np.pi * fc * t)
plt.subplot(3, 1, 2)
plt.plot(t, c)
s1 = (Ac + m) * np.cos(2 * np.pi * fc * t)
s2 = (Ac - m) * np.cos(2 * np.pi * fc * t)
s = s1 - s2
plt.subplot(3, 1, 3)
plt.plot(t, s)
plt.tight_layout()
plt.show()

OUTPUT GRAPH: WhatsApp Image 2025-10-22 at 15 31 22_148d8a83 TABULAR COLUMN: WhatsApp Image 2025-10-22 at 15 41 11_7dc1cc26 RESULT: Thus the DSB-SC-AM Modulation and Demodulation using python is generated.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published