MiniClaw-ESP32 - 物联网端点
约 325 字大约 1 分钟
2026-03-07
物联网端点 50KB 版 - 使用 C++ 编写,运行内存仅 50KB,专为 ESP32 和 Arduino 平台设计的超轻量 AI Agent。
核心特性
超低资源占用
- 运行内存仅 50KB
- Flash 占用 < 200KB
- 适合资源极度受限的设备
- 优化的内存管理
物联网优化
- WiFi 低功耗模式
- MQTT 协议支持
- OTA 远程更新
- 传感器数据采集
Arduino 兼容
- 支持 Arduino IDE
- PlatformIO 支持
- 丰富的库生态
- 简单的开发体验
实时响应
- 中断驱动架构
- 非阻塞设计
- 快速响应时间
- 确定性行为
快速开始
硬件要求
- ESP32 开发板 (任意型号)
- 或 ESP8266 (功能受限)
- 或 Arduino Mega 2560
- USB 数据线
开发环境
Arduino IDE
# 1. 安装 Arduino IDE
# 下载: https://www.arduino.cc/en/software
# 2. 添加 ESP32 开发板支持
# 文件 -> 首选项 -> 附加开发板管理器网址
https://dl.espressif.com/dl/package_esp32_index.json
# 3. 安装开发板
# 工具 -> 开发板 -> 开发板管理器 -> 搜索 ESP32 -> 安装PlatformIO
# 安装 PlatformIO
pip install platformio
# 创建项目
pio project init --board esp32dev
# 克隆代码
git clone https://github.com/miniclaw-esp32/miniclaw-esp32.git
cd miniclaw-esp32