Aim:
To implement and analyze amplitude modulation (AM) using Python's NumPy and Matplotlib libraries.
Apparatus Required:
Software: Python with NumPy and Matplotlib libraries
Hardware: Personal Computer
Theory:
Amplitude Modulation (AM) is a technique used in electronic communication, primarily for transmitting information via a radio carrier wave. In AM, the amplitude of the carrier wave is varied in proportion to that of the message signal.
Algorithm:
-
Initialize Parameters: Set the values for carrier frequency, message frequency, and sampling frequency.
-
Generate Time Axis: Create a time vector for the signal duration.
-
Generate Message Signal: Define the message signal as a cosine wave.
-
Generate Carrier Signal: Define the carrier signal as a cosine wave.
-
Modulate Signal: Apply the AM formula to obtain the modulated signal.
-
Plot the Signals: Use Matplotlib to plot the message signal, carrier signal, and modulated signal.
Program:
Output:
Result: