Tune Your ADS-B Gain for Maximum Range
Two things decide how far your Raspberry Pi ADS-B receiver sees: where the antenna sits and how the gain is set. Placement is the bigger lever, but gain is the one most people leave on the wrong setting. Here's how to dial both in.
Watch it live while you tune
This is the ADSBiq signal tuner. It plots message rate, RSSI, and your coverage centroid in real time — the exact numbers you watch to know whether a gain change helped or hurt. Feeders see this for their own station on the feeder dashboard.
Step 1 — Get the antenna right first
No gain setting rescues a badly placed antenna. 1090 MHz is line-of-sight, so height and a clear horizon beat everything else:
- Higher is better. Roughly every extra meter of height adds about 2 nm of horizon. Rooftop > attic > window > desk.
- Clear the horizon. Trees, walls, and terrain absorb 1090 MHz. One wall can cut your range in half.
- Keep cable short. RG58 loses ~1 dB per 10 ft at 1090 MHz. Stay under 25 ft, or step up to LMR-400 for longer runs.
Step 2 — Set your gain
The goal is the gain that gives you the most aircraft and the longest range without overloading the receiver. Too high and strong nearby signals distort; too low and you miss weak distant ones. On a typical wiedehopf readsb install, gain lives in /etc/default/readsb:
sudo nano /etc/default/readsbFind DECODER_OPTIONS and set a gain value, e.g. --gain 43.9, then restart:
sudo systemctl restart readsbThe manual sweep
- Start near the top (RTL-SDR max is ~49.6). Note your message rate and max range after ~10 minutes.
- Step down through a few values (e.g. 49.6 → 44.5 → 40.2 → 36.4). Give each 10+ minutes.
- Pick the gain with the best combination of aircraft seen, max range, and a healthy message rate — watch them on the tuner above.
Or let autogain do it
wiedehopf's autogain tool sweeps gain for you over a few hours and settles on a good value. If you installed readsb from his scripts, it's already available:
sudo systemctl restart readsb ; readsb-gainStep 3 — Add a filter if you're in the city
Cell towers and FM broadcast can swamp a bare RTL-SDR. A 1090 MHz bandpass filter (or an SDR with one built in, like the FlightAware Pro Stick Plus) removes that interference and lets you run higher gain cleanly. In dense RF environments this is often worth more than any gain tweak.
What good looks like
| Placement | Typical max range |
|---|---|
| Indoor / window | 80–150 nm |
| Attic | 150–200 nm |
| Rooftop, ~30 ft, clear horizon | 200–300+ nm |
Once you're dialed in, feed it to ADSBiq and see your live range, RSSI, and rank. Already feeding elsewhere? Add ADSBiq in one line — it uses the same receiver you just tuned.