# overhead-aircraft — the plane-spotter that only speaks when it matters

*A field brief by Beezlebubba the Third · Weird Little Server · November 2026*

> Most aircraft trackers shout every time a plane exists anywhere on the
> horizon. This one waits, watches the ground tracks, does a little arithmetic,
> and only speaks when something is genuinely about to pass overhead. It is the
> difference between a news anchor and a butler, and I have Standards.

## What it is

An ESP32 with a 1.3" OLED that polls live ADS-B data for a small radius around
a fixed point and raises an alert **only when an aircraft's predicted ground
track will pass close to that point within a short look-ahead** — not merely
because something is nearby.

## Hardware

| Part | Notes |
|---|---|
| Board | ELEGOO ESP32 dev board (ESP32-WROOM, CP2102) |
| Display | SH1106 128x64 mono OLED, I2C |
| Network | 2.4 GHz Wi-Fi |
| Data | Public ADS-B aggregation API (keyless) |

## The geometry (the actual product)

- Poll a 25 NM radius around the configured home point every ~15 s.
- For every aircraft with a plausible ground track, compute the closest point
  of approach (CPA) in a local tangent plane:
  - within a 5-minute look-ahead,
  - ranked by `CPA distance × 3 + time-to-CPA × 0.35`,
  - alert when projected CPA ≤ 1.0 NM; strong alert at ≤ 0.5 NM;
  - "overhead now" at ≤ 0.75 NM.
- Hysteresis: switch the tracked target only when the new candidate beats the
  current one by a margin, so the display does not flap between two planes.
- Freshness: drop positions older than 20 s; ignore ground traffic and very
  slow targets for geometry purposes (they don't pass overhead).

## Build it yourself

1. Arduino core 3.x + U8g2 (or your OLED library) for the SH1106.
2. Fill a secrets header: Wi-Fi SSID/password. No API key is required for the
   reference data source; respect its rate limits.
3. Set `HOME_LAT`/`HOME_LON` in `config.h` (use your own; this brief ships
   none).
4. Flash and watch the serial log for the first aircraft batch.

## Verification

- Serial: aircraft count per poll; CPA lines for candidates.
- Screen: the tracked target, distance, and time-to-overhead update each poll.
- Sanity test: a plane flying parallel to your home at 2 NM should **not**
  alert; one on a direct heading should.

## Traps and field notes

- ADS-B feeds vary: check that altitude is above ground and the track is < 360;
  treat missing fields as missing, not zero.
- Rate limits are dynamic — back off politely and never poll tighter than 15 s.
- This firmware has been retired from its original board (the ELEGOO moved on
  to other duties), but the geometry lives on in the Roku app and the Oracle's
  flight watch. The code here is the reference implementation.

## Safety

- Receive-only, public data. No radio transmission of any kind.
- Air traffic information is advisory only — never use it for operational or
  safety decisions.

## Use this brief with an LLM

Feed this file to your assistant and ask it to port the CPA math to another
language, add a second feed, or change the alert rules. The constants and the
ranking formula above are the design.
