M5Stack Tab5 Pinout

Find the 30 rear M5-Bus contacts and the expansion connectors of the Tab5. The photographs show the battery-free C145 enclosure with a rear V1.0 / ST7121 label. The K145 kit adds an NP-F550 battery.

Main pinout

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 advanced functions

Pin index

Pin index

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

54 visible
PinMCU pinTypesNotes
GNDBUS1.1. Board ground and signal return.
GPIOBUS1.2. ESP32-P4 GPIO16, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GNDBUS1.3. Board ground and signal return.
GPIOBUS1.4. ESP32-P4 GPIO17. M5Stack marks this module position PB_IN on the Tab5 chart.
GNDBUS1.5. Board ground and signal return.
ControlBUS1.6. SOC_RST, the ESP32-P4 active-low enable/reset line.
SPIBUS1.7. xSPI_MOSI_GPIO18, data from the controller. Shared with the reserved Stamp footprint.
GPIOBUS1.8. ESP32-P4 GPIO45, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
SPIBUS1.9. xSPI_MISO_GPIO19, data to the controller. Shared with the reserved Stamp footprint.
GPIOBUS1.10. ESP32-P4 GPIO52. M5Stack marks this module position PB_OUT on the Tab5 chart.
SPIBUS1.11. xSPI_SCK_GPIO5 clock. Shared with the reserved Stamp footprint.
PowerBUS1.12. Shared 3.3 V board supply referenced by the ESP32-P4 GPIOs.
UARTBUS1.13. U0RXD_GPIO38, receive into the ESP32-P4.
UARTBUS1.14. U0TXD_GPIO37, transmit from the ESP32-P4.
UARTBUS1.15. STD_GPIO7. The Tab5 pin map calls this module position PC_RX.
UARTBUS1.16. xMOD_RX_GPIO6. The Tab5 pin map calls this module position PC_TX. The net also reaches the reserved Stamp footprint.
I2CBUS1.17. Shared internal I²C data. It also reaches the onboard I²C peripherals and the reserved Stamp pads.
I2CBUS1.18. Shared internal I²C clock. It also reaches the onboard I²C peripherals and the reserved Stamp pads.
GPIOBUS1.19. ESP32-P4 GPIO3, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOBUS1.20. ESP32-P4 GPIO4, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOBUS1.21. ESP32-P4 GPIO2, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOBUS1.22. ESP32-P4 GPIO48, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOBUS1.23. ESP32-P4 GPIO47, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
ControlBUS1.24. BOOT_GPIO35. The Tab5 power/boot circuit also drives this ESP32-P4 strapping signal.
PowerBUS1.25. SYS_VIN feeds the MP4560 buck stage. This is the high-voltage input.
GPIOBUS1.26. STD_GPIO51 reaches a dedicated TVS diode on the circuit schematic.
PowerBUS1.27. SYS_VIN feeds the MP4560 buck stage. This is the high-voltage input.
PowerBUS1.28. SYS_EXT5VO, shared by BUS1.28, J9.5 and J11.2. E1.P2 controls EXT5V_EN.
PowerBUS1.29. SYS_VIN feeds the MP4560 buck stage. This is the high-voltage input.
PowerBUS1.30. Regulated module battery-emulation output from U22. Separate from the removable 2S battery contacts.
GNDJ9.1. Board ground and signal return.
PowerJ9.2. SYS_VIN feeds the MP4560 buck stage. This is the high-voltage input.
GNDJ9.3. Board ground and signal return.
GNDJ9.4. Board ground and signal return.
PowerJ9.5. SYS_EXT5VO, shared by BUS1.28, J9.5 and J11.2. E1.P2 controls EXT5V_EN.
PowerJ9.6. Shared 3.3 V board supply referenced by the ESP32-P4 GPIOs.
GPIOJ9.7. ESP32-P4 GPIO0, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOJ9.8. ESP32-P4 GPIO1, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOJ9.9. ESP32-P4 GPIO49, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GPIOJ9.10. ESP32-P4 GPIO50, 3.3 V digital I/O. Use the ESP32-P4 GPIO matrix to configure the signal in firmware.
GNDJ7.1. Board ground and signal return.
PowerJ7.2. SYS_VIN feeds the MP4560 buck stage. This is the high-voltage input.
RS485J7.3. A line of the RS-485 transceiver. GPIO20 TX, GPIO21 RX and GPIO34 DIR are on the logic side.
RS485J7.4. B line of the RS-485 transceiver. The adjacent 485-SW connects 120 Ω across A and B in the ON position.
I2CJ7.5. Shared internal I²C data. It also reaches the onboard I²C peripherals and the reserved Stamp pads.
I2CJ7.6. Shared internal I²C clock. It also reaches the onboard I²C peripherals and the reserved Stamp pads.
GNDJ11.1. Board ground and signal return.
PowerJ11.2. SYS_EXT5VO, shared by BUS1.28, J9.5 and J11.2. E1.P2 controls EXT5V_EN.
I2CJ11.3. GPIO53 is SDA on the external I²C bus configured by M5Unified and the Tab5 BSP. Yellow wire.
I2CJ11.4. GPIO54 is SCL on the external I²C bus configured by M5Unified and the Tab5 BSP. White wire.
PowerJ6.1. 5 V USB input. J6 shares this path with the USB-C receptacle.
GNDJ6.2. Board ground and signal return.
USBJ6.3. Native USB device data minus, shared with the USB-C path.
USBJ6.4. Native USB device data plus, shared with the USB-C path.

