MATLAB code for Binary Frequency Shift Keying(BFSK) Modulation and Demodulation
Share Now...

BFSK

Binary Frequency Shift Keying (BFSK) is a type of frequency shift keying (FSK) in which the frequency of a carrier signal is changed based on the data being transmitted. In BFSK, a binary “1” is represented by one frequency, while a binary “0” is represented by a different frequency.

BFSK implementation typically involves the following steps:

  1. Modulation: The data to be transmitted is converted into a binary sequence and used to modulate the frequency of a carrier signal. A binary “1” is represented by a frequency f1 and a binary “0” is represented by a frequency f2.
  2. Transmission: The modulated signal is transmitted over a communication channel, such as a wired or wireless link.
  3. Demodulation: The received signal is demodulated to recover the original data. This is typically done by comparing the frequency of the received signal to the two possible frequencies and determining which one it matches.
  4. Decoding: The demodulated data is decoded to recover the original information.

BFSK is less susceptible to noise and interference than other types of frequency modulation, making it a popular choice for wireless communications systems. However, it is less efficient in terms of bandwidth usage compared to other modulation techniques like PSK or QAM.

Procedure

  1. Edit the MATLAB code
  2. Save the code with a file name with .m extension
  3. Execute the MATLAB code
  4. Observe the input and output waveforms
  5. Analyse the output

MatLab Code

clc;
clear all;
N=8;
b=round(rand(1,N));
subplot(4,1,1);
stem(b,'filled')
xlabel('Bits index')
ylabel('transmitted bits')
NRZ_out=[];
Vp=1;
for index=1:size(b,2)
if b(index)==1
NRZ_out=[NRZ_out ones(1,200)*Vp];
elseif b(index)==0
NRZ_out=[NRZ_out zeros(1,200)*(-Vp)];
end
end
subplot(4,1,2);
plot(NRZ_out)
t=0.005:0.005:8;
f2=3;
f1=5;
A=5;
mod_sig=[];
for(i=1:1:length(NRZ_out))
if(NRZ_out(i)==1)
y=A*cos(2*pi*f1*t(i));
else
y=A*cos(2*pi*f2*t(i));
end
mod_sig=[mod_sig y];
end
subplot(4,1,3);
plot(t,mod_sig)
xlabel('Time in seconds')
ylabel('Modulated signal')
demod_branch_1=mod_sig.*(cos(2*pi*f1*t));
demod_branch_2=mod_sig.*(cos(2*pi*f2*t));
y_1=[];
for i=1:200:size(demod_branch_1,2)
y_1=[y_1 trapz(t(i:i+199),demod_branch_1(i:i+199))];
end
y_2=[];
for i=1:200:size(demod_branch_2,2)
y_2=[y_2 trapz(t(i:i+199),demod_branch_2(i:i+199))];
end
rec_sig=y_1>y_2;
subplot(4,1,4);
stem(rec_sig,'filled','r')
xlabel('Bits index')
ylabel('Received bits')

Output

BFSK

Result


BFSK modulation technique is demonstrated using MATLAB code.

More Matlab Projects

Learn how to get ready for placement and crack interviews trick



About Connect Kreations

We the team Connect Kreations have started a Blog page which is eminently beneficial to all the students those who are seeking jobs and are eager to develop themselves in a related area. As the world is quick on uptake, our website also focuses on latest trends in recent technologies. We are continuously putting our efforts to provide you with accurate, best quality, and genuine information. Here we also have complete set of details on how to prepare aptitude, interview and more of such placement/ off campus placement preparation.

Connect Kreations is excited to announce the expansion of our services into the realm of content creation! We are now offering a wide range of creative writing services, including poetry, articles, and stories.

Whether you need a heartfelt poem for a special occasion, a thought-provoking article for your blog or website, or an engaging story to captivate your audience, our team of talented writers is here to help. We have a passion for language and a commitment to creating high-quality content that is both original and engaging.

Our services are perfect for individuals, businesses, and organizations looking to add a touch of creativity and personality to their content. We are confident that our unique perspectives and diverse backgrounds will bring a fresh and exciting voice to your project.

Thank you for choosing Connect Kreations for your content creation needs. We look forward to working with you and helping you to bring your vision to life!

The website is open to all and we want all of you to make the best use of this opportunity and get benefit from it..🤓

Share Now...
Connect Kreations
Connect Kreations
Articles: 59