Expose the StackChan backend base URL as a Kconfig string so it can be overridden via menuconfig or sdkconfig.defaults.local without patching source files. This follows the same pattern as the existing CONFIG_OTA_URL option used by the Xiaozhi Assistant pipeline. The weak-linked secret_logic::get_server_url() now returns CONFIG_STACKCHAN_SERVER_URL when defined, and keeps the previous localhost:3000 stub as a fallback for builds that omit the config. The default value equals the current production server, so firmware builds without an explicit override keep talking to the same backend they do today (no regression). Intended usage with this option relies on hal_account.cpp and hal_app_center.cpp going through secret_logic::get_server_url() as well (see the companion refactor). Until that lands, only hal_ws_avatar.cpp honours the override.
StackChan Open Source
Pre-order your StackChan: https://m5stack.com/stackchan
The software development is still in progress. Final features and documentation may change. Thank you for your understanding.
StackChan is a super kawaii AI desktop robot co-created by M5Stack and the user community. It uses the M5Stack flagship IoT development kit CoreS3 as its main controller, powered by an ESP32-S3 SoC featuring a 240 MHz dual-core processor, with 16MB Flash and 8MB PSRAM onboard, and supporting Wi-Fi and BLE. The main unit also integrates a 2.0-inch capacitive touch display with a high-strength glass cover, a 0.3 MP camera, a proximity sensor, a 9-axis IMU (accelerometer + gyroscope + magnetometer), a microSD card slot, a 1W speaker, dual microphones, and power/reset buttons.
The robot body, connected to the main unit, includes a USB-C interface for power and data, a 700 mAh battery, two feedback servos (360-degree continuous rotation on the horizontal axis and 90-degree movement on the vertical axis), two rows totaling 12 RGB LEDs, infrared transmitter and receiver, a three-zone touch panel, and a full-featured NFC module.
The factory firmware comes with rich features, including vivid and cute facial expressions and motions, the XiaoZhi AI agent, as well as support for iOS app video calls, remote avatars, and discovering other nearby StackChan devices. The product also supports programming via Arduino and UiFlow2, making it easy to implement a wide range of custom functionalities.
Do not forcibly rotate any movable parts connected to the motors by hand when you are unsure whether the motors are powered and under control, as this may cause hardware damage.
-
StackChan World iOS app: https://apps.apple.com/app/stackchan-world/id6756086326
-
StackChan World website: https://stackchan.world/home