Gain staging and dynamic range on budget SDRs: why ghost signals appear and how to track them down
- Replies 2
- Views 59
- Created
- Last Reply
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
A common complaint with RTL-SDR dongles, HackRF, SDRplay RSP units and Airspy receivers is a waterfall full of signals that don't belong: FM broadcast images in the aircraft band, a carpet of spurs across 40 m, or a strong local pager that seems to appear on a dozen frequencies. Usually the receiver isn't broken. The front end or ADC is being driven past its comfortable range, and the software shows exactly what it's given.
The basic issue is dynamic range. An RTL-SDR (RTL2832U with an R820T2-type tuner) has an 8-bit ADC. HackRF One is also 8-bit but covers 1 MHz to 6 GHz with up to 20 MHz of bandwidth. SDRplay's RSP1A and RSPdx use 14-bit converters, and the Airspy R2 is 12-bit. Each ADC bit is worth roughly 6 dB in theory, but real-world performance is lower because of tuner noise, filtering, and the whole analog chain ahead of the converter. More bits help, but front-end selectivity, preselection filters and sensible gain settings matter just as much.
A quick test for overload: while watching a suspicious signal, reduce RF gain or add a fixed attenuator (3 to 10 dB) at the antenna input. A real signal drops by the amount you attenuated. Intermodulation products and images usually fall faster. Third-order products change roughly 2 dB for every 1 dB of input change, so they collapse when you back off. If the ghost disappears or drops sharply, you have an overload problem and not a propagation mystery.
On the software side, the tools behave differently. SDR# and SDRuno (SDRplay's own Windows application) give you direct control of tuner gain stages, and SDRuno exposes the RSP's gain reduction and notch filters. GQRX on Linux and macOS goes through the osmosdr or SoapySDR layer, so which gain sliders you see depends on the driver. HDSDR relies on ExtIO plugins, and CubicSDR uses SoapySDR, which makes it flexible with LimeSDR and others. Whatever you use, AGC in the SDR front end often hides the problem, so try manual gain for diagnosis. On HackRF, set the RF amp (14 dB) off unless you really need it, then balance the LNA (IF) gain in 8 dB steps and the baseband VGA gain in 2 dB steps. Raising the baseband gain too much just amplifies noise without improving sensitivity.
Antennas and filtering contribute as much as the radio. A wideband antenna such as a discone feeds every strong broadcast station to the front end at once. For VHF/UHF work, a tuned dipole, or a simple broadcast FM notch filter in front of an RTL-SDR, can clean up the display. The RSP1A and some other models have built-in broadcast notch filters. For ADS-B at 1090 MHz, a band-pass filter plus an LNA located close to the antenna is the usual approach, because mounting the LNA after a lossy coax run adds the cable loss directly to your noise figure. For HF, RTL dongles need direct sampling mode (on some units) or an upconverter that shifts HF into the tuner range. Direct sampling is limited by the same 8-bit ADC, so expect compromises. Upconverters work, but oscillator spurs and a poor filter chain can introduce their own images.
Local noise is a separate problem. USB 3.0 ports, switching power supplies, LED lighting and the computer itself can radiate across HF and VHF. Try a USB extension cable to move the dongle away from the computer, add ferrite chokes on the USB and coax, and use a powered hub if the port is noisy. Comparing the noise floor with the antenna disconnected (and a 50 ohm terminator fitted) against the antenna connected tells you quickly whether the noise is internal or arriving from outside.
Some questions for discussion: which receiver, antenna and software combination are you running, and how do you set gain? Do you use a bandscope or panadapter feed from a transceiver, or a standalone SDR? And for decoding (DMR with DSD, POCSAG with multimon-ng, ADS-B with dump1090, WSJT-X modes through a virtual audio cable), have you found that errors come mostly from low signal level, overload or sample rate/audio routing problems?
Link to comment
https://www.hamradiobase.com/forums/topic/11646-gain-staging-and-dynamic-range-on-budget-sdrs-why-ghost-signals-appear-and-how-to-track-them-down/Share on other sites