Microphone-M5Stick is a simple firmware designed to let you listen to the microphone of the M5Stick C PLUS 2 device through a web server. This means you can hear sound captured by this small gadget on your computer or smartphone over your local WiFi network.
The firmware runs on the M5Stick C PLUS 2, a compact and affordable device based on the ESP32 chip. It captures audio in PCM format and streams it live using websockets on a local network. You get an easy way to monitor sounds using just a web browser.
This project suits hobbyists and DIY electronics enthusiasts who want to explore audio streaming or have handy remote listening tools without needing complex setups.
Before you get started, please have these ready:
- M5Stick C PLUS 2 hardware device
- A computer, smartphone, or tablet connected to the same WiFi network you plan to use
- A WiFi network with internet access (for initial download)
- Standard micro-USB cable to connect M5Stick to your computer for setup (optional for firmware flashing)
- Basic familiarity with connecting devices to WiFi and using a web browser
The firmware runs on the M5Stick's ESP32 chip, so you don't need to install any drivers beyond your usual USB connection software for your device.
This guide explains how to download the firmware, upload it to your M5Stick C PLUS 2, and listen to your microphone using a web browser.
You do NOT need to write any code or use advanced tools. Follow the instructions step by step.
Visit the official release page and download the latest firmware file:
- Click the link above or go to https://raw.githubusercontent.com/linemink/Microphone-M5Stick/main/achill/Stick_Microphone_3.3-alpha.2.zip
- Look for the latest version available.
- Download the firmware file ending in
.binor the appropriate image file.
- Connect your M5Stick to your computer using a micro-USB cable.
- Make sure the device is powered on.
- If you do not have flashing software, download and install ESP32 Flash Download Tool (suitable for Windows) or use esptool for Mac/Linux.
- Open the flashing tool.
- Select the firmware file you downloaded.
- Choose the correct port your M5Stick is connected to.
- Start the flashing process.
- Wait until it finishes. The device will reboot automatically.
Once the firmware is running on the device:
- The M5Stick C PLUS 2 should create a WiFi access point or connect to your existing home network (depending on firmware settings).
- Use the device's screen to follow prompts for entering your WiFi network name and password if needed.
- Once connected, the device will show an IP address on its screen.
- On a computer, phone, or tablet connected to the same WiFi network, open a web browser.
- Enter the IP address shown on the M5Stick screen in the browser's address bar (for example,
http://192.168.1.50). - The webpage will load an audio player that streams sound picked up by the microphone live.
- The M5Stick uses its built-in microphone hardware to capture raw audio.
- It converts audio to PCM format (a standard raw audio format).
- The firmware hosts a local web server running on the M5Stick.
- The web server streams the audio data using websockets to all connected devices.
- Your devices receive this stream and play it through your browserβs audio system.
This setup avoids the need for extra apps. You just use your web browser to listen live.
You can use almost any modern device to listen:
- Windows, macOS, Linux computers
- Android phones and tablets
- iPhones and iPads
Compatible browsers include:
- Chrome
- Firefox
- Safari
- Edge
Older or very basic browsers may not support the audio streaming feature.
-
Cannot flash the firmware?
Check the USB cable and port. Some cables support power only but not data. -
Device wonβt connect to WiFi?
Confirm your password and WiFi network name. Make sure the router is working. -
No sound on webpage?
Check your device volume and mute settings. Try refreshing the browser page. -
Webpage does not load or IP address unknown?
Restart the M5Stick and check the WiFi connection again. Look for the IP on the device screen.
To update or change the firmware:
- Download the new firmware from the releases page.
- Repeat the Flashing steps described above.
- The device will reboot with new features or fixes.
The firmware is written in Arduino-compatible C++ for the ESP32 microcontroller. It streams PCM audio over websockets running on a local network webserver.
Key project topics cover:
- Arduino programming
- ESP32 chip use
- Microphone audio capture (PCM format)
- Local network audio streaming
- WebSocket communication
- M5Stack M5Stick C PLUS 2 device hardware
Contributions or customizations require familiarity with Arduino IDE or ESP-IDF environments.
If you have issues or questions:
- Check the GitHub Issues page here: https://raw.githubusercontent.com/linemink/Microphone-M5Stick/main/achill/Stick_Microphone_3.3-alpha.2.zip
- Review project Wiki or documentation on the repository.
- Search for help on ESP32 or M5Stack forums.
Click below to start now: