Skip to main content

Online Simulator for Constellation Diagram of M-ary QAM


Open Simulator in Full Screen



What is M-ary Quadrature Amplitude Modulation?

M-ary QAM is a sophisticated digital modulation scheme that conveys data by changing (modulating) the amplitude of two carrier waves. These two waves (usually sinusoids) are out of phase with each other by 90° and are called the In-phase (I) and Quadrature (Q) components.

By combining both phase and amplitude shifts, QAM can represent more bits per symbol compared to simple ASK or PSK, making it highly spectrally efficient.

Mathematical Model & Symbol Mapping

In M-ary QAM, data is mapped into a complex plane. The simulator generates the time-domain signal $s(t)$ using the standard quadrature carrier equation:

s(t) = In cos(2ฯ€fct) - Qn sin(2ฯ€fct)

Where In and Qn represent the coordinates of the n-th symbol.

Example: 4-QAM (QPSK)

For $M=4$, we have $\sqrt{M}=2$. The possible levels for $I$ and $Q$ are {-1, 1}.

  • Bit [00] → (I: -1, Q: 1)
  • Bit [01] → (I: 1, Q: 1)
  • Bit [11] → (I: 1, Q: -1)
  • Bit [10] → (I: -1, Q: -1)

Example: 16-QAM

For $M=16$, the levels are spaced as {-3, -1, 1, 3} to maintain a distance of $d=2$.

I-Levels: -3, -1, 1, 3
Q-Levels: -3, -1, 1, 3

Resulting in 16 unique points from (-3,3) to (3,-3).

Signal Power Normalization

As implemented in the code, the constellation is normalized by the average symbol power. Because 16-QAM symbols have different amplitudes (e.g., $(\pm1, \pm1)$ vs $(\pm3, \pm3)$), we calculate the Mean Square Power and scale the signal to ensure the transmitter operates at a consistent Amplitude factor.

Symbol_Scaled = Amplitude * (I + jQ) / sqrt(avg_power)

Comparison of QAM Orders

Modulation Bits Per Symbol Noise Immunity Typical Application
4-QAM (QPSK) 2 Excellent Satellite, Deep Space
16-QAM 4 Moderate Digital TV, DSL
64-QAM 6 Low Wi-Fi 5, 4G LTE
256-QAM 8 Very Low Wi-Fi 6, 5G, Cable Interet

Applications of M-ary QAM

Because of its ability to carry high data rates, QAM is the backbone of modern wireless and wired communications:

5G & 4G Cellular

Uses adaptive QAM (from 16-QAM to 256-QAM) depending on signal strength to maximize download speeds.

Wi-Fi 6/7

The latest Wi-Fi standards use up to 4096-QAM to provide gigabit speeds in home and office environments.

Frequently Asked Questions

Why must M be a power of 2?

In digital systems, data is binary. $M=2^n$ allows each symbol to represent an integer number of bits ($n$).

What does a constellation diagram show?

It represents the possible symbols that can be transmitted. The distance from the center relates to amplitude, and the angle relates to phase.


 

Further Reading 



Contact Us

Name

Email *

Message *

Popular Posts

OFDM Symbols and Subcarriers Explained

This article explains how OFDM (Orthogonal Frequency Division Multiplexing) symbols and subcarriers work. It covers modulation, mapping symbols to subcarriers, subcarrier frequency spacing, IFFT synthesis, cyclic prefix, and transmission. Step 1: Modulation First, modulate the input bitstream. For example, with 16-QAM , each group of 4 bits maps to one QAM symbol. Suppose we generate a sequence of QAM symbols: s0, s1, s2, s3, s4, s5, …, s63 Step 2: Mapping Symbols to Subcarriers Assume N sub = 8 subcarriers. Each OFDM symbol in the frequency domain contains 8 QAM symbols (one per subcarrier): Mapping (example) OFDM symbol 1 → s0, s1, s2, s3, s4, s5, s6, s7 OFDM symbol 2 → s8, s9, s10, s11, s12, s13, s14, s15 … OFDM sym...

