33 / python sensor fusion
Arctic under-ice sensor node · simulated end to end, parts list ready
A node frozen into sea ice that listens for ships under it and checks what it hears
against what ships report over AIS. Its fusion layer, TrustFuse, scores each sensor's
health live, refuses to label sounds it has never heard, and reports BLIND
instead of all clear when the hydrophone ices over. It flags dark ships, fake AIS
tracks, spoofed positions and GNSS jamming or spoofing, and each report fits in one
340-byte Iridium satellite message. Built around the gap DND's Canadian Arctic Suite
of Sensors project describes. The results come from a simulator anchored to published
Arctic noise measurements; nothing has been in the water yet, and the repository says so.
- 10 / 10simulated dark ships found with 0 false alarms (naive fusion: 40)
- 5 / 5each of GNSS jamming, GNSS spoofing and spoofed AIS caught
- 100%of hydrophone faults reported as blind, not as an empty sea
How the hardware is used
- H1
- Hydrophone (Aquarian H2a)Hears propellers, ice and whales under the water
- U1
- Raspberry Pi 5Runs the sound classifier, the fusion engine and the power manager on the node
- U2
- 24-bit USB audio interfacePowers the hydrophone and digitises it with enough headroom for a ship passing close
- U3
- RTL-SDR at 162 MHzReceives AIS, the positions ships broadcast, to compare against what is heard
- U4
- u-blox NEO-M9N GNSSGives time and position, and its RF data shows when GPS is jammed or spoofed
- LS1
- Piezo disc and amplifierPlays a test tone into the water; when the tone vanishes, the hydrophone is iced
- BT1
- LiFePO4, heater and temperature probesKeep the battery warm enough to work and never charge it below 0 °C
- U5
- RockBLOCK Iridium modem (optional)Sends alerts by satellite where there is no cell signal
34 / c embedded
ESP32 plant monitor · simulated end to end in CI
An ESP32 with soil-moisture, light and temperature sensors wakes every 15 minutes,
buffers the reading in memory that survives deep sleep, and uploads hourly over MQTT
with per-device TLS certificates. A reading is forgotten only after the broker
acknowledges it, so a dead router loses nothing. The Go backend stores readings in
TimescaleDB and fits each pot's drying curve to warn a day before the soil
goes dry, through a free self-hosted push service. Drivers sit behind a hardware
abstraction layer; OTA updates check a SHA-256 and roll back if the new image
cannot publish. Nothing has run on a physical board yet, and the repository says so.
- 99.6%of 510 simulated dry spells warned 6+ hours ahead (plain threshold: after)
- 120 / 120readings delivered after a 30-hour Wi-Fi outage, none lost or doubled
- ~1 yearestimated on a 2000 mAh battery, from a cited power budget
How the hardware is used
- U1
- ESP32 board (FireBeetle 2)Wakes every 15 minutes, reads the sensors, buffers readings and uploads over MQTT with TLS
- P1
- Capacitive soil probeMeasures soil moisture; powered for only 100 ms per reading to save the battery
- U2
- BH1750 light sensorLight drives how fast a pot dries, so it feeds the forecast
- U3
- SHT31 air sensorTemperature and humidity tell hot-and-sunny drying apart from a fault
- BT1
- 2000 mAh LiPoRuns the node off-grid; the cited power budget puts it near a year per charge
35 / python computer vision
Drone's-eye camouflage check, visible and thermal · runs offline on a laptop, field demo written
Photograph a vehicle, tent or fighting position from where a scout or drone would see it,
box what you are hiding, and add a FLIR Lepton thermal frame if you have one. Nine
visible measurements (CIEDE2000 colour, colour mix, texture, straight edges, outline,
saliency, shine) feed a model fitted on real images, then the app names each
tell with a fix and estimates the range at which common drone cameras have
enough pixels to spot it. The model learned from camouflaged animals and everyday
salient objects, not military photos, and the thermal score is a rule rather than a
fitted model; the repository says both.
- 0.883ROC AUC, cross-validated on 978 real images with ground-truth masks
- 0.828AUC on a dataset it never trained on (COD10K)
- 100 → 22bundled sample: an exposed vehicle, then the same scene netted and cooled
How the hardware is used
- C1
- Phone or USB webcamTakes the visible photo from the observer's position
- C2
- FLIR Lepton 3.5 on a PureThermal boardStreams radiometric frames, a temperature for every pixel, so the app can say how far above the background the target runs
- U1
- LaptopRuns the analysis with no network, so it works in the field
36 / python sensor logging
Storage-climate record for every ammunition lot · demo on real Petawawa weather, logger firmware written
Propellant uses up its stabilizer faster when it is hot, but surveillance testing is
scheduled by calendar age. Cheap loggers in each magazine and container feed a server
that follows every lot through its moves, integrates the heat it has lived through
(Arrhenius kinetics, with gaps in logging counted against it), corrects itself to any
lab results, and ranks lots in issue order: least life left goes first. The
weather is real ERA5 history for CFB Petawawa; the storage sites, lots and lab results
are simulated from it, and the kinetic profiles are illustrative until replaced with
a propellant's own test data.
- 2xfaster ageing in an unshaded container than in a climate-controlled magazine, despite a colder average
- 33 hof 25 °C storage life used by one hour at the container's 48 °C peak
- OK → Overduetwo lab results move a 40 mm lot from 45 years left to past its threshold
How the hardware is used
- U1
- ESP32 boardWakes every 10 minutes, keeps up to 1,000 readings while Wi-Fi is down, posts them with its own token
- U2
- Sensirion SHT45Measures temperature to 0.1 °C and humidity, the two things that age propellant
- J1
- USB loggers (optional)Existing Elitech, Lascar or HOBO loggers work too: their CSV exports import as they are
- BT1
- 18650 cellDeep sleep between readings lets a node run off-grid in a magazine
37 / python flood sensing
Seepage and creep alarms for temporary flood walls · real 2019 Ottawa River levels, simulated wall
Sandbag walls built in a flood are watched by people walking them, and seeps start
between patrols. One node every 20 m measures moisture at the landward toe and the
lean of the wall. Each node learns its own segment's response to the river, then a
CUSUM flags moisture rising faster than the water explains, and the
inverse-velocity method forecasts when an accelerating lean will fail. Every
hour on the timeline uses only data up to that hour. The river is real Water Survey
of Canada data; the wall, sensors and failures are simulated.
- 219 / 219injected wall failures warned before breach across 200 simulated floods
- 23.8 hmedian warning before breach, time to move a section and bags
- 0.19%of healthy-wall hours with a false alarm, about one per two floods
How the hardware is used
- U1
- ESP32 boardReads both sensors every 10 minutes, buffers while offline, posts over a phone hotspot
- P1
- Capacitive soil probePushed into the landward toe where seepage shows first; powered only while reading
- U2
- ADXL345 accelerometerStrapped to a stake through the top course, so it leans when the wall does
- BT1
- 18650 cellRuns the node for a flood season without mains power
38 / python radio, receive only
Hear your command post the way the enemy does · synthetic captures, RTL-SDR demo written
A $40 receiver a kilometre out records what a command post radiates; EMCON Mirror
finds every emitter in the sweep, its power, airtime and schedule, estimates how far
a ground direction finder and a drone-borne receiver could detect it, and flags
phones and consumer radios that should not be on. Sliders show what cutting power,
traffic or the schedule would buy. It never transmits and never decodes content.
The accuracy figures come from simulated captures with known emitters; real
recordings are the next test, and the repository says so.
- 0false emitters in 200 captures; every emitter 20 dB above the noise found
- 1.3 dBmedian error estimating transmit power when the antenna height is known
- 92 → 20demo post's detectability by ground DF after four fixes; a drone still hears it
How the hardware is used
- U1
- RTL-SDR Blog V4Receives only: rtl_power sweeps the bands every 2 seconds and records the energy in each slice
- A1
- Dipole or discone antennaHears VHF nets, UHF links and phone uplinks from one spot
- U2
- LaptopRuns the analysis and the what-if sliders
- X1
- Two FRS walkie-talkiesPlay the command post's net in the demo, on licence-free channels
39 / python audio forensics
Deepfake voices on a radio net · measured on public datasets, FRS demo written
Telephone networks already screen for synthetic speech; nothing published covers
Codec2, analog FM or HF radio. Codec Ghost cuts a radio net into transmissions and
scores each one for a deepfake voice after it has passed through those channels,
then measures how badly a lab-grade detector holds up there. It never generates or
clones a voice: every spoofed clip comes from published anti-spoofing datasets.
- 21% → 47%a lab-grade detector's error rate, clean audio vs Codec2 radio; 50% is a coin toss
- 6 ptserror cut on Codec2 after fine-tuning with simulated radio channels in the loop
- 0–100%spoofs let through at one threshold, by channel: each net type needs its own
How the hardware is used
- U1
- RTL-SDR Blog V4Receives FRS channel 8 and hands the demodulated audio to the detector
- A1
- Telescopic dipoleArms set to about 15 cm, a quarter wave at 467 MHz
- X1
- Two FRS radiosStand in for the net; one plays the test clips on air
- U2
- LaptopRuns rtl_fm, the detector and the live dashboard
40 / python evidence custody
Ship tracks that stand up in court · replay demo runs, Pi build written
When a ship dumps oil or fishes illegally, AIS positions are often the main witness.
Evidence Grade signs each AIS message as it arrives, chains it to the last one, writes
it to an append-only log and anchors that log with third-party time-stamps. An
independent verifier then names the exact check and record that fail if anything was
altered. It is built toward the electronic-records rules in the Canada Evidence Act;
that is a design goal, not legal advice.
- 7 / 7tampering methods caught, from one edited record to a full rewrite by an insider holding the keys
- 16checks the verifier runs, each naming the record that fails
- 1 clickevidence packet per vessel: track, custody chain, results and method statement
How the hardware is used
- U1
- Raspberry Pi 5Receives, signs and logs every message; serves the verifier
- U2
- ATECC608B secure elementHolds the signing key so it cannot be copied off the receiver
- U3
- u-blox GNSS with PPSGives a trusted clock to check every time-stamp against
- U4
- RTL-SDR or dAISyReceives AIS at 162 MHz; the SDR also keeps raw IQ for an expert to re-check
41 / python radio, receive only
GNSS jamming map from aircraft broadcasts · simulated traffic, receiver build written
Airliners report in their ADS-B broadcasts how sure they are of their own position, and
that number drops when GPS is jammed. JamWatch reads it from a 1090 MHz receiver, gives
each aircraft one vote per map cell, learns and drops aircraft whose avionics always
report low, and only colours a cell red when a Beta-binomial test is confident. It then
places the jammer from who was hit at which altitude, since a ground jammer reaches
an airliner far further than a light aircraft, and checks for spoofing. Receive only.
The traffic and jammers are simulated; the repository says so.
- 0 vs 103false red cells per jammer-free scenario, against the usual 10% rule
- 3.8 kmmedian error placing a jammer (averaging the bad reports: 27.1 km)
- 99.5%of teleport-style spoofed aircraft caught; slow drag-off only 39%, stated as the limit
How the hardware is used
- U1
- FlightAware Pro Stick PlusReceives 1090 MHz ADS-B through its built-in filter and amplifier
- A1
- 1090 MHz outdoor antenna and arrestorHeight sets range: every metre up adds aircraft at the horizon
- U2
- Raspberry Pi 5Runs readsb and the map, rewritten every 5 minutes as GeoJSON
- U3
- u-blox NEO-M9N GNSSThe ground node: its own jamming indicator confirms what the aircraft show
42 / python acoustic sensing
Passive drone detection on rooftops · simulated fly-bys, node build and ESP32 firmware written
Each rooftop node hears a drone three ways: its Remote ID broadcast, a jump in Wi-Fi
traffic on one channel (counted, never read), and the ladder of tones its propellers
make. Evidence adds up second by second, so a busy phone hotspot alone can never raise
an alert, engines and rooftop air-conditioners are learned and ignored, and a drone
whose sound comes from a different direction than its broadcast claims is flagged as a
Remote ID mismatch. Nodes share detections over LoRa to cross bearings. It never
interferes with a drone. The audio is simulated; the repository says so.
- 67% vs 50%of 48 simulated fly-bys caught, fused against the best single sensor
- 0false alerts in 20 drone-free minutes with an air-conditioner, mower, birds and a hotspot
- ~100 mrotor-sound range in city noise, the stated limit of one node
How the hardware is used
- MK1
- ReSpeaker USB 4-mic arrayHears the rotor harmonics and gives their bearing from four raw microphone channels
- U1
- ESP32-C3Receives Remote ID broadcasts over Bluetooth and Wi-Fi Beacon
- U2
- ESP32-S3Counts Wi-Fi frames per channel, never their contents
- U3
- Raspberry Pi 5Fuses the three once a second and logs every decision
- U4
- RFM95W LoRa radioShares 24-byte detections with other roofs to cross bearings
43 / python supply-chain provenance
Tags that prove a part is genuine · NXP test vectors matched, simulated supply chain, station build written
Each part carries an NTAG 424 DNA tag that writes a fresh, AES-signed URL every time it
is read, with keys that never leave the chip. A Raspberry Pi reader station checks that
message and its read counter, then the part's custody record: where it was made and every
hand-over since, each event hash-chained and signed with a key held in an ATECC608 secure
element. It catches cloned tags, replayed URLs, edited or rolled-back records and
genuine tags moved onto fakes. Two attacks still get through, and the benchmark measures
them. The cryptography matches NXP's published examples; the supply chain is simulated,
and the repository says so.
- 100% vs 6.7%of 3,750 simulated attacks caught, against a UID allow-list
- 0 / 9,786genuine scans wrongly rejected
- 8 / 8NXP AN12196 worked examples matched byte for byte
How the hardware is used
- U1
- Raspberry Pi 5Runs the reader station, keeps the custody records and checks every tap
- U2
- PN532 NFC readerReads each tag's signed URL over I2C
- U3
- ATECC608 secure elementMakes and keeps the station's P-256 signing key; the key never leaves the chip
- U4
- SSD1306 OLEDShows PASS or FAIL, and why, to the person holding the part
- T1
- NTAG 424 DNA tagsOne per part; each signs every read with its own AES key and a counter
44 / python early warning
Solar fire and flash-flood post · real air and stream data, simulated fires, firmware compiles
A solar post with a thermal camera on a hillside, a particle sensor in the air and an
ultrasonic probe over a creek, reporting every 5 minutes over LoRa. Each pixel learns
what it normally reads at that time of day, so a rock that bakes every afternoon is not
news but a hotspot that stays and grows is. Smoke is judged against neighbouring nodes,
so regional wildfire haze cancels out. Every alert says why it fired. The air
comes from real 2023 Toronto smoke-season data and the creek levels are real; the fires
are simulated, and the repository says so. It was never tested with real fire.
- 26 / 26simulated hillside fires caught, a median 15 minutes after ignition (hot-pixel rule: 30)
- 0.15 vs 0.98false heat alerts per camera-day on clear days, against a 60 C hottest-pixel rule
- 1.45 to 0.36false smoke alerts per node-day on real wildfire-haze days, against a 35 ug/m3 rule
How the hardware is used
- U1
- ESP32-S3 FeatherWakes every 5 minutes, reads the sensors, sends the report and sleeps
- U2
- MLX90640 thermal cameraA 32 by 24 heat picture of the slope; stays on so its readings stay stable
- U3
- SPS30 particle sensorMeasures PM2.5 for 30 seconds each cycle to smell smoke
- U4
- JSN-SR04T ultrasonic probeWaterproof; measures the distance down to the water to catch a fast rise
- U5
- RFM95W LoRa radioSends the 26-byte report and a coarse heat frame to the gateway at 915 MHz
- U6
- bq24074 solar chargerCharges a 6600 mAh pack from a 6 V panel; 8 days with no sun
45 / python ground monitoring
Thaw and ground-movement watch for northern runways · real ECCC weather, simulated ground, parts list ready
A solar node at the edge of a runway reads five temperature probes buried down to 2 m and
an inclinometer on a post, sends one 29-byte LoRa packet an hour, and sleeps in between.
The server works out how deep the ground has thawed between the probes, forecasts the
season's deepest thaw with the Stefan equation, catches frost heave and thaw
settlement in the tilt after correcting for temperature, and drops probes that have
disconnected, stuck or drifted. The air temperatures are 22 years of real Inuvik and
Iqaluit records; the ground under them is a heat-conduction simulator, nothing has been
buried yet, and the repository says so.
- 3.2 cm vs 23.1 cmdaily thaw-depth error, against reading the deepest warm probe
- 110 / 110simulated heave and settlement events caught, median 4 days, 0 false alarms (0.5 degree threshold: 75)
- 13.3 cm vs 68.8 cmerror forecasting the season's deepest thaw from 15 July
How the hardware is used
- U1
- ESP32-S3 PowerFeather V2Wakes once an hour, reads everything, sends, then cuts power to the sensors and sleeps
- U2
- RFM95W LoRa radio, 915 MHzSends the 29-byte reading to a gateway; buried in the canister because it is only rated to -20 C
- U3
- Murata SCA3300 inclinometerSits on the post and measures tilt to a few thousandths of a degree as the ground heaves or settles
- T1–T5
- DS18B20 probes at 0.25 to 2.0 mGive the temperature profile that locates the thaw front
- BT1
- LiFePO4 cell with a 103AT thermistorRuns about 480 mAh a year; the charger refuses to charge it below 0 C
- PV1
- 6 V solar panelTops the cell up in summers when the canister thaws