M5Stack hardware overview

The M5Stack company have been producing accessible and modular microcontroller devices to simplify IoT hardware prototyping, aiming to bridge the gap between design and implementation by integrating stackable modules, displays, and sensors into a user-friendly platform. M5Stack provides a modular and flexible hardware and software platform. The "M" stands for modular design, "5" comes from the original 5 × 5 cm form factor, and "Stack" reflects the stackable design concept.There are several families of M5Stack devices which are all based on Expressif ESP32 microcontrollers, with different form factors, displays, sensors and interfaces. M5Stack was acquired by Expressif in 2024.

M5Stack has been actively developing a range of devices that are relatively cheap and globally accessible, and that cater for hobbyist-to-professional applications. This is similar to products generated by Seeedstudio, which we've also used. Perhaps the major difference between the two is the wider integration of graphical devices in the M5Stack range, and most important for training, provision of wide support in a free software development environment (UiFlow2) that allows mixed graphical (Blockly) and text based (Micropython) programming. UIFlow2 has a built-in interface for no-code programming of M5Stack screen displays. It also supports Seeedstudio Xiao and Arduino Nesso components. In addition, there is growing support for direct and indirect AI programming of ESP32 devices (including the M5Stack Core3 and Tab5 devices) via LLMs through AIFlow that uses natural language to generate MicroPython code, deploy programs, and support debugging.

In the context of Biomaker, a number of features make the M5Stack hardware an attractive target for rapid prototyping and development. The family of hardware ranges from simple, compact devices to touchscreen controllers capable of supporting sophisticated user interfaces. Further, there are unified software development tools that provide direct support for (i) the various microcontroller devices and over 100 modules for hardware expansion and customisation, (ii) interactive design of on-screen user interfaces and (iii) a combination of visual, Micropython and AI vibe coding methods. These tools provide an unusually integrated combination of design flexibility, speed of development and learning tools for new programmers.

A key 'starter' set of base microcontroller devices is outlined below:

The Stick series - Slim and compact, the Stick series is designed for wearable, portable control, and mobile interaction scenarios, combining display, wireless connectivity, and sensing capabilities. Main products include StickS3, StickC Plus, StickC Plus2, StickC and StickT2. Plug-in expansion is available through the HAT series - which include various sensors, actuators, interface extensions, motor drivers, human-computer interaction (buttons, knobs, etc.), audio, communication, batteries and other functional units. They can be easily connected to Stick series main controls through 8pin pin headers to add corresponding hardware functions. They are called Hat series because the installation method is like putting a hat on the Stick main control.

As an example, the StickS3 is a compact and high-performance programmable controller designed for remote control and IoT applications. It is powered by the ESP32-S3-PICO-1-N8R8 main control chip, supporting 2.4 GHz Wi-Fi wireless communication, with built-in 8MB Flash and 8MB PSRAM to meet diverse application development needs, delivering excellent performance and scalability. For human–machine interaction, it features a 1.14" LCD display, a 6-axis IMU sensor, and programmable buttons. The audio system adopts the ES8311 mono audio codec, combined with a high-sensitivity MEMS microphone and AW8737 power amplifier, enabling clear audio capture and high-fidelity audio output, for voice recognition and interactive experiences. It also integrates IR transmitter and receiver, a 250mAh lithium battery.

Unit PoE‑P4 is a high‑performance PoE Ethernet embedded controller powered by the ESP32‑P4 SoC (RISC‑V 32‑bit dual‑core @ 360MHz + LP single‑core @ 40MHz). It integrates 16MB Flash and 32MB PSRAM, and features the built‑in IP101GRI Ethernet PHY supporting 10/100 Mbpscommunication. The device also supports PoE power delivery with a maximum output of 6W, and includes an onboard DC‑DC converter to supply system power, greatly simplifying power wiring in practical applications.

It is equipped with a 24P FPC display expansion interface (MIPI DSI + TP + BL) and a 24P FPC camera interface (MIPI CSI), supporting high‑resolution display output and image capture. For peripheral expansion, it provides one USB Type‑C Host (USB 2.0) port for connecting U disks, HID devices, and other peripherals, plus one USB Type‑C (USB 2.0) port supporting OTG and firmware download for debugging. In addition, it features a Hat expansion interface, SDIO & ISP IO expansion interfaces, and a Grove interface, enabling flexible connection to a wide range of sensors and peripherals.

