A sound trap is to sound what a camera trap is to images: a weatherproof box left in the field for weeks that records, and UTC-dates, the sounds animals make near it — from sub-bass megafauna rumbles (23.4 Hz) and wind-swept bird choruses to katydids, rare nocturnal specialists, and ultrasonic bats (92 kHz).
3D CAD overview (170 × 83 × 175 mm): rain-shedding closed front, open interior with 6× AA holders and PCB, dual underside windscreened microphones + self-test sounder + side GORE PolyVent, and sealed lid with silica desiccant and humidity card.
- Global all-taxa coverage (
23.4 Hz–92 kHz): Six switchableCONFIG.TXTpresets span infrasound/megafauna (low_freq), general wildlife (broadband), flying insects and sustained choruses (insects), echolocating bats (ultrasound), cryptic/endangered nocturnal species (rare/conservation), and full canopy surveys (expedition/canopy). Multi-constellation GNSS ($GP,$GN,$GA,$GL,$BD) timestamps WAV files anywhere on Earth. - Field endurance & battery safety: Calculated
~115 daysin triggered mode (10 %activity) or147 dayscontinuous listening at48 kHz(5.98 mWaverage on the3.0 Vrail) from6×1.5 VEnergizer Ultimate LithiumL91AA cells (-40 °Cto+60 °Coperating envelope; redundant dual3Sbanks with Schottky OR-ing). SAFETY WARNING: ONLY fit nominal1.5 VL91cells — NEVER install3.6 VLi-SOCl2AA cells, whose10.8 Vopen-circuit stack exceeds theTPS628406.5 Vabsolute maximum rating. - Zero-solder 12+ DIY build: Keyed poka-yoke plug-in harnesses (unique pin count per cable so nothing can plug into the wrong socket), press-in M3 square-nut slots, no heat-set inserts, no knife trimming, and internal USB-C ROM DFU (no external programmer). Printable on a
180 × 180 × 180 mmPETG bed (mechanical/out/stl_diy/);$261.37 USDsingle-unit BOM (docs/bom.csv, excluding cells & SD card). - Honest prototype status: Complete verified software, FatFs E2E tests, Cortex-M33 QEMU cycle profiling, schematic netlist/ERC, 40-check parametric CAD, and real-audio validation. NOT TESTED ON HARDWARE — no physical PCB or enclosure has been fabricated or IP67/cold-chamber tested yet.
Configure via a one-line CONFIG.TXT on the SD card (or click through the offline docs/studio.html builder):
| Preset | Sample rate | Detector passband | absorb_after_s |
Target wildlife & ecosystems |
|---|---|---|---|---|
broadband (default, all) |
48 kHz |
200 Hz–20 kHz (100 Hz fine) |
20 s |
Birds, frogs, temperate/tropical mammals, general monitoring |
low_freq |
48 kHz |
25 Hz–12 kHz (23.4 Hz resolved) |
30 s |
Elephants, lions, red deer stags, bitterns, sub-bass rumbles |
insects |
96 kHz |
100 Hz–44 kHz (100 Hz fine) |
0 (never absorb) |
Crickets, katydids, cicadas, insect wingbeats & endless choruses |
ultrasound |
192 kHz |
10 kHz–92 kHz (fine = 0) |
10 s |
Echolocating microbats & ultrasonic bushcrickets |
rare (conservation) |
96 kHz |
25 Hz–44 kHz (23.4 Hz resolved) |
0 (never absorb) |
Shy, cryptic, endangered terrestrial/nocturnal/ground wildlife |
expedition (canopy) |
192 kHz |
1.2 kHz–92 kHz (fine = 0) |
0 (never absorb) |
Tropical canopy & cave surveys from stridulating insects to high bats |
| Document | What it covers |
|---|---|
| docs/diy-guide.md | Illustrated 10-step beginner build guide: zero soldering, zero heat-set inserts, zero knife trimming, zero external programmer, keyed plug-in connectors, and SD prep. |
| docs/studio.html | 100%-offline single-file Sound Trap Studio: point-and-click CONFIG.TXT builder (6 global/conservation presets), endurance estimator, EVENTS.CSV / WAV spectrogram viewer, 4× sub-bass boost & 1/10× ultrasonic bat slow-mo, and LED decoder. |
| docs/hardware.md | System overview, component selection, power/storage budget (tools/power_budget.py), enclosure summary, cost, and hardware verification plan. |
| docs/electronics-connections.md | Pin-by-pin schematic netlist for the STM32U575RIT6Q, SMPS, microphones, keyed plug-in connectors, internal USB-C DFU, ESD/reverse-polarity protection, and ERC notes. |
| docs/bom.csv | Complete 58-line single-unit prototype bill of materials ($261.37 USD excl. cells & SD card) with source checks, plug-in harnesses, and industrial MPNs. |
| docs/mechanical.md | Parametric build123d 3D enclosure CAD model (mechanical/), 40 geometric/clearance checks, STEP/STL exports, and zero-insert beginner PETG kit (out/stl_diy/). |
| docs/processor-load.md | Instruction-level Cortex-M33 QEMU load profiling (46.6 MHz mid eq. at 98.304 MHz for 48 kHz, plus 96/192 kHz profiles at 147.456 MHz, CPI 1.16–1.45) and battery impact. |
| docs/software.md | Portable C99 detector/recorder architecture, six global/conservation presets (broadband, low_freq, insects, ultrasound, rare, expedition), absorb_after_s = 0, SD card layout (EVENTS.CSV, STATUS.CSV, WAV), and simulator. |
| docs/firmware-port.md | Application state machine, host/FatFs E2E test suite, STM32U575 HAL drivers, 64 KB SD-card bootloader, and unbuilt-silicon boundary. |
| docs/validation-report.md | Real-recording validation across public wildlife, weather, rare/niche creatures, and bat archives: methodology, results, and limits. |
| docs/field-guide.md | Field installation, magnet status checks, maintenance, card readout, FIRMWARE.BIN updates, and troubleshooting. |
Every mechanical part, acoustic port, silicone compression seal, and plug-in harness is modeled parametrically in mechanical/ (49 solids / 30 distinct parts, 40/40 checks) and cross-checked by tools/verify_electronics.py.
Exploded assembly along the lid, main body, tree mount, underside acoustic ports, and rain roof axes (docs/mechanical.md).
Plug-and-play beginner assembly: 2-wire Wago L91 battery clamps (J3/J4), 4-pin primary/spare MEMS microphone cables (J6/J7), 3-pin piezo test-sounder cable (J5), and internal USB-C DFU setup (J8) (docs/diy-guide.md).
System block diagram: STM32U575RIT6Q MCU (ADF1 + SDMMC1 + internal SMPS), TPS62840DLCR 3.0 V regulator, dual IP57 IM72D128 PDM microphones, daily PKLCS1212E40A1-R1 self-test sounder, load-switched SD socket, RV-3032-C7 TCXO RTC + supercap, MAX-M10S multi-GNSS, SHT40 humidity/temp, and DRV5032FBDBZR magnet wake (docs/hardware.md).
Scaled front, left tree-mounted profile, and bottom views showing the 25 mm drip-rimmed acoustic windscreens, GORE PolyVent, translucent side status LED windows, and mounting strap slots.
| Underside IPx8 acoustic port & bayonet windscreen | Lid silicone gasket stop (30 % squeeze) & tree mount |
|---|---|
![]() |
![]() |
Rather than tripping on raw volume (which fills cards during wind gusts and rainstorms), the portable C99 detector (firmware/core/) runs three parallel tests ~190 times per second after click limiting and adaptive per-bin background tracking:
- Spectral CFAR + continuity — detects tonal whistles, harmonic calls, and wide trills/buzzes standing out from simultaneous neighbouring frequency bins.
- Fine
2048-point sub-bass tracker (23.4–300 Hz) — two-stage rate-adaptive decimation isolates close low-frequency harmonics (elephants, lions, stags, owls) while rejecting broadband wind and thunder slopes. - Time-domain click/rhythm detector — catches woodpeckers, insect stridulation pulses, and bat echolocation trains while rejecting random raindrop impacts.
Unmodified windy woodland recordings: red trigger marks lock onto real birdsong and stay silent across wind gusts alone (docs/validation-report.md).
Simulated 2-hour weather progression (calm -> wind -> wind & rain -> heavy rain -> thunderstorm -> calm): the CFAR detector records 14 % of the timeline (catching real calls down to -10 dB SNR) while fixed +12 dB / +18 dB loudness triggers flood to 59 % / 38 %.
Six real animal calls buried -5 dB quieter than heavy weather noise: eagle owl in gusting wind, robin in heavy rain + thunder, midwife toad in heavy rain, red deer stag in blustery rain, lion in a snow storm, and crane in torrential rain.
Recall across 12 uncompressed public weather recordings (95 % at 0 dB SNR, 97 % at +5 dB, 99 % at +10 dB).
- Portable core & application (
firmware/core,firmware/app): Written in strict C99, statically analysed (clang --analyze, zero warnings), and verified under ASan + UBSan across 233 core checks, 343 app scenario checks, 125 multi-day checks, and 66 real 36 MB FAT32 RAM-disk E2E checks (includingFIRMWARE.BIN -> .OLD/.BAD), plus56,432core stress checks and1,443FatFs/long app stress checks (tools/stress_test.py). Supports worldwide GNSS constellations ($GP/$GN/$GA/$GL/$BD),-40 °Cto+60 °CL91 deployments (overtempabove55 °C), and six global presets (broadband,low_freqdown to23.4 Hz,insectsat96 kHzwithabsorb_after_s = 0,ultrasoundat192 kHz,rare/conservationat96 kHz23.4 Hz–44 kHzwithabsorb_after_s = 0, andexpedition/canopyat192 kHz1.2–92 kHzwithabsorb_after_s = 0). Validated offline across all taxa, weather beds, and 16 rare/niche creature archetypes (validation/run_global_taxa.py,validation/verify_detect_anything.py). - STM32U575 target & bootloader (
firmware/target/stm32u575): Full HAL drivers with dynamic98.304 / 147.456 MHzclock scaling and24..192 kHzADF1configuration (192 kHzMDF_RSF_DECIMATION_RATIO_1to confirm on silicon),37/37ST open-pin verification (verify_pins.py, including internalUSB_OTG_FSPA11/PA12ROM DFU), CMSIS-DSP Cortex-M33 QEMU load profiling (firmware/target/loadtest, includingrare_96kat90.75/147.456 MHzandexpedition_192kat117.20/147.456 MHz), 64 KB SD-card bootloader (boot.elf,39.1 KB), and main application (soundtrap.elf,159.7 KBFlash /531.9 KBRAM) plus signed/CRCFIRMWARE.BIN. NOT TESTED ON HARDWARE — no PCB has been fabricated yet. - Electronics & mechanics (
docs/bom.csv,mechanical/): Complete schematic connection list verified bytools/verify_electronics.py, and parametricbuild123dCAD model (49solids /30distinct parts) passing40/40geometric/assembly checks with exported STEP (30parts +assembly.step), STL (7SLS/heat-set insert parts inout/stl/), and zero-insert beginner PETG STL kit (8parts incl.diy_assembly_jig.stlinout/stl_diy/, fitting a180 × 180 × 180 mmbed). No physical prototype has been built or IP67/cold-chamber tested.
docs/ documentation, offline studio.html configurator/player, BOM (bom.csv), and generated figures/
firmware/ portable C99 core, host simulator, app + FatFs E2E tests, STM32U575 HAL + bootloader, QEMU loadtest
mechanical/ parametric build123d CAD scripts, checks, exports (out/step, out/stl, out/stl_diy), and renders
tools/ ERC/BOM checker (verify_electronics.py), SD prep (prepare_sd.py), power budget, diagrammer, FIRMWARE.BIN packer, master verify_all.py
validation/ scripts that fetch archives and run detector validation suites
data/ cached recordings and test audio (large; generated/downloaded once)
Run the 12-check master verification suite (checks electronics/BOM, core & app/FatFs tests, Clang analyzer, Docker STM32U575 bootloader + app + FIRMWARE.BIN, QEMU loadtest SHA sync, global & all-taxa detection matrices, mechanical 40/40 checks + STEP/STL/PNG assets, beginner DIY tools, repo hygiene, and the 5-stage system stress suite):
.venv/bin/python tools/verify_all.pyOr run subsystems individually:
make -C firmware test stress
make -C firmware/app test stress
mechanical/.venv/bin/python mechanical/checks.py
.venv/bin/python tools/stress_test.pyThe validation needs Python with numpy, scipy, matplotlib and soundfile, and ffmpeg for converting audio. The first script downloads about 2.4 GB of recordings from Wikimedia Commons, xeno-canto, the ESC-50 dataset and the freefield1010 dataset. It takes about an hour, because Wikimedia Commons limits the download rate.
python validation/fetch_data.py.venv/bin/python validation/run_global_taxa.py
.venv/bin/python validation/verify_detect_anything.pypython validation/run_final.pyThe file data/SOURCES.csv lists every recording with its author, licence and web page. The recordings are under Creative Commons licences; several require attribution, and the ESC-50 clips do not allow commercial use. They are used here for testing only and are not part of the device.










