# Cardboard Robot

用硬纸板、ESP32-S3 和 AI 语音构建的桌面机器人伙伴。

Cardboard desktop robot on ESP32-S3: AI chat (xiaozhi), persona engine, 52 expressions, NetEase music proxy with QR login, web console

用硬纸板、ESP32-S3 和 AI 语音构建的桌面机器人伙伴。

- id: han0519-desktop-robot-companion
- author: han0519
- repository: https://github.com/han0519/desktop-robot-companion
- license: MIT
- shape: robot
- scenes: ai, games, art
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/han0519-desktop-robot-companion/
- html_zh: https://esp32gallery.com/zh/projects/han0519-desktop-robot-companion/
- json: https://esp32gallery.com/data/catalog/projects/han0519-desktop-robot-companion.json

## Hardware

ESP32-S3. Verify the exact board revision, wiring and power requirements in the upstream build guide.

ESP32-S3；请在上游构建文档中核对具体板型、供电与接线。

## English

```
A cardboard-bodied desk robot built from an ESP32-S3-N16R8 and a pile of common modules: a 128x64 SSD1305 OLED as its face, two SG90 servos for turning and nodding, a WS2812 ring that pulses with the music, an INMP441 microphone, a MAX98357A amplifier, two TTP223 touch pads and two FC-51 infrared sensors that follow a hand. Conversation runs on the Xiaozhi protocol over WebSocket and Opus, woken by saying 你好小智; if the device is not yet activated on xiaozhi.me it scrolls a device code on screen. A persona engine tracks mood, energy, boredom and intimacy, and looks around on its own when idle. NetEase Cloud Music is reached directly, with AES/RSA/MD5 parameters computed on the device and a one-time QR login stored in NVS. ESP-IDF 5.5 builds it.
```

## 中文

```
用纸壳糊出来的桌面机器人，体内是 ESP32-S3-N16R8 加一堆常见模块：128x64 的 SSD1305 OLED 当脸，两只 SG90 舵机负责转头点头，WS2812 灯环跟音乐节奏亮，INMP441 收音、MAX98357A 放音，两个 TTP223 管摸头摸身，两个 FC-51 红外跟着手走。对话走小智协议，WebSocket 加 Opus，唤醒词是「你好小智」；设备没在 xiaozhi.me 激活时，表情屏会循环显示设备码。人格引擎记着心情、精力、无聊、亲密度四个量，空闲时自己张望、犯困。音乐默认直连网易云，AES/RSA/MD5 参数在设备上现算，扫码登录一次，登录态写进 NVS。固件用 ESP-IDF 5.5 编，网页控制台有八个子页面。
```
