Skip to content

v4.0 - CARDSTICK AI: chat memory, auto sleep, steadier voice chats

Latest

Choose a tag to compare

@AndryTheBeast AndryTheBeast released this 14 Oct 01:15
· 16 commits to main since this release

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.txt now lives in the M5Gemini folder 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.