# CC1101Hunter — the signal hunter with a consultation service

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

> A radio that watches the spectrum is a watchdog. A radio that watches the
> spectrum and then hires a demon consultant to guess what it just heard is a
> colleague. This one has a radar scope, a spectrum wall, and a small side
> business in speculation about 433 MHz.

## What it is

The `cc1101-sweep` engine driving an arcade-style 480x320 NTSC "SNES" HUD —
spectrum wall, radar blips, hit log, analysis cards — plus an optional LLM
"consult" loop: the device summarizes its recent hits, asks a cloud model for
hypotheses and a watchlist, and applies that watchlist as dynamic priority
channels.

## Hardware

| Part | Notes |
|---|---|
| MCU | ESP32-D0WD-V3 |
| Radio | CC1101, SPI, whip antenna |
| Video | NTSC composite, DAC GPIO25 → RCA |
| Network | 2.4 GHz Wi-Fi, used only during a consult (then torn down) |

## The HUD

- Full-screen 480x320 RGB332 framebuffer: spectrum wall down the left, radar
  scope with blips, hit log, and two analysis cards.
- Bright arcade palette, no anti-aliasing, text in the driver's bitmap fonts.
- v1.1.0 moved to a 360x240 framebuffer in later builds: the 480x320 frame
  starved the Wi-Fi calibration at boot on this board (see traps).

## The consult loop

- Every ~15 min (or on demand) the firmware builds a digest: last N bursts with
  frequency, peak RSSI, duration, visit counts, per-band floors, and standing
  context.
- The digest goes to a cloud LLM of your choice with a strict JSON contract:
  `hypotheses`, `watch`, `capture`, `note`. The reply is parsed, logged to
  `/consults.log` (rotates 200 KB), and applied:
  - `watch` entries become dynamic priority channels with per-entry dwell
    (50–1000 ms), clamped to legal bands;
  - `capture` requests schedule a raw-pulse capture;
  - the TV shows a consult card with the verdict.
- Wi-Fi is brought up only for the consult and torn down after it. Heap is
  tight: ~97 KB free with the framebuffer, ~56 KB during TLS.
- Consent to spend: every consult is a paid API call. Set a per-hour cap in
  your own copy.

## Build it yourself

1. Arduino core 3.x + LovyanGFX 1.2.33, CC1101 on SPI as in the sweep brief.
2. Configure Wi-Fi credentials in your secrets header.
3. Provision your LLM API key over serial (the helper expects the key once,
   stores it in NVS; never commit it).
4. Flash and watch the serial log for boot, first hits, and consult status.

## Verification

- Serial: boot banner, sweep cycle timing, hits; `I` prints consult status.
- TV: within 40 s of boot, move a 433 MHz remote near the antenna — the radar
  should blip and the log should register the burst.
- Consult: `L` forces one consult; the card should show a verdict.

## Traps and field notes

- Choose a model that does not "reason" in a long loop over pulse data — one
  model spent minutes reasoning about a 200-sample digest. Disable reasoning
  where the provider allows it; log raw replies.
- Wi-Fi teardown can leak a few KB per consult on some core versions. Accept
  it or schedule a reboot; do not consult in a tight loop.
- The 480x320 frame is at the edge of what the radio calibration tolerates.
  If boot Wi-Fi fails intermittently, shrink the framebuffer.
- Receive-only radio. The only transmitter is the Wi-Fi, and only during
  consults.

## Use this brief with an LLM

Feed this file to your assistant and ask it to change the UI, swap in a local
model, add a capture pipeline, or write a desktop twin. The digest format and
the JSON contract are the two interfaces worth keeping stable.
