Drivers and actuators

ESP-Hi: ESP32-C3 Ultra-Low-Cost AI Chat Robot Dog

An ESP32-C3 based ultra-low-cost AI chat robot dog supporting multiple LLM conversations, motion wake-up, color expression display, and a dozen pre-programmed actions.

Drivers and actuators AIrobot dogservodisplaymicrophonespeaker ESP32-C3

Official path: https://oshwhub.com/esp-college/esp-hi

01 Overview

ESP-Hi is a low-cost AI chat robot dog built around the ESP32-C3, targeting education and maker projects.

It captures voice via a microphone, connects to multiple large language models over Wi-Fi for conversation, and plays replies through a speaker while showing expressions on a color display.

Motion wake-up: clap or specific gestures trigger conversation without pressing buttons.

A dozen pre-programmed actions are included, such as walking, sitting, tail wagging, for quick demos and further development.

This is not a finished toy but a programmable hardware platform; users need to configure Wi-Fi and LLM API themselves.

Ideal for STEM education, AI interaction prototypes, and robotics hobbyists.

02 Hardware

  • MCU: ESP32-C3, RISC-V single-core, Wi-Fi/BLE, handles audio processing, motion control, and cloud communication.
  • Power: Battery-powered, boosted to 5V for servos via SX1308; logic at 3.3V. See schematic for exact voltages.
  • Servos: 4 servos drive leg movements, PWM controlled; mind peak current and decoupling.
  • Display: ST7789 color LCD, SPI interface for expressions and status.
  • Microphone: Analog mic, sampled via ADC; light-blocking and noise-reducing structure required to lower pickup noise.
  • Speaker: Audio via I2S or DAC; see schematic for interface.
  • Connectors: USB for flashing/debugging, battery, servo, display FPC; see schematic.
  • Assembly notes: Antenna near shell; insert left and top edges first, flex shell to seat USB. Use alignment jig for screen gluing.

03 Software flow

1. Flash ESP32-C3 firmware over USB; confirm serial log before connecting mic, display, and servos.

2. Configure Wi-Fi; put LLM API endpoint in config, keep keys on machine, not in repo.

3. Initialize peripherals: ADC mic, SPI display, PWM servos, I2S speaker.

4. Main loop: capture audio, detect wake word or motion trigger.

5. On trigger, record audio, send to LLM via Wi-Fi, get reply text.

6. Synthesize speech (or use TTS service), play via speaker.

7. Update display expression based on state, optionally execute actions.

8. Error handling: retry on network failure, low battery warning, servo timeout protection.

04 Core points

ESP32-C3 has limited resources; optimize audio processing to avoid blocking servo control during LLM requests.

Assembly order affects antenna performance and mic noise; follow instructions strictly.

Servo PWM timing must be stable; avoid conflicts with Wi-Fi interrupts.

Never commit LLM keys to firmware repo; store in config or secure storage.

Action table is key for customization; edit it to add new moves without rewriting drivers.

Different ESP32 chips have different ADC/PWM characteristics; recalibrate when porting.

中文

驱动与执行

ESP-Hi:ESP32-C3 超低成本 AI 对话机器狗

基于 ESP32-C3 的超低成本 AI 对话机器狗,支持多种大模型 AI 对话、动作唤醒、彩色表情显示和十数种预编程动作。

驱动与执行 AIrobot dogservodisplaymicrophonespeaker ESP32-C3

官方路径: https://oshwhub.com/esp-college/esp-hi

01 项目概述

ESP-Hi 是一款以 ESP32-C3 为核心的低成本 AI 对话机器狗,面向教育和创客场景。

它通过麦克风拾取语音,经 Wi-Fi 连接多种大模型进行对话,并以扬声器播放回复,同时用彩色屏幕显示表情。

支持动作唤醒:拍手或特定动作触发对话,无需按键。

内置十数种预编程动作,如行走、坐下、摇尾巴等,便于快速演示和二次开发。

这不是玩具成品,而是可编程的硬件平台;用户需自行配置 Wi-Fi 和大模型 API。

适用于 STEM 教育、AI 交互原型和机器人爱好者实验。

02 项目硬件描述

  • 主控: ESP32-C3,RISC-V 单核,支持 Wi-Fi/BLE,负责语音处理、动作控制和云端通信。
  • 电源: 电池供电,经 SX1308 升压至 5V 为舵机供电,逻辑电压 3.3V;具体电压见原理图。
  • 舵机: 4 个舵机驱动腿部动作,PWM 控制,注意舵机电流峰值和电源去耦。
  • 显示屏: ST7789 彩色 LCD,通过 SPI 接口显示表情和状态。
  • 麦克风: 模拟麦克风,经 ADC 采样,需遮光消噪结构降低拾音噪声。
  • 扬声器: 通过 I2S 或 DAC 播放音频,具体接口见原理图。
  • 连接器: USB 用于烧录和调试,电池接口、舵机接口、屏幕 FPC 等,具体见原理图。
  • 装配注意: 天线靠近外壳,装配时先嵌入左侧和顶部,利用外壳韧性放入 USB 口;屏幕粘贴使用辅助治具。

03 项目软件流程描述

1. 通过 USB 烧录 ESP32-C3 固件,确认串口日志正常后再连接麦克风、屏幕和舵机。

2. 配置 Wi-Fi 连接,将大模型 API 端点写入配置,密钥仅存本机,不提交仓库。

3. 初始化外设:ADC 麦克风、SPI 屏幕、PWM 舵机、I2S 扬声器。

4. 主循环:采集音频,检测唤醒词或动作触发。

5. 触发后录制音频,通过 Wi-Fi 发送至大模型,获取回复文本。

6. 将回复文本合成为语音(或使用 TTS 服务),通过扬声器播放。

7. 根据状态切换屏幕表情,同时可执行相应动作。

8. 错误处理:网络失败重试,低电量提示,舵机超时保护。

04 项目核心点

ESP32-C3 资源有限,音频处理需优化,避免大模型请求阻塞舵机控制。

装配顺序影响天线性能和麦克风噪声,务必按说明操作。

舵机 PWM 时序要稳定,避免与 Wi-Fi 中断冲突。

大模型密钥绝不能写进固件仓库,应放在配置或安全存储中。

动作表是二次开发的关键,修改动作表即可添加新动作,无需重写驱动。

不同 ESP32 芯片的 ADC 和 PWM 特性不同,移植时需重新校准。