[back]

Dont come close

My first Doppler radar project. A LimeSDR Mini 2.0 watches the room: it sends one quiet tone at 2.45 GHz and listens to its echo. Everything that stands still echoes back unchanged; everything that moves shifts the echo's frequency a little (the Doppler effect). The FPGA on the board finds that shift on its own, and the LEDs show it: green while all is still, red as soon as something moves -- and green again one second after it stopped.

Status: works on the board (2026-11-30): a person moving at 2 m reads 10 .. 20 x the room's floor; LEDs red on motion, green one second after

What you see in the video

dont_come_close_demo.mp4: the board on the table, the LEDs green; a hand, a book, a person moving in front of it turns them red; still again, they go back to green.

The setup

┌─────────────────────────────────────────────────────────────────────┐
│ LimeSDR Mini 2.0                                                    │
│  ┌───────────────────────────────────────────┐    ┌──────────────┐  │
│  │ FPGA (ECP5)                               │    │ LMS7002M     │  │
│  │ tone 0.5 MHz ─────────────────────────────┼────▶ TX───────────┼──┼─────────▶ antenna TX
│  │                                           │    │              │  │
│  │                     echo + leakage        │    │              │  │
│  │ mix down ◀────────────────────────────────┼────┼ RX◀──────────┼──┼────────── antenna RX
│  │                                           │    │              │  │
│  │ decimate: 61 samples/s                    │    └──────────────┘  │   the room: walls echo
│  │ high-pass: drop what stands still         │                      │   unchanged, a moving
│  │ energy every 0.5 s                        │                      │   hand shifts the echo
│  │ > 4 x the room's floor ?                  │                      │   (Doppler, a few Hz)
│  │ LEDs: red = motion, green = still         │                      │
│  │                                           │                      │
│  └───────────────────────────────────────────┘                      │
│                                                                     │
└──────────────────────────────────┬──────────────────────────────────┘
                                   │ USB 3
                                   ▼
                         PC: setup, arming, live levels
  1. The FPGA makes a tone 0.5 MHz above the carrier; the LMS7002M sends it at 2.45 GHz. ONE synthesizer serves both directions (TDD), so the transmitter's own noise cancels in the receiver -- with two it was 200 x worse.
  2. The receiver hears the room: the leakage straight from the TX antenna, the walls, and you. Mixed down by the same tone, everything still becomes a constant; a moving hand becomes a slow wobble of a few Hz.
  3. The FPGA averages down to 61 samples a second, removes the constant (two high-pass filters) and measures the energy left over every half second.
  4. It learns the room's quiet level (the floor) while nothing moves. Above 4 x the floor: motion -- the LEDs go red. Below 2 x the floor for about a second: still -- green again.

Range: a person moving at 2 m is 10 .. 20 x above the floor (measured); a hand clearly up to about 1 m.

What is in the archive

file what
top.bit the FPGA image for the LimeSDR Mini 2.0 (load it into SRAM with openFPGALoader)
verilog/top.v, verilog/top_motion.v the design as Verilog (exported from l8), top.lpf the pins
host/motion_tx_setup.py configures the LMS7002M: the recorded LimeSuiteNG table, the receiver on the air, the TX on (band 1), TDD at 2.45 GHz
host/motion_watch.py arms the transmitter and prints the levels live (--arm 600: ten minutes)
setup_diagram.py draws the diagram above
dont_come_close_demo.mp4 the demo video

Lessons from the first evening

The host scripts use the LimeSDR host tools of the l8 repository (use/system/l8/communication/bluetooth/design/ limesdr_mini_2.0: the LMS64C link over the FT601, the JTAG probe); the archive carries the two scripts as a reference.

The tone is a 2.45 GHz ISM-band signal at low power, used indoors. The board stops the radio chip on its own at 70 C (or when its temperature sensor goes silent). Sensing people: only with the people who know about it.

Download

dont_come_close.tar.gz -- the FPGA image, the Verilog, the host scripts, the video.

[back]