# Mechadog

경비·산업안전 점검 4족 보행 로봇 — ESP32 온보드 안전 · Host PC 비전 추론·행동 FSM · FastAPI/WebSocket 관제

夜间巡逻和工厂安全巡检用的四足机器人：Hiwonder MechDog 的 ESP32 板负责走路和本地安全判断，Seeed XIAO ESP32S3 Sense 挂在上面出 VGA 画面，带独显的主机跑 YOLOX-S 认人…

- id: pjw-1-mechadog
- author: PJW-1
- repository: https://github.com/PJW-1/mechadog
- license: Apache-2.0
- shape: square
- scenes: art, tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/pjw-1-mechadog/
- html_zh: https://esp32gallery.com/zh/projects/pjw-1-mechadog/
- json: https://esp32gallery.com/data/catalog/projects/pjw-1-mechadog.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A four-legged patrol robot that takes one kind of judgement per run: night-guard mode checks people and badges, factory mode looks for fallen bodies, blocked paths and missing protective gear. Walking, obstacle stops and the failsafe live on the Hiwonder MechDog's ESP32 board; a Seeed XIAO ESP32S3 Sense streams VGA JPEG to a Windows machine with an RTX 3080, which runs YOLOX-S and a Qwen2-VL model and never trusts state echoed from the robot. Commands and telemetry run at 10 Hz, 600 ms without a fresh command latches the robot safe, and ultrasonic readings under 7 cm stop it. A LiDAR node on a second ESP32 handles localisation. A mock robot lets the dashboard run without the hardware.
```

## 中文

```
夜间巡逻和工厂安全巡检用的四足机器人：Hiwonder MechDog 的 ESP32 板负责走路和本地安全判断，Seeed XIAO ESP32S3 Sense 挂在上面出 VGA 画面，带独显的主机跑 YOLOX-S 认人，另有一块 ESP32 中继把 2D LiDAR 接进网络。机器人本身不做 AI 推理：链路断了、电压低了、超声波 7cm 内有东西，都由固件当场停住；命令 600ms 没续上就进安全锁定，只有人工能解。一次巡逻只走一种模式，守夜模式查人和证件，工厂模式看倒地、挡路和没戴护具，两种判断不混。看板是主机上的 FastAPI 页面，能远程急停。没有真机也能用 mock 机器人把界面跑起来，但要真跑需要这套四足平台和一台带 GPU 的 Windows 机器。
```