Specifications

Processor
ESP32-P4NRW32, 16 MB flash and 32 MB PSRAM. ESP32-C6-MINI-1U provides Wi-Fi 6 over SDIO.
Screen and camera
5-inch 1280 × 720 MIPI-DSI touchscreen. SC2356 MIPI-CSI camera at the top in portrait.
Enclosure
128 × 80 × 12 mm for C145. K145 measures 26.7 mm deep with its removable NP-F550 battery.
Expansion power
6–24 V HVIN on J7, J9 and BUS1. EXT5V is a switched 5 V output on J11, J9 and BUS1. GPIO uses 3.3 V logic.
USB
USB-A host with a separate switched 5 V output. USB-C and rear J6 share the native USB device path and the 5 V input.
microSD
SDIO: GPIO39–42 D0–D3, GPIO43 CLK and GPIO44 CMD. SPI: GPIO39 MISO, GPIO42 CS, GPIO43 SCK and GPIO44 MOSI.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Tab5Product documentationM5StackC145/K145 bundle contents, expansion, photographs and screen revision history.Datasheet
Tab5Board schematicM5StackSheet 4 shows BUS1, J9, J7, J11 and J6. Sheet 5 covers their power rails.Datasheet
Tab5Mechanical drawingM5StackCase dimensions, connector openings and mechanical orientation.Datasheet
Tab5Enclosure CADM5StackMechanical geometry and cutouts.Datasheet
BMI270Axis orientationM5StackAxes shown with the LCD facing up.Datasheet
M5UnifiedI²C assignmentsM5StackInternal SDA/SCL on GPIO31/32 and Port A SDA/SCL on GPIO53/54.Datasheet

Board notes

Orient the enclosure
In the rear portrait photo, the battery latch is at the top and the USB ports are at the bottom. M5-Bus pin 1 is the rightmost socket in the row nearest the battery. On the front, +Y points toward the camera end, +X toward the long edge with the regulatory label, and +Z into the screen.
Keep the two I²C buses distinct
J7 and M5-Bus expose the shared internal bus on GPIO31/32. Port A uses the separate external bus on GPIO53/54 in the M5Stack firmware.
Select RS-485 termination
The rear 485-SW beside J7 switches 120 Ω across A and B. GPIO20 is transmit, GPIO21 receive and GPIO34 controls direction at the SIT3088.
Check the display sticker
The photographed rear sticker reads V1.0 and ST7121. M5Stack previously shipped ST7123 and ILI9881C with GT911. The PCB revision is not visible through the housing.
Use the photographed mating faces
Each close-up is rotated so that contact 1 is at the top. The rear label covers the reserved Stamp pads. Camera and LCD FPCs are internal.