Room Radar: I tried to see people moving through my flat using only Wi-Fi

By Ali Raza ·

Wi-Fi signals bounce off walls, furniture and people. When someone walks between your router and your phone, the signal changes a little. Researchers have used this for years to detect movement and even breathing. I wanted to know how much of that I could do at home with cheap boards and no cameras. I called it Room Radar. It never became a product, but it was one of the most fun things I’ve built.

The rules I set

No cameras and no microphones. The listeners only kept frames to or from my own router, and only the header of each one: which device sent it and how strong it was, never the contents. The results lived on one web page on my home server, reachable only over my VPN.

Version 1: one ESP8266 listening

I started with a D1 mini, an ESP8266 board that costs a few pounds. I flashed custom firmware that puts its Wi-Fi chip in promiscuous mode, so it hears every frame on one channel. For each frame from my router it printed the signal strength (RSSI) over USB to my laptop.

My laptop ran a small Python server that kept a slow average for each device and flagged when the signal wobbled more than usual. Someone walking past the router showed up clearly as a burst of noise.

Then I added a second listener: the laptop’s own Wi-Fi card in monitor mode, on the router’s 5 GHz band. Linux can do that with iw. Two bands, two views of the same room.

Version 2: CSI from an ESP32-S3

RSSI is one number per frame. Channel State Information (CSI) is much richer: it describes how the signal arrived on each of 64 sub-frequencies. A person changes some of those more than others, so CSI picks up movement that RSSI misses.

The ESP32-S3 can report CSI. There was a catch: my router’s beacons use an old Wi-Fi format that carries no CSI. I needed the router to send modern frames on a steady beat. The trick was to ping a device on the network about 20 times a second. Every reply makes the router send a fresh frame, and each one gives a CSI reading. That gave me about 20 readings a second.

Later I turned the D1 mini into a beacon in the hallway that broadcasts small frames 50 times a second at a fixed modern data rate. Now the ESP32 had two paths through the flat to watch: router to ESP32, and hallway to ESP32.

The motion score was simple. Keep a slow reference of what “still” looks like for each path, and measure how far the latest readings drift from it.

Version 3: putting it on a floor plan

I scanned the flat with my phone using a 3D room-scanning app and rendered the model from above to get a floor plan to scale. Then I tried to say where movement was, not just whether.

Two ideas from research papers did the heavy lifting:

  • Radio tomographic imaging. Each path between two radios is a thin ellipse on the floor plan. If a path gets noisy, someone is probably somewhere along it. With several paths crossing, you can solve for a rough heat map of where the disturbance is.
  • A wall-aware path-loss model. Signal strength drops with distance and with every wall in between. Fit that to devices at known spots (router, TV, smart plugs) and you can turn a phone’s signal strength into a rough distance, then a probable room.

What actually worked

Telling whether anyone was moving worked every time. The CSI paths jumped the moment someone walked through them, and stayed flat when the flat was empty.

Saying which part of the flat was rougher. Where two paths crossed it was decent. Along a single path it could only say “somewhere on this line”.

Pinning down exactly where someone stood didn’t work, and the research explains why. With one receiver, a phone’s signal strength gives you a ring around the receiver, not a point. Even with a few receivers and a good wall model, papers report errors of about 2 to 4 metres. The classic radio imaging paper used 28 radios. I had a handful.

What I learned

You don’t need much hardware to start. Both boards together cost me less than a takeaway.

CSI is far better than signal strength for spotting movement, but it needs a steady stream of modern frames. Pinging something on your own network is an easy way to get one.

The layout of the receivers matters more than the maths. A second receiver in another room would have helped more than any smarter model.

And because I only ever stored headers from my own network, the most it could ever say was “something moved in the hallway”.

I’ve since wiped and shelved the boards for the next project, but I’d do it again. If you have a spare ESP32, try reading CSI from your own router one evening. Watching a graph jump when you walk past is more fun than it has any right to be.

More of my experiments, and free games and tools, are at cloudmaking.co.uk.

Spotted a mistake or have an idea? Send feedback.

More posts