afterware
Resources
Saved
1/8
Interface · code

M5Stack Tab5 becomes a six-mode USB-MIDI controller

Original

Open-source ESP-IDF firmware turns the Tab5's touchscreen into a driverless MIDI pad with a 4-track looper. Every control shows its live value and CC or note assignment.

Build sheet
Board
M5Stack Tab5 (ESP32-P4)
Interface
USB-MIDI class device
Framework
ESP-IDF 5.5.4
Modes
6 (notes, drums, faders, XY, macros, looper)
Can I build this?Beginner · AI 5/5 · $50–80
Difficulty
Beginner
AI-buildability
5/5

It is entirely firmware for an off-the-shelf Tab5, so AI tools can write nearly all of it and the reader only needs to set up ESP-IDF and flash it.

Time
A weekend
Cost
$50–80
Tools
USB-C cablecomputer with ESP-IDF 5.5.4 installed
Starter prompt

Based on "M5Stack Tab5 becomes a six-mode USB-MIDI controller" on Afterware: https://afterware.xyz/p/tab5-touchscreen-turned-into-a-midi-grid

Write ESP-IDF firmware for an M5Stack Tab5 (ESP32-P4) with its touchscreen that acts as a class-compliant USB-MIDI device. Draw an 8x4 grid of pads that send note on/off with fixed velocity, and a row of four faders that send CC 20-23 with relative drag. Show each control's current value and CC or note number on screen, and redraw the full frame every time you present it.

Estimates based on the original write-up. How AI-buildability is scored. Building with an AI assistant? Connect it to Afterware (free MCP server).

Story

Plug the Tab5 into a computer and your DAW sees a plain USB-MIDI input. No driver needed. Tab5 Launchpad, built around the tablet's ESP32-P4, splits the screen into six modes: notes, drums on the GM percussion map (channel 10), faders, an XY pad, 16 macro knobs and a looper.

The looper records whatever you play in any mode. It can also capture MIDI sent back from a connected host, and tracks stack through overdub. Each on-screen control shows its current value and its CC or note assignment, so you always know what you're touching. One caveat: the firmware reports USB enumeration state only, not whether a DAW is actually listening.

The repo's best trick is a native Linux preview tool. It runs the real drawing code against a software framebuffer, so the screenshots come from the firmware itself, not mockups. Building it is easy too: a stock ESP-IDF 5.5.4 project.

Resources · 2
More like this
More like this