The device also integrates an RGB indicator LED, an infrared transmitter circuit, and a user button to support status indication, local interaction, and infrared signal transmission. It is ideal for applications such as industrial HMI, PoE smart terminals, vision acquisition nodes, smart home controllers, and edge computing devices.

StopWatch is a round AMOLED touch development board designed for portable and interactive scenarios. It features an ESP32-S3R8 main controller with 16MB Flash and 8MB PSRAM, and supports 2.4GHz Wi-Fi wireless communication. The device integrates a 1.75" AMOLED round touch display, programmable buttons, and vibration feedback to provide an intuitive human-machine interaction experience. It also provides audio input/output, IMU attitude sensing, RTC timekeeping, and multiple expansion interfaces. Together with the M5PM1 multi-level power management system and a 450mAh battery, it can meet diverse development needs such as portable smart control, wearable human-machine interaction, and lightweight IoT terminals.

The form factor and capabilities of the stopwatch offer prospects for building smart timing devices for the lab bench or field work - with integration of voice activation and alerts, combined with touchscreen mode-selection and displays.

CoreS3 is the third-generation main controller of the M5Stack development kit series, based on the ESP32-S3 solution featuring a dual-core Xtensa LX7 processor running at 240 MHz with built-in Wi-Fi. It integrates 16MB Flash and 8MB PSRAM. Programs can be downloaded through the USB Type-C port, and OTG & CDC functions are supported for connecting USB devices and flashing firmware.

The front houses a 2.0-inch capacitive-touch IPS panel protected by high-strength glass. Below the screen is a 0.3MP GC0308 camera paired with an LTR-553ALS-WA proximity sensor. Power is managed by an AXP2101 PMU and four power-path control circuits, delivering a low-power design. Onboard sensors include a six-axis IMU BMI270 and a magnetometer BMM150. Additional peripherals comprise a microSD slot and a BM8563 RTC, enabling precise time-keeping plus sleep/timed-wake-up functions.

For audio, a 16-bit I2S amplifier AW88298 drives the built-in 1W speaker, while an ES7210 audio codec provides dual-microphone input. Independent POWER and RESET (RST) buttons are located on the side; long-pressing the RESET button enters download mode via a self-built delay circuit.

There are a number of other M5Stack Core devices that offer different features such as lower cost/reduced capabilities, robust housing, etc.

Cardputer-Adv is a card-sized portable programmable controller built on the Stamp-S3A module (based on ESP32-S3FN8). It features a 1.14" LCD screen and a 56-key compact keyboard for convenient on-site information display and command input. A built-in 1500mAh lithium battery ensures extended standalone operation. The device integrates an ES8311 audio codec, MEMS microphone, 1W speaker, and 3.5mm audio jack for voice interaction and audio output. Additional features include a 6-axis IMU BMI270, an infrared emitter, a microSD card slot, an HY2.0-4P Grove interface, and an EXT 2.54-14P expansion bus. The chassis supports magnetic attachment and is compatible with LEGO mounting holes.

Cap LoRa-1262 serves as the communication expansion module of the kit. It connects to the Cardputer-Adv via the EXT 2.54-14P interface, drawing power and control signals directly from the host — plug-and-play with no additional configuration required. The module is built around the SX1262 LoRa solution, supporting the 868 ~ 923 MHz band with a receive sensitivity of -147 dBm and a transmit power of +22 dBm. An RP-SMA external antenna and RF shielding ensure reliable long-range communication with strong interference immunity. An integrated AT6668 GNSS module with a built-in ceramic antenna supports multi-constellation positioning including GPS, BeiDou, GLONASS, and Galileo. The module also includes an HY2.0-4P interface for connecting external sensors. Available as part of the Cardputer Mesh Kit that is ready to join a LoRa Mesh network out of the box.

Tab5 is a highly expandable, portable smart IoT terminal designed for developers, integrating a dual-core architecture and rich hardware resources. It is built around the ESP32-P4 SoC based on the RISC-V architecture, featuring 16MB Flash and 32MB PSRAM for high-performance application development.

Wireless connectivity is powered by the ESP32-C6-MINI-1U, supporting Wi-Fi 6 for high data throughput and low-latency communication. The antenna system supports flexible switching between a built-in 3D antenna and an external MMCX antenna, ensuring reliable performance across diverse deployment environments.

