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!
| 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 |
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).
- Switch layouts instantly by pressing
Fn + BackspaceorFn + Enter. - An on-screen translucent toast indicator
[ РУС ]/[ ENG ]displays the active mode. - Rendered with an embedded high-definition Cyrillic font (
rubik_14_cy).
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/Downarrows). - 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.
| 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 |
Download the appropriate file from GitHub Releases:
- For M5Burner / esptool: Use
GeminiPuter-v2.0.1-M5Burner.bin(orGeminiPuter.bin). This is a complete merged image flashed starting at offset0x0000(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 theapppartition.
Flash using esptool.py:
esptool.py --chip esp32s3 write_flash 0x0 GeminiPuter-v2.0.1-M5Burner.bin- Clone this repository:
git clone https://github.com/AdvaScript/GeminiPuter.git cd GeminiPuter/PIO - Build and upload firmware:
pio run -t upload
- On first boot, Cardputer creates or connects to your Wi-Fi network.
- Follow the on-screen instructions or connect to
http://<device-ip>/in your web browser. - Obtain a free API key from Google AI Studio.
- Enter your API key into the web configuration panel or
config.jsonon the SD card. - Save and reboot — your GeminiPuter is ready!
- Original Project: nishad2m8/GeminiPuter
- Author of Original: Nishad
- Fork Maintainer: AdvaScript
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.
This project is distributed under the MIT License. See LICENSE for details.