Online Simulator for ASK, FSK, and PSK Signal Generation

Interactive Digital Signal Processing (DSP) Tutorial and Simulator for ASK, FSK, and BPSK modulation techniques. Try our new Digital Signal Processing Simulator!   •   Interactive ASK, FSK, and BPSK tools updated for 2025. Start Now Digital Modulation Visualizer: ASK, FSK, & BPSK Simulator Learn and visualize binary modulation techniques (ASK, FSK, BPSK) in real-time with adjustable carrier and sampling parameters. Perfect for DSP students and engineers. ๐Ÿ“ก ASK Simulator ๐Ÿ“ถ FSK Simulator ๐ŸŽš️ BPSK Simulator ๐Ÿ“š More Topics ASK Modulator FSK Modulator BPSK Modulator Demodulation More Topics 1. ASK (Ampli...

Flat vs Frequency Selective Online Simulator

Flat vs Frequency Selective Online Simulator Channel Type Without Fading Flat Fading Multipaths Nakagami m SNR(dB) Run Simulation Input Signal Signal After Fading Constellation Diagram BER vs SNR Explore Advanced Flat vs Frequency-Selective Fading Simulator Want to see these equations in action? Visualize it. Launch Simulator Tool Interactive Rayleigh Fading Simulator Want to see Rayleigh fading in action? Visualize it. Launch Simulator Tool Return to DSP Simulations Main Page →

Design of CMOS Flip-Flops (SR, D, JK)

Design of CMOS Flip-Flops (SR, D, JK) A flip-flop or latch is a circuit with two stable states, used to store state information. It is the basic storage element in sequential logic and a fundamental building block in digital electronics systems, including computers and communication devices. Flip-flops and latches act as data storage elements for states, pulse counting, and synchronization of variably-timed input signals to a reference clock. Flip-flops can be transparent/opaque (latches) or clocked (synchronous, edge-triggered). Latches are level-sensitive, while flip-flops are edge-sensitive. In sequential logic, the output depends on current inputs and previous states. Fig.1 shows a sequential circuit combining a combinational block and a memory element. ...

UGC NET Electronic Science Previous Year Question Papers with Solutions

Download Papers and Solutions Exam Pattern Preparation Tips FAQs More Home / Engineering & Other Exams / UGC NET 2026 PYQ ๐Ÿ“Š Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) ๐Ÿ“ฅ Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading ๐Ÿ“‚ View All Question Papers June 2026 - Question Paper Download PDF June 202...

LDPC Encoding and Decoding Techniques

Low Density Parity Check (LDPC) Guide Comprehensive analysis of linear error-correcting block codes, Tanner graphs, and 5G-NR implementations. ๐Ÿ“˜ Overview ๐Ÿงฎ Encoding ๐Ÿงฉ Decoding ๐Ÿ“š Resources Theory Encoding Tech Tanner Graph 5G Encoding Decoding 'LDPC' is the abbreviation for 'low density parity check'. LDPC code H matrix contains very few amount of 1's and mostly zeroes. LDPC codes are error correcting code. Using LDPC codes, channel capacities that are close to the theoretical Shannon limit can be achieved. Low density parity check (LDPC) codes are linear error-correcting block code suitable for error correction in a large block sizes transmi...

Online Simulator for Frequency Modulatiuon and Demodulation

FM Modulation Simulator Frequency Modulation (FM) In Frequency Modulation, the frequency of the carrier signal varies in accordance with the message signal's amplitude. s FM (t) = A c cos(ฯ‰ c t + k f ∫m(t)dt) where ฯ‰ = 2ฯ€f & k f = Frequency Sensitivity Modulation index, ฮฒ = (k f * A m ) / f m Change the parameter values to see the effect. Message Freq (Hz) 1 Carrier Freq (Hz) Message Amplitude (Am) Kf (sensitivity): 50 Perform FM Demodulation ๐Ÿงช Experiment for Students: ...