# Hexapod

用 ESP32 和舵机驱动、可从网页操控的六足机器人。

A hexapod robot built with an ESP32 and hobby servos, and utilizes a svelte app to control it

用 ESP32 和舵机驱动、可从网页操控的六足机器人。

- id: runeharlyk-hexapod
- author: runeharlyk
- repository: https://github.com/runeharlyk/Hexapod
- license: MIT
- shape: robot
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/runeharlyk-hexapod/
- html_zh: https://esp32gallery.com/zh/projects/runeharlyk-hexapod/
- json: https://esp32gallery.com/data/catalog/projects/runeharlyk-hexapod.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
A six-legged walker built from the SmallpTsai printed design: eighteen MG92B servos split across two PCA9685 boards, an ESP32-S3 with camera on top, an MPU6050 and HMC5883L for orientation, two 18650 cells in a 2s2p pack and seven buck converters. The legs use a remixed thigh part that moves screws from the side to the top so assemblies come apart without cracking. A browser controller deployed from GitHub Pages sends protobuf over BLE and websockets and exposes calibration and network settings plus a visualisation. Building means PlatformIO for the filesystem image and then the firmware, or the browser flasher. A MuJoCo simulation with reinforcement learning training and sim-to-real policy export is included.
```

## 中文

```
按 SmallpTsai 的六足开源设计做的一台爬虫：十八个 MG92B 舵机分挂在两块 PCA9685 上，顶上是一块带摄像头的 ESP32-S3，姿态靠 MPU6050 加 HMC5883L，电源用两节 18650 组成 2s2p，再配七个降压模块。大腿零件被改成从顶部上螺丝的版本，拆装更容易，也不容易裂在原来的侧螺孔。遥控是一个部署在 GitHub Pages 上的 Svelte 网页，通过 BLE 和 WebSocket 发 protobuf，能调网络和标定参数，还带可视化。构建时先用 PlatformIO 传文件系统镜像，再传固件，也可以直接用浏览器刷。另附一套 MuJoCo 仿真，带强化学习训练和 sim-to-real 策略导出。
```
