Adafruit Trinket M0 Pinout

Adafruit Trinket M0 pinout for the edge pins and rear pads of the compact SAMD21 board.

Jump to pin index ↓

Main pinout

Trinket M0 component side with Micro-USB at the top. The two rows follow the board silkscreen. Advanced mode shows the functions of each GPIO.

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

Pin index

Pin index

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

10 visible
PinMCU pinTypesNotes
PowerBattery input connected to the positive of the JST footprint.
GNDCommon ground for power and signals.
GPIOAnalogUARTSPIPWMTouchD4 corresponds to PA06 of SAMD21. The analog input is called A4 (AIN6).
GPIOAnalogUARTSPIPWMTouchD3 corresponds to PA07 of SAMD21. The analog input is called A3 (AIN7).
ControlRestart input active-low.
Power3.3 V output from the AP2112K-3.3 regulator.
GPIOAnalogI2CSPIPWMD2 corresponds to PA09 of SAMD21. The analog input is called A1 (AIN17).
GPIOAnalogDACTouchD1 corresponds to PA02 of SAMD21. The analog input is called A0 (AIN0).
GPIOAnalogI2CPWMD0 corresponds to PA08 of SAMD21. The analog input is called A2 (AIN16).
Power5 V Rail connector micro-USB.

Specifications

Microcontroller
ATSAMD21E18A · Arm Cortex-M0+ · 48 MHz
Memory
256 KB flash · 32 KB of SRAM
Entry and output
5 GPIO of 3.3 V · ADC of 12 bits · DAC of 10 bits on pin 1
Power supply
5 V Micro-USB · Bat is marked 4–6 V on the silkscreen · regulated 3.3 V output
Dimensions
27 × 15.3 mm · 2.54 mm headway
Identification
Revision E in the back photo. The CAD published by Adafruit bears the designation rev. D.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
SAMD21DatasheetMicrochipADC, DAC, microcontroller timers and peripherals.Datasheet
Trinket M0Official PinoutAdafruitMux of each pad of the SAMD21 and names of the board.Datasheet
Trinket M0Pin GuideAdafruitPower, I/O and SWCLK and SWDIO position.Datasheet
Trinket M0SchematicAdafruitElectrical nets of headers, pads and connectors.Datasheet
Trinket M0PCBAdafruitPosition and face of each contact in design EAGLE.Datasheet
Arduino / Trinket M0Board variantAdafruitAnalogue aliases, allocation of internal channels and pins.Datasheet
CircuitPython / Trinket M0Board moduleAdafruitAlias D0–D4 and allocation of buses.Datasheet
Trinket M0 SWDDebugger cablingAdafruitVoltage, ground and order reference of the pads.Datasheet

Board notes

Connector micro-USB B (CN1)
1 VBUS (USB), 2 D− (PA24), 3 D+ (PA25), 4 ID (unconnected), and 5 GND. The connector shell is grounded.
Power and battery
Two Schottky diodes feed the AP2112K-3.3 regulator from USB or Bat. The JST-PH footprint shares Bat and Gnd with the header. The board has no charger.
Indicators and pushbutton
The LED red 13 uses PA10. The DotStar RGB uses D7/PA00 for data and D8/PA01 for clock. Rst connects the reset input to ground.
Shared buses
I²C uses 0 and 2. UART uses 3 and 4. SPI uses 2, 3 and 4, so it shares contacts with both buses. In Arduino the physical serial port is called Serial1.
GPIO and levels
The five I/O support inputs with internal polarization resistances. They work at 3.3 V. The ~ symbol of pin 1 identifies here the output of the DAC. The other four GPIO support PWM.
Rear pads
With the USB above, the top disc is SWCLK and the bottom SWDIO. The two elongated rectangular traces of the JST footprint are − and +. The two large side islands fix the housing of the optional connector.