M5Stack Core2 Pinout

The original M5Stack Core2 (M5Core2, K010) combines an ESP32 with a 2-inch capacitive touchscreen, microSD, a speaker and a rechargeable battery.

Main pinout

The original M5Stack Core2 (M5Core2, K010) combines an ESP32 with a 2-inch capacitive touchscreen, microSD, a speaker and a rechargeable battery. The photograph shows the M5.CV2 V1.0 PCB with the rear assembly removed. Identify the exposed 30-pin M5-Bus and the four contacts of the side Port A.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show signal details

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

34 visible
PinMCU pinTypesNotes
GNDCommon ground.
ADCAnalog or digital input.
GNDCommon ground.
ADCAnalog or digital input.
GNDCommon ground.
ResetESP32 chip enable / system reset.
SPISPI controller data out.
DACGPIO with analog output.
SPISPI controller data in.
DACGPIO with analog output.
SPISPI clock.
PowerRegulated 3.3 V MCU supply.
UARTUART0 receive at the ESP32.
UARTUART0 transmit from the ESP32.
UARTGPIO used for UART2 RX in the M5-Bus map.
UARTGPIO used for UART2 TX in the M5-Bus map.
I2CInternal I²C data.
I2CInternal I²C clock.
I2CPort A I²C data.
I2CPort A I²C clock.
GPIOGeneral-purpose digital input or output.
GPIOGeneral-purpose digital input or output.
I2SI²S data out to the speaker amplifier.
I2SSpeaker word select and stock microphone clock.
NCNo connection on the K010.
I2SPDM data from the microphone on the stock base.
NCNo connection on the K010.
PowerShared 5 V bus rail (BUS_5V).
NCNo connection on the K010.
PowerPositive terminal of the single-cell battery rail.
GNDCommon ground.
PowerShared 5 V bus rail (BUS_5V).
I2CPort A I²C data, white case port with red socket.
I2CPort A I²C clock, white case port with red socket.

Specifications

Board
Core2 K010 with AXP192. Photographed PCB: M5.CV2 V1.0, marked 20200707.
ESP32
ESP32-D0WDQ6-V3, dual-core LX6 up to 240 MHz, 16 MB flash, 8 MB PSRAM, 2.4 GHz Wi-Fi and Bluetooth.
Power and logic
5 V USB supply. 3.3 V GPIO logic, including Port A. The 5 V rail on Port A shares BUS_5V with M5-Bus. BAT is on the single-cell battery rail.
Original battery and bridge
The 2020 FCC sample shows a 390 mAh, 3.7 V battery and an RTC backup cell. The launch design uses CP2104 and ILI9342C. M5Stack documents later K010 component changes.
Internal I²C
G21 SDA and G22 SCL. AXP192 0x34, FT6336U 0x38, BM8563 0x51 and stock-base MPU6886 0x68.
Port A and M5-Bus
Port A G32/G33 duplicates M5-Bus pins 19/20. The socket is exposed by removing the stock rear assembly, which carries the IMU and PDM microphone.
LCD and microSD
320 × 240 display. LCD and microSD share SPI on G23/G38/G18, with G5 and G4 as separate chip selects.
USB-C and audio
USB-C provides power and UART0 programming via the bridge. The NS4168 speaker path uses G12/G0/G2. The stock microphone uses G0 clock and G34 data.
Pin orientation
Looking into the M5-Bus socket, pins 1 and 2 are at the power-button end. In the photo the odd row is on the left. Port A is viewed from the PCB side.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Core2 K010Product guide and pin mapM5StackOriginal SKU with AXP192. See the Version Change table for later K010 production.Datasheet
Core2 V1.0Core schematicM5StackBUS1, J4, series resistors and power nets.Datasheet
Core2 stock expansionBase schematicM5StackMPU6886 and SPM1423 on the original rear assembly.Datasheet
ESP32-D0WDQ6-V3ESP32 series datasheetEspressifPin functions, strapping and electrical characteristics.Datasheet
Core2 K010Original product listingM5StackOriginal development kit SKU, marked end-of-life.Datasheet