CARDSTICK AI is a voice and text assistant for the M5Stack Cardputer, the M5StickS3 and the LilyGO T-Deck Plus. It talks to Google's Gemini Live API over a single WebSocket connection: you speak, Gemini answers through the speaker, and the conversation is written on the screen as it goes. On the Cardputer and the T-Deck you can also type, and chats are saved to the SD card so they can be continued later.
On the device it is called CARDPUTER AI on the Cardputer, STICK AI on the StickS3 and T-DECK AI on the T-Deck.
It started as a fork of M5Gemini by d4rkmen and grew into its own project. See Credits.
All devices
- Real-time voice conversation with the Gemini Live API (speech to speech), with the text of both sides shown on screen.
- Half-duplex audio: the microphone and the speaker alternate, and Gemini's own voice activity detection ends your turn.
- Long sessions: when Google ends a connection after about ten minutes, the current reply is finished first and the session then resumes with its context.
- Web setup: edit WiFi networks, the API key and every other setting from a phone or PC browser.
- Up to 8 saved WiFi networks; the strongest one in range is used.
- Battery indicator, and a sleep or power-off timer for when the device is left alone.
- Configurable model, voice, volume and system instructions.
Cardputer and T-Deck
- Typed chat: choose
LiveorTexton the start screen and switch between them inside a chat. - Chat memory: each chat is saved to the SD card and can be reopened, continued, read, edited or deleted.
- Status light with an effect and speed per state: the RGB LED on the Cardputer, with a colour per state; the keyboard backlight on the T-Deck, on or off per state.
- Settings export and import on the SD card.
- Deep sleep, woken with
G0on the Cardputer and a trackball click on the T-Deck.
T-Deck only
- Screens laid out for its 320×240 display, with a Settings card on the start screen.
- Trackball navigation; the hints at the bottom name each key and what it does.
- Web setup keeps one access point password per device, so a PC that joined once can join again.
StickS3 only
- Two-button navigation.
- Power off through the power chip.
CARDSTICK_AI_demo.mp4
![]() |
![]() |
| A voice chat on both devices | The chat screen on the Cardputer |
![]() |
![]() |
| Saved chats on the Cardputer: open, view or forget | The settings menu on both devices |
![]() |
![]() |
| Cardputer settings | Web setup, SD card and Sleep |
| Device | Status |
|---|---|
| M5Stack Cardputer ADV | Tested |
| M5StickS3 | Tested |
| LilyGO T-Deck Plus | Tested |
| M5Stack Cardputer (original) | Builds from the same image, not tested |
You also need a 2.4 GHz WiFi connection and a Google AI API key from https://aistudio.google.com/apikey.
Download the image for your device from the releases page:
| File | Device |
|---|---|
CARDPUTER_AI.bin |
Cardputer and Cardputer ADV |
STICK_AI.bin |
M5StickS3 |
TDECK_AI.bin |
LilyGO T-Deck Plus |
All three are full images. Install them through M5Launcher, or flash them at offset 0x0:
esptool --chip esp32s3 -p [Your-Serial-Port] write_flash 0x0 CARDPUTER_AI.binA full flash resets the saved settings.
The assistant needs a WiFi network and a Gemini API key.
- Web setup (all devices):
Settings→Web setup. With no WiFi yet, the device starts its own access point with a one-off password and shows a QR code to join it; a second QR code opens the page (http://192.168.4.1/). On the T-Deck the password is made once and kept. When already connected, the page is served on the current network at the address shown on screen. It has no password and is only reachable while the Web setup screen is open. - On the device (Cardputer): press
ESCon the start screen for the settings menu, move with the arrow keys andENTER. On the T-Deck, choose the Settings card or hold the trackball click. - From a file (Cardputer and T-Deck): put a
settings.txtin theM5Geminifolder of the SD card and chooseSettings→SD card→Import.Exportwrites the current settings to the same file.
wifi-enabled=true
wifi-ssid=YOUR_WIFI_SSID
wifi-pass=YOUR_WIFI_PASS
gemini-api_key=YOUR_GEMINI_API_KEY
gemini-model=gemini-3.1-flash-live-preview
gemini-voice=KoreSettings are stored in NVS and survive an update that only replaces the application.
- Start screen: the arrow keys choose
Live(voice) orText(typing),ENTERstarts,ESCopens the settings. - With chat memory on, starting shows the saved chats: open one, start a new one,
DELforgets one,TABopens it in the viewer. - In a chat:
ENTER: send what you said so far, or skip the reply being spokenTAB: switch between voice and typing- Arrow keys: scroll
ESC: stop and go back
- In typing mode the microphone is off,
ENTERopens a box to type a message, and the reply is shown as text without being spoken. The session is still an audio session, because the Live models only answer in audio: the replies you do not hear are generated and billed as audio. - Chat viewer:
ENTERon a message offers Edit, Delete and Delete from here on. Settings→Sleep: sleep now, or setAuto sleep.G0wakes the Cardputer; it restarts.
The T-Deck's keyboard has no ESC or TAB key, and its stock keyboard firmware does not report Alt, so:
| Key | Action |
|---|---|
| Trackball | Arrow keys |
Click the trackball, or Enter |
ENTER |
| Hold the trackball click | ESC: back, cancel, stop the session |
Shift + mic key |
TAB: switch between voice and typing |
| Backspace | DEL |
- Start screen: the trackball chooses
Live,Textor theSettingscard below them, a click starts. - Everything else works as on the Cardputer, with those keys. The hints at the bottom of each screen name the keys and their actions.
Settings→Keyboard light: on or off, effect and speed for each state, in five speeds from Very slow to Very fast.Settings→Sleep: sleep now, or setAuto sleep. A trackball click wakes the T-Deck; it restarts.- The blue light inside the T-Deck is the charger's; it is on while USB power is connected.
A is the front button, B is the side button.
| Press | Action |
|---|---|
A |
OK / start a session / send or skip |
B |
Move down / scroll |
Hold A |
Move up |
Hold B |
Back / open settings / stop the session |
- There is no keyboard: text settings are entered in Web setup. Numbers are picked from a list of steps on the device; exact values can be entered in Web setup.
Settings→Power off: power off now, or setAuto power off.- There is no SD card, so no chat memory and no settings import or export.
Requires ESP-IDF v5.5.
git clone https://github.com/AndryTheBeast/CARDSTICK-AI.git
cd CARDSTICK-AIEach board has its own configuration file and build directory:
# Cardputer
idf.py -B build_cardputer -D SDKCONFIG=sdkconfig build
idf.py -B build_cardputer -D SDKCONFIG=sdkconfig -p [Your-Serial-Port] flash
# StickS3
idf.py -B build -D SDKCONFIG=sdkconfig.sticks3 build
idf.py -B build -D SDKCONFIG=sdkconfig.sticks3 -p [Your-Serial-Port] flash
# T-Deck Plus
idf.py -B build_tdeck -D SDKCONFIG=sdkconfig.tdeck build
idf.py -B build_tdeck -D SDKCONFIG=sdkconfig.tdeck -p [Your-Serial-Port] flashUse app-flash instead of flash for later updates: flash also rewrites the settings partition and clears the saved WiFi networks and API key.
These commands write the project's own partition layout. On a device that runs M5Launcher, install the release image through the Launcher instead, or the Launcher is overwritten.
If the StickS3 was put into download mode by hand (long press on the side button), single-click the side button after flashing to start the firmware.
The T-Deck stays in download mode after flashing; reset it to start the firmware.
- d4rkmen wrote M5Gemini, the Cardputer assistant this project is built on. The application structure, the hardware layer, the settings system and the first Gemini Live client are his work.
- AndryTheBeast directed and tested everything added since: the StickS3 and T-Deck ports, Web setup, typed chat, chat memory, the LED effects, the power features and the audio and connection fixes.
- Claude (Anthropic) wrote that code with him, working from his testing on the real devices.
Libraries and services: Google Gemini Live API, ESP-IDF, LovyanGFX, mjson.
GNU General Public License. M5Gemini is published under the GNU General Public License without naming a version; this project is distributed under version 3, see LICENSE.






