Teensy 4.1 pinout

A very fast (600 MHz) breadboard-friendly board with native USB, lots of serial, I2C and SPI ports and a microSD slot. 3.3 V logic; the pins are not 5 V tolerant.

Teensy 4.1 pinouti.MX RT10625VVINGGND3V3V323A922A821A720A619A518A417A316A215A114A013SPI_SCKGGND41A1740A1639A1538A1437SPI_CS36SPI_CS35Serial8_TX34Serial8_RX33I2S2_MCLKGGND0Serial1_RX1Serial1_TX2I2S2_OUT3I2S2_LRCLK4I2S2_BCLK5I2S2_IN6I2S1_OUT1D7Serial2_RX8Serial2_TX9I2S1_OUT1C10SPI_CS11SPI_MOSI12SPI_MISO3V3V324A1025A1126A1227A1328Serial7_RX29Serial7_TX30CAN3_RX31CAN3_TX32I2S1_OUT1BOn/OffON_OFFProgramPROGRAMGNDGND3.3V3V3VBATVBAT
Top view, USB connector on the left. Colors: red power, grey ground, green GPIO, yellow analog, orange USB serial, blue I2C.

At a glance

Chip
MIMXRT1062DVJ6B (i.MX RT1062)
Processor
Arm Cortex-M7 at 600 MHz, 1024 KB RAM, 8 MB flash, native USB
Logic level
3.3 V. Not 5 V tolerant unless marked below.
Flashing tool
Teensy Loader
Arduino board (FQBN)
teensy:avr:teensy41
Live pin view in BoardPilot
Yes (diagnostic agent available)

Pins to avoid or use with care

None on the header.

Good pins for LEDs, buttons and signals

2, 3, 4, 5, 6, 9, 28, 29, 30, 31, 32, 33

Default pins in Arduino

I2C
SDA = 18, SCL = 19. Only these pins work with the Wire library defaults. Wire only works on pins 18 (SDA) and 19 (SCL). Wire1 uses 17 (SDA1) and 16 (SCL1); Wire2 uses 25 (SDA2) and 24 (SCL2).
SPI
MOSI = 11, MISO = 12, SCK = 13, CS = 10.
Analog inputs
14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 26, 27, 38, 39, 40, 41, 18, 19 (0–3.3 V)

How to flash it

Press the white program button once if the upload waits for the board.

All 53 pins

PinGPIOChip pinFunctionsNotes
5V—VIN, VUSBVIN (printed 5V): 5 V from USB when plugged in. Can also take 3.6 to 5.5 V input; cut the VUSB-VIN pad before using external power together with USB.
G—GND
3V—3V33.3 V output from the on-board regulator (250 mA max for everything you connect).
2323GPIO_AD_B1_09GPIO, A9, CAN1_RX, I2S1_MCLK, PWM
2222GPIO_AD_B1_08GPIO, A8, CAN1_TX, PWM
2121GPIO_AD_B1_11GPIO, A7, Serial5_RX, I2S1_BCLK
2020GPIO_AD_B1_10GPIO, A6, Serial5_TX, I2S1_LRCLK
1919GPIO_AD_B1_00GPIO, A5, I2C_SCL (default), PWMDefault I2C clock (Wire SCL). Also analog A5.
1818GPIO_AD_B1_01GPIO, A4, I2C_SDA (default), PWMDefault I2C data (Wire SDA). Also analog A4.
1717GPIO_AD_B1_06GPIO, A3, Serial4_TX, I2C1_SDA
1616GPIO_AD_B1_07GPIO, A2, Serial4_RX, I2C1_SCL
1515GPIO_AD_B1_03GPIO, A1, Serial3_RX, SPDIF_IN, PWM
1414GPIO_AD_B1_02GPIO, A0, Serial3_TX, SPDIF_OUT, PWM
1313GPIO_B0_03GPIO, SPI_SCK (default), LED, PWMOrange on-board LED, and also the SPI clock (SCK). HIGH turns the LED on.
G—GND
4141GPIO_AD_B1_05GPIO, A17
4040GPIO_AD_B1_04GPIO, A16
3939GPIO_AD_B1_13GPIO, A15, SPI1_MISO, I2S1_OUT1A
3838GPIO_AD_B1_12GPIO, A14, SPI1_CS, I2S1_IN1
3737GPIO_B1_03GPIO, SPI_CS, PWM
3636GPIO_B1_02GPIO, SPI_CS, PWM
3535GPIO_B1_12GPIO, Serial8_TX
3434GPIO_B1_13GPIO, Serial8_RX
3333GPIO_EMC_07GPIO, I2S2_MCLK, PWM
G—GND
00GPIO_AD_B0_03GPIO, Serial1_RX, SPI1_CS, CAN2_RX, PWMSerial1 RX. The USB serial monitor does not use this pin (Teensy has native USB).
11GPIO_AD_B0_02GPIO, Serial1_TX, SPI1_MISO, CAN2_TX, PWMSerial1 TX. The USB serial monitor does not use this pin (Teensy has native USB).
22GPIO_EMC_04GPIO, I2S2_OUT, PWM
33GPIO_EMC_05GPIO, I2S2_LRCLK, PWM
44GPIO_EMC_06GPIO, I2S2_BCLK, PWM
55GPIO_EMC_08GPIO, I2S2_IN, PWM
66GPIO_B0_10GPIO, I2S1_OUT1D, PWM
77GPIO_B1_01GPIO, Serial2_RX, I2S1_OUT1A, PWM
88GPIO_B1_00GPIO, Serial2_TX, I2S1_IN1, PWM
99GPIO_B0_11GPIO, I2S1_OUT1C, PWM
1010GPIO_B0_00GPIO, SPI_CS (default), MQSR, PWM
1111GPIO_B0_02GPIO, SPI_MOSI (default), CAN1_TX, PWM
1212GPIO_B0_01GPIO, SPI_MISO (default), MQSL, PWM
3V—3V33.3 V output from the on-board regulator (250 mA max for everything you connect).
2424GPIO_AD_B0_12GPIO, A10, Serial6_TX, I2C2_SCL, PWM
2525GPIO_AD_B0_13GPIO, A11, Serial6_RX, I2C2_SDA, PWM
2626GPIO_AD_B1_14GPIO, A12, SPI1_MOSI
2727GPIO_AD_B1_15GPIO, A13, SPI1_SCK
2828GPIO_EMC_32GPIO, Serial7_RX, PWM
2929GPIO_EMC_31GPIO, Serial7_TX, PWM
3030GPIO_EMC_37GPIO, CAN3_RX
3131GPIO_EMC_36GPIO, CAN3_TX
3232GPIO_B0_12GPIO, I2S1_OUT1B
On/Off—ON_OFFPower control: a button from here to GND held 4 s turns the 3.3 V power off, 0.5 s turns it back on.
Program—PROGRAMPulling this to GND does the same as the white button: enters programming mode. It is not a reset.
GND—GND
3.3V—3V33.3 V output from the on-board regulator (250 mA max for everything you connect).
VBAT—VBATInput for a 3 V coin cell (CR2032) to keep the real-time clock running. It does not supply power to parts.

Check your wiring with BoardPilot

BoardPilot shows this board in 3D, flags risky pins as you wire, and flashes it safely with a backup first.

Download BoardPilot

Sources

← All boards