Repository navigation
Releases
v4.0 - CARDSTICK AI: chat memory, auto sleep, steadier voice chats
CARDSTICK AI 4.0
The project has a new name and its own repository. It began as a fork of M5Gemini by d4rkmen. On the device it is CARDPUTER AI on the Cardputer and STICK AI on the StickS3.
What's new
Cardputer: chat memory
Chats are saved to the SD card. Choosing Live or Text shows your chats: open one to continue it, start a new one, or press DEL to forget one. Gemini picks up a reopened chat where it left off.
Chat settings has Remember chats, View chats and Forget chats. Without an SD card, or with Remember chats off, chats work as before and nothing is saved.
Cardputer: chat viewer
TAB in the chat list, or Chat settings → View chats, opens a saved chat to read. ENTER on a message offers Edit, Delete and Delete from here on. A chat continued after an edit is given to Gemini as edited.
Cardputer: voice chats that stay connected
Voice chats used to lose the connection every few turns and on any long reply. A session now has the memory it needs: replies of over a minute and a half played without a drop in testing.
Auto sleep and auto power off
Settings → Sleep on the Cardputer and Settings → Power off on the StickS3 are now menus, each with the button and a timer (Off, or 1 to 60 minutes). The timer counts from the last key press or reply and never runs out while Gemini is speaking.
StickS3: long replies
Long replies no longer drop the connection on the StickS3 either.
Both devices
- The first words of the first chat after switching on are heard. The microphone used to take about six seconds to reach its level, so a first "hello" got no answer.
- The chat screen follows the last line of a reply that is longer than the screen.
- About ten minutes into a session Google ends the connection. The reply in progress is now finished first; the session then reconnects and resumes with its context.
Cardputer: SD card
settings.txtnow lives in theM5Geminifolder of the SD card. Import still reads an old/settings.txt.- Export and Import can be used more than once without restarting.
LilyGO T-Deck Plus (added later)
The T-Deck Plus is a third board, called T-DECK AI on the device. It has what the Cardputer has: Live and Text chats, chat memory and the viewer, Web setup, settings on the SD card, auto sleep, and the keyboard backlight as status light.
Its keyboard has no ESC or TAB: hold the trackball click for ESC, and press Shift + mic to switch between voice and typing.
Files
| File | Device |
|---|---|
CARDPUTER_AI.bin |
M5Cardputer and Cardputer ADV |
STICK_AI.bin |
M5StickS3 |
TDECK_AI.bin |
LilyGO T-Deck Plus |
All three are full images to flash at offset 0x0, or to install through M5Launcher. A full flash resets the settings.
Tested
Every change was tested on a Cardputer ADV and an M5StickS3 before the version number was set to 4.0; the Cardputer and StickS3 files here are that code rebuilt with the new number. The original (non-ADV) Cardputer has not been tested. The T-Deck build was tested on a T-Deck Plus.
At a very low battery the voice can stutter on both devices: the battery voltage sags under the speaker load. Charging fixes it.
v3.4 - Cardputer: typed chat, LED effects, Web setup, Sleep
What's new
Cardputer: type to Gemini
The start screen now offers two modes, Live (voice) and Text. The arrow keys or TAB choose, ENTER starts.
In Text the microphone is off. ENTER opens a message box; type and press ENTER to send. The reply appears as text and is not spoken. Inside a chat, TAB switches between voice and typing at any time while it is listening, and the conversation keeps its context.
The session stays an audio session, because the Live models only answer in audio. The replies you do not hear are still generated and billed as audio.
Cardputer: Web setup
Settings → Web setup serves a page for editing WiFi networks, the API key and every other setting from a phone or PC browser, as the StickS3 already had. With no WiFi it starts its own access point with a one-off password and shows a QR code. ENTER switches the QR code, DEL leaves.
Cardputer: Sleep
Settings → Sleep puts the Cardputer into deep sleep. Press G0 to wake it; it restarts.
Cardputer: LED effects
Each LED state (Low battery, No WiFi, WiFi on, Listening, Speaking, Typing) now has its own menu in LED settings with a colour, an effect (Steady, Blink or Breathe) and a speed. Defaults are as before: steady, with low battery blinking.
Typing is a new state for Text mode. It can also flash the LED on each key press while you type a message, in a colour you choose or a random one.
Cardputer ADV: steady RGB LED
The LED no longer flickers when the screen is dimmed. It is powered from the screen backlight, so it still gets dimmer as you lower the screen brightness.
Cardputer: SD card entry
Settings export and import are now inside one SD card entry, below Web setup.
Both devices
- The WiFi password and the API key are no longer written to the serial log.
- No more error lines at boot for settings that were never saved.
Files
| File | Device |
|---|---|
M5Gemini_Cardputer.bin |
M5Cardputer and Cardputer ADV |
M5Gemini_STICKS3.bin |
M5StickS3 |
Both are full images to flash at offset 0x0, or to install through M5Launcher. A full flash resets the settings.
Tested
Tested on a Cardputer ADV and an M5StickS3. The original (non-ADV) Cardputer has not been tested. The sleep current was not measured.
For the StickS3 this release differs from v3.3 only in the two logging changes and the version number.
Updated on 13 October
M5Gemini_Cardputer.bin was replaced after the first publication of v3.4. The update added the Live / Text start screen, the LED effects and Typing state, and the SD card entry. If you downloaded the Cardputer file before that, download it again. M5Gemini_STICKS3.bin is unchanged.
v3.3 - Cardputer RGB status LED
What's new
Cardputer: RGB status LED
| State | Default colour |
|---|---|
| No WiFi, or still connecting | Orange |
| WiFi connected | Green |
| Listening to you | Purple |
| Gemini speaking | Yellow |
| Battery low | Red, blinking |
A new LED settings group lets you turn it off, set the brightness, set the battery level that triggers the blink, and pick the colour for each state.
Known limits:
- Green means WiFi is connected, not that Gemini is reachable.
- On the Cardputer ADV the LED is powered from the screen backlight. It gets dimmer as you lower the screen brightness, and it can still flicker slightly, most on Purple, Orange and Green.
- The Cardputer cannot tell that it is charging, so the low-battery blink continues on the charger until the voltage rises.
The M5StickS3 has no RGB LED. Its firmware is the same as v3.2 apart from the version number.
Files
| File | Device |
|---|---|
M5Gemini_Cardputer.bin |
M5Cardputer and Cardputer ADV |
M5Gemini_STICKS3.bin |
M5StickS3 |
Both are full images to flash at offset 0x0, or to install through M5Launcher. A full flash resets the settings.
Tested
Tested on a Cardputer ADV and an M5StickS3. The original (non-ADV) Cardputer has not been tested.
v3.2 - Faster answers, battery and audio fixes
What's new
- Gemini answers sooner. Your turn now ends after half a second of silence. Before, it could take several seconds, and a short "hello" often had to be repeated.
- Cleaner microphone audio. 12 ms was being cut out of every 100 ms of speech sent to Gemini. The audio is now continuous.
- Battery percentage matches M5Launcher and Bruce on both devices: 0% at 3.30 V, 100% at 4.10 V.
- M5StickS3: louder speaker, x6 on battery and x10 on USB power. At very high volume on a weak battery the stick can restart; it then shows a "Low power" message.
- New default settings: screen brightness 40%, system volume 30%, S2S volume 60%, shorter rules. A freshly flashed StickS3 no longer gets the Cardputer rules.
- Firmware is about 320 KB smaller, which leaves room for new features without changing the partition layout.
Files
| File | Device |
|---|---|
M5Gemini_Cardputer.bin |
M5Cardputer and Cardputer ADV |
M5Gemini_STICKS3.bin |
M5StickS3 |
Both are full images to flash at offset 0x0, or to install through M5Launcher.
A full flash resets the settings. An update that keeps the settings partition (for example through M5Launcher) keeps your saved values, so the new defaults only apply to settings you never changed.
Tested
Tested on a Cardputer ADV and an M5StickS3. The original (non-ADV) Cardputer has not been tested.
v3.1 - M5StickS3 support
What's new
- M5StickS3 support: two-button navigation, a Web setup page for WiFi and the API key, and a Power off menu entry.
- Multiple WiFi networks: up to 8 saved; the strongest one in range is used.
- Battery indicator on the main screen.
- Fixed words missing from Gemini's replies. Reply chunks larger than the message buffer were discarded, losing both audio and text.
Files
| File | Device |
|---|---|
M5Gemini_STICKS3.bin |
M5StickS3 |
M5Gemini_Cardputer.bin |
M5Cardputer and M5Cardputer ADV |
Both are full images (bootloader, partition table and app), the same kind of file as upstream's M5Gemini_30_full.bin.
Installing
Flash at offset 0x0:
esptool --chip esp32s3 write_flash 0x0 M5Gemini_STICKS3.binThis replaces everything on the device, including a launcher and any saved M5Gemini settings. If you use a launcher such as M5Launcher, install the file through the launcher instead.
M5StickS3: if you put the stick into download mode by hand (long press on the side button), single-click the side button after flashing to start the firmware. Then open Settings (hold B) → Web setup to enter WiFi and your Gemini API key.
See the README for the StickS3 controls.