Weird Little Server · project plate 06 · radio

CC1101Sweep

A sentry that marches 402 steps of spectrum every second, writes down what crossed the line, and serves the whole sky on a web page.

STATUS: verified v1.1.1 · BOARD: ESP32 + CC1101

Blueprint plate of the spectrum sweep: an ESP32 in a weatherproof box with a whip antenna, beside a browser spectrum analyzer.
Plate 06 — the box, the whip, and the spectrum wall that heard a weather station and a mystery. Tap for the full-size plate.
Beelzebubba the Third, engraved ink devil in a striped vaudeville suit and feathered top hat, holding an unfurled blank scroll and giving a thumbs up

Beelzebubba the Third · the brief

# CC1101Sweep — 404 steps of skywatch

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

> Take a five-dollar receiver, teach it to march up and down the spectrum like a
> nervous sentry, and give it a web page so you can watch the grass grow in
> eight hundred milliseconds. It found the weather station, a mystery shouter at
> 433.92 MHz, and a great deal of nothing that I have chosen to call "the
> electromagnetic weather".

## What it is

A continuous wide-band RSSI sweep (387–464, 300–348, 779–928 MHz) with adaptive
noise floors, burst detection, a hit log on LittleFS, and a live web UI — built
for unattended outdoor monitoring and for feeding later projects
(`cc1101-hunter` uses the same engine).

## Hardware

| Part | Notes |
|---|---|
| MCU | ESP32-D0WD-V3 (4 MB flash) |
| Radio | CC1101, SPI, whip antenna |
| Power | USB; deploy indoors or in a weatherproof box |

## Sweep plan

| Band index | Range | Step | Steps |
|---|---|---|---|
| 1 (primary) | 387–464 MHz | 0.5 MHz | 155 |
| 0 | 300–348 MHz | 0.5 MHz | 97 |
| 2 | 779–928 MHz | 1.0 MHz | 150 |

Total 402 steps in v1.0 — 404 in v1.1 after two priority channels
(**433.920** and **915.000 MHz**, 100 ms dwell each, sampled 10× per cycle)
were spliced in. Cycle time: 804 ms → 1008 ms with priorities.

## Hit detection

- Per-step adaptive RSSI floor:
  - fast-down EWMA 0.20, slow-up 0.02, frozen while a burst is active;
  - open a burst at `floor + 12 dB`;
  - close after 3 consecutive silent visits.
- Hit records go to a small web endpoint and to `/hits.csv` on LittleFS
  (rotates at ~400 KB into `hits.csv.old`; 200-entry RAM ring resets on reboot,
  the CSV persists).
- v1.1 adds boot markers and 10-minute `# alive` heartbeats so a field log can
  prove the device was running.

## Web UI

- `/` — dark page with a 402-point spectrum canvas.
- `/api/status` — `rssi[]`, `base[]`, `bands[]` arrays.
- `/api/hits`, `/hits.csv`, `/clear?confirm=1`.

## What it found

- The WS-2902 station at 915.000 MHz — packets every ~16 s, peaks −66…−95 dBm.
- An unidentified shouter at 433.920 MHz, bursts −38…−72 dBm, landing 1-2 s
  long and irregular. Still unidentified. It is my favorite resident.
- Indoor desk sessions: a broadband fuzz floor 387–464 MHz at −85…−91 dBm —
  local electronics, not radio ghosts.

## Build it yourself

1. Arduino core 3.x; CC1101 on SPI (GDO0 → GPIO27, CSN → GPIO5,
   SCK → GPIO18, MOSI → GPIO23, MISO → GPIO19).
2. Fill a secrets header: Wi-Fi SSID/password. No other credentials.
3. Flash; open the page; wait one full cycle (about a second) for the canvas
   to fill.

## Verification

- Serial: cycle timing line, then `hits` when something crosses the threshold.
- The spectrum page should move when you key a nearby transmitter (a cheap
  FRS radio is a fine test).

## Traps and field notes

- v1.1.0 had a signed-vs-unsigned sentinel bug in the priority-channel max —
  priority channels were silently dead. v1.1.1 fixes it; if your priority
  frequencies never hit, check that comparison first.
- A full 4 MB flash read over a flaky USB-UART needs `--no-stub` and 64 KB
  chunks; a stub read at high speed corrupts packets on some CH340 bridges.
- The sweep is **receive-only by design**. It cannot and does not transmit.

## Use this brief with an LLM

Feed this file to your assistant and ask it to add bands, change the hysteresis,
export MQTT, or port the detector. The EWMA parameters and CSV format are
documented well enough to write a replacement engine.
⤓ Download the brief .md · 3 KB

The short of it

Ink margin figure: a vintage radio on chicken legs with a tiny face
The sentry, mid-march.

It started as a way to answer one question: what is actually on the air around this house? Now it sweeps three bands, adapts its noise floors, opens a burst when something rises twelve decibels above the grass, and logs it to flash with timestamps. The web page redraws the whole spectrum twice a second.

The findings so far: the 915 MHz weather station, a loud and unidentified shouter at 433.92, and a broadband fuzz floor that is simply the house thinking. The receive-only rule is sacred; this device has never transmitted anything but web pages.

On the board

MCUESP32-D0WD-V3
RadioCC1101, SPI, whip antenna
Sweep387–464 @ 0.5 MHz (155) · 300–348 @ 0.5 (97) · 779–928 @ 1.0 (150)
Cycle804 ms baseline; 1008 ms with two 100 ms priority dwells (433.920, 915.000)
Storage/hits.csv on LittleFS, ~400 KB rotation; 200-entry RAM ring

How it works

Field notes

Ink margin figure: the devil with crossed arms and a tiny gavel
The priority channels were dead a week before anyone noticed.

Make your own

Ink margin figure: the devil pointing one long arm off-page
The hysteresis is documented; write your own detector.

Wire the radio, give it Wi-Fi, flash, and watch the canvas fill. The brief documents the sweep plan, the hysteresis, and the CSV schema so you can write your own detector.

Frieze: a garden for the sweep: a marching column of radios on chicken legs, spectrum banners flying
Frieze — a garden for the sweep: a marching column of radios on chicken legs, spectrum banners flying.