# OpenGND — Full Documentation Source: https://docs-test.opengnd.com --- ## Welcome to OpenGND Docs URL: https://docs-test.opengnd.com/ > Official documentation for OpenGND S1 open-source AI hardware, OpenGND Hub, and verified ESP-IDF firmwares. OpenGND builds practical, open-source AI hardware that you truly own — with zero mandatory cloud subscriptions. ## Current Hardware & Software Stack - **Hardware Model**: **OpenGND S1** (`ESP32-S3`, 2.8" IPS Capacitive Touch + Rotary Crown, ES7210 Dual-Mic, ES8311 Chambered Speaker, MicroSD TF Card Slot, Built-in Li-Ion Battery with 0V hardware safety cut) - **PC Companion**: **OpenGND Hub v3.0.4** (`macOS Apple Silicon .dmg` & `Windows x64 .exe`) — the exclusive, safe firmware manager, local Whisper.cpp server, and AI notes/mindmap workspace. - **Verified Official Firmwares**: 1. **AI Buddy (`v1.1.0`)** — Real-time voice companion, NVS-persistent alarms & timers, LLM Hardware Function Tools, and 4× compressed TF card recordings. 2. **PocketNote Standalone AI Recorder (`v2.0.0`)** — 100% standalone ESP32-S3 voice recorder with 3 live visual FX modes, ESP32-side LAN Local Whisper / Cloud BYOK subtitles, ~8.5h offline TF storage, and `<20%` low-battery Wi-Fi auto-off. ## LLM-Friendly Documentation (`llms.txt`) Building custom firmware or integrating OpenGND S1 APIs with Claude, Cursor, Codex, or Antigravity? Feed our auto-generated plain-Markdown docs directly to your AI assistant: - Index summary: [`/llms.txt`](/llms.txt) - Full concatenated docs: [`/llms-full.txt`](/llms-full.txt) ## Where to Start - [OpenGND S1 Quick Start](/s1/quick-start/) — Connect Wi-Fi, install OpenGND Hub, and switch firmwares cleanly. - [AI Buddy v1.1.0 Guide](/s1/ai-buddy/) — Configure BYOK models, hardware Function Tools, and TF recordings. - [PocketNote v2.0.0 Guide](/s1/pocketnote-recorder/) — Set up local Whisper.cpp, live subtitles, SVG mindmaps, and Obsidian export. - [Hardware Pinout & Battery 0V Safety](/s1/hardware-safety/) — GPIO pinmap, dual-stage RWDT, 0V power-off, and USB rescue. --- ## AI Buddy (v1.1.0) URL: https://docs-test.opengnd.com/s1/ai-buddy/ > Real-time desk voice companion, NVS-persistent alarms & timers, LLM Hardware Function Tools, and 4× compressed TF card recordings. **AI Buddy (`convoai-clock v1.1.0`)** turns OpenGND S1 into a calm, responsive AI desk companion with real hardware capabilities. ## Key Capabilities - **Voice Conversation (BYOK or Local LAN)**: Connect your own OpenAI-compatible API key or local LAN LLM endpoint — zero mandatory cloud subscription. - **NVS-Persistent Alarms & Timers**: Alarms and countdown timers are persisted to ESP32-S3 NVS flash so they survive reboots and power cycles. - **Hardware Function Tools RPC**: Your AI model can invoke real hardware tools directly on OpenGND S1 via `POST /api/v1/tools/exec`: - `set_alarm` / `list_alarms` / `delete_alarm` - `start_timer` / `cancel_timer` - `set_volume` / `set_brightness` - `start_recording` / `stop_recording` (writes 8KB/s IMA-ADPCM `.ognd` directly to TF card) - **4× Compressed Raw Download**: OpenGND Hub pulls `.ognd` recordings via `GET /api/v1/recordings/raw?name=...` (4× smaller and faster over Wi-Fi than uncompressed WAV) and decodes them locally in Rust. - **Clean 5-Row On-Device Settings**: 1. Volume 2. Brightness 3. Auto brightness 4. TF Recorder (`REC` / `STOP`) 5. Power (`Power off`) ## Example Hardware Tool RPC ```bash curl -X POST http:///api/v1/tools/exec \ -H "Content-Type: application/json" \ -d '{"tool":"start_timer","args":{"seconds":900,"label":"Deep Work"}}' ``` --- ## Hardware Pinout & Battery Safety URL: https://docs-test.opengnd.com/s1/hardware-safety/ > OpenGND S1 ESP32-S3 GPIO pinmap, 5-point Li-Ion anti-deadlock safety gates, and USB-C recovery procedure. Every official OpenGND S1 firmware enforces strict hardware power-safety gates so a battery-powered device can never deadlock or drain a cell into under-voltage lockup. ## Core Hardware Specifications | Subsystem | Component / Spec | | :--- | :--- | | **MCU** | ESP32-S3 (`8 MB PSRAM`, `16 MB Flash`, Dual-Slot OTA `ota_0` @ `0x40000` / `ota_1` @ `0x790000`) | | **Display** | 2.8" `320×240` IPS LCD (`NV3031A`, 40 MHz SPI3) + `CST226SE` Capacitive Touch | | **Audio** | `ES7210` Dual-Mic Array + `ES8311` DAC & Chambered Speaker | | **Storage** | MicroSD TF Card Slot (FATFS `/sdcard`) | | **Controls** | Rotary Encoder (`IO47` / `IO21`), Crown Push (`IO14`), Return (`SW3 · IO48`), Settings/Power (`SW4 · IO18`) | | **Power Latch** | `RTC_GPIO7` (`IO7`) hardware power hold + `Q1` 0V cut circuit | ## 5 Mandatory Li-Ion Battery Safety Gates 1. **Independent Power Supervisor (`ognd_pwr_sup`)**: High-priority FreeRTOS task that waits for key release before arming power chords. 2. **Dual-Stage RTC Watchdog (RWDT)**: `15s` `RESET_SYSTEM` → `+5s` `RESET_RTC` hard cut to break any bootloop. 3. **Physical 0V Hardware Power Off**: Hold `SW4 ≥ 4s` or chord `SW4 + SW3 ≥ 2s` to cut `IO7` to true `0V`. 4. **Download-Mode Hang Guard**: `120s` RWDT guard prevents battery drain if accidentally left in USB download mode. 5. **Under-Voltage Lockout (UVLO)**: 3 consecutive battery readings `< 3.25V` trigger automatic safe shutdown. ## USB-C Recovery (Unbrick Procedure) 1. Connect OpenGND S1 to your computer via USB-C. 2. Hold `SW3` (`IO48`) while powering on (or hold `SW3 ≥ 7s` while running) to enter native ESP32-S3 USB-Serial/JTAG download mode. 3. Use **OpenGND Hub** or `esptool` to flash `opengnd-clock-convoai.bin` or `opengnd-clock-recorder.bin` to `0x40000` (and clear `otadata` at `0x35000` if resetting the active boot slot). --- ## PocketNote Recorder (v2.0.0) URL: https://docs-test.opengnd.com/s1/pocketnote-recorder/ > 100% standalone ESP32-S3 AI voice recorder with 3 visual FX faces, LAN Local Whisper / BYOK live subtitles, SVG mindmaps, and Obsidian export. **PocketNote (`offline-recorder v2.0.0`)** runs **100% independently on ESP32-S3** — take OpenGND S1 anywhere without a phone or laptop. ## Standalone Hardware Features - **3 Switchable Visual FX Modes**: Tap the FX display area (or twist the crown) to switch between: - `FX:SPEC` — Real-time 20-bar Signal Orange audio spectrum analyzer - `FX:TAPE` — Retro dual-reel cassette animation - `FX:ASR` — Live streaming speech-to-text subtitle view - **~8.5 Hours Offline Storage on 256MB TF Card**: Records clean 16kHz 4-bit IMA-ADPCM (`8 KB/s`, `.ognd`) with instant timestamp bookmarks (`.bm`) and transcript sidecars (`.txt`). - **ESP32-Side Dynamic Live ASR**: - **Primary (Home/Office LAN)**: Streams 4.5s VAD-gated speech directly from ESP32-S3 to OpenGND Hub's built-in local Whisper.cpp endpoint (`POST /v1/audio/transcriptions`) — zero API keys, 100% private. - **Fallback (On the Go)**: Automatically falls back to your Cloud BYOK HTTPS endpoint when configured, or silently records 100% offline to TF card when no network is available. - **Low-Battery Power Guard**: Automatically disables Wi-Fi below **20% battery** to protect uninterrupted offline recording. ## OpenGND Hub Notes, Mindmap & Agent Pipeline When back on your LAN, open **OpenGND Hub v3.0.4**: 1. **One-Click Local `whisper.cpp`**: Download GGML models (`tiny`, `base`, `small-q5`) directly inside OpenGND Hub. 2. **4× Compressed Fast-Sync**: Pulls `.ognd` files via `GET /api/v1/recorder/raw?name=...` and decodes to 16kHz PCM16 `.wav` locally. 3. **AI Notes & Interactive SVG Mindmaps**: Generate structured meeting minutes, action items, insights, or visual SVG mindmaps using local Ollama or your BYOK LLM. 4. **Obsidian Vault & Webhook**: Automatically writes Markdown notes + YAML frontmatter straight into your Obsidian Vault folder and optionally posts to your webhook. 5. **Local Agent / MCP Notes API**: External AI agents on your machine can read your recordings' notes via: - `GET http://127.0.0.1:18790/api/v1/notes/list` - `GET http://127.0.0.1:18790/api/v1/notes/read?name=` - `GET http://127.0.0.1:18790/api/v1/notes/search?q=` --- ## Quick Start URL: https://docs-test.opengnd.com/s1/quick-start/ > Get your OpenGND S1 connected, install OpenGND Hub, and switch between AI Buddy and PocketNote firmwares safely. ## 1. Install OpenGND Hub (macOS & Windows) Firmware switching on **OpenGND S1** is managed exclusively from **OpenGND Hub** on your computer to prevent accidental on-device firmware switches. - Download **OpenGND Hub v3.0.4** (`macOS ARM64 .dmg` or `Windows x64 .exe`) from the [Hub & Firmwares](https://test.opengnd.com/studio) page. - Launch OpenGND Hub — no account login is required for local device management, firmware OTA, or local Whisper.cpp transcription. ## 2. Connect OpenGND S1 You can connect OpenGND S1 in two ways: 1. **Same Wi-Fi LAN (Recommended)**: OpenGND Hub automatically discovers OpenGND S1 on your local network via mDNS (`opengnd-clock.local` or `opengnd-recorder.local`) or by LAN IP. 2. **USB-C Cable**: Plug OpenGND S1 directly into your Mac or Windows PC over USB-C for deterministic flashing, Wi-Fi provisioning, or recovery. ## 3. Switch Between Verified Firmwares OpenGND S1 uses a **Dual-Slot OTA (`ota_0` / `ota_1`)** partition table with automatic rollback protection: 1. Open **OpenGND Hub → System & Connect**. 2. Select either **AI Buddy (`v1.1.0`)** or **PocketNote Standalone AI Recorder (`v2.0.0`)**. 3. Click **Install / Switch**. OpenGND Hub verifies SHA-256 integrity, writes the inactive OTA slot, and reboots cleanly. If a boot ever fails health verification, the bootloader automatically rolls back to the previous working slot. ## 4. Physical Controls Overview | Control | Action | | :--- | :--- | | **Top Rotary Crown (`IO47/IO21`)** | Adjust volume, scroll menus, or switch recorder visual FX modes | | **Top Crown Press (`IO14`)** | Talk / Confirm (AI Buddy) or Start / Stop Recording (PocketNote) | | **Left Key (`SW3 · IO48`)** | Back / Cancel | | **Right Key (`SW4 · IO18`)** | Short press: Device Settings (AI Buddy). **Hold ≥ 4s**: Hardware 0V Power Off | | **Chord (`SW4 + SW3 ≥ 2s`)** | Emergency hardware 0V battery cut |