RF Systems, End to End

How does a typed message get through a radio and come out the other side?

Helps to know first:Link BudgetModulation

The intuition

A radio link is a relay race. Each block does one small job and hands the signal to the next. The transmitter packs your message onto a wave, the air carries it, and the receiver unpacks it. Most receiver blocks undo a transmitter block, in reverse order.

Transmitter. Each letter becomes 8 bits, so “HELLO RF” is 8 letters and 64 bits. The symbol mapper groups the bits into symbols, points on a constellation. QPSK puts 2 bits on each point, so the message needs 32 symbols. The pulse shaper smooths the jumps between symbols so the signal stays in a narrow band. The mixer moves it up to the carrier frequency. A filter trims anything outside the band, and the power amplifier makes it strong enough to travel. Push the amplifier too hard and it flattens the peaks.

The air. On the way, the signal picks up random hiss (noise) and echoes off walls (multipath). How far the signal sits above the noise is the SNR.

Receiver. The LNA, a quiet amplifier, boosts the faint signal first. The demodulator mixes it back down from the carrier, and a filter cleans off what is left. The symbol demapper picks the nearest constellation point for each symbol and turns it back into bits, then letters.

The score is the bit error rate, BER: the share of bits that came out wrong. 0% means the message arrived perfectly.

Try it

The full chain is loaded, and your message comes out decoded at the bottom. Click a block to see what it does, or an arrow between two blocks to see the signal there. Then click the AWGN Channel and drag its SNR down until errors creep in. Try the Overdriven Amp and Multipath City presets too.

Presets:

Blocks

Digital
Symbol Mapper
Maps bits to I/Q constellation points
Pulse Shaper
Raised cosine filter to limit bandwidth
RF Hardware
Oscillator
Carrier source (built into the Mixer)
Mixer
Up/down converts signal by multiplying with carrier
Bandpass Filter
Passes signal within a frequency band
Power Amplifier
Boosts signal power with possible saturation
LNA
Low noise amplifier for weak signals
Channel
AWGN Channel
Adds white gaussian noise at set SNR
Multipath Channel
Simulates multipath propagation with delay spread
Receiver
Lowpass Filter
Removes high frequency components
Demodulator
Recovers baseband signal from carrier
Symbol Demapper
Converts I/Q points back to bits
Drag blocks here to build your chain
Select a block or click → to inspect signal
Output:
—
BER: —

The maths

Symbols to send

N_sym = N_bits / k

More bits per symbol means fewer symbols, so the message is sent faster.

Where:

N_sym=Symbols to send(none)
N_bits=Bits in the message(none)
k=Bits per symbol: 1 for BPSK, 2 for QPSK, 4 for 16QAM(none)

Mixing

f_out = f_in ± f_c

Mixing up adds the carrier frequency, mixing down takes it away. A real mixer makes both the sum and the difference, and a filter keeps the one you want.

Where:

f_out=Frequency out(Hz)
f_in=Frequency in(Hz)
f_c=Carrier frequency(Hz)

Bit error rate

BER = wrong bits / bits sent

How much of the message came out wrong.

Where:

BER=Bit error rate(none)

What this assumes

  • The carrier is 10 kHz, not the gigahertz of real Wi-Fi, so the plots can show it. The steps are the same at any frequency.
  • The receiver is told where each symbol starts and how strong the signal is. A real one has to work that out first.
  • The noise is random, so the error rate moves a little each time you change something.
  • The LNA here is pure gain. A real one adds a little hiss of its own; the noise lesson covers that.

Predict

Predict first

Switch the Symbol Mapper from QPSK to 16QAM. How many symbols does "HELLO RF" need now?

The takeaway

A radio is a chain of simple steps: the transmitter packs bits onto a wave, the air adds noise and echoes, and the receiver undoes each step in reverse. The bit error rate tells you how well it worked.

Go deeper

Where each part was explained

  • Modulation: the symbol mapper and demapper, and why more points per symbol need a cleaner signal.
  • Signals and the FFT: reading the frequency plot, where the mixer moves the signal.
  • Noise: SNR, the LNA, and why the first amplifier matters most.
  • RF propagation: echoes from walls and buildings (multipath).
  • Link budget: adding up the whole link in dB to see if it will work.

What a real radio adds

Real radios add a few spare bits to the message, called error-correcting code, so the receiver can fix some wrong bits by itself. A real receiver also has to find where each symbol starts and set its own volume, which this demo does for it. That is why Wi-Fi can deliver a perfect file even when a few bits go wrong on the air.