Claude Skill
sebastianvkl/pizero-openclaw
pizero-openclaw 是一个开源 Python 项目,通过树莓派 Zero 的 GPIO 和舵机控制机械爪,适合 DIY 机器人和教育场景。
概览
仓库信息
安装这个 Skill
pip install requests python-dotenv # or: pip install -r requirements.txtRegistry 信息
项目简介
pizero-openclaw 是一个基于 Python 的开源项目,利用树莓派 Zero 的 GPIO 和舵机接口实现机械爪的精确控制。
要点
- 兼容树莓派 Zero
- 基于 Python 的控制逻辑
- GPIO 与舵机集成
- 开源硬件设计
使用场景
- 教育机器人项目
- DIY 机械臂实验
- 小型抓取器原型制作
- 学习树莓派 GPIO 编程
README 摘要
# pizero-openclaw A voice-controlled AI assistant built on a Raspberry Pi Zero W with a [PiSugar WhisPlay board](https://www.pisugar.com). Press a button, speak, and get a streamed response on the LCD — powered by [OpenClaw](https://openclaw.ai) and OpenAI. ## How it works ``` Button press → Record audio → Transcribe (OpenAI) → Stream LLM response (OpenClaw) → Display on LCD → Speak aloud (OpenAI TTS, optional) ``` 1. **Press & hold** the button to record your voice via ALSA 2. **Release** — the WAV is sent to OpenAI for transcription (~0.7s) 3. The transcript (with conversation history) is streamed to an **OpenClaw gateway** for a response 4. Text streams onto the **LCD** in real time with pixel-accurate word wrapping 5. Optionally **speaks the response** via OpenAI TTS as sentences complete 6. The idle screen shows a **clock, date, battery %, and WiFi status** The device maintains **conversation memory** across exchanges and includes a **silence gate** to skip empty recordings. ## Hardware - **Raspberry Pi Zero 2 W** (or Pi Zero W) - **[PiSugar WhisPlay board](https://www.pisugar.com)** — 1.54" LCD (240x240), push-to-talk button, LED, speaker, microphone - **PiSugar battery** (optional) — shows charge level on screen ## Setup ### Prerequisites - Raspberry Pi OS (Bookworm or later) - Python 3.11+ - An [OpenAI API key](https://platform.openai.com/api-keys) for speech-to-text (and optionally TTS) - An [OpenClaw](https://openclaw.ai) gateway running somewhere accessible on your network ### Install dependencies ```bash sudo apt install python3-numpy python3-pil pip install requests python-dotenv # or: pip install -r requirements.txt ``` The WhisPlay hardware driver should be
话题
暂无话题