SinBench
← All labs · Communication Systems · Free virtual lab

Lab 13.
Bits on
a carrier.

Send random bits by switching a carrier on and off (ASK) or between two frequencies (FSK), and get them back with a correlator. Move a slider and the figure follows.

Read the concepts first →
2MATLAB scripts
11guided steps
8review questions
Before you start

Your details

Free to use, no sign up. Your name is only printed on your own lab sheet, and your work is saved in this browser so you can continue later. Nothing is sent to a server.

01
Read the concepts page: shift keying, ASK, FSK and PSK, the correlator receiver and where each one is used.
02
Guided mode walks through the ASK and FSK scripts and ticks each step when it is really done; you can also tick a step yourself.
03
Add figures to your report and export one PDF with your name and the values used.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

ASK and FSK Digital Modulation

This virtual lab sends random bits with two simple digital modulations in a MATLAB style desktop. In amplitude shift keying (ASK) the carrier is switched on for a 1 and off for a 0. In frequency shift keying (FSK) the carrier moves between two frequencies, one for each bit value.

You see the bit stream, the modulated wave and the receiver side together. A correlator multiplies the received wave by the carrier, adds it up over each bit time and compares the result with a threshold to decide each bit. Sliders change the bit rate and the carrier frequencies so you can see how the waveforms and the decisions change. Comparing the sent and the received bits row by row shows when the receiver decides correctly and why.

ASK and FSK Digital Modulation: the MATLAB style desktop with its scripts and figures
The bench of this lab, as it looks after you enter it.

What you do on this bench

  1. Generate random bits and turn them into an ASK signal.
  2. Demodulate the ASK signal with a correlator and compare the recovered bits with the sent bits.
  3. Make an FSK signal with two carrier frequencies.
  4. Change the bit rate and the carrier frequencies and watch the waveforms change.

On the bench

  • MATLAB style desktop
  • Random bit generator and correlator receiver in MATLAB syntax
  • Sliders for bit rate and carrier frequencies
  • A PDF report of your figures

Free, runs in the browser, no sign up and nothing to install. A computer with a graphics card gives the smoothest 3D view.

Questions students ask

What is the difference between ASK and FSK?

ASK changes the carrier amplitude with the bits, so noise that changes the amplitude causes errors easily. FSK keeps the amplitude constant and changes the frequency, which makes it more robust to noise and level changes.

What does a correlator do?

It multiplies the received signal by a copy of the expected carrier and adds the product over one bit time. A large sum means the carrier was present, so the bit is decided as 1.

Where is FSK used?

In old telephone modems, in radio teleprinters and in many low power wireless links, because the receiver only needs to tell two frequencies apart.