Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ GeminiPuter v2.0.1 (Cardputer & Cardputer ADV)

GitHub Release License: MIT PlatformIO Gemini Hardware M5Burner Ready

An advanced, interactive firmware transforming the M5Stack Cardputer and Cardputer ADV into a full-featured pocket AI assistant powered by Google's Gemini 3.1 Flash-Lite with native hardware function calling, bilingual Russian/English keyboard layout, live web remote console, and dynamic RGB lighting effects.

Note

Fork Attribution: This project is an advanced fork of the original GeminiPuter created by nishad2m8. We express our sincere gratitude to the original author for the foundational inspiration!


🚀 Key Improvements & Comparison

Feature Original (nishad2m8/GeminiPuter) Our Fork (AdvaScript/GeminiPuter v2.0.1)
Hardware Compatibility Standard M5Cardputer only M5Stack Cardputer + Cardputer ADV
M5Burner Flashing Single raw app partition (fails on 0x0) Full Merged Image (bootloader + partitions + boot_app0 + app @ 0x0)
Flash Mode QIO only (fails on some chips) Universal DIO (Dual I/O) compatible with all flash modules
Gemini AI Model Hardcoded gemini-1.5-flash (Deprecated / 404 error) gemini-3.1-flash-lite, gemini-2.5-flash, customizable via Web UI
Inference Speed Default thinking latency Zero-latency thinking mode (thinkingBudget: 0) for near-instant responses
Hardware Function Calling ❌ None (pure text assistant) ✅ Full Tool Calling: Screen brightness, WS2812 RGB LED effects, real battery state
RGB LED Integration ❌ None ✅ 11 Built-in animations + custom JSON animation patterns + visual web mirror
Language & Keyboard English only (QWERTY) 🇷🇺 Bilingual (English + Russian Cyrillic phonetic layout) with HUD toast notification
Web Console & Telemetry Basic Wi-Fi captive setup portal 🌐 Cyberpunk Live Web HUD: Real-time mirrored transcript, remote keyboard, live telemetry
UI Aesthetics Default green text 🎨 Sleek Dark Theme: Electric blue Gemini responses (#38B6FF), right-aligned user bubbles
Watchdog & Stability Watchdog resets on long answers 🛡️ FreeRTOS thread isolation, mutex guards, feed loops preventing WDT panics
Easter Eggs ❌ None 🤢 Built-in IMU Shake / /shake Easter egg

✨ Features Breakdown

🧠 Gemini 3.1 & Hardware Control (Function Calling)

Gemini can directly control your Cardputer hardware using Google Function Declarations:

  • Screen Brightness: "Set screen brightness to 20%" or "Dim the display".
  • RGB LED Lamp: "Turn the lamp red", "Switch to rainbow effect", "Blink cyan at 50% brightness", "Turn off the LED".
  • Custom Patterns: Ask Gemini to generate custom blinking patterns or moods.
  • Battery Status: "How much battery is left?" (queries the internal AXP/ADC power sensor).

⌨️ Bilingual Russian & English Keyboard

  • Switch layouts instantly by pressing Fn + Backspace or Fn + Enter.
  • An on-screen translucent toast indicator [ РУС ] / [ ENG ] displays the active mode.
  • Rendered with an embedded high-definition Cyrillic font (rubik_14_cy).

🌐 Cyberpunk Web Interface & Remote Keyboard

Connect to http://<cardputer-ip>/ from any computer, tablet, or smartphone on the same network:

  • Live Mirrored Console: Watch conversation turns scroll in real time with custom message bubbles.
  • Remote Keyboard: Type questions using your desktop keyboard with command history (Up/Down arrows).
  • Quick Action Chips: One-click shortcuts for lighting, brightness, battery, and testing.
  • Hardware Telemetry HUD: Live battery indicator, Wi-Fi RSSI signal meter, uptime, free heap memory, and simulated RGB lamp status.
  • Web Settings: Change API keys, Wi-Fi credentials, or switch Gemini models on the fly without reflashing.

🎮 Cardputer Controls

Key Combination Action
Tab Toggle focus between Chat Input and AI Response transcript
Fn + ; / Fn + . Scroll transcript Up / Down
Enter Send message to Gemini
Fn + Backspace or Fn + Enter Toggle Russian / English keyboard layout
Ctrl + L Clear transcript
/shake or /puke Trigger the accelerometer Easter egg

📥 Installation & Flashing

Option 1: Flashing with M5Burner or M5Launcher (Recommended)

Download the appropriate file from GitHub Releases:

  • For M5Burner / esptool: Use GeminiPuter-v2.0.1-M5Burner.bin (or GeminiPuter.bin). This is a complete merged image flashed starting at offset 0x0000 (bootloader + partitions + boot_app0 + firmware).
  • For M5Launcher / SD Card: Use GeminiPuter-v2.0.1-M5Launcher.bin. This is the standard app binary intended to be loaded by M5Launcher straight into the app partition.

Flash using esptool.py:

esptool.py --chip esp32s3 write_flash 0x0 GeminiPuter-v2.0.1-M5Burner.bin

Option 2: Build from Source with PlatformIO

  1. Clone this repository:
    git clone https://github.com/AdvaScript/GeminiPuter.git
    cd GeminiPuter/PIO
  2. Build and upload firmware:
    pio run -t upload

⚙️ Initial Configuration

  1. On first boot, Cardputer creates or connects to your Wi-Fi network.
  2. Follow the on-screen instructions or connect to http://<device-ip>/ in your web browser.
  3. Obtain a free API key from Google AI Studio.
  4. Enter your API key into the web configuration panel or config.json on the SD card.
  5. Save and reboot — your GeminiPuter is ready!

🔗 Fork Status & Upstream Link

Tip

GitHub Fork Tree Attachment: Because this repository was initially created as a standalone project, it is not attached automatically to the upstream fork tree by GitHub. If you manage this repo and wish it to be visible under upstream's "Forks" tab (https://github.com/nishad2m8/GeminiPuter/network/members), you can request GitHub Support to link this repository as a fork of nishad2m8/GeminiPuter.


📄 License

This project is distributed under the MIT License. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages