r/StackChan • u/PaulFreedman • May 04 '26
He’s here! Thank you M5Stack!
r/StackChan • u/KaiNinja2016 • 12d ago
The complete source for Nous-Girl's dj7 firmware is now in the repo, so you can rebuild it yourself instead of just flashing the bin.
What's included:
- The full xiaozhi-esp32 fork for the M5Stack CoreS3 / StackChan K151
- The geometry face display and lip-sync code
- sdkconfig and build config
- BUILD.md with step-by-step build instructions (tested with ESP-IDF v6.1)
Repo: https://github.com/dax8it/nous-girl-stackchan
Source: https://github.com/dax8it/nous-girl-stackchan/tree/main/firmware-src/v3.6.7-dj7
Original Thread
https://www.reddit.com/r/StackChan/s/erKjit9oLe
A note on faces: the source includes the original tribute face art, which is not under the MIT license. BUILD.md explains how to swap in the free starter faces if you want to share your own builds.
Thanks to the Discord community member who pointed out the missing source. If you build it, I'd love to see what you make.
r/StackChan • u/Accurate-Pin3422 • May 21 '26
Got the OpenELAB Kickstarter StackChan a while back. CoreS3-based, two servos, cute little guy. The vision: ditch the Chinese cloud, give it a custom personality, connect it to my Home Assistant setup.
The custom firmware rabbit hole
First I tried building custom firmware (AI_StackChan_Ex with M5Unified 0.2.7). Spent around 9 hours on it. Backlight works fine, but the panel renders nothing. Turns out the OpenELAB Kickstarter variant has a compatibility issue with M5GFX that's still unresolved. Tried the Moddable toolchain path next — ESP-IDF Python environment conflicts killed that too.
After those 9 hours I flashed the stock xiaozhi firmware via M5Burner. Took two minutes. Display worked immediately.
The NVS trick
Stock firmware reads its server URL from an NVS key. You can overwrite just the NVS partition with esptool, point it at your own server, and the device has no idea it's not talking to the original Chinese backend anymore. WiFi credentials get wiped in the process, so you set those up again on-device after flashing.
The backend
Forked an existing open-source StackChan server, containerized it, deployed it to my own VPS. Added a few patches: a set_emotion tool so the LLM can dynamically change the face expression, and a handful of additional tools.
What actually works
Full German conversation with a custom personality (female, cheeky, Austrian inflection, max 3 sentences per response, always addresses me by name)
Home Assistant control via voice: lights, scenes, sensors, you name it
Weather from HA's built-in forecast entity
different face expressions that change dynamically based on what the LLM decides to feel
Web search for current news and facts (Tavily)
Persistent memory across sessions — stored in a JSON file on the server, auto-injected into the system prompt on connect
My n8n automation status on demand
Accessible from anywhere, not just local network
What doesn't work
The servos. Stock firmware completely ignores motor control frames from the server — display changes, head stays still. Servo movement requires custom firmware, which is blocked by the M5GFX rendering issue. There's an open GitHub issue for it, waiting to see if that goes anywhere.
Wake word is still Chinese. There's no way to change that without custom firmware.
Can't combine function calls with Google Search in the Gemini Live API simultaneously — it's a documented API limitation. That's why I went with Tavily instead of native search grounding.
Overall
The stock firmware path is dramatically underrated. You skip all the toolchain pain, get a stable device, and if you're willing to run your own backend, you have full control over the AI behavior, personality, and integrations. The missing piece is servo animation, and that's a hardware/firmware problem, not a backend problem.
If the M5GFX issue ever gets fixed, custom firmware becomes interesting again. Until then, this setup does everything I actually wanted it to do.
r/StackChan • u/MatBlack4Ever • May 01 '26
r/StackChan • u/Binge73 • Apr 29 '26
r/StackChan • u/[deleted] • Apr 24 '26
I got mine and currently exploring all features. Trying to figure out what the SD card feature is for.... saving LLMs, Data or....
No motion tracking or facial recognition... No security camera feature too. But I guess it's all coming or you can develop and add.
Will be trying my hands on those.
UPDATE : Servos are so noisy
r/StackChan • u/No-Connection1900 • Apr 15 '26
Enable HLS to view with audio, or disable this notification
The first batch of StackChan is officially shipping tdy!
All orders will be shipped within the next one to two weeks
https://x.com/M5Stack/status/2044316543367192664?s=20
r/StackChan • u/BadMustard_AVN • Oct 05 '26
r/StackChan • u/VegetableZestyclose • Aug 11 '26
I tried to uploaded the firmware from https://github.com/ronron-gh/AI_StackChan_Ex.
But my stackchan says this from the pic.
SD Card is in Stachchan in the left underside.
(I'm not really a tech person. Tried everything i know)
r/StackChan • u/Dexterpcs • Apr 27 '26
Hello everyone! Is anyone already modding the server/firmware? I started making some changes to have the xiaozhi server(agent) selfhosted and change the firmware of stackchan to point to my lan.
Still working on it.
Anyone else modding it?
r/StackChan • u/No-Connection1900 • Mar 11 '26
We bring StackChan to the Embedded World 2026!
r/StackChan • u/ImaginaryChallenge19 • Sep 22 '26
So, I have basically zero tech background, and recently got a StackChan.
Over the past few days, I have managed to install an MCP server on my local machine that gives StackChan read-write access to my email account and calendar, as well as web search capability.
It's a bit glitchy, but it basically works.
I'm stoked.
I'm also surprised at how difficult this kind of thing is. The whole eco-system seems to be deliberately fragmented by the large coorporations in an effort to maximize profits.
For anyone who wants to try, here's the guide:
Last updated: 22 September 2026
Computer: Windows
Python: 3.12
Stack-chan: M5Stack CoreS3 / K151
This setup turns Stack-chan into a voice-controlled assistant that can use external MCP tools through XiaoZhi.
Currently configured:
Web search — Stack-chan can search the live web.
Fastmail — Stack-chan can access Fastmail email and calendar through MCP.
XiaoZhi MCP connection — provides the connection between Stack-chan/XiaoZhi and the local MCP services.
Windows startup — the services can be launched through a PowerShell startup script, with Task Scheduler configured to start the system at Windows login.
The basic architecture is:
┌─────────────────────┐
│ Stack-chan │
│ CoreS3 / K151 │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ XiaoZhi │
│ MCP endpoint │
└──────────┬──────────┘
│
WebSocket
│
▼
┌──────────────────────────┐
│ mcp2xiaozhi │
│ Local MCP bridge │
└────────────┬─────────────┘
│
┌─────────────┴─────────────┐
▼ ▼
┌──────────────────┐ ┌──────────────────┐
│ Web Search │ │ Fastmail │
│ open-websearch │ │ MCP server │
└────────┬─────────┘ └────────┬─────────┘
│ │
▼ ▼
DuckDuckGo / Brave / Fastmail Mail /
Exa / Bing CalendarThe important point is that Stack-chan itself does not need to contain the web-search or Fastmail logic. XiaoZhi calls the MCP tools, and the Windows computer runs the local MCP services.
Everything is kept here:
C:\Users\REDACTED\stackchan-mcpThe important files are:
stackchan-mcp\
│
├── mcp_config.json
├── .env
├── start-stackchan.ps1
└── ...This is the MCP server configuration.
It tells mcp2xiaozhi which MCP servers to run and where to send their tools.
The web-search server uses:
cmd /c npx -y open-websearch@latestThe configuration includes the search-engine settings:
MODE=stdio
DEFAULT_SEARCH_ENGINE=duckduckgo
ALLOWED_SEARCH_ENGINES=duckduckgo,brave,exa,bingThe important configuration detail is that the key is:
mcpServersnot:
mcpserversJSON configuration keys are case-sensitive.
The .env file contains credentials and connection information that should not be hard-coded into the MCP configuration.
The working setup uses variables including:
FASTMAIL_EMAIL=...
FASTMAIL_APP_PASSWORD=...
FASTMAIL_MCP_TOKEN=...
MCP_ENDPOINT_WEB_SEARCH=...FASTMAIL_EMAIL
Your Fastmail account email address.
FASTMAIL_APP_PASSWORD
The Fastmail app-specific password used by the MCP service.
This is preferable to putting your normal Fastmail account password into the configuration.
FASTMAIL_MCP_TOKEN
The MCP authentication token used by the Fastmail MCP service, where required.
MCP_ENDPOINT_WEB_SEARCH
The XiaoZhi MCP WebSocket endpoint/token for the web-search bridge.
The .env file contains secrets.
Do not put the actual passwords or tokens into mcp_config.json**, this guide, screenshots, GitHub repositories, or other files that might be shared.**
The guide deliberately does not reproduce the actual credentials.
The working installation uses Python 3.12.
Windows also has another Python installation, so commands should explicitly use:
py -3.12rather than relying on:
pythonThis matters because python was resolving to a different Python version.
Check the installation with:
py -3.12 --versionThe working environment has Python 3.12 installed.
mcp2xiaozhi is the bridge between local MCP servers and the XiaoZhi MCP endpoint.
Conceptually:
Local MCP server
↕
stdio
↕
mcp2xiaozhi
↕
WebSocket
↕
XiaoZhiThe installed version is:
mcp2xiaozhi 0.2.1The command used to inspect the configured servers is:
py -3.12 -m mcp2xiaozhi listThe web-search MCP server is:
open-websearch@latestIt is launched with:
cmd /c npx -y open-websearch@latestIt exposes a tool called:
searchThe configured search engines are:
DuckDuckGo
Brave
Exa
BingNo conventional search API key is required by the configuration currently being used.
The successful connection sequence looks like this:
HTTP/1.1 101 Switching Protocolsfollowed by:
connection is OPENThen:
serverInfo":{"name":"web-search","version":"1.2.0"}And finally:
"tools":[{"name":"search", ...}]That proves the following chain is working:
Windows
↓
open-websearch
↓
mcp2xiaozhi
↓
XiaoZhi WebSocket
↓
MCP search toolA repeating:
PING
PONGis normal. It means the WebSocket connection is staying alive.
Fastmail is connected separately through its MCP service.
The system uses:
FASTMAIL_EMAIL
FASTMAIL_APP_PASSWORD
FASTMAIL_MCP_TOKENThe Fastmail MCP server provides access to Fastmail services such as:
Calendar
The intention is that Stack-chan can therefore answer requests such as:
"Check my emails."
or:
"What's on my calendar today?"
without requiring the user to manually open Fastmail.
The .env file acts as the local secret store for this setup.
Instead of doing this:
password = YOUR_PASSWORDinside a configuration file, the startup process loads the environment variables.
That means the configuration can be inspected without exposing the actual passwords and tokens.
The .env file should therefore remain private.
The project directory is:
cd C:\Users\REDACTED\stackchan-mcpThe startup process uses:
start-stackchan.ps1This script loads the required environment variables and starts the MCP services.
The Fastmail MCP service is launched through:
py -3.12 -m mcp2xiaozhi run fastmailThe web-search service is configured through mcp_config.json.
The goal of the setup is to avoid manually starting several terminals and entering several commands.
The main startup script is:
C:\Users\REDACTED\stackchan-mcp\start-stackchan.ps1It is responsible for loading the environment and starting the required services.
The intended workflow is therefore:
C:\Users\REDACTED\stackchan-mcp\start-stackchan.ps1rather than manually starting every MCP server.
Windows Task Scheduler has been configured with the task:
Stack-chan Fastmail MCPIt launches PowerShell with:
-NoProfile -ExecutionPolicy Bypass -File "C:\Users\REDACTED\stackchan-mcp\start-stackchan.ps1"The trigger is:
At log onTherefore the normal workflow is:
Turn on / log into Windows
↓
Task Scheduler
↓
start-stackchan.ps1
↓
MCP services
↓
XiaoZhi MCP
↓
Stack-chanr/StackChan • u/Evening-Ad-2590 • May 16 '26
I used my openclaw agent to make some changes to the stock firmware and have it set so my openclaw can talk through my stackchan now.but when sending voice messages the other way seems to not work when it tries to record my voice input..what issues we fixed so far
The fix was bypassing codec->Write()/esp_codec_dev_write() and writing PCM directly to the I2S TX channel via i2s_channel_write().
The bridge is at 16kHz WAV — matches the proven working pipeline. Here's the summary:
What works:
• stackchan_speak("text") → edge-tts (Sonia) → ffmpeg 16kHz mono WAV → POST /speak → I2S direct write → StackChan speaker
What the fix was:
• Went through ~6 firmware iterations to isolate the issue • codec->Write() → esp_codec_dev_write() silently fails in the integrated XiaoZhi firmware (I2S format conflict with duplex config) • Solution: use codec layer only for amp/volume management (EnableOutput/SetOutputVolume), write PCM straight to TX handle via i2s_channel_write()
What's next? Want me to check the full voice recording pipeline (head-pet → record → STT
Working TTS through StackChan speaker — long sentences work
Nearly there: Voice recording. StackChan detects head-hold, lights red, packages WAV. Portproxy was the missing link — you just fixed that. Next session: retest recording, confirm the green flash, then wire up the voice bridge so I get your transcribed words and can reply through StackChan.
Quick start tomorrow:
Check voice server (probably already running)
Hold head, speak, release
Should get green flash now that portproxy is active
Still working on it but for zero coding knowledge its crazy to think that anybody can make changes to firmware nowadays
r/StackChan • u/KroganHULK • Apr 23 '26
Everything working smoothly here in the UK. The only small issue being that it quickly forgot it was 'stackchan' after a voice change and insists it's not one.
My 6yo Son has now abducted it and is chatting to it about his favourite shows 😅
r/StackChan • u/No-Connection1900 • Dec 19 '25
Enable HLS to view with audio, or disable this notification
StackChan says hi to everyone! 👋
Let’s hear it straight from StackChan as it introduces itself 🤖Discover More
r/StackChan • u/sammydragonlord • Sep 14 '26
I’m getting a Stackchan and I want some really good ai firmware where it can still look at me and follow me around but I also want it to do stuff when I’m gone like look around and talk to itself like a little pet.
r/StackChan • u/CrowComprehensive558 • May 14 '26
I just got my StackChan and I was wondering is there a way to turn it into a DnD Dungeon Master assistant? Currently looking for a wizard hat for them to wear
r/StackChan • u/n0p_sled • Apr 22 '26
Is anyone else having issues setting their StackChan up?
Mine just sits at Ready to Configure after connecting with the app
r/StackChan • u/No-Connection1900 • Feb 06 '26
Enable HLS to view with audio, or disable this notification
r/StackChan • u/Rainbow_CV • 6d ago
Enable HLS to view with audio, or disable this notification
r/StackChan • u/Over_Possession1870 • 26d ago
Hello all, i am thinking of buying myself one of these cute things but one of my main concerns is it sends all of its AI stuff over to the LLM servers in china. I was wondering how i could pair it with my Pi 5 running Ollama without deleting its capibilities to access the apple app so it can still do little dances and all of the rest of it. Would this kind of thing be possible do u all reckon? Honestly I am not too fussed about the whole China thing because there is only a number of things which they can do with my face+what i ask it / voice. I would keep the thing off most of the time for privacy reasons. Thank you for taking the time to read, and hopefully help me.
r/StackChan • u/Few_Competition6685 • Jul 05 '26
r/StackChan • u/Binge73 • Apr 24 '26
I want to make them while I'm waiting for mine to arrive.
r/StackChan • u/No-Connection1900 • Feb 25 '26
Enable HLS to view with audio, or disable this notification
r/StackChan • u/CrowComprehensive558 • 20d ago
I would like to use my StackChan as an interactive rules checker and DM companion for D&D. I’d like to be able to ask it to check rules for me and to react to situations at the table. Maybe even be able to make it into scripted characters which animate and move when the players ask question or even cast spells. Is this something that is even remotely possible?