Demo · How it works · Run it · Hardware · Limits
Seeker is a palm-sized robot dog that searches a room for whatever you tell it to find. You type or say "find the person", and an Arduino UNO Q strapped to a Hiwonder MechDog does the rest: it turns in place and looks, locks on, walks up to the target, stops short and says what it found. Detection, planning and control all run on the board. The only network is the dog's own Wi-Fi.
It started as a proof of concept for the first look into a collapsed building, the job search teams do today with people and dogs, one gap at a time. A Boston Dynamics Spot launched at $74,500. This costs $469 in parts.
Two more runs, same code, 9 November:
The snapshot the dog saves at each find, straight from its camera.
The board serves this page on port 8080. It shows the dog's camera with boxes drawn on, a 3D twin of the dog placing each find where it happened, the plan the order turned into, the run timeline, loop and link latency, and a large e-stop. This capture is from the simulator, which is why the camera shows a test pattern.
The planner is keyword rules, on purpose. A language model can read the same sentence two ways on two runs, and a search should not depend on that. We tried a small one on the board (Qwen3-0.6B through llama.cpp): the first request took 28 s against a 15 s timeout, so the keyword planner took over every time. The LLM path is still in agent/planner.py and is off by default.
From there the search loop does four things:
- Look around in small turns, trusting only frames taken after the body stops shaking. Every frame right after a stop is blurred for about a second.
- Lock on after three sharp sightings in a row at 50% confidence or more.
- Walk straight in without stopping, steering on the target's offset in the frame. Sonar or the size of the box ends the walk.
- Save a snapshot, say what it found and mark it on the twin.
YOLO11n often calls a backpack a suitcase, so the tracker treats backpack, handbag and suitcase as one class.
| Fault | What happens |
|---|---|
| Wi-Fi drops | The dog stops itself 1.5 s after the last command, so a dead link never leaves it walking. The board holds the search and reconnects. Back within 20 s, the search carries on. Otherwise it stands down and says why. |
| Camera dies or blurs out | Vision health drops from VISION_OK to DEGRADED to BLIND. Blind, it walks slower on IMU and sonar alone, still stops for walls and never claims a find. |
| Dog powers off | The board keeps running and calls off the search after 20 s. |
| Mission loop hangs | Moves are a 1 s lease. If the loop stalls, the heartbeat thread sends stop itself. |
| Battery under 6.6 V | The dog refuses to walk or run actions. |
| Dog falls over | Roll or pitch past 50° stops it until it is back under 30°. |
Each row has a fault-injection test against the simulated dog. The dog-off case was also measured on the real board: the old build froze 39 times in 5 minutes, the new one not once in 94 seconds.
| Measured | What changed because of it | |
|---|---|---|
| Turn rate | 8.6°/s (a full circle took 42 s) | The "360°" look-around had only been turning about 124°. Scans now use the measured rate. |
| Detection | YOLO11n at 416 px, about 0.35 s a frame, all four A53 cores busy | Runs on its own thread so the control loop never waits on it. |
| Wi-Fi round trip | 15 ms median on the dog's AP | The dog's lwIP ignores TCP_NODELAY, so the brain re-arms TCP_QUICKACK after every read. That took p50 from 49 ms to 15 ms. |
| ESP32 free heap | 0.8 KB with the AP up | Compiling the bridge on the dog ate the Wi-Fi buffers. Precompiled with mpy-cross, 64 KB stays free. |
| Camera blur | About 1 s after every stop | Decisions only use sharp frames. Once locked on, it walks in without stopping. |
A camera needs light and line of sight. A trapped person's phone keeps transmitting Wi-Fi. This is a simulation, not a measurement: same room, same code and the same -75 dBm interference, with a spinning antenna taking bearings on a hidden transmitter behind concrete. Path loss follows the ITU-R indoor, wall and diffraction models. In this one run, 2.4 GHz found it in 62.4 s against 81.6 s for 5 GHz, with a mean bearing error of 3.4° against 12.9°. One layout, one run, so it is a single data point. The RF simulator is not in this repo yet.
The whole stack runs on a laptop against a simulator that speaks the same protocol as the firmware.
pip install numpy opencv-python onnxruntime pytest
python -m pytest tests -q
cd brain/python
python -m mechdog_brain --sim --mode search --planner keyword
# open http://localhost:8080 and type "find the object"--sim brings up the simulated dog, a synthetic camera, a mock detector and mock sensors. A few more:
# a wall 1.2 m ahead, and a target that is only visible when the dog faces 135°
python -m mechdog_brain --sim --mode search --sim-wall 120 --sim-hidden-target 135
# scripted faults: hot spot, blur, camera blackout, Wi-Fi drop, then a report
python -m mechdog_brain --sim --stress
# the real detector on a webcam
python tools/export_model.py --weights yolo11n.pt --out models/yolo11n.onnx
python -m mechdog_brain --sim --detector onnx --model models/yolo11n.onnx --camera opencv --device 0
# 20 headless search trials with random layouts (simulated, not real-world success rates)
python tools/sim_trials.py --n 20 --seed 1 --out logs/sim| Part | Price |
|---|---|
| Arduino UNO Q, 4 GB (Qualcomm Dragonwing QRB2210 + STM32U585) | $79.00 |
| Hiwonder MechDog, standard kit | $349.99 |
| Logitech Brio 105 webcam | $39.99 |
| Total | $468.98 |
Plus a USB-C hub and a power bank for the board. List prices, so anyone can check the total. Our MechDog was a $129 eBay find.
Bring-up on the real thing:
- Precompile
firmware/mechdog_esp32/main.pywithmpy-cross1.21.0 and upload it withconfig.py. Steps are infirmware/mechdog_esp32/README.md. The dog comes up as its own access point,MechDog_wifi, at 192.168.4.1. - Check the link from a laptop on that network:
python tools/dogctl.py ping, thenpython tools/dogctl.py move 30 0 --seconds 3. tools/unoq_join_dog_ap.shputs the UNO Q on the dog's network. Copybrain/to the board and start it witharduino-app-cli app start.brain/python/main.pypicks the hardware backends;MECHDOG_*environment variables override them.- Voice is optional.
tools/unoq_voice_setup.shinstalls Vosk for speech in and Piper for speech out. Without them the page falls back to the text box and the laptop's voice.
brain/
app.yaml Arduino App Lab manifest
sketch/sketch.ino STM32 side: Modulino sensors, lights and buzzer over the Bridge
python/main.py App Lab entry point, hardware backends
python/mechdog_brain/
link.py TCP link to the dog: heartbeat, motion lease, telemetry, RTT
perception/ camera (opencv, brick, image, synthetic), detector (onnx, brick, mock), vision health
patrol/ mission state machine, search tracker, person-down rule
agent/ planner (keyword, optional LLM), speech in and out
reliability/ vision fallback states, terrain classifier
fusion/ sensors/ hazard and anomaly scoring, Modulino readings
telemetry/ report/ latency percentiles, JSONL logs, run reports
dashboard/ control page: stdlib HTTP server, three.js twin, no build step
firmware/mechdog_esp32/ MicroPython bridge on the dog (Hiwonder's motion library underneath)
sim/ protocol-exact MechDog simulator and test harness
tools/ dogctl, model export and benchmarks, trial reports, board setup scripts
tests/ pytest suite, including the firmware bridge run under CPython
docs/ ARCHITECTURE.md, PROTOCOL.md
The wire protocol is newline-delimited JSON over TCP port 5005, written up in docs/PROTOCOL.md. docs/ARCHITECTURE.md covers the safety layers and the fallback state machine.
- Detection runs on the Arm CPU. The Adreno 702 GPU is not used yet.
- No map. Routes are dead-reckoned from step timing, and the only range sensor is one forward ultrasonic.
- Three finds out of four on the person runs is a handful of tries, not a success rate.
- The terrain classifier ships with centroids fitted to simulator data. Refit it on real logs with
tools/train_terrain.pybefore trusting it. - Power draw has not been measured.
- It is a small hobby-kit dog. It does not climb rubble.
Next on the list: a thermal camera for smoke and darkness, LiDAR for a real map, detection on the GPU, and a few dogs sharing one map. What it needs most is time with people who search collapsed buildings for a living.
Built by Adil and Joshua. Released under the MIT license; contributions are welcome, see CONTRIBUTING.md. The 3D twin uses three.js (MIT, vendored). Detection uses Ultralytics YOLO11n weights exported to ONNX; check their license before reusing the model.





