# Adafruit Matrix Portal M4

> The Adafruit Matrix Portal M4 is a plug-in controller for HUB75 RGB LED matrix panels, featuring an ATSAMD51J19 Cortex-M4F at 120MHz, ESP32 WiFi coprocessor with TLS/SSL, LIS3DH accelerometer, USB-C power, and STEMMA QT — designed to drive 16×32 to 64×64 LED matrices directly.

## Quick Facts

- **Brand:** Adafruit
- **Board Type:** dev-board
- **Price:** ~$24.95
- **Product Readiness:** developer
- **CPU:** ATSAMD51J19 ARM Cortex-M4F @ 120MHz
- **CPU Architecture:** ARM Cortex-M4F
- **CPU Cores:** 1
- **RAM:** 192 KB SRAM
- **Flash:** 512 KB
- **Power:** 5V
- **Operating Voltage:** 3.3V
- **Dimensions:** 63.3mm × 44.5mm × 16mm
- **Weight:** 17g
- **Antenna:** built-in PCB antenna (ESP32)

## Connectivity

- **Wifi:** 802.11 b/g/n (via ESP32 coprocessor, TLS/SSL)

## Open Source

- **Status:** fully-open
- **Firmware:** Yes
- **Schematics:** Yes
- **PCB Layout:** Yes

## Certifications

FCC, CE

## Compatible Firmware

circuitpython, arduino

## Use Cases

- led-matrix-display
- digital-signage
- iot-display
- iot

## Components

- **ATSAMD51J19** (mcu): Microchip ATSAMD51J19 ARM Cortex-M4F at 120MHz with FPU, 192KB SRAM, 512KB internal flash — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fww1.microchip.com%2Fdownloads%2Fen%2FDeviceDoc%2FSAM-D5x-E5x-Family-Data-Sheet-DS60001507G.pdf&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)
- **ESP32 (WiFi coprocessor)** (wifi-module): Espressif ESP32 dedicated WiFi coprocessor providing 802.11 b/g/n with TLS/SSL via SPI — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.espressif.com%2Fsites%2Fdefault%2Ffiles%2Fdocumentation%2Fesp32_datasheet_en.pdf&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)
- **LIS3DH** (sensor): ST Microelectronics LIS3DH 3-axis MEMS accelerometer for orientation and tap detection — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Fdatasheet%2Flis3dh.pdf&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)

## Protocols

- **I2C**: SDA: SDA, SCL: SCL
- **SPI**
- **UART**
- **ADC**
- **PWM**

## GPIO Map

| Pin | Name | Type | Functions |
|-----|------|------|-----------|
| SDA | SDA | — | I2C SDA, STEMMA QT |
| SCL | SCL | — | I2C SCL, STEMMA QT |
| A1 | A1 | — | GPIO, Analog, PWM (3-pin JST) |
| A2 | A2 | — | GPIO, Analog |
| A3 | A3 | — | GPIO, Analog |
| A4 | A4 | — | GPIO, Analog |

## Available Software

- **[CircuitPython]()** (open-source)
- **[Arduino]()** (open-source)

## Description

## Overview

The Adafruit Matrix Portal M4 is a compact add-on board that plugs directly into the back of any HUB75-compatible RGB LED matrix panel (16×32 to 64×64 pixels), instantly giving it WiFi internet connectivity and a powerful microcontroller for dynamic content. The ATSAMD51J19 ARM Cortex-M4F at 120MHz with 512KB flash and 192KB SRAM drives matrix refresh while the ESP32 WiFi coprocessor handles all network communication with TLS/SSL independently.

The board features a USB-C connector for power and programming, a STEMMA QT I2C port for plug-in sensors, a JST 3-pin connector for analog output or NeoPixel control, a LIS3DH accelerometer for orientation detection, and a NeoPixel status LED. Two user buttons plus a reset button are included. Power for both the Matrix Portal and the LED matrix panel is supplied via a standard 5V USB-C input, which is shared with the panel's HUB75 connector.

CircuitPython and Arduino are both supported. Adafruit provides an extensive learn guide with examples for scrolling text, real-time weather, clocks, sports scores, and more. An "Address E" jumper enables 64×64 matrix compatibility. Dimensions are 63.3mm × 44.5mm × 16mm.

## Where to Buy

- [Adafruit](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4745&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export) — $24.95
- [Adafruit (Starter Kit)](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4812&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export) — $69.95

## Resources

- [product](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F4745&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)
- [docs](https://openhardware.directory/r?to=https%3A%2F%2Flearn.adafruit.com%2Fadafruit-matrixportal-m4&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)
- [github](https://openhardware.directory/r?to=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit_MatrixPortal_M4&ref=openhardware.directory&product=adafruit-matrix-portal-m4&source=md-export)

## Tags

`adafruit`, `matrix-portal`, `circuitpython`, `wifi`, `led-matrix`, `hub75`, `samd51`, `esp32`, `digital-signage`

## Images

![Adafruit Matrix Portal M4](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-matrix-portal-m4/6049cf1e3c4a.jpg)
![Adafruit Matrix Portal M4](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-matrix-portal-m4/686574acc232.jpg)
![Adafruit Matrix Portal M4](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-matrix-portal-m4/9f3070747258.jpg)

---
[View full device page](https://openhardware.directory/devices/adafruit-matrix-portal-m4)