# Adafruit Metro M4 Express (ATSAMD51)

> Arduino-compatible development board with ATSAMD51 ARM Cortex-M4F at 120 MHz, 512KB flash, 192KB RAM, 2MB QSPI flash, dual 1 MSPS DACs, crypto engine, NeoPixel, and native USB. CircuitPython and Arduino IDE compatible.

## Quick Facts

- **Brand:** Adafruit
- **Board Type:** dev-board
- **Price:** ~$27.5
- **Product Readiness:** developer
- **CPU:** ATSAMD51J19 ARM Cortex-M4F @ 120 MHz
- **CPU Architecture:** ARM Cortex-M4
- **CPU Cores:** 1
- **RAM:** 192KB SRAM
- **Flash:** 512KB + 2MB QSPI Flash
- **Power:** 5V via USB-C (native) or 7-9V DC barrel jack
- **Operating Voltage:** 3.3V
- **Dimensions:** 72.0 × 54.0 × 15.0 mm
- **Weight:** 20.6g
- **Antenna:** none

## Open Source

- **Firmware:** Yes
- **Schematics:** Yes
- **PCB Layout:** Yes

## Compatible Firmware

arduino, circuitpython

## Use Cases

- prototyping
- audio
- iot
- educational-platform

## Components

- **ATSAMD51J19** (mcu): ARM Cortex-M4F at 120MHz, 512KB flash, 192KB SRAM, native USB, AES-256, TRNG, dual ADC/DAC. — [Datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.microchip.com%2Fwwwproducts%2Fen%2FATSAMD51J19A&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)

## Protocols

- **SPI**: MOSI: D23, MISO: D22, SCK: D24
- **I2C**: SDA: D20, SCL: D21
- **UART**: TX: D1, RX: D0
- **USB**: 
- **I2S**: 

## GPIO Map

| Pin | Name | Type | Functions |
|-----|------|------|-----------|
| D0 | — | — | GPIO, UART RX |
| D1 | — | — | GPIO, UART TX |
| D2 | — | — | GPIO |
| D3 | — | — | GPIO, PWM |
| D4 | — | — | GPIO, PWM |
| D5 | — | — | GPIO, PWM |
| D6 | — | — | GPIO, PWM |
| D7 | — | — | GPIO |
| D8 | — | — | GPIO |
| D9 | — | — | GPIO, PWM |
| D10 | — | — | GPIO, PWM |
| D11 | — | — | GPIO, SPI MOSI, PWM |
| D12 | — | — | GPIO, SPI MISO |
| D13 | — | — | GPIO, SPI SCK, LED |
| SDA | — | — | I2C SDA |
| SCL | — | — | I2C SCL |
| A0 | — | — | Analog In, DAC |
| A1 | — | — | Analog In, DAC |
| A2 | — | — | Analog In |
| A3 | — | — | Analog In |
| A4 | — | — | Analog In |
| A5 | — | — | Analog In |

## Description

## Overview

The Adafruit Metro M4 Express is a significant upgrade over the Metro M0, featuring the Microchip ATSAMD51J19 ARM Cortex-M4 with FPU running at 120 MHz. With 512KB of flash, 192KB of SRAM, and 2MB of QSPI flash for CircuitPython file storage, it has ample resources for sophisticated applications.

The ATSAMD51 brings hardware acceleration that the M0 lacks: AES-256 encryption, a true hardware random number generator, and a public key cryptography accelerator — useful for secure IoT applications. Six configurable hardware SERCOM modules provide flexible I2C, SPI, or UART assignments, and stereo I2S input/output with a dedicated MCK pin enables high-quality audio applications.

Two 12-bit DACs (1 MSPS each) and dual 12-bit ADCs (also 1 MSPS) make this an excellent platform for audio and signal processing. A built-in NeoPixel LED, 22 PWM outputs, and a 10-bit parallel capture controller for camera interfacing round out the feature set.

The Metro M4 Express uses the standard Arduino shield form factor, making it compatible with the vast library of Arduino shields. It is fully supported by CircuitPython, Adafruit's Python implementation, and the full Arduino IDE ecosystem.

## Where to Buy

- [Adafruit](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F3382&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export) — 27.50

## Resources

- [product](https://openhardware.directory/r?to=https%3A%2F%2Fwww.adafruit.com%2Fproduct%2F3382&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)
- [github](https://openhardware.directory/r?to=https%3A%2F%2Fgithub.com%2Fadafruit%2FAdafruit-Metro-M4-Express-PCB&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)
- [wiki](https://openhardware.directory/r?to=https%3A%2F%2Flearn.adafruit.com%2Fadafruit-metro-m4-express-featuring-atsamd51%2Foverview&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)
- [datasheet](https://openhardware.directory/r?to=https%3A%2F%2Fwww.microchip.com%2Fwwwproducts%2Fen%2FATSAMD51J19A&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)
- [schematics](https://openhardware.directory/r?to=https%3A%2F%2Fcdn-learn.adafruit.com%2Fassets%2Fassets%2F000%2F053%2F093%2Fmedium800%2Fadafruit_products_schem.png&ref=openhardware.directory&product=adafruit-metro-m4&source=md-export)

## Tags

`metro`, `atsamd51`, `arm-cortex-m4`, `circuitpython`, `arduino-compatible`, `crypto`, `audio`, `neopixel`, `adafruit`

## Images

![Adafruit Metro M4 Express (ATSAMD51)](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-metro-m4/199d715a6e0a.jpg)
![Adafruit Metro M4 Express (ATSAMD51)](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-metro-m4/4f1b6ff2f335.jpg)
![Adafruit Metro M4 Express (ATSAMD51)](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-metro-m4/b0d016601907.jpg)
![Adafruit Metro M4 Express (ATSAMD51)](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-metro-m4/93c8ca5ab201.jpg)
![Adafruit Metro M4 Express (ATSAMD51)](https://nbg1.your-objectstorage.com/openhardware-directory/entities/adafruit-metro-m4/5580528e54be.jpg)

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