The Tab5 features a 5-inch 1280×720 IPS touchscreen with an MIPI-DSI interface, delivering smooth visuals and responsive touch interaction. A built-in SC2356 2MP camera (1600×1200) using an MIPI-CSI interface supports HD video capture, image processing, and edge AI applications such as facial recognition and object tracking.

Rich peripheral connectivity includes USB Type-A (Host) and USB Type-C (USB 2.0 OTG) for keyboards, mice, and external devices. Industrial applications are supported through RS-485 (SIT3088 with switchable 120Ω termination). Expansion options include HY2.0-4P, M5-Bus, GPIO_EXT headers, a microSD card slot, and reserved STAMP pads for communication modules such as Cat-M, NB-IoT, and LoRaWAN. Dedicated Reset and Boot buttons enable fast system reset and firmware download.

Audio capabilities include an ES8388 audio codec combined with an ES7210 AEC front-end, a dual-microphone array, onboard speaker, and a 3.5mm headphone jack, supporting Hi-Fi audio playback, recording, and accurate voice recognition. Motion detection is handled by a BMI270 6-axis IMU (accelerometer + gyroscope) with interrupt-based wake-up, allowing the MCU to respond instantly in motion-triggered and low-power scenarios. The Tab5 integrates an RX8130CE real-time clock (RTC) with timed interrupt wake-up for precise timekeeping. Power is supplied via a removable NP-F550 Li-ion battery, supported by an MP4560 buck-boost converter, IP2326 charging management, and INA226 real-time power monitoring for stable and reliable standalone operation. A 1/4″-20 tripod nut on the side allows direct mounting to a tripod or bracket.

Tab5 Keyboard is a 70-key physical keyboard input expansion module designed specifically for Tab5. It connects directly to the host via Tab5 Ext.Port1, enabling a plug-and-play input experience. The module integrates an STM32F030C8T6 main control chip, responsible for keyboard matrix scanning and communication processing. The preloaded firmware supports three operating modes: Normal, HID, and Character, adapting to different interaction requirements. The keyboard adopts a 14 x 5 matrix design, supports multiple simultaneous key presses, and provides a complete set of letters, numbers, symbols, and commonly used function keys such as Aa, Ctrl, Sym, Alt, Tab, Esc, and arrow keys. The device communicates with Tab5 via I2C and provides an independent interrupt pin for low-latency real-time reporting of key events. Two onboard RGB LEDs can be used for full-color status indication.

Hardware expansion

A useful feature of the M5Stack systems is the variety and depth of support for hardware expansion. M5Stack Unit series include a wide variety of sensors, actuators, interface extensions, motor drivers, human-computer interaction (screens, lights, buttons, knobs, etc.), audio-visual cameras, communication and other functional units. They can be easily connected to various main controls through the HY2.0-4P Grove interface to add corresponding hardware functions. Further, M5Stack software development tools provide built-in support for the prolific expansion devices.

Module/Base series

The M5Stack module and base series include various sensors, actuators, interface extensions, motor drivers, human-computer interaction (keyboards, buttons, knobs, etc.), audio-visual, communication, batteries, LLM and other functional units. Divided into four categories according to shape and size: Module, Module13.2, Base, and Faces, they can be easily stacked and connected to Core series main controls through M5-Bus (supporting multiple product stacking) to add corresponding hardware functions.

Other hardware expansion...

Note: Click on the thumbnail images to see more details. More technical details can be found at: https://docs.m5stack.com/en/start

Images on this page, and some descriptive text have been adapted from the M5Stack website.

Building instrumentation

In this latest iteration of Biomaker training resources described here, we are using M5Stack hardware and software for development of custom bioinstrumentation. The Biomaker.org site pages attempt to provide a guide to getting started, which should be complemented by the online materials held at the M5Stack website.

The Project Logs held on this site describe construction methods in more detail - framed around particular biology-related projects. Some of the project logs describe work-in-progress so, by definition, unfinished - as incremental trials and improvements are made. However, I have tried to add sufficient detail to allow others to reproduce the assembly processes, to adapt to local materials and needs - and likely make their own improvements.

If anything is unclear, get in touch.
(Contact details below)

biomaker.org

Home

Hardware

Software

Projects

Contact Us

Jim Haseloff

Cambridge, England

New York, USA

@jimhaseloff.bsky.social