Spy Spotter Sweep: assembly guide
All guides · Dongle · Logger · Pro
The Sweep is the biggest Spy Spotter. It is everything in the Pro, plus three extra sensors for checking a car or a room by hand:
- an RF power detector (AD8318) that measures how much radio energy is nearby, from 1 MHz to 8 GHz. It only switches on when you press the sweep button;
- a sub-GHz receiver (CC1101) that listens on 315, 433, 868 and 915 MHz, the bands used by key fobs, doorbells and some trackers;
- a microphone (INMP441) that listens for near-ultrasonic beacons: tones too high for most people to hear.
Like every Spy Spotter, it only listens. Build this model last: the RF detector and the sub-GHz receiver need testing and adjusting on the bench.
Status (2026-11-19): nobody has built a Sweep yet. These steps come from the design files (the pin plans in
firmware/src/scanner/pins.hand at the top offirmware/src/bridge/main.cpp, and the case makerhardware/case/case.py) and the parts' data sheets. On 2026-11-19 the scanner board changed from a XIAO ESP32-C5 to a DFRobot FireBeetle 2 ESP32-C5-U, which has a battery plug, so nothing is soldered to battery pads any more. Nothing has run on a FireBeetle yet. If you build the first one, please correct anything that turns out to be wrong.
| Boards | 2: a DFRobot FireBeetle 2 ESP32-C5-U (the scanner, with the battery plug) and a Seeed XIAO ESP32-C3 (the bridge) |
| Shows alerts with | a small screen, 3 coloured lights (on the bridge), a large speaker (the XLY, 50 mm across), and a lens finder |
| Listens for | Wi-Fi, Bluetooth, infrared floodlights, strong radio sources (sweep), sub-GHz transmitters (sweep), near-ultrasonic beacons. It also records its position with GPS |
| Keeps a log | every find, with its GPS position, on a microSD card |
| Case (outside) | 126 x 70 x 45 mm, three 3D-printed parts: base, shelf and lid. The large speaker takes the right-hand end of the lid |
| Firmware to install | sweep_scanner on the FireBeetle, sweep_bridge on the C3 |
Receive-only. Nothing in this build transmits. The CC1101 radio module can send as well as receive, but the Sweep only uses it to listen. Never add code that calls its send functions (this is a project rule).
Downloads
Printable PDF of this guide, with every drawing.
Case files to print (which ones you need is in step 1; if your parts differ in size, make your own on the case page):
In this guide
Words used in this guide
| Word | What it means |
|---|---|
| FireBeetle 2 ESP32-C5-U ("the FireBeetle") | A small computer with a radio (an ESP32-C5 chip), on a board 25.4 x 60 mm with a USB-C socket at one end, a RST and a BOOT button, and a battery plug with a charger built in. In the Sweep it is the scanner. The "-U" means it has a U.FL socket for the antenna. |
| XIAO ESP32-C3 ("the C3") | A smaller board, about the size of a postage stamp, with a USB-C socket at one end. In the Sweep it is the bridge. |
| Scanner | The FireBeetle. It listens to Wi-Fi, runs the GPS, the screen, the microSD card and the CC1101, and keeps the log. The battery plugs into it, and it powers the bridge and every other part. You plug into the scanner to charge and to change settings. |
| Bridge | The C3. It listens to Bluetooth, drives the lights and the speaker, reads the microphone, the infrared sensor and the RF power detector, and talks to the Rayhunter hotspot. |
| Serial link | Two wires that let the two boards talk. Each board's TX ("transmit") pin goes to the other board's RX ("receive") pin, and the two boards share GND. |
| Firmware | The program that runs on a board. You install it from a web page. Each board gets its own. |
| Pin | The holes (on the C3, half-holes) along a board's edges, each with a printed label. You solder wires to them. The C3's are labelled D0 to D10, and the Sweep uses all 11. The FireBeetle's have labels such as A3, D11, SDA, TX and MO; this guide always uses the label printed on the board. |
| GND ("ground") | The negative side of the circuit. Every part's GND wire joins the same GND, on both boards. |
| 3V3 | A pin that gives out 3.3 volts. The FireBeetle has two pins printed 3V3. The one on the right-hand side, next to RST, is always on: in the Sweep it powers everything, including the bridge. The one on the left-hand side, next to VIN, is switched off unless the firmware turns it on: don't use it. |
| Bridge's 3V3 feed | One wire from the C3's 3V3 pin to the scanner's always-on 3V3. It ends in a small push-on plug (a female jumper plug) that fits over a header pin (a short square metal post) soldered in the scanner's 3V3 hole, so you can pull it off before you plug the bridge into USB. |
| LiPo | A flat rechargeable lithium battery, like the one in a phone. It has a red (+) and a black (-) wire, ending in a small plug. |
| JST-PH plug | The small white 2-pin battery plug, 2.0 mm between its pins, that fits the FireBeetle's battery socket. Other plugs that look similar (JST-SH 1.0 mm, Molex 1.25 mm) do not fit. |
| Switch cable | A short extension cable with a JST-PH socket at one end, a JST-PH plug at the other, and a push-button switch in the middle (click on, click off). It goes between the battery and the scanner, so it is the Sweep's on/off switch. |
| Solder / soldering | Joining a wire to a pin with melted metal (solder) using a hot soldering iron. |
| Heat-shrink | A small plastic tube you slide over a soldered joint. Heat it and it shrinks tight, so the joint can't touch anything. |
| Kapton tape | Thin orange tape that doesn't melt and doesn't conduct electricity. Used to stop parts touching. |
| Multimeter | A meter that measures volts and resistance. On its "beep" (continuity) setting it beeps when two points are connected. |
| Short circuit ("a short") | When + and GND touch directly. It can make the battery very hot. Always check for one before connecting the battery. |
| Breadboard | A plastic board full of holes that holds parts and wires without soldering, for testing. |
| Perfboard | A small board full of holes with copper rings, for soldering a few tiny parts together. |
| Module | A small ready-made circuit board that does one job (the GPS, the screen, the SD card reader ...). |
| U.FL connector | A tiny round snap-on socket on the FireBeetle for the antenna cable. |
| SMA connector | A screw-on antenna socket, about 6 mm across. The AD8318 has one; the wideband antenna screws onto it. |
| Antenna | The part that picks up radio signals. The one that comes with the FireBeetle is a thin flat sticker on a cable, and it only covers 2.4 GHz Wi-Fi. |
| Resistor | A small part that limits current. Its value is in ohms (Ω); "10 k" means 10,000 ohms, "1 M" means 1,000,000. It can go either way round. |
| LED | A small light. It only works one way round: the longer leg is +. The coloured lights (WS2812) are LEDs on tiny boards. |
| SPI, I2C, I2S | Three ways for a board to talk to modules over a few shared wires. SPI (wires called SCK, MISO and MOSI, plus one "chip select" wire per module) is used by the SD reader and the CC1101. I2C (wires SDA and SCL) is used by the screen and the ADS1115. I2S (wires BCLK, WS and data) carries sound to the amplifier and from the microphone. |
| GPS | A module that works out where you are from satellites. It needs a view of the sky. |
| Baud | The speed at which the GPS sends data. The board must expect the same speed, or it reads nonsense. |
| microSD card | A tiny memory card. The log is saved on it. FAT32 is the format it needs. |
| OLED | The small screen (0.96 inch). |
| Amplifier (MAX98357A) | A small module that makes the sound signal strong enough to drive the speaker. |
| ADS1115 | A module that measures voltages very precisely and reports them to the bridge. Here it reads the infrared sensor (input A0) and the RF power detector (input A1). Every voltage going into it must stay below 3.3 V. |
| Photodiode | A small light sensor. The Sweep uses one that only sees infrared, to notice the infrared floodlights that number-plate cameras use at night. |
| AD8318 RF power detector | A module that gives out a voltage showing how much radio power reaches its antenna, at almost any frequency. It can't tell you what the signal is. It needs 5 V. |
| MT3608 boost converter | A module that turns a lower voltage into a higher one. A tiny screw on it (the trimmer) sets the output voltage. Here it turns the scanner's 3.3 V into the 5 V for the AD8318. |
| P-MOSFET / load switch | A tiny electronic switch. Here the bridge uses it to turn the AD8318's power on and off, so the AD8318 only drains the battery in sweep mode. |
| Gate, source, drain | The three legs of the MOSFET. Power goes in at the source and out at the drain; the gate decides whether it is on. For this kind: gate at the same voltage as the source = off, gate pulled low = on. |
| Voltage divider | Two resistors in a row that give out a fixed fraction of a voltage. Two equal 10 k resistors give exactly half. |
| CC1101 sub-GHz receiver | A radio module for frequencies below 1 GHz (315, 433, 868, 915 MHz), the ones key fobs and doorbells use. |
| INMP441 microphone | A tiny digital microphone on a small board. |
| Ultrasonic | Sound too high to hear. The Sweep listens between 18 and 20 kHz, where some apps and devices hide "beacon" tones. |
| Strapping pin | A pin the board reads at the moment it switches on, to decide how to start. Wiring the wrong thing to it can stop the board starting normally. |
| BOOT pin | A strapping pin that, if it is held low when the board switches on, makes the board wait for new firmware instead of starting normally. On the C3 it is D9 (the sweep button goes on it). On the FireBeetle it is the pin printed D9 (28/BOOT on the button): the Sweep leaves it free. |
| Calibration | Checking a reading against a known source and adjusting the numbers in the firmware so the reading is right. |
| Rayhunter | A separate small mobile hotspot running free software that warns of cell-site simulators (fake phone towers). The Sweep can only warn about cell-site simulators when Rayhunter is switched on and in range. |
| STL file | A 3D model file. You load it into a 3D printer's software to print the case. |
| PETG | A strong 3D-printing plastic. |
| Holder, bracket, cradle | Small walls printed inside the case that hold each part in place. A cradle holds a board. |
| Shelf | A flat printed plate that rests on a ledge inside the base. The battery, the AD8318, the MT3608, the ADS1115 and the MOSFET's perfboard sit under it; the boards and the other modules sit on it. |
| Screw post ("boss") | The four round posts in the corners that the lid screws go into. |
Which way is which. The drawings use -X, +X, -Y and +Y for the four walls. Put the case base on the table with the open side up and turn it so the wall with the microSD card slot and the round on/off hole is furthest from you, with the slot at the left-hand end. Then:
- far wall = +Y: the microSD card slot (left end), the hole for the optional external scanner antenna (left of centre; only if you made the base with that option) and the round hole for the switch cable's on/off button (middle);
- left wall = -X: the scanner's USB-C opening (towards the front) and the 7 mm lens finder button hole (further back);
- right wall = +X: the bridge's USB-C opening (towards the front), the AD8318's SMA antenna socket (low down, in the middle) and the 7 mm sweep button hole (towards the back);
- near wall = -Y: no openings.
The lid drawing shows the lid turned over: flipped towards you like turning a page up, so you see its underside. Left (-X) stays on the left, but what was the far side (+Y) is now nearest you.
1. What you need
Parts
| Part | How many | Notes |
|---|---|---|
| DFRobot FireBeetle 2 ESP32-C5-U (SKU DFR1287) | 1 | The scanner. Get the -U version, with the U.FL antenna socket (DFR1222 is the version with an antenna printed on the board instead). It has the battery plug and charger on board |
| Seeed XIAO ESP32-C3 | 1 | The bridge |
| Dual-band (2.4 and 5 GHz) antenna with a U.FL plug | 1 | Recommended, for the FireBeetle. The antenna that comes with it only covers 2.4 GHz, so 5 GHz Wi-Fi detection range suffers without this one |
| Beitian BE-180 GPS | 1 | Its speed (baud) is not confirmed yet: 9600 or 38400. Step 4.5 shows how to find out |
| SSD1306 0.96 inch I2C OLED screen | 1 | |
| Mini microSD SPI module, 3.3 V | 1 | Plus an 8-32 GB microSD card, formatted FAT32 |
| WS2812 5050 LED breakout | 3 | The coloured lights |
| MAX98357A I2S amplifier | 1 | |
| XLY speaker, 4 Ω 3 W: about 50 mm across and 20 mm deep | 1 | Much louder than a small 20 mm speaker. Measure its frame width and its depth before printing (step 2.3) |
| ADS1115 16-bit ADC module | 1 | |
| IR photodiode with daylight filter (SFH 203 FA or BPV10NF type) | 1 | Plus a 470 k resistor. Have a 100 k and a 1 M to hand too (see step 3.4) |
| Red 3 mm LEDs | 6 | For the lens finder, plus six 220 Ω resistors |
| 7 mm panel push button (momentary), for example a PBS-110 | 1 | The lens-finder button, in the 7 mm hole in the left (-X) wall. The same kind as the sweep button below |
| AD8318 1 MHz-8 GHz log detector module | 1 | Needs 5 V and about 70 mA; powered only in sweep mode. Measure it: its size in the case design is a guess |
| MT3608 boost converter module | 1 | Turns the scanner's 3.3 V into 5 V for the AD8318 |
| P-MOSFET: AO3407 or AO3407A (an AO3401 also works), and one 100 k resistor | 1 | The AD8318's on/off switch. Now that its source sits at 3.3 V, either part switches fully off and on (step 3.5). It is a tiny 3-legged SOT-23 part: a SOT-23 adapter board makes it easier to solder |
| Small piece of perfboard | 1 | For the MOSFET and its resistor |
| 10 k resistors | 2 | The voltage divider on the AD8318's output |
| Wideband SMA antenna, 700 MHz-6 GHz | 1 | Screws onto the AD8318 |
| CC1101 sub-GHz module (SPI) | 1 | Each board is tuned for one band, even if the listing names several. When it arrives, look for 315, 433 or 868/915 printed on the board, its antenna or its bag, and note which you have |
| INMP441 I2S MEMS microphone | 1 | |
| 7 mm panel push button (momentary), for example a PBS-110 | 1 | The sweep button, in the right (+X) wall. Some come with wires already attached. Label the wires of the two buttons so you don't mix them up |
| 503450 LiPo battery, 1000 mAh, with protection, ending in a JST-PH 2.0 mm 2-pin plug | 1 | The plug's + must be on the side marked + on the FireBeetle's socket. Many cells sold online come with the plug wired the other way round, or with a different plug (JST-SH 1.0, Molex 1.25). The plug on the cell ordered for the first build is not confirmed yet. Check yours (step 3.1) |
| JST-PH 2-pin extension cable with an on/off switch (Adafruit 3064) | 1 | The on/off switch: it goes between the battery and the FireBeetle, so nothing needs soldering. About 50 cm long; the spare is coiled in the case. The size of its switch has not been measured yet: measure yours (step 2.3) |
| 2.54 mm header pin (one from a strip) and one jumper wire with a female end | 1 each | For the bridge's 3V3 feed, so it can be unplugged |
| M2 x 8 mm self-tapping screws | 4 | To screw the lid on |
| PETG filament | up to about 95 g | Its three parts add up to 75 cm³ of plastic. Never use metal-filled or carbon-filled filament: it blocks radio signals |
| Rayhunter hotspot (Orbic RC400L or another supported device) | 1 | A separate device that you carry with the Sweep |
Printed parts
Print three parts from the folder hardware/case/stl/:
sweep_base_spk50.stl: the bottom of the case. Print it open side up.sweep_shelf_spk50.stl: the shelf. Print it flat.sweep_lid_spk50.stl: the lid. The file is already turned face-down for printing.
The spk50 in the names means "for a speaker up to 50 mm across". These ready-made files fit a speaker
up to 50 mm across its frame and up to 20 mm deep (from the front of the frame to the back of the
magnet). The speaker hangs from the lid over the right-hand end of the shelf, and that depth is
what makes the case 45 mm tall. If your speaker is deeper, make the files on the case page instead (step
2.3): the case comes out 1 mm taller for every extra millimetre. If it is shallower, the case page makes
it shorter.
For an external screw-on antenna for the scanner, make the base on the case page with Hole for an
external antenna ticked. It adds a second round hole, in the far (+Y) wall left of centre. (This is a
different hole from the AD8318's SMA hole in the right wall.) Programmers:
python hardware/case/case.py --tier sweep --speaker 50 --speaker-depth <depth> --sma.
Smaller case, small speaker. If you would rather have a much smaller case (96 x 70 x 34 mm) with a 20 mm speaker, print
sweep_base.stl,sweep_shelf.stlandsweep_lid.stlinstead, and followsweep_layout.pngfor where the parts go. The wiring and tests are the same.
Tools and supplies
- Soldering iron with a fine tip, solder and flux
- Multimeter
- Thin silicone wire (28-30 AWG) in at least 4 colours
- Heat-shrink tube, Kapton tape
- Hot glue, thin double-sided tape, and foam tape (for a seal round the microphone)
- Optional: a piece of IR-pass filter
- A breadboard and jumper wires (for testing before you solder)
- A USB-C cable that carries data (some cheap cables only charge; if the computer doesn't notice the board, try another cable). A second USB-C cable or a USB charger helps for the bench test
- A computer with the Chrome or Edge web browser
- A small Phillips screwdriver, side cutters and wire strippers
- For testing: a TV remote, a 433 MHz remote (a car key fob or a doorbell button), and a phone that can play an 18-20 kHz tone
- For calibration, if you can get one: a signal generator or another radio source of known power
2. Before you start
2.1 Skills you will use
- Soldering a wire to a pin: strip 2 mm of insulation off the wire. Touch the hot iron to the wire and melt a little solder onto it ("tinning"). Hold the tinned wire on the pin, touch the iron to both for 1-2 seconds until the solder flows, then take the iron away and hold still until the solder sets.
- Heat-shrink: slide a 1-2 cm piece of tube onto the wire before you solder. After soldering, slide it over the joint and warm it with the side of the iron or a lighter held well below it until it shrinks.
- Checking for a short with the multimeter: turn the dial to the beep setting. Touch one probe to the
- point and one to GND. A beep means they are connected: find and fix that before going on.
- Measuring a voltage: turn the dial to DC volts (V with a straight line). Touch the black probe to GND and the red probe to the point you want to measure. The power must be on.
- Measuring a resistance: turn the dial to Ω. The power must be off. Touch the probes to the two points.
2.2 Which pins the Sweep uses
The scanner uses 11 of the FireBeetle's labelled pins plus 3V3 and GND, and the bridge uses all 11 pins of the C3, so check every wire twice. Hold the FireBeetle face up with its antenna end away from you and its USB-C socket nearest you: "left side" and "right side" below mean the two rows of pins seen that way.
Some pins are strapping pins (see the word list). The plan already allows for them, but some things need checking:
- On the FireBeetle, leave D3, D6 and D9 free (strapping pins; D9 is also the BOOT button). Also leave free A1, D13 (the board's own small light), the 3V3 on the left-hand side (switched off) and VIN.
- D11 on the FireBeetle is a strapping pin too (GPIO7). It goes to the SD module's CS ("chip select")
pin. D11 has no pull-up of its own, so something must hold it at a steady voltage when the board starts.
The SD module usually does this with a 10 k resistor from CS to 3V3. Check yours:
- With the SD module not connected to anything, set the multimeter to Ω.
- Measure between the module's CS pin and its 3V3 (VCC) pin.
- It is fine if it reads about 10 k. If not, add a 10 k resistor from the FireBeetle's D11 to its (always-on) 3V3.
- MI (MISO, GPIO25) is also a strapping pin. It is fine here: the SD card and the CC1101 leave it alone until the firmware selects them.
- On the C3, D8 and D9 are strapping pins. D8 drives the MOSFET's gate and the firmware keeps it high (which is what the C3 needs at start-up). D9 is the C3's BOOT pin: the sweep button goes on it, and the C3's own BOOT button does the same thing. Never hold the sweep button while switching on or resetting.
2.3 Measure your parts, then print the case
Inside the case, small printed walls (holders) hold each part. They are sized for typical parts, but parts from different sellers can differ by a millimetre or two. In the Sweep the space under the shelf is the tightest of any model, so measure carefully.
- Measure every module with a ruler (or calipers). Most of all, measure the AD8318: the case expects about 40 x 25 mm, and that size is a guess. The case expects a battery of about 50.5 x 34.5 x 5 mm. Also measure the switch on the switch cable: its size in the case design is a guess too, and its button must reach the round hole in the far (+Y) wall.
- Measure the screen too: how far the centre of its visible area is from the centre of its board. The
case maker calls this the screen offset (
ofs). - Measure the speaker: the width of its round frame, and its depth from the front of the frame to the back of the magnet.
- If the speaker is no more than 50 mm across and 20 mm deep, and everything else is close to the expected
sizes, print the ready-made files from
hardware/case/stl/(step 1). - If not, open the case page opengovernment.io/surveillance/case/?tier=sweep. Tick Large speaker, type in the speaker's Frame diameter and Depth, then your other measurements, and download STL files made to fit.
- Print in PETG with 0.2 mm layers, 3 walls (perimeters), 20 % infill and no supports.
Optional, for programmers: instead of the case page, change
PARTSat the top ofhardware/case/case.pyand runpython hardware/case/case.py --check, thenpython hardware/case/case.py --tier sweep --speaker 40 --speaker-depth <depth in mm>. Or save the case page'sparts.jsonand add--parts parts.json --fitto that command. External scanner antenna: add--sma.
The plan drawing
hardware/case/render/sweep_layout_spk50.png shows
from above where each part sits.

3. How it is wired
3.1 Power
There is one battery, and it plugs into the scanner. The battery's plug goes into the switch cable, and the switch cable's other end plugs into the FireBeetle's battery socket. Nothing is soldered to the battery. The FireBeetle makes a steady 3.3 V from the battery (or from USB when it is plugged in) and gives it out on its always-on 3V3 pin (right-hand side, next to RST). That one 3V3 powers everything else:
- the bridge: a wire from the C3's 3V3 pin (its power input in the Sweep) ends in a female jumper plug, pushed onto a header pin in the FireBeetle's 3V3 hole. The C3's battery pads are not used;
- the VCC of the GPS, the screen, the SD module and the CC1101;
- the VCC of the three lights;
- the amplifier's VIN (at 3.3 V it gives about 1.3 W into the 4 Ω speaker instead of about 2.5 W, so it is a bit quieter);
- the lens finder button;
- the MOSFET's source (the AD8318's power chain, step 3.5).
The ADS1115, the microphone and the photodiode are wired to the C3's 3V3 pin, which is the same 3.3 V once the bridge's feed is plugged in. Every part's GND, and both boards' GND pins, join one common GND.
- The two boards must share GND. Without it the serial link between them won't work, and the bridge gets no power.
- Never plug the bridge into USB while its 3V3 wire is on the scanner. That would put two 3.3 V supplies against each other. Pull the jumper plug off first, and push it back on when you unplug the USB.
- Charge only through the scanner's USB-C. The bridge has no battery connection any more.
- Battery safety: check the plug before you plug it in. Some sellers wire the plug the opposite way round, and a reversed battery can damage the board. With the multimeter on volts, touch the red probe to the plug's contact on the red-wire side and the black probe to the other. It is right if it reads about +3.7 to +4.2 V and the red wire is on the side marked + beside the FireBeetle's socket. Check the switch cable's plug the same way, with the battery in it and the switch on. If the reading is negative, or the + is on the wrong side, don't plug it in. Never plug in a reversed battery.
3.2 Scanner (FireBeetle): which wire goes to which pin
| FireBeetle pin (as printed) | Side | Connect it to |
|---|---|---|
| A3 | left | the serial link: scanner TX, goes to the bridge's D7 |
| A4 | left | the serial link: scanner RX, comes from the bridge's D6 |
| D2 | right | the CC1101's CSN pin |
| D11 | left | the SD module's CS pin |
| SDA | left | the screen's SDA pin |
| SCL | left | the screen's SCL pin |
| TX | right | the GPS's RX pin (the scanner sends to the GPS on TX) |
| RX | right | the GPS's TX pin (the scanner hears the GPS on RX) |
| SCK | right | SPI SCK: the SD module's SCK and the CC1101's SCK |
| MI | right | SPI MISO: the SD module's MISO and the CC1101's SO |
| MO | right | SPI MOSI: the SD module's MOSI and the CC1101's SI |
| 3V3 | right, next to RST (always on) | the VCC of the GPS, the screen, the SD module and the CC1101; the lights' VCC; the amplifier's VIN; the lens finder button; the MOSFET's source; and a header pin for the bridge's 3V3 feed |
| GND | either side | GND |
| Battery socket | on the board | the switch cable, then the battery |
Leave free: D3, D6, D9, A1, A2, D12, D13, the left-hand 3V3, VIN and the pins printed NC. The FireBeetle has a second SDA / SCL pair on its right-hand side: it is the same two signals (IO9 / IO10), so either pair works; this guide uses the left one.
The GPS, screen, SD module and CC1101 also each have a GND pin: connect it to GND. The screen uses I2C address 0x3C (the usual one for this screen). In the Sweep the lights are on the bridge, not the scanner.
3.3 Bridge (C3): which wire goes to which pin
| C3 pin | Connect it to |
|---|---|
| D6 | the serial link: bridge TX, goes to the scanner's A4 |
| D7 | the serial link: bridge RX, comes from the scanner's A3 |
| D0 | light 1's DIN. Then light 1's DOUT goes to light 2's DIN, and light 2's DOUT to light 3's DIN |
| D1 | I2S BCLK: the amplifier's BCLK and the microphone's SCK |
| D2 | I2S WS: the amplifier's LRC and the microphone's WS |
| D3 | the amplifier's DIN |
| D10 | the microphone's SD |
| D4 | the ADS1115's SDA |
| D5 | the ADS1115's SCL |
| D8 | the MOSFET's gate (the AD8318's power). HIGH = off, LOW = on |
| D9 | one leg of the sweep button. Its other leg goes to GND. This is the C3's BOOT pin; the C3's own BOOT button does the same thing |
| 3V3 | the bridge's power input: the wire with the female jumper plug that goes onto the scanner's always-on 3V3. Also the ADS1115's VDD, the microphone's VDD, and the photodiode's cathode |
| GND | GND (shared with the scanner) |
| BAT+ / BAT- (pads under the board) | not used: leave them bare |
3.4 Each module
- Lights (WS2812): VCC to the scanner's 3V3, GND to GND, data as in step 3.3. Optional but helpful: a 330 Ω resistor in the wire to light 1's DIN, and a 100 nF capacitor across light 1's VCC and GND.
- Amplifier (MAX98357A): VIN to the scanner's 3V3, GND to GND. Leave its GAIN and SD pins unconnected. Solder the speaker's two wires to its + and - terminals.
- Microphone (INMP441): VDD to the bridge's 3V3, GND to GND, and L/R to GND (this tells the microphone which channel to use; the firmware expects GND). SCK, WS and SD as in step 3.3.
- ADS1115: VDD to the bridge's 3V3, GND to GND, and ADDR to GND (this sets its address to 0x48, which the firmware expects). Input A0 is the infrared sensor. Input A1 is the AD8318, through the divider. Every input must stay below 3.3 V.
-
IR photodiode: the cathode (the short leg) goes to the bridge's 3V3. The anode (the long leg) goes to the ADS1115's A0. A 470 k resistor goes from A0 to GND. You may need to change this resistor after testing:
- if the reading barely moves at night, use 1 M instead;
- if the reading sits near 3.3 V in daylight, use 100 k instead.
IR photodiode: cathode to 3V3, anode to ADS1115 A0, with a 470 k resistor from A0 to GND -
CC1101: VCC to the scanner's 3V3 only. It is damaged by 5 V. GND to GND. CSN to the scanner's D2. SCK, SO and SI to the scanner's SCK, MI and MO. Leave GDO0 and GDO2 unconnected.
- AD8318 power (details in step 3.5): the scanner's 3V3 to the MOSFET's source. The MOSFET's drain to the MT3608's VIN. The MT3608's OUT (set to 5.0 V) to the AD8318's VCC. A 100 k resistor from the MOSFET's gate to its source. All the GNDs join the common GND.
- AD8318 output: VOUT goes to a 10 k resistor, then ADS1115 A1, then another 10 k resistor, then GND. This halves the AD8318's output, which can reach about 4.9 V, to keep A1 below 3.3 V. The firmware assumes exactly half, so use two resistors of the same value.
- Wideband antenna: screws onto the AD8318's SMA socket, through the hole in the right (+X) wall.
-
Lens finder: the scanner's 3V3 goes to the lens finder's push button. From the button's other leg, six wires each go through a 220 Ω resistor to a red LED's long (+) leg; each LED's short leg goes to GND. That gives each LED about 6 mA; if they are too dim, use 150 Ω instead. It uses no pin on either board: the button switches the LEDs on directly.
Lens finder: the scanner's 3V3 through a push button to six 220 ohm resistors, each feeding a red LED to GND
3.5 The AD8318's power switch
The bridge turns the AD8318 on only in sweep mode, using the MOSFET as a switch. The chain is: the scanner's 3V3, then the MOSFET (source in, drain out), then the MT3608 (which turns 3.3 V into 5 V), then the AD8318. The bridge's D8 drives the MOSFET's gate. The 100 k resistor from gate to source keeps it off when nothing else is driving it.
Why this switches cleanly. The source sits at 3.3 V, the same voltage the bridge's pins give out. So with D8 HIGH (3.3 V) the gate-to-source voltage (Vgs) is 0 V, and the MOSFET is fully off. With D8 LOW (0 V), Vgs is -3.3 V, well past the switching point of both the AO3407 (its maker's data sheet puts it between -1.4 and -2.4 V) and the AO3401, so it is fully on. Because the 3.3 V is steady, a running-down battery doesn't change this.
Test it anyway, because parts bought online are sometimes copies, and a SOT-23 leg is easy to get wrong:
- Off test: with the gate at 3V3 (D8 HIGH), the MT3608's output must read about 0 V.
- On test: with the gate at GND (D8 LOW) and the AD8318 connected, the MT3608 must give a steady 5.0 V. Set its output to 5.0 V before you connect the AD8318 (step 4, test 7).
The AO3407 is a SOT-23 part with three tiny legs. Check its data sheet's drawing for which leg is the gate, the source and the drain before you solder it; a SOT-23 adapter board makes the job easier. If your part fails either test, check the three legs first; if it still fails, stop and open an issue.
4. Test everything before you solder
Testing on a breadboard first means a wrong wire or a bad part is easy to fix. Test in this order: each stage builds on the one before. Keep the battery disconnected for the whole bench test.
Scanner on its own.
- Format the microSD card as FAT32 and put it in the SD module. On the breadboard, wire the FireBeetle to the GPS, the SD module, the screen and the CC1101 (step 3.2). Plug the FireBeetle into the computer with the USB-C cable.
- In Chrome or Edge, open opengovernment.io/surveillance/setup/. Under 1 Which model do you
have?, click Sweep. Under 2 Install the firmware, click Install firmware, pick the port that
appears and confirm. Wait until it says it has finished. The page picks the right firmware for the board
that is plugged in.
- If no port appears: try another USB cable (it may be charge-only), or another USB socket.
- If the port appears but installing fails: put the board in download mode: hold its BOOT button, press and release RST, then let go of BOOT, and click Install firmware again. When it has finished, press RST once to start the new firmware.
- Check that the scanner started normally. Look at the screen:
- It worked if the screen shows the status screen (a status line, then the GPS satellites, then the Rayhunter line, then the log number).
- If the screen stays blank: check the screen's four wires (SDA to SDA, SCL to SCL, VCC to the always-on 3V3, GND).
- Under 3 Choose your settings, click Connect and pick the same port. Type a Name for this
Sweep (for example
det-01; don't use your own name if you might share logs). Click Save to device. - Look under 4 Check it works:
- GPS: put the GPS near a window. It worked if it says "Searching" and then "Fix" with a number
of satellites. The first fix can take a few minutes.
- "No data": the GPS's TX and RX wires are probably swapped: swap the wires on the FireBeetle's TX and RX.
- Data, but never a position: the GPS speed (baud) is wrong. This needs a programmer: change
GPS_BAUDinfirmware/src/scanner/pins.h(it is 38400 now; try 9600), rebuild the firmware, and write the right value into CLAUDE.md.
- SD card: it worked if it says "OK". "Not found": check the card is FAT32 and pushed in, then check the SD module's six wires.
- CC1101: there is no check for it here. It only listens in sweep mode, which needs the bridge, so you test it in step 11.
- GPS: put the GPS near a window. It worked if it says "Searching" and then "Fix" with a number
of satellites. The first fix can take a few minutes.
Optional, for programmers: install with
cd firmware && python -m platformio run -e sweep_scanner -t upload, and set the name withpython tools/spy.py setup --port COM5 --name det-01. In a serial monitor at 115200 baud (python -m platformio device monitor -b 115200), press RST. You should see a start-up record withSpy Spotter scanner up. Receive-only., and neither#WARN SD card not foundnor#WARN CC1101 not found. That warning is the only early check of the CC1101. Therst:line should includeSPI_FAST_FLASH_BOOT, which means a normal start. Typing{"cmd":"status"}gives the same status as step 5; on the FireBeetle it also hasbattery_mv, the battery voltage the board reads (compare it with the multimeter once the battery is in).
The AD8318's power chain on its own. Do this before the AD8318 is connected: a wrong voltage could damage it.
- Build the MOSFET and its 100 k resistor on the perfboard. With the scanner still on USB, wire the
scanner's always-on 3V3 to the MOSFET's source, the drain to the MT3608's VIN, and the MT3608's output
to the divider. Join the chain's GND to the scanner's GND. Leave the AD8318 unconnected. Connect the gate
to the same 3V3: that is the voltage D8 gives when it is HIGH. Measure the MT3608's output.
- It worked if it reads about 0 V.
- If it reads more than that, the MOSFET is not turning fully off. Check its legs (step 3.5).
- Connect the gate to GND to turn the MOSFET on. With nothing connected to the MT3608's output, turn the
tiny screw on its trimmer slowly while you measure its output, until it reads 5.0 V.
- It worked if the output stays at 5.0 V. Only now connect the AD8318.
- Connect the AD8318's VCC to the MT3608's output, its GND to GND, and its VOUT to the divider. Measure A1
(the point between the two 10 k resistors), with the power on and no antenna fitted.
- It worked if A1 sits at a steady voltage in the middle of its range. It falls as radio power rises: about 25 mV per dB at VOUT, so about 12.5 mV per dB at A1.
- If it reads 0 V or jumps around: check the AD8318's power wires and the 5.0 V supply.
- Load check: with the AD8318 connected and the gate still at GND, measure the MT3608's output again. It worked if it still reads 5.0 V. If it drops, check the MOSFET's legs and the MT3608's input wires (step 3.5).
Bridge, and the two boards together.
- Plug in the C3 with its own USB cable (its 3V3 must not be wired to the scanner yet). On the setup page, with Sweep still picked, click Install firmware again and pick the C3's port. The page installs the bridge firmware.
-
Wire up the rest on the breadboard (steps 3.3 to 3.5):
- the serial link: scanner A3 to C3 D7, scanner A4 to C3 D6, and GND to GND;
- the three lights, the amplifier and the speaker, the microphone;
- the ADS1115, with the photodiode and the AD8318's divider;
- the MOSFET's gate on D8, and the sweep button on D9.
Power the bridge from its own USB cable or a USB charger, and plug the scanner into the computer. For now, leave the bridge's 3V3 pin unconnected from the scanner: two USB supplies must never meet on 3V3. Wire the lights' VCC, the amplifier's VIN, the lens finder and the MOSFET's source to the scanner's 3V3, as in the finished build. No battery yet.
-
On the setup page, click Connect and pick the scanner's port. (If you pick the bridge, the page says so: settings are made on the scanner.) Then check each part:
- Link: under 4 Check it works, it worked if "Bridge board" says "Talking". "Not heard": check the two link wires go TX to RX and RX to TX, and that the boards share GND.
- Lights and speaker: click Play a test alert. It worked if the three lights come on and the speaker plays the alert. No light: check light 1's DIN on the bridge's D0 and the chain to lights 2 and 3. No sound: check the volume setting isn't 0, then the amplifier's wires.
- Infrared: point a TV remote at the photodiode and hold a button down for up to about 10 seconds. It worked if the Sweep gives an infrared-illuminator alert. If not: check the photodiode's legs (short leg to 3V3) and the 470 k resistor, then try the other resistor values in step 3.4.
- Sweep mode: give the sweep button a short press. It worked if the screen's top line shows SWEEP MODE and then readings (RF ... dBm from the AD8318, SUB ... from the CC1101), the MT3608's output reads 5.0 V, and the speaker ticks, higher for stronger signals. A phone on a call or a Wi-Fi router close by should move the RF number. Press again: the screen goes back to "Scanning..." and the MT3608's output drops back to 0 V. If nothing happens: check the button's wires (D9 and GND) and the gate wire on D8.
- Sub-GHz (with sweep mode on): press a 433 MHz remote right next to the CC1101. It worked if "Records logged" goes up and the log gets a "Sub-GHz transmitter nearby" record with its frequency and signal strength. If not: check the CC1101's six wires, and that it is on 3V3.
- Ultrasonic (with sweep mode off): play an 18-20 kHz tone from a phone close to the microphone. The Sweep should give a near-ultrasonic beacon alert. The threshold is not calibrated yet, so no alert does not always mean a wiring fault. Check the microphone's wires (and L/R to GND), and write down what you saw.
- The real power path: unplug the bridge's USB cable, then connect the bridge's 3V3 pin to the scanner's always-on 3V3. The bridge now runs from the scanner, as in the finished build. It worked if after a few seconds "Bridge board" says "Talking" again and Play a test alert still works. Before you plug the bridge into USB again, disconnect that 3V3 wire.
- Do not hold the sweep button while switching on or resetting. It is the C3's BOOT pin, and the C3 will start in download mode instead of running.
Optional, for programmers: the bridge can be installed with
python -m platformio run -e sweep_bridge -t upload(with its 3V3 wire off the scanner). Its serial monitor showsSpy Spotter sweep bridge up.and neitherADS1115 not foundnorI2S init failed. Pressing the sweep button printsSWEEP,ON, and pressing againSWEEP,OFF. -
Rayhunter: switch on the Rayhunter hotspot. On the setup page, under Rayhunter hotspot, type its Hotspot Wi-Fi name and Hotspot Wi-Fi password, then click Save to device. The bridge gets them over the serial link.
- It worked if "Rayhunter" under 4 Check it works says "Connected" (or "Connected, not recording" if Rayhunter isn't recording).
- "Can't reach": check the name and password, and that the hotspot is on and close by.
Optional, for programmers: confirm the shape of Rayhunter's warning rows. With the computer on the hotspot's Wi-Fi, run
curl http://192.168.1.1:8080/api/analysis-report/live | headand compare it withextractWarning()infirmware/src/bridge/main.cpp. -
Lens finder, on its own: press its button.
- It worked if all six red LEDs light.
- If one stays dark: it is probably the wrong way round (long leg goes towards the resistor).
- Calibrate the RF reading, if you have a radio source of known power. The numbers the firmware uses
to turn the AD8318's voltage into dBm,
SLOPE_V_PER_DBandINTERCEPT_DBMinfirmware/src/bridge/main.cpp, are typical values from the data sheet. Compare the reading with the known source, adjust those two numbers (this needs a programmer), and write down what you did.
5. Build it into the case
-
Try everything in the case first, without soldering. Put the shelf on the ledge in the base as you go, and take it out again to reach the floor. Orient the base as in "Which way is which" (microSD slot and on/off hole in the far wall).
- Floor (the battery bay, under the shelf): the battery stands crosswise at the left (-X) end, in its brackets, with its long side running from front to back (along Y). The AD8318 sits against the right (+X) wall in the middle, with its SMA socket through the round hole low in that wall. The MT3608 sits at the back, the ADS1115 at the front in the middle, and the MOSFET's perfboard at the front, to the right of the ADS1115. The lens finder's sight tube rises from the floor between the battery and the AD8318 and runs up to the lid.

The battery bay from above, under the shelf: the battery on the left, the MT3608 at the back, the ADS1115 and the MOSFET board at the front, the AD8318 against the right wall with its SMA socket through it, and the sight tube between them - Shelf: the scanner (FireBeetle) lies along the near half of the shelf, with its USB-C socket in the opening in the left (-X) wall. The bridge (C3) sits at the front right, with its USB-C socket in the opening in the right (+X) wall. Along the far (+Y) side, from left to right: the SD module, with its card slot in the opening at the left end of the far wall; the GPS in its rim, with its flat square patch facing up; the switch cable's switch, against the far wall behind its round hole; and the amplifier at the back right. The CC1101 sits in the middle on the right, between the far end of the FireBeetle and the C3. Two small holes in the shelf carry wires up from the bay (the switch cable, and the wires of the AD8318, the MT3608, the MOSFET and the ADS1115). The shelf must sit flat on the ledge all the way round.

The shelf in the base: the scanner along the front with its USB-C in the left wall, the bridge at the front right with its USB-C in the right wall, and the SD module, GPS, switch, amplifier and CC1101 behind them - Walls: hold the switch cable's switch on the shelf against the inside of the far (+Y) wall, so its button sits in the round hole there; check you can click it from outside. (It is glued in step 7.) The sweep button goes in the 7 mm hole towards the back of the right (+X) wall. The lens finder button goes in the 7 mm hole high up in the left (-X) wall, behind the scanner's USB-C opening. Push each button through from inside and screw its nut on from outside.
- Under the lid (positions as seen from above with the lid on the case): the three lights in a column at the left (-X) end, with the photodiode's window in the near-left corner; the screen behind its window, left of centre towards the front; the lens finder collar left of the middle, towards the back; the microphone brackets in front of the middle; the large speaker in its ring under the big round grille at the right (+X) end. The drawing shows the lid turned over, so near and far are swapped in it.

The lid turned over: the large speaker at the right-hand end; the lights, photodiode, screen, lens finder collar and microphone in their holders - Take everything out again.
-
Label the two USB-C openings on the outside, so you know which is which: the scanner's (left wall) is the one to plug into for charging and settings; the bridge's (right wall) is only for updating the bridge.
- Fit the floor parts.
- Fix the battery, the AD8318, the MT3608, the ADS1115 and the MOSFET's perfboard down with thin double-sided tape.
- Push the AD8318's SMA socket through the right (+X) wall and fasten it with its nut on the inside.
- Screw the wideband antenna onto the socket from the outside.
- Solder the wires to both boards.
- Solder a header pin into the FireBeetle's always-on 3V3 hole (right-hand side, next to RST), with its long end sticking up. Solder a wire with a female jumper plug on its end to the C3's 3V3 pin, but don't push the plug on yet.
- Many wires go to the scanner's 3V3 and to GND. Join each group into one wire first (twist the bare ends together, solder them, and cover the joint with heat-shrink), then solder that one wire to the pin: the 3V3 group to the header pin's short end under the board, the GND group to a GND pin.
- Twist the two link wires together with a GND wire, which helps the link work reliably.
- Bring the wires from the bay (the switch cable; the MOSFET's source and gate wires; the ADS1115's power, I2C and photodiode wires) up through the two holes in the shelf.
- Fit the shelf parts.
- Glue each board to two of its cradle's pads.
- Amplifier: in its brackets at the back right of the shelf, with a dab of glue.
- Put each module in its brackets. Trim any header pins sticking out underneath flush with the board, so the modules sit down flat.
- If your CC1101 has a coiled spring antenna, bend it to lie flat along the board: there is only about 6 mm of space above it.
- Line the dual-band antenna's tiny round plug up over the FireBeetle's U.FL socket and press straight down until it clicks. Never pull on the thin cable.
- Fit the lid parts.
- Screen: glue it at the edges of its board, never on the glass. Lights: a dab of glue each.
- Speaker: press it into its ring with its front (the cone side) against the lid, then glue all round its rim so sound can't leak round the sides.
- Photodiode: push it into its tube until its rim (flange) stops it. The dome should sit flush with the top of the lid.
- Microphone: put it in its brackets with its sound hole under the small holes in the lid. Put a ring of foam tape round the sound hole, so it picks up sound from outside the case.
- Lens finder: push the six LEDs into the collar, legs bent outward. Solder the resistors and the button wires. The lens finder button sits in its 7 mm hole in the left (-X) wall: tighten its nut.
- Leave 2-3 cm of extra wire on everything that goes to the lid, so the lid can lie open next to the base while you work.
- Wire the power.
- Slide heat-shrink over every joint that doesn't have it yet and shrink it.
- Check for a short: with no battery and no USB plugged in, put the multimeter on beep and touch one probe to the scanner's 3V3 and the other to GND. It must not beep steadily (a short chirp that stops at once is the boards' capacitors charging).
- Push the bridge's female jumper plug onto the header pin in the scanner's 3V3 hole.
- Sweep button: solder one leg to the C3's D9 and the other to GND. Fix it in its hole with its own nut.
- Check the battery's plug and the switch cable (step 3.1). Plug the battery into the switch cable, and the switch cable into the FireBeetle's battery socket. Click the switch off.
- Put the switch's button in the round hole in the far (+Y) wall and fix the switch there with hot glue, keeping glue off the button so it still clicks. Coil the spare cable flat in the space under the shelf, away from the AD8318's SMA socket, and check the shelf still sits flat on its ledge.
- Place the scanner's antenna flat against the inside of a side wall, using its sticky back. Keep it away from the GPS, the battery and the speaker's magnet.
- Switch on and test again. Click the switch on, connect the USB cable to the scanner, open the
setup page and click Connect.
- It worked if 4 Check it works shows "Bridge board: Talking", "SD card: OK" and a GPS reading, and one press of the sweep button turns sweep mode on and a second press turns it off again.
- Close the case. Fold the lid on, checking no wire is pinched. Put in the four screws and turn them until snug. Don't overtighten: the plastic posts strip easily.
6. Using it
- Charging: plug the USB-C cable into the scanner's socket with the switch on. (The switch sits between the battery and the scanner, so with it off the battery can't charge.) Never charge or power the bridge through its own USB socket while its 3V3 wire is on the scanner.
- Updating the firmware: the scanner updates over its own USB-C socket as in step 4. To update the bridge, open the case, switch off, pull the bridge's 3V3 jumper plug off the scanner first, then plug the bridge into USB. Push the plug back on after you unplug the USB.
- Sweep mode: press the sweep button, then move the Sweep slowly and close to surfaces. The RF power reading and the sub-GHz scan only run in sweep mode. The speaker ticks higher as the signal gets stronger. It tells you that something nearby is transmitting and roughly how strongly; it can't tell you what it is. Trackers that only send every few minutes are easy to miss. Press the button again to switch the AD8318 off and save battery. The ultrasonic check only runs when sweep mode is off.
- Never hold the sweep button while switching on. The bridge would start in download mode.
- Lens finder: point the lid towards the room, press the lens finder button, and look through the sight hole from the bottom of the case. Camera lenses send back a bright red glint.
- Cell-site simulators: the Sweep can only warn about these when the Rayhunter hotspot is switched on and in range.
- Getting the data out: take the microSD card out and put it in a computer. Then run
python tools/spy.py validateorconvert, or open the log in the viewer.
7. Record what you found
There are no photos of a real build yet. When you build one, please add photos of each stage to
docs/assembly/img/photos/ and link them here next to the matching drawing.
After the first build, update this guide and CLAUDE.md ("Hardware facts", "Status") with: the GPS baud,
any pin you had to move because of strapping pins, the MOSFET part that worked, the photodiode resistor
value, the AD8318 calibration, the Rayhunter row shape, your measured part sizes (put them into PARTS in
case.py), including the switch cable's switch, which way round your battery's plug was wired, whether
battery_mv matched the multimeter, whether the amplifier was loud enough at 3.3 V, holders that were too
tight or loose, and how long the battery lasted. Don't quote a detection
range until the range test in CLAUDE.md "Next steps" has been done.