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
- An Android phone with a USB-C socket and Chrome. The pages talk to the board through Chrome's USB support (WebUSB), which Chrome for Android has had for years. Other browsers on the phone (Firefox, Samsung Internet) will not work.
- A computer with Chrome or Edge, or the phone itself, to install the firmware (section 4 uses a computer; the same setup page works in Chrome on the phone).
- A 3D printer (or someone with one) for the case, and a small cross-head screwdriver.
- An iPhone or iPad works over Bluetooth instead (firmware 0.14.0+, section 5.1): no browser there can talk to USB devices, so you still need a computer (or an Android phone) once, to install the firmware.
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
- The page has to stay open and on screen. Phones stop web pages that are in the background or behind a locked screen. When that happens the board keeps listening and logging, and its light still works, but there is no sound and no location until you open the page again. The page has a keep the screen on box for this reason.
- It uses the phone's battery. How much has not been measured yet.
- Wi-Fi and Bluetooth take turns on the one radio, as on the Logger, so a very short signal can be missed.
- Don't use metal near the antenna. Keep the antenna clear of the phone's metal back and of keys and coins: metal next to it blocks the radio.
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.


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.

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.

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
- 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.
- Press the pigtail's small round end straight down onto the gold connector on the board until it clicks.
- 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.
- Coil the spare cable loosely in the space between the board and the connector.
- 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.
- 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 board still moves when you plug the cable in: print again with a tighter grip,
python hardware/case/dongle.py --squeeze 0.2(the files here use 0.1 mm). - The board won't go in, or the lid won't sit flat: loosen it,
--squeeze 0.05or--squeeze 0. - The buttons are covered. With the lid on you can't press BOOT or RESET. Everything this guide does with BOOT can also be done from the settings page.
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
- 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.)
- In Chrome or Edge, open opengovernment.io/surveillance/setup/.
- 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).
- 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.
- 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. - 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_ONinfirmware/src/scanner/pins.h).
- 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 ...).
- It worked if a Live feed opens under the map and says
- 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
- On the phone, open Chrome and go to opengovernment.io/surveillance/viewer/.
- Plug the board into the phone.
- 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.
- 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.
- 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.
- 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.
- 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).
- 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.
- On the iPhone, install Bluefy from the App Store (a free browser that can use Bluetooth; Safari and the other iPhone browsers can't).
- 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.
- Carry on from step 4 above.
- Nobody else can connect: every connection needs the PIN, and the board ignores a phone that hasn't typed it. New PIN on the setup page makes another one; paired phones then have to pair again (forget the device in the phone's Bluetooth settings first).
- It can be noticed: while no phone is connected, the board advertises over Bluetooth (no name, a fixed address), so other Bluetooth scanners can see that something is there. Leave Bluetooth off if you use the Dongle with an Android phone or a computer.
- Not tested yet on a real iPhone: whether Bluefy passes the phone's location to the page, how it behaves when the screen locks, and whether the radio time Bluetooth takes costs Wi-Fi detections (the board has one radio for both).
- The flash log can't be read over Bluetooth (too slow):
spy dumpneeds a USB cable to a computer.
6. Using it
- Each time: open the viewer page, plug in, pick a mode, tap Connect. In Drive the location button turns on by itself (tap it to turn it off); in Sentinel and Protest it stays off.
- Drive, Sentinel or Protest: pick a mode on the viewer's start screen (the page remembers it, and you can switch later under Mode in the panel). Drive is for moving around: finds go on a map, and you can untick show map to hide it. Sentinel is for leaving the board in one place, such as on a table in a meeting. There is no map. For the first 3 minutes the page learns what is already around (tap Watch now to skip this). After that, every device it hasn't seen before sounds an alert and gets a NEW tag in the list, even ones the board wouldn't alert on by itself. Devices it already knows don't sound again. A tracker that keeps changing its Bluetooth address can count as new each time it changes. Other nearby devices (phones, watches, laptops) sound only if their address never changes; the rest just get the NEW tag. Protest is for being on foot in a crowd. There is no map, and the page doesn't ask for your location, so the board's records don't say where you were. The phone sounds only for police equipment (body cameras, police radios and gear), drones, camera glasses, a tracker following you and Wi-Fi attacks; other finds show in the list without a sound. Other people's phones and watches are not kept: the page drops them and tells the board to stop logging them, so a phone or board that is taken holds no list of who was there. The board logs them again the next time you connect it in Drive or Sentinel. What the board logged before you chose Protest is still on it. Protest does not detect cell-site simulators ("Stingrays").
- Sharing what you found: once the page has surveillance hits (Flock and other plate-reader cameras, gunshot sensors, roadside sensors), a Share with the community bar appears at the bottom of the panel. Review and share N finds sends the ones with a position to the project's map, under the anonymous ID you picked at setup (turn on Share your finds there first). Each one carries its time, position, signal strength and the camera's identifier. First the page lists them with a tick box each: untick anything that isn't a fixed camera. Finds it doubts start unticked and say why (heard in places too far apart to be a fixed camera, or only a weak clue matched), and what you untick isn't offered again. Nothing else leaves the phone: not other devices, not your route. The page itself keeps records only until you close or reload it; the board keeps its own log (below).
- Log files: a log you saved (
spy dump, below) opens on its own page, opengovernment.io/surveillance/viewer/log.html (also linked as Open a log file at the top of the viewer): its finds on a map and in a list, and the same Share bar. - Without the phone: the board also works from a USB power bank or a car's USB socket. It flashes on
alerts and keeps about the last 4 MB of its log (roughly 10 hours in a busy street, the oldest dropped first), without places or times. To read them later, plug it
into a computer and run
python tools/spy.py dump --port COM5 -o dongle.jsonl(your port may differ). On a Mac the port is named like/dev/cu.usbmodem1101: runls /dev/cu.usbmodem*with the board plugged in to find it, then use that name in place ofCOM5. - The BOOT button: a short press starts or stops "find what just alerted": the light then ticks while the board can hear that device, faster as you get closer, and stays dark when it can't. Don't hold BOOT down while plugging the board in: that starts the chip's firmware installer, not the scanner. Unplug and plug in again if you did.
- Changing settings (which kinds of device alert, the light): opengovernment.io/surveillance/config/
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:
- the phone model, Android version and Chrome version, and whether Connect device worked;
- whether the light's polarity was right (step 4.6);
- how the board fitted in the case: whether it still moves when the cable is plugged in, whether the lid closed flat, and whether the plug of your cable went fully home through the opening;
- how fast the phone's battery went down with the Dongle plugged in for an hour;
- whether finds kept arriving with the location button on, and what happened when the screen locked.