Spy Spotter · build guide

Spy Spotter Dongle: assembly guide

All guides · Quick start · Logger · Pro · Sweep

The Dongle is the smallest Spy Spotter: just the main board, plugged into the USB-C socket of an Android phone, in a small printed case with a screw-on antenna. There is nothing to solder. The board listens for the radio signals that surveillance devices give off (it never transmits anything itself). The phone powers it, shows what it finds on a web page, makes the alert sound, and can add your location and the time to each find.

A phone on its own can see nearby Wi-Fi networks and Bluetooth devices, but only a few times a minute, and it can't hear Wi-Fi devices that aren't networks themselves (many cameras and body cameras), Wi-Fi attacks, or Zigbee. The board hears all of these, all the time.

Got a Dongle that is already put together, with its firmware installed? The quick start gets it working in five steps.

Main board 1 x Seeed XIAO ESP32-C5 (listens to Wi-Fi on 2.4 and 5 GHz, and to Bluetooth, taking turns)
Shows alerts with the board's own small light; sound, vibration and a live list on the phone
Location and time from the phone, while the viewer page is open and its location button is on
Keeps a log about 4 MB in the board's own memory (every device it hears, so roughly 10 hours in a busy street, much longer somewhere quiet); the phone page can save what it saw
Case (outside) 60 x 22.2 x 14.5 mm, two 3D-printed parts, with a screw-on antenna on the end
Firmware to install dongle

Downloads

Case files to print (step 3.1):

In this guide

Words used in this guide

Word What it means
XIAO ESP32-C5 ("the C5", "the board") A small computer with a radio, about the size of a postage stamp. It has a USB-C socket at one end.
Firmware The program that runs on the board. You install it from a web page.
Antenna A short rod that screws onto the end of the case. The board cannot hear much without one.
Pigtail A short thin cable that joins the board to the antenna. One end is a tiny round clip (called U.FL or MHF1) for the gold connector on the board; the other is a threaded metal connector (SMA) that goes through the case wall.
Viewer page The web page that talks to the board over the cable: opengovernment.io/surveillance/viewer/
BOOT button One of the two tiny buttons on the board, printed B. The other, R, restarts the board.

1. What you need

Parts

Part How many Notes
Seeed XIAO ESP32-C5 1 Some come with a small stick-on antenna in the bag and some don't. This build doesn't use it.
U.FL (MHF1) to SMA bulkhead pigtail, 10 cm 1 Must be MHF1, not the smaller MHF4. 10 cm is best: a 15 cm one is a squeeze to coil inside.
SMA antenna for 2.4 and 5 GHz 1 Its connector must match the pigtail's: SMA with SMA, or RP-SMA with RP-SMA.
M2 x 8 mm self-tapping screws 4
USB-C to USB-C cable that carries data 1 A short one (10 to 20 cm) is easiest to carry. A charge-only cable will not work. A small USB-C plug-to-plug adapter also works.

What else you need

No phone to hand? The Dongle also works plugged into a laptop, with the same page.

2. Before you start

2.1 What the phone does and what the board does

Board Phone
Listening for devices yes no
Deciding what is an alert yes no
Power yes (the board draws from the phone's battery)
Light its own small light: flashes for 30 seconds after an alert (the number of flashes says what kind, see 6.1), then a short reminder every 10 seconds for 10 minutes
Sound and vibration yes, from the viewer page
Location and time yes, sent to the board over the cable if the location button is on
Log about the last 4 MB: roughly 10 hours in a busy street everything the page saw, until you close it

2.2 What to expect

3. How it goes together

There is no wiring and no soldering: the antenna cable clips on, and four screws (or the sliding lid) close the case.

The board has no antenna of its own. This build uses a short adapter cable (a "pigtail") from the board's tiny gold connector to a screw-on antenna on the end of the case. Without an antenna the board hears almost nothing.

3.1 Print the case

A two-part case, shaped like a USB stick, 60 x 22.2 x 14.5 mm outside. Files: dongle_base.stl and dongle_lid.stl. Where things sit: plan of the case.

Plan view
Plan view: where each part sits on the floor, the shelf and under the lid, seen from above. Red circles are screw posts; red bars are openings in the walls.
The Dongle's case: closed on a USB-C cable with the antenna screwed on, and opened, with the board at the USB end and the pigtail's cable coiled behind it, the lid beside it
The Dongle's case: closed on a USB-C cable with the antenna screwed on, and opened, with the board at the USB end and the pigtail's cable coiled behind it, the lid beside it

Sliding lid, no screws. The case also comes as a pair with a sliding lid: dongle_base_slide.stl and dongle_lid_slide.stl. This is the one to print if you have no screws, in PLA or PETG. The side walls reach the top of the case and the lid sits between them. Eight small teeth along each edge of the lid drop into eight gaps in the walls; pushing the lid 3 mm towards the USB end slides the teeth under the walls, and a springy strip in the lid's antenna end clicks behind the end wall. The outside size is the same, and the board is held the same way. Where things sit: plan of the sliding-lid case.

The sliding-lid case: closed, with the lid set down 3 mm back before it is pushed shut, and opened, with the teeth along the lid's edges
The sliding-lid case: closed, with the lid set down 3 mm back before it is pushed shut, and opened, with the teeth along the lid's edges

Print the lid flat side down. Nobody has printed this version yet. If the lid will not slide, or rattles, tell us (section 7).

Snap-fit, no screws (PETG only). The case also comes as a snap-fit pair: dongle_base_snap.stl and dongle_lid_snap.stl. Four small hooks hang under the lid and click into four slots in the side walls, so you need no screws. The outside size is the same, and the board is held the same way. Where things sit: plan of the snap-fit case.

The snap-fit case: closed with its slots showing in the side walls, and opened, with the four hooks under the lid
The snap-fit case: closed with its slots showing in the side walls, and opened, with the four hooks under the lid

Print the two halves as a pair: a lid from one version does not fit a base from another. Print the snap-fit version in PETG only: it bends without cracking. In PLA the hooks often break off as the lid goes on (tried, 2026-11-21): use the sliding lid. Print the lid flat side down, so the hooks stand up from the bed. Nobody has printed this version yet. Print one and try it before you rely on it: if the lid is too tight or too loose, tell us (section 7).

Print in PETG or PLA, the base open side up and the lid flat side down, with no supports. Never use metal- or carbon-filled filament: it blocks the radio. Clear or natural filament lets the board's light show through the lid.

The case grips the board on purpose. Three small ribs on each side wall are a little closer together than the board is wide, and thin ridges under the lid press down on the board's edges and on its USB socket. They are made to give a little as the board and lid go in.

3.2 Put it together

  1. From inside the base, push the pigtail's threaded connector out through the round hole in the end wall. Put its washer and nut on from outside and tighten them.
  2. Press the pigtail's small round end straight down onto the gold connector on the board until it clicks.
  3. Lower the board into the other end of the base, USB socket first into the opening, then press the back of the board down between the side ribs until it rests on the two rails. It should take a firm push.
  4. Coil the spare cable loosely in the space between the board and the connector.
  5. Put the lid on: its two long ribs go over the board's edges and its block goes over the USB socket. Fit the four screws, a little at a time each. Stop when the lid sits flat: the posts are small.
  6. Screw the antenna on.

Sliding lid: in step 5, hold the lid about 3 mm towards the antenna from where it will end up, so that the teeth along its edges line up with the gaps in the walls, and set it down. Then push it towards the USB end with your thumb until the strip at the antenna end clicks down; no screws. To open it, lift the tip of that strip with a fingernail (there is a gap under it at the end of the case), slide the lid 3 mm towards the antenna and lift it off.

Snap-fit lid: in step 5, set the lid on with its hooks inside the side walls, then press down along both long edges until all four hooks click into their slots; no screws. To open it, push each hook inward through its slot with a straightened paperclip and lift that end of the lid. Open it gently: the hooks are small.

The first print of this case (2026-11-19) let the board move up and down and side to side when a cable was plugged in. The ribs, ridges and block described above were added for that; this version has not been printed yet.

4. Install the firmware and test it on a computer

  1. Plug the board into the computer with the USB-C cable. (You can do this section before or after putting the board in its case.)
  2. In Chrome or Edge, open opengovernment.io/surveillance/setup/.
  3. Under 1 What will you use your Dongle with?, click what the Dongle will be used with once it is set up (for a phone or tablet, also Android or iPhone / iPad).
  4. Under 2 Install the firmware, click Install firmware. Pick the port that appears (often called "USB JTAG/serial debug unit") and confirm. Wait until it says it has finished (about a minute).
    • If no port appears: try another USB cable (it may be charge-only), or another USB socket.
  5. Under 3 Choose your settings, click Connect and pick the same port. Type a Name for this Dongle (for example dongle-01; don't use your own name if you might share logs). Click Save to device.
  6. Click Play a test alert.
    • It worked if the board's small light starts flashing (three quick flashes, a pause, again: the test alert is a Flock camera). It keeps that up for 30 seconds, then flashes three times every 10 seconds.
    • The light is on all the time and goes off for the alert: the firmware has the light's polarity backwards for this board. Please report it (it is one line: USER_LED_ON in firmware/src/scanner/pins.h).
  7. Click Disconnect, then open opengovernment.io/surveillance/viewer/, pick a mode and click Connect. Pick the same port.
    • It worked if a Live feed opens under the map and says Connected (dongle, firmware ...).
  8. Click Play test alert in the feed.
    • It worked if the computer says the alert out loud and the feed shows a line starting Alert:.

5. Use it with your phone

  1. On the phone, open Chrome and go to opengovernment.io/surveillance/viewer/.
  2. Plug the board into the phone.
  3. The page opens on a start screen. Pick Drive (on the move), Sentinel (staying in one place) or Protest (on foot in a crowd; see section 6 for all three), then tap Connect. Chrome shows a list: pick the board (often "USB JTAG/serial debug unit") and allow it.
    • The Connect button is greyed out, with a line saying it needs Chrome: this phone's browser can't talk to USB devices. Update Chrome from the Play Store. Samsung Internet and Firefox don't have the feature.
    • The list is empty: try the cable the other way round, or another cable. Some phones also have a setting that switches USB accessories off (often called "OTG"): turn it on.
  4. The map and feed open. Three round-cornered icon buttons appear at the top, next to the plug (the plug disconnects). A lit button is on; a slash across it means off. Hold a finger on one (or hover with a mouse) to see its name:
    • Location (map pin): in Drive it turns on by itself and the phone asks whether this site may use your location. Say yes, and each find from then on carries where you were and when. The location goes down the cable to the board and nowhere else. Tap it to turn it off.
    • Sound (speaker): already on. The phone says what it found ("Flock camera", "Tracker following") for each alert.
    • Vibration (in Settings, on by default, works with the sound off): the number of buzzes says what it is, like the board's light: 3 for a fixed camera or sensor, 2 for a tracker, skimmer or camera glasses, a fast burst for police equipment, 1 for anything else. iPhones can't vibrate from a web page.
    • Alert sound (gear button at the top: Settings): Spoken alerts uses the default sound pack, the same clips the Pro plays from its speaker (hear them all on the sounds page). Pick Beeps for two short beeps instead. The page loads the clips when you connect, so they keep working without a phone signal.
    • Screen on (monitor): already on. See 2.2.
    • Settings (gear): the viewer's own options (track line, map background, live feed, alert sound, and Vibrate on alerts, and Strobe on alerts, off by default: the screen flashes in the alert's colour) and, while the board is connected, its main settings (lights, name, what it logs and alerts on). Changes go to the board at once.
  5. Tap Play test alert.
    • It worked if the phone speaks and buzzes, the board's light flashes, and the feed shows a line starting Alert:.
    • No sound: turn the phone's media volume up. A phone on silent still vibrates.
  6. If the location button is on, wait for the line under the buttons to say Location on. The next find then shows as a dot on the map.

Real detections only happen near the kinds of devices the Dongle listens for, so you'll see those later, out and about.

5.1 With an iPhone or iPad (Bluetooth)

No browser on an iPhone or iPad can reach a USB device, so the Dongle talks to it over Bluetooth. The phone only powers the board through its USB-C port (or use a power bank). Nothing extra to buy.

  1. On a computer (or an Android phone), install the firmware (section 4). On the setup page, under What will you use it with?, pick Phone (or Tablet), then iPhone (or iPad).
  2. In step 3, Let a phone connect over Bluetooth is now ticked. Click Save to device. The page shows a six-digit PIN: write it down.
  3. On the iPhone, install Bluefy from the App Store (a free browser that can use Bluetooth; Safari and the other iPhone browsers can't).
  4. Plug the board into the iPhone. In Bluefy, open opengovernment.io/surveillance/viewer/, pick a mode and tap Connect. Pick the device from the list (it has no name), then type the PIN when the phone asks. The phone remembers it after that.
  5. Carry on from step 4 above.

6. Using it

6.1 What the light means

The board's light has one colour, so it counts instead:

Light Means
1 flash, pause, repeat something else: a suspicious Wi-Fi network, a flood of devices, a new device in baseline mode
2 flashes, pause, repeat a tracker, card skimmer or camera glasses: something that may be on or near you
3 quick flashes, pause, repeat fixed surveillance: a Flock or other plate camera, a gunshot microphone, a crime center
very fast flicker, pause, repeat a bodycam, police gear or a police radio: people nearby
the same count once every 10 seconds that alert was in the last 10 minutes (the most serious one is shown)
on for 1.5 seconds just after plugging in self-test passed
fast flashing for 3 seconds just after plugging in self-test failed: the feed on the viewer page says what
short ticks "find what just alerted" is on (BOOT button): faster ticks = closer

A less serious alert does not interrupt a more serious one. Switching Lights off on the settings page keeps the light dark and clears the reminder.

7. Record what you found

If you build one, please note and report: