Skip to content

Dreamlexxi/Microphone-M5Stick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

M5StickC PLUS2 – Live Microphone Web Stream

Stream real-time microphone audio from an M5StickC PLUS2 over Wi-Fi and listen directly in a web browser.

The device runs a fully self-hosted system:

  • HTTP web interface on port 80
  • WebSocket audio stream on port 81
  • Raw PCM 16-bit mono audio at 16 kHz
  • No external server or cloud required

Built for Arduino IDE using M5Unified.


✨ Features

  • Uses the built-in SPM1423 microphone
  • Low-latency live streaming over local Wi-Fi
  • Works on phone, tablet, and desktop browsers
  • Supports multiple listeners simultaneously
  • Simple Start / Stop UI with gain control
  • Runs entirely on the ESP32 inside M5StickC PLUS2

🧰 Requirements

Hardware

  • M5StickC PLUS2
  • 2.4 GHz Wi-Fi network
  • USB-C cable for programming

Software

  • Arduino IDE
  • M5Stack board package
  • Arduino libraries:
    • M5Unified
    • WebSockets (by Markus Sattler / Links2004)

βš™οΈ Installation

1. Install M5Stack Board Support

Open Arduino IDE β†’ Preferences
Add this Board Manager URL: https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json

Then:

  • Open Boards Manager
  • Install M5Stack
  • Select board: M5StickCPlus2

2. Install Required Libraries

Arduino IDE β†’ Library Manager

Install: M5Unified WebSockets


3. Configure Wi-Fi

Edit inside the sketch:

const char* WIFI_SSID = "YOUR_WIFI_NAME";
const char* WIFI_PASS = "YOUR_WIFI_PASSWORD";

πŸ”’ Security Notice

This project:

  • Has no authentication
  • Uses unencrypted WebSocket audio
  • Is intended for trusted private LAN use only
  • Do not expose directly to the internet without adding security.

About

A simple firmware to listen to the microphone of the M5Stick C PLUS 2, On a WebServer

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages