Receiver and Baseband#
radarsimpy.Receiver describes everything from the receive antenna to
the analog-to-digital converter (ADC):
the receive antennas (positions and patterns),
the gains and the noise they add,
when the receiver records (the receive window),
how the baseband is sampled.
The receiver mixes the echo with the transmitter’s own oscillator signal (see Radar System Model), so there are no receiver frequencies to set. You only configure the sampling rate, the gains and the range gate.
The Signal Chain#
Each block is labelled with the parameters that configure it. The table underneath follows the thermal noise from the antenna to the ADC. The result is the standard deviation of the noise added to each baseband sample.#
Every block has a default value. A receiver created with only fs uses
noise_figure=10, rf_gain=0, baseband_gain=0 and
load_resistor=500, which still gives a well-defined noise level.
Sampling#
fs is the baseband sampling rate. It sets how many samples are taken in
each pulse:
The receive window is exactly one pulse_length long. It opens
gate_delay after each pulse starts. The receiver does not record during
the idle time between pulses.
Note
Choose fs so that pulse_length * fs is an exact integer. The
constructor rounds values that are within floating-point error of an
integer, but an exact product guarantees that Python and the C++ engine
agree on the sample count.
Complex vs. real baseband#
bb_type selects a complex (I/Q) or a real baseband:
|
|
|
|---|---|---|
Output data type |
Complex |
Real |
|
|
|
Sign of the beat frequency |
Kept — positive and negative beat frequencies can be told apart |
Lost — a target a given distance beyond the gate looks the same as one the same distance before it |
Because a real baseband has half the noise bandwidth, its noise amplitude is \(\sqrt{2}\) times lower than that of an otherwise identical complex receiver.
Range span for FMCW#
In an FMCW radar with a linear chirp, range is converted to beat frequency by the chirp slope. The sampling rate therefore limits the range span you can see:
where \(k\) is the chirp slope and \(B_\text{usable}\) is fs for
a complex baseband or fs/2 for a real one. The radar reports both:
>>> radar.chirp_slope
1e+14
>>> radar.unambiguous_range_span
29.98
>>> radar.unambiguous_range_window
(0.0, 29.98)
For example, a 4 GHz sweep in 40 µs has a slope of 100 MHz/µs, so a 20 MHz complex baseband covers only 30 m. To cover more range, use a faster ADC, a slower sweep, or a range gate.
Note
These properties only apply to a linear FM chirp. They return None for
CW, pulsed and arbitrary waveforms, where range does not map to beat
frequency.
The Noise Budget#
The standard deviation of the thermal noise is calculated once, when the
Radar is created, and stored in radar.sample_prop["noise"]. The steps
match the figure above:
n1 = 10*log10(k_B * 290 * 1000) + 10*log10(noise_bandwidth) [dBm]
n2 = n1 + noise_figure + rf_gain [dBm]
n3 = n2 + baseband_gain [dBm]
sigma = sqrt(1e-3 * 10**(n3/10) * load_resistor) [V]
The reference temperature is always 290 K. A worked example:
Step |
Expression |
Value |
|---|---|---|
Thermal noise floor, |
\(-174 + 73.0\) |
−101.0 dBm |
After the RF amplifier, |
\(-101.0 + 28\) |
−73.0 dBm |
After the baseband amplifier, |
\(-73.0 + 30\) |
−43.0 dBm |
As a voltage across |
\(\sqrt{10^{-3} \cdot 10^{-4.3} \cdot 500}\) |
5.03 mV |
from radarsimpy import Radar, Transmitter, Receiver
tx = Transmitter(f=[77e9, 81e9], t=[0, 40e-6], pulses=128, prp=50e-6)
rx = Receiver(
fs=20e6,
noise_figure=8,
rf_gain=20,
baseband_gain=30,
load_resistor=500,
)
radar = Radar(transmitter=tx, receiver=rx)
radar.sample_prop["noise"] # 0.005026...
Two common surprises:
Gain does not improve SNR.
rf_gainandbaseband_gainamplify the signal and the noise by the same amount. They change the absolute level of the baseband, but not the signal-to-noise ratio (SNR). Onlynoise_figureandnoise_bandwidthchange the SNR.Noise is not added for you.
sim_radarreturns the noise-free signal inresult["baseband"]and the noise inresult["noise"]. Add them to get a noisy measurement.
Noise Simulation describes the noise statistics, how noise is shared between MIMO virtual channels, and the phase-noise model.
The Range Gate#
gate_delay delays both the receive window and the mixer reference by the
same amount. A target at range c * gate_delay / 2 then produces a beat
frequency of zero, and a target dR away from that range produces a beat
frequency of 2 * k * dR / c:
gate_range = 111.12e3 # m
rx = Receiver(fs=40e6, gate_delay=2 * gate_range / 299792458)
rx.gate_range # 111120.0
The default is 0 (no gate). That works at short range. At long range it
does not: the beat frequency k * tau grows with the round-trip delay
tau and exceeds the Nyquist frequency long before the ranges of a real
long-range radar. Long-Range Stretch Processing explains the calculation and the
limitations, including how gate_delay interacts with per-pulse
f_offset and phase codes.
Receive Channels#
channels is a list of dictionaries, one per receive antenna. Only
location is required.
Key |
Default |
Meaning |
|---|---|---|
|
— |
|
|
|
Antenna polarization vector. Vertical |
|
|
Angles (degrees) and gains (dB) of the azimuth pattern. Same length. |
|
|
The same, for elevation. |
Patterns work the same way as for the transmitter. The peak of the azimuth pattern is used as the channel’s antenna gain, and the azimuth pattern is normalized to that peak. The elevation pattern is normalized to its own peak, so only its shape matters. Put the absolute gain in the azimuth pattern.
Example: a uniform linear array of 8 antennas along the y axis, spaced half a wavelength apart.
import numpy as np
from radarsimpy import Receiver
wavelength = 3e8 / 79e9
rx = Receiver(
fs=20e6,
noise_figure=8,
rf_gain=20,
baseband_gain=30,
channels=[
{"location": (0, i * wavelength / 2, 0)} for i in range(8)
],
)
The receive and transmit locations together form the virtual array. See Radar System Model for the channel order.
Reading the Configuration Back#
rx.sampling_rate # fs
rx.noise_bandwidth # fs or fs/2, per bb_type
rx.gate_delay # s
rx.gate_range # gate_delay * c / 2, m
rx.num_channels
rx.channel_locations # [N, 3]
rx.get_channel_info(0) # location, polarization, gain, patterns
See Also#
Radar System Model — how the receiver combines with the transmitter
Transmitter and Waveform — the other half of the transceiver
Noise Simulation — noise statistics and MIMO correlation structure
Long-Range Stretch Processing — range gating for long-range FMCW
Doppler Sign Convention — the sign of the Doppler frequency in the baseband
Coordinate Systems — angle and orientation conventions
Radar Model — full
ReceiverAPI reference