muse-gadget-sdk README

The project's README from github.com/facebookincubator/muse-gadget-sdk. As one markdown file: README.md.

Muse Gadgets

Muse gadgets: a Waveshare round AMOLED, an M5Stack StickS3, Muse Home Link, a Raspberry Pi and a Seeed reTerminal e-ink display

Muse gadgets are open source devices you build yourself. Program an off-the-shelf ESP32 board or set up a Raspberry Pi with our device SDKs, then connect Muse to your displays, buttons, sensors, actuators, and whatever else you've got lying on your workbench.

We open sourced the SDKs and firmware here. It's built by hackers, for hackers, just for fun. Side effects of tinkering may include bricked boards, voided warranties, brownouts, or bankruptcies. Proceed at your own risk!

ESP32 Device SDK Connect your ESP32 board to Muse through our open source SDK. Throw in a screen to show images, add audio in and out, or wire up other sensors.
Linux Device SDK Turn that spare Raspberry Pi or Linux box into a Muse gadget. Hack in your own commands to let Muse handle sysadmin chores or your Home Assistant setup.
Zephyr Device SDK A push-to-talk Bluetooth gadget for the Seeed XIAO nRF54L15 Sense: hold the button and talk to Muse, even offline. Built for that board; other Zephyr boards with a button and a microphone need a port.
Muse Gadgets Test (iPhone) Stream your phone's camera, or a clip, to an ESP32 gadget's screen over Wi-Fi: H.264 or VP8 decoded on the board, 30 fps on the round 466 px boards. protocols/VIDEO.md explains how.

Before you flash or pair a gadget, get an SDK token and review the Gadget SDK Terms. Every gadget needs a token to pair.

To install supported prebuilt ESP32 firmware without setting up ESP-IDF, use the Muse Gadget Web Flasher in Chrome or Edge on a desktop computer.

ESP32 and Linux gadgets pair with the Muse app on iOS and Android, via Settings > Devices. Turn on Developer mode there first, then look for devices prefixed with "MuseGadget".

The Zephyr gadget, and ESP32 boards with musegadgets BLE audio turned on, talk to the Muse app over the BLE protocol in protocols/. Each SDK directory has a README.md to get started and an AGENTS.md for coding agents like Muse Code. protocols/DEVICE.md says how a gadget describes itself to Muse, and protocols/ERROR_REPORT.md what it tells Muse after a crash.

For battery-input power profiling, see the porting recipe. The opt-in diagnostic core is board-neutral; boards supply its hooks and state matrices, and power_sweep.py drives the USB-free sweep. The isolated diagnostic does not pair or need an SDK token; fixture safety and explicit hardware authorization still come first, as the PPK2 rules describe.

Community

Meet other hackers who are building and customizing Muse gadgets in our community Discord. Get inspired, support each other, and share what you make.

License

Muse Gadgets is licensed under the Apache License, Version 2.0, found in LICENSE, except for these third-party files, which keep their upstream licenses:

Path Upstream License
esp32/components/minimp3/include/minimp3.h lieff/minimp3 CC0-1.0, see LICENSE
esp32/components/muse/muse_icons_gen.h Material Icons (the Muse Gadgets standard icons) Apache-2.0
esp32/components/muse/boards/ostb_echoear_display_init.h 78/xiaozhi-esp32 ESP-VoCat panel sequence MIT, retained in the file header
ST7789 tuning table in board_atk_dnesp32s3_box2.c 78/xiaozhi-esp32 ATK-DNESP32S3-BOX2 board MIT, see xiaozhi-esp32.txt
ST77916 initialization sequence in waveshare_s3_185c/st77916_init_185c.h 78/xiaozhi-esp32 Waveshare ESP32-S3-Touch-LCD-1.85C board MIT, see xiaozhi-esp32.txt
JD9853A initialization sequence in board_seeed_xiao_s3_147.c Seeed-Studio/Seeed_GFX2 MIT, see Seeed_GFX2.txt
GC9107 initialization sequence in board_m5stack_atoms3.c M5Stack M5GFX Panel_GC9107, from LovyanGFX FreeBSD, see LovyanGFX.txt
AXS15231B initialization sequence in board_guition_jc3248w535.c moononournation/Arduino_GFX 1.4.9's axs15231b_init_operations BSD-2-Clause, see Arduino_GFX.txt
esp32/components/esp_lcd_gc9107 Espressif's espressif/esp_lcd_gc9107 2.0.0 from the ESP Component Registry, changed to build on ESP-IDF 6 Apache-2.0, Espressif's copyright, see license.txt
esp32/components/muse/boards/viewe_smartring_display_init.h VIEWESMART/smartring_plus panel sequence Apache-2.0 under VIEWE's copyright, in the file header
esp32/components/muse/boards/waveshare_s3_185b_init.h waveshareteam/ESP32-S3-Touch-LCD-1.85B panel sequences Apache-2.0, in the file header
CO5300 initialization sequence in board_esp_mosaico.c esp-mosaico/esp-mosaico-bsp vendor init Apache-2.0, Espressif's copyright, noted in the file header
ExecuTorch runtime with its ESP-NN delegate, for the opt-in wake word (registry component, not vendored; see docs/executorch.md) pytorch/executorch, with espressif/esp-nn BSD-3-Clause AND Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND NCSA AND MIT, see the component's LICENSE; bundled third-party notices in the component. esp-nn: Apache-2.0
TensorFlow Lite Micro's microfrontend, for the opt-in wake word (registry component, not vendored) esphome/esp-micro-speech-features Apache-2.0 (TensorFlow Authors, Kevin Ahrendt); its kissfft files BSD-3-Clause (Mark Borgerding)
esp32/components/muse_wakeword/models/hey_muse.pte Trained for this SDK on public-domain, CC0 and CC BY data Training data credits, as CC BY requires, in ATTRIBUTION.md
esp32/main/pixel_font.c Adafruit GFX glcdfont.c BSD-2-Clause, in the file header
esp32/components/muse/fonts/ GNU Unifont 16.0.04, Noto Sans SC, Montserrat Medium via LVGL, and Montserrat SemiBold, subsets (see its README) SIL Open Font License 1.1 (Unifont also GPL-2.0+ with the font embedding exception)
card_font.h Montserrat Regular, subset for the OLIGHKER status screen SIL Open Font License 1.1, see montserrat-ofl.txt
epd420_cjk.bin Noto Sans SC, subset for the OLIGHKER status screen SIL Open Font License 1.1, see LICENSE-noto-sans-sc.txt
esp32/components/muse/fonts/muse_font_emoji_16.c Twemoji v16.0.1 graphics, 190 of them scaled to 16 px (see README.md) CC-BY 4.0, see LICENSE-twemoji.txt
esp32/main/fonts/epaper_154g_caption_font.h GNU Unifont 16.0.04, subset (see README.md) SIL Open Font License 1.1, or GPL-2.0+ with the font embedding exception
esp32/components/muse/eink/fonts/montserrat.ttf Montserrat Medium, via LVGL v9.5.0 SIL Open Font License 1.1
esp32/components/muse/eink/fonts/unscii.ttf unscii-8 Public domain
esp32/components/muse/eink/fonts/symbols.ttf Font Awesome 5 Free, via LVGL v9.5.0 SIL Open Font License 1.1 (icons CC BY 4.0)
esp32/main/epd_ssd1677.c Seeed-reTerminal-E10xx-Firmware's SSD1677 refresh sequence MIT, retained in the file header
esp32/main/uc8179_gray4_lut.h Seeed_GFX2's UC8179 four-gray waveforms MIT, retained in the file header
esp32/main/epd_it8951.c Seeed_GFX2's IT8951 command framing and ED103TC2 one-bit and four-bit modes MIT, retained in the file header
SSD1681 initialization sequence and waveform LUT in esp32/main/epd_ssd1681.c waveshareteam/ESP32-S3-ePaper-1.54's XiaoZhi V2 source, 78/xiaozhi-esp32 with Waveshare's board MIT, see xiaozhi-esp32.txt
xplat/tinyh264/src (built by esp32/components/tinyh264) the Android Open Source Project's H.264 decoder, via udevbe/tinyh264 Apache-2.0, AOSP's copyright, see LICENSE
xplat/libvpx_vp8/src (built by esp32/components/libvpx_vp8) libvpx v1.16.0's VP8 decoder, trimmed BSD-3-Clause, the WebM Project authors' copyright, see LICENSE, with Google's patent grant in PATENTS
libwebp v1.6.0's WebP decoder, for the opt-in avatar sync (fetched at build time from a pinned archive, not vendored; see avatar_webp.cmake) webmproject/libwebp BSD-3-Clause, Google's copyright, with Google's patent grant, see libwebp.txt
esp32/tests/vectors/esp_lvgl_adapter/pause_0.6.4.c esp_lv_adapter_pause() from espressif/esp_lvgl_adapter 0.6.4, a test input for its pause fix Apache-2.0, Espressif's copyright, as its header says
esp32/tests/vectors/h264/regress/ tinyh264 regression corpus: frames of an x264 encode of Big Buck Bunny, (c) 2008 Blender Foundation CC BY 3.0, credited in its README.md
zephyr/src/zephyr/smp.c Zephyr v4.4.2 subsys/mgmt/mcumgr/transport/src/smp.c, with three changes marked in the file Apache-2.0, Runtime.io's and Nordic Semiconductor's copyright, in the file header
xplat/libsbc (built by esp32/components/libsbc; the ESP32 and Zephyr gadgets use it) google/libsbc Apache-2.0, Google's copyright, see LICENSE
xplat/liblc3 (built by esp32/components/liblc3; the ESP32 and Zephyr gadgets use it) google/liblc3 Apache-2.0, Google's copyright, see LICENSE
xplat/lc3fx (built by esp32/components/liblc3 for chips without an FPU; for the same BLE gadgets) fixed-point port of google/liblc3 (the Muse Gadgets copy, see VENDORED.md) Apache-2.0, a derivative of liblc3, see LICENSE
android/lc3-kotlin Kotlin translation of google/liblc3 v1.1.3+5 (8e1e722c) Apache-2.0, a derivative of liblc3 (Google's copyright), see LICENSE and NOTICE
Gradle wrapper in android/lc3-kotlin (gradlew, gradlew.bat, gradle/wrapper/gradle-wrapper.jar) Gradle 8.13; gradle-wrapper.jar SHA-256 81a82aaea5abcc8ff68b3dfcb58b3c3c429378efd98e7433460610fecd7ae45f, Gradle's published checksum, and the wrapper checks the distribution's (distributionSha256Sum) Apache-2.0, the Gradle authors' copyright, in the script headers
portable/mg_link_setup/third_party/micro-ecc kmackay/micro-ecc at 541b3a78, P-256 files only (see its README) BSD-2-Clause, Kenneth MacKay's copyright, see LICENSE.txt

Dependencies fetched at build time are under their own licenses: ESP-IDF components (into esp32/managed_components/), and the simulator's LVGL and SDL (listed in esp32/simulator/THIRD_PARTY.md).

The Apache License does not cover the Jollybot avatar.

Muse Gadgets Test's sample clips aren't in this repository: the app fetches a few seconds of the Blender Foundation's open movies (CC BY 3.0) when one is played, and shows their credits.

Muse Gadgets Test can use x264 (GPL-2.0) on the phone; this repository carries none of its code. An APK or iPhone app you build with it is under the GPL (android/musegadgetstest/README.md, ios/musegadgetstest/README.md).

muse-gadget-sdk (facebookincubator/muse-gadget-sdk)

Searching Database…

What is this?This is an open source SDK and firmware for building 'Muse gadgets' — DIY devices on ESP32 boards or Raspberry Pi/Linux boxes that connect to the Muse app to drive displays, audio, buttons, sensors, and actuators.
Is this one unified SDK or separate kits?It's two separate device SDKs plus firmware — one for ESP32 boards and one for Linux/Raspberry Pi boxes — rather than a single unified framework.
How do I get a gadget running?Get an SDK token and review the Gadget SDK Terms, then follow the README.md in the esp32/ or linux/ directory for your target device, flash or pair it, and connect it to the Muse app via Settings > Devices with Developer mode turned on.
What do I need before I start?An ESP32 board or a Raspberry Pi/Linux box, the Muse mobile app on iOS or Android with Developer mode enabled, and a valid SDK token to pair the gadget.
Is this safe for my hardware?No guarantees — this is hacker-grade tinkering, and the README explicitly warns you can brick boards, void warranties, or cause brownouts while experimenting.
What is the Muse app, and how does my gadget connect to it?Muse is the companion mobile app on iOS and Android that gadgets pair with — you enable Developer mode under Settings > Devices and look for entries prefixed 'MuseGadget'.
Does the Apache-2.0 license cover everything in the repo?No. Files like esp32/components/minimp3/include/minimp3.h and esp32/main/pixelfont.c keep their original CC0-1.0 and BSD-2-Clause licenses, and the Jollybot avatar isn't covered by the Apache License at all.
Can AI coding agents help me build a gadget?Yes, each SDK directory ships an AGENTS.md aimed at coding agents like Muse Code, alongside a regular README.md for humans.
Where can I find other gadget builders?There's a community Discord where hackers share builds, get inspired, and support each other.
Size
13.2 MB
Stars
2.8K
Updated
CommitNov 19
Age
1mo
Commits · 90 Days