Skip to content
darskkaaPublic

About

A $469 robot dog that searches a room on its own. Arduino UNO Q + Hiwonder MechDog, fully offline.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Seeker

Tests MIT license Python 3.11 and 3.12 Arduino UNO Q Qualcomm Dragonwing QRB2210 MicroPython 1.21 YOLO11n on ONNX Runtime No cloud PRs welcome

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.

On the real dog

The MechDog with the UNO Q and webcam on its back, walking across a garage floor during a search The dog's own camera during a search: it turns, finds a person lying on the floor, boxes them and walks in

11 Nov 2026, "find the person". Left is a phone video at 5x speed. Right is the dog's own camera from the same evening. It locked on at 92%, tagged the person as lying down and stopped 75 cm away. Four tries that night gave three finds and one miss.

The camera rides about 20 cm off the floor, so anyone standing within 7 m runs off the top of the frame. A box that sits low and is at least as wide as it is tall reads as a person down. Ask it to find someone hurt and it walks past everyone standing.

Two more runs, same code, 9 November:

Dog camera: searching for a backpack, locking on and walking in Dog camera: finding a bottle and walking into it
"find the backpack". Locked on at 33 s, walked in and stopped 12.5 cm from the bag. 61 seconds from order to handshake. "find the bottle". Found it, then bumped it. The stop rule waited for a big enough box, and a thin bottle never makes one. Fixed in code since, not re-run on the dog yet.

Snapshot saved by the dog: FOUND #1 PERSON DOWN 0.89 Snapshot saved by the dog when it found the bag Snapshot saved by the dog when it found the bottle
The snapshot the dog saves at each find, straight from its camera.

The control page

The control page during a simulated search: camera feed, 3D twin with two find markers, the plan search, approach, snapshot, alert, and latency numbers

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.

How it works

Order to planner on the UNO Q, camera to YOLO11n to tracker inside the search loop, walk commands over the dog's Wi-Fi to the MechDog

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:

  1. 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.
  2. Lock on after three sharp sightings in a row at 50% confidence or more.
  3. Walk straight in without stopping, steering on the target's offset in the frame. Sonar or the size of the box ends the walk.
  4. 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.

What breaks, and what it does about it

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.

Numbers from the real hardware

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.

Side experiment: which Wi-Fi band hears a trapped phone?

Simulation, 10x speed: the same dog hunting a hidden Wi-Fi transmitter at 2.4 GHz on the left and 5 GHz on the right

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.

Run it without the dog

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

Hardware

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:

  1. Precompile firmware/mechdog_esp32/main.py with mpy-cross 1.21.0 and upload it with config.py. Steps are in firmware/mechdog_esp32/README.md. The dog comes up as its own access point, MechDog_wifi, at 192.168.4.1.
  2. Check the link from a laptop on that network: python tools/dogctl.py ping, then python tools/dogctl.py move 30 0 --seconds 3.
  3. tools/unoq_join_dog_ap.sh puts the UNO Q on the dog's network. Copy brain/ to the board and start it with arduino-app-cli app start. brain/python/main.py picks the hardware backends; MECHDOG_* environment variables override them.
  4. Voice is optional. tools/unoq_voice_setup.sh installs Vosk for speech in and Piper for speech out. Without them the page falls back to the text box and the laptop's voice.

Repo layout

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.

Limits

  • 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.py before 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.

Credits

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.

About

A $469 robot dog that searches a room on its own. Arduino UNO Q + Hiwonder MechDog, fully offline.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages