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.
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
| Pin | GPIO | Chip pin | Functions | Notes |
|---|---|---|---|---|
| 5V | — | VIN, VUSB | VIN (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 | — | 3V3 | 3.3 V output from the on-board regulator (250 mA max for everything you connect). | |
| 23 | 23 | GPIO_AD_B1_09 | GPIO, A9, CAN1_RX, I2S1_MCLK, PWM | |
| 22 | 22 | GPIO_AD_B1_08 | GPIO, A8, CAN1_TX, PWM | |
| 21 | 21 | GPIO_AD_B1_11 | GPIO, A7, Serial5_RX, I2S1_BCLK | |
| 20 | 20 | GPIO_AD_B1_10 | GPIO, A6, Serial5_TX, I2S1_LRCLK | |
| 19 | 19 | GPIO_AD_B1_00 | GPIO, A5, I2C_SCL (default), PWM | Default I2C clock (Wire SCL). Also analog A5. |
| 18 | 18 | GPIO_AD_B1_01 | GPIO, A4, I2C_SDA (default), PWM | Default I2C data (Wire SDA). Also analog A4. |
| 17 | 17 | GPIO_AD_B1_06 | GPIO, A3, Serial4_TX, I2C1_SDA | |
| 16 | 16 | GPIO_AD_B1_07 | GPIO, A2, Serial4_RX, I2C1_SCL | |
| 15 | 15 | GPIO_AD_B1_03 | GPIO, A1, Serial3_RX, SPDIF_IN, PWM | |
| 14 | 14 | GPIO_AD_B1_02 | GPIO, A0, Serial3_TX, SPDIF_OUT, PWM | |
| 13 | 13 | GPIO_B0_03 | GPIO, SPI_SCK (default), LED, PWM | Orange on-board LED, and also the SPI clock (SCK). HIGH turns the LED on. |
| G | — | GND | ||
| 41 | 41 | GPIO_AD_B1_05 | GPIO, A17 | |
| 40 | 40 | GPIO_AD_B1_04 | GPIO, A16 | |
| 39 | 39 | GPIO_AD_B1_13 | GPIO, A15, SPI1_MISO, I2S1_OUT1A | |
| 38 | 38 | GPIO_AD_B1_12 | GPIO, A14, SPI1_CS, I2S1_IN1 | |
| 37 | 37 | GPIO_B1_03 | GPIO, SPI_CS, PWM | |
| 36 | 36 | GPIO_B1_02 | GPIO, SPI_CS, PWM | |
| 35 | 35 | GPIO_B1_12 | GPIO, Serial8_TX | |
| 34 | 34 | GPIO_B1_13 | GPIO, Serial8_RX | |
| 33 | 33 | GPIO_EMC_07 | GPIO, I2S2_MCLK, PWM | |
| G | — | GND | ||
| 0 | 0 | GPIO_AD_B0_03 | GPIO, Serial1_RX, SPI1_CS, CAN2_RX, PWM | Serial1 RX. The USB serial monitor does not use this pin (Teensy has native USB). |
| 1 | 1 | GPIO_AD_B0_02 | GPIO, Serial1_TX, SPI1_MISO, CAN2_TX, PWM | Serial1 TX. The USB serial monitor does not use this pin (Teensy has native USB). |
| 2 | 2 | GPIO_EMC_04 | GPIO, I2S2_OUT, PWM | |
| 3 | 3 | GPIO_EMC_05 | GPIO, I2S2_LRCLK, PWM | |
| 4 | 4 | GPIO_EMC_06 | GPIO, I2S2_BCLK, PWM | |
| 5 | 5 | GPIO_EMC_08 | GPIO, I2S2_IN, PWM | |
| 6 | 6 | GPIO_B0_10 | GPIO, I2S1_OUT1D, PWM | |
| 7 | 7 | GPIO_B1_01 | GPIO, Serial2_RX, I2S1_OUT1A, PWM | |
| 8 | 8 | GPIO_B1_00 | GPIO, Serial2_TX, I2S1_IN1, PWM | |
| 9 | 9 | GPIO_B0_11 | GPIO, I2S1_OUT1C, PWM | |
| 10 | 10 | GPIO_B0_00 | GPIO, SPI_CS (default), MQSR, PWM | |
| 11 | 11 | GPIO_B0_02 | GPIO, SPI_MOSI (default), CAN1_TX, PWM | |
| 12 | 12 | GPIO_B0_01 | GPIO, SPI_MISO (default), MQSL, PWM | |
| 3V | — | 3V3 | 3.3 V output from the on-board regulator (250 mA max for everything you connect). | |
| 24 | 24 | GPIO_AD_B0_12 | GPIO, A10, Serial6_TX, I2C2_SCL, PWM | |
| 25 | 25 | GPIO_AD_B0_13 | GPIO, A11, Serial6_RX, I2C2_SDA, PWM | |
| 26 | 26 | GPIO_AD_B1_14 | GPIO, A12, SPI1_MOSI | |
| 27 | 27 | GPIO_AD_B1_15 | GPIO, A13, SPI1_SCK | |
| 28 | 28 | GPIO_EMC_32 | GPIO, Serial7_RX, PWM | |
| 29 | 29 | GPIO_EMC_31 | GPIO, Serial7_TX, PWM | |
| 30 | 30 | GPIO_EMC_37 | GPIO, CAN3_RX | |
| 31 | 31 | GPIO_EMC_36 | GPIO, CAN3_TX | |
| 32 | 32 | GPIO_B0_12 | GPIO, I2S1_OUT1B | |
| On/Off | — | ON_OFF | Power 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 | — | PROGRAM | Pulling this to GND does the same as the white button: enters programming mode. It is not a reset. | |
| GND | — | GND | ||
| 3.3V | — | 3V3 | 3.3 V output from the on-board regulator (250 mA max for everything you connect). | |
| VBAT | — | VBAT | Input 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 BoardPilotSources
- PJRC Teensy 4.1 pinout card (card11a rev4, card11b rev4), Pin order along both edges, alternate functions (Serial, I2C, SPI, CAN, I2S, PWM), analog A0-A17, On/Off / Program / GND / 3.3V / VBAT pins
- PJRC Teensy dimensions page, Teensy 4.1 drawing (dimensions_teensy41.png), 60.96 x 17.78 mm, 1.57 mm PCB, pin 1 at 1.27 mm, rows 15.24 mm apart, 5-pin row 45.72 mm from pin 1, USB and button positions
- PJRC Teensy 4.1 product page, Pins not 5 V tolerant, LED on pin 13, VBAT, On/Off, Program pin, 8 MB flash, 1024 KB RAM
- PaulStoffregen/cores teensy4/core_pins.h and pins_arduino.h, CORE_PINn_CONFIG pad names (chipPin); A0-A17, LED_BUILTIN 13, SS/MOSI/MISO/SCK 10/11/12/13, SDA/SCL 18/19
- PaulStoffregen/cores teensy4/usb_desc.h and teensy_loader_cli, USB ids 16c0:0483 (Serial), 16c0:0489 (Serial + MIDI), 16c0:0478 (HalfKay bootloader)
- PJRC 00-teensy.rules, VID 16c0, PIDs 04xx
- Board data file and source notes on GitHub