Documente Academic
Documente Profesional
Documente Cultură
2. Theory:
Whenever the signal is received by the antenna it receives bunch of AM
signal. We can adjust the center frequency and hear the desired
station we want. So, in order to hear the desired center frequency we
have to eliminate other frequency components which involves step by
step method. For Superhetrodryne Receiver this is the block diagram
how it works on the receiver side.
RF BPF:
Where B_band is the baseband for voice. Since, voice has spectrum up
to 4 KHz, B_band can be set as 4Khz. After the upper and lower limits
are set up we can use butter function in MATLAB to create a bandpass
filter to select the desired center frequency fc, and cutoff the image
station.
Signal mixture
In this block output form RF band pass filter is mixed with and local
oscillator. Local oscillator frequency is chosen in such a way that
The reason we need to add and subtract B_band which is voice signal
spectrum because we can hear the voice signal up to 4 kHz. Due to this
reason the B_band would have a bandwidth of
The fourth block of the design is Envelop detector. This block is made
up of a diode and a RC circuit in parallel which acts a low pass
filter. The output of the IF BPF filter is taken to diode. The reason
we use diode because diode gets rid of the negative amplitude, since
diode are forward biased. And during the negative cycle the charged
capacitor is discharged through the resistor making a ripple effect,
creating an envelope. Also, during this envelop detection process high
frequency component is taken off by low pass filter.
Mean/ DC component:
Sampling down
Fs=2B----12
Fs=2*4000=8Khz
Sound play
After the signal is sampled down the signal is played with the
function sound(x).
3 Matlab code
%%AM demodulation
%Superheterodyne Receiver
%Parameter Setting
%Lab4
clc; % Clear command window
clear all; %Clear variablesand functions from memory
close all;
load AM_DATA; %loading Matlab data samples
%https://www.dropbox.com/s/lcz31ewtiqp702d/S16_RF_data_for_lab4.mat?dl=0
Fs=400*10^3; % sampling rate
N=length(x); %size of the data
f_if= 23.5*10^3; %intermediate Frequency
f2=48*10^3; %desired Am station frequency also centre freqeuncy
b_band=4*10^3 ; % baseband for voice
dt=1/Fs; %sampling interval
t=(0:N-1)*dt; %time duration for the data
%figure (1);
%plot(t,x);
%title('Time domain Signal ');
%xlabel('Time domain signal');
%ylabel ('Amplitude');
%grid on;
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%seeing Amplitude Spectrum in frequncy domain
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
L_cutoff_freq=(f2-f_if);
U_cuttoff_freq=(f2+f_if);
l_limit_coefficient= L_cutoff_freq/(Fs/2);
u_limit_coefficient= U_cuttoff_freq/(Fs/2);
[b,a]=butter(5,[l_limit_coefficient u_limit_coefficient]);
RF_out=filter(b,a,x);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Envelope detector
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%take DC compnent off by capacitor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Capacitor_out=RC_LPF-mean(RC_LPF); %Capacitor
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Down sample and play
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%