# Teensy 4.0

> PJRC Teensy 4.0: NXP i.MX RT1062 Cortex-M7 at 600 MHz, 1984K flash, 1024K RAM, 40 I/O (31 PWM, 14 analog), 7 serial / 3 SPI / 3 I2C, 3 CAN (1 FD), 2 I2S + S/PDIF, USB device + host pads (480 Mbit/s), SD pads; 3.3 V I/O (not 5 V tolerant); 35.6×17.8 mm. Compact robotics controller: 4 hardware quadrature decoders, 3 CAN buses, 19 PWM frequency groups.

- Manufacturer: PJRC
- Part number: TEENSY40
- Category: Development boards
- Canonical page: https://www.xirkit.io/products/pjrc-teensy-4-0-8ee0
- Pinout: https://www.xirkit.io/products/pjrc-teensy-4-0-8ee0/pinout
- Structured JSON: https://www.xirkit.io/products/pjrc-teensy-4-0-8ee0/data.json
- Source: Xirkit structured parts catalog — every value traced to a cited document; unknowns are explicit.

## Key specifications

| Property | Value |
| --- | --- |
| Main chip | MIMXRT1062DVL6B |
| Chips on board | MIMXRT1062DVL6B |
| Exposed GPIO | 40 |
| Documented board pins | 54 |
| I/O voltage | 3.3 V |
| Supply voltage | 3–5.5 V |
| Flash | 1,984 KB |
| SRAM | 1,024 KB |
| Interfaces | gpio, interrupt, adc, pwm, can, i2s, uart, i2c, audio, spi, led, sdio, control, usb |
| Frameworks | Arduino (Teensyduino), Makefile / command line |
| Dimensions | 35.56 × 17.78 × 1.57 mm |
| Certifications | FCC / ISED, CE / UKCA, RoHS, REACH |

## Pinout (54 pins, 40 with electrical limits)

| Pin | Position | Kind | Chip pad | Functions | VIH | VIL | VOH | VOL | IOH | IOL | 5 V tolerant |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| VIN | header_top · T1 | power in | — | power_in | — | — | — | — | — | — | — |
| GND | header_top · T2 | ground | — | ground | — | — | — | — | — | — | — |
| 3.3V | header_top · T3 | power out | — | power_out | — | — | — | — | — | — | — |
| 23 | header_top · T4 | analog | GPIO_AD_B1_09 | D23, interrupt, A9 (12-bit ADC, 0–3.3 V), PWM (FlexPWM4 Module1), CRX1, MCLK1, CAN1, GPIO1.IO[25] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 22 | header_top · T5 | analog | GPIO_AD_B1_08 | D22, interrupt, A8 (12-bit ADC, 0–3.3 V), PWM (FlexPWM4 Module0), CTX1, CAN1, GPIO1.IO[24] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 21 | header_top · T6 | analog | GPIO_AD_B1_11 | D21, interrupt, A7 (12-bit ADC, 0–3.3 V), RX5, BCLK1, GPIO1.IO[27] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 20 | header_top · T7 | analog | GPIO_AD_B1_10 | D20, interrupt, A6 (12-bit ADC, 0–3.3 V), TX5, LRCLK1, GPIO1.IO[26] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 19 | header_top · T8 | analog | GPIO_AD_B1_00 | D19, interrupt, A5 (12-bit ADC, 0–3.3 V), PWM (QuadTimer3 Module0), SCL0, GPIO1.IO[16] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 18 | header_top · T9 | analog | GPIO_AD_B1_01 | D18, interrupt, A4 (12-bit ADC, 0–3.3 V), PWM (QuadTimer3 Module1), SDA0, GPIO1.IO[17] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 17 | header_top · T10 | analog | GPIO_AD_B1_06 | D17, interrupt, A3 (12-bit ADC, 0–3.3 V), TX4, SDA1, GPIO1.IO[22] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 16 | header_top · T11 | analog | GPIO_AD_B1_07 | D16, interrupt, A2 (12-bit ADC, 0–3.3 V), RX4, SCL1, GPIO1.IO[23] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 15 | header_top · T12 | analog | GPIO_AD_B1_03 | D15, interrupt, A1 (12-bit ADC, 0–3.3 V), PWM (QuadTimer3 Module3), RX3, S/PDIF IN, GPIO1.IO[19] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 14 | header_top · T13 | analog | GPIO_AD_B1_02 | D14, interrupt, A0 (12-bit ADC, 0–3.3 V), PWM (QuadTimer3 Module2), TX3, S/PDIF OUT, GPIO1.IO[18] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 13 | header_top · T14 | gpio | GPIO_B0_03 | D13, interrupt, PWM (QuadTimer2 Module0), SCK, CRX1, LED_BUILTIN (orange), GPIO2.IO[3] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| GND | header_bottom · B1 | ground | — | ground | — | — | — | — | — | — | — |
| 0 | header_bottom · B2 | gpio | GPIO_AD_B0_03 | D0, interrupt, PWM (FlexPWM1 Module1), RX1, CRX2, CS1, CAN2, GPIO1.IO[3] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 1 | header_bottom · B3 | gpio | GPIO_AD_B0_02 | D1, interrupt, PWM (FlexPWM1 Module0), TX1, CTX2, MISO1, CAN2, GPIO1.IO[2] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 2 | header_bottom · B4 | gpio | GPIO_EMC_04 | D2, interrupt, PWM (FlexPWM4 Module2), OUT2, GPIO4.IO[4] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 3 | header_bottom · B5 | gpio | GPIO_EMC_05 | D3, interrupt, PWM (FlexPWM4 Module2), LRCLK2, GPIO4.IO[5] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 4 | header_bottom · B6 | gpio | GPIO_EMC_06 | D4, interrupt, PWM (FlexPWM2 Module0), BCLK2, GPIO4.IO[6] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 5 | header_bottom · B7 | gpio | GPIO_EMC_08 | D5, interrupt, PWM (FlexPWM2 Module1), IN2, GPIO4.IO[8] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 6 | header_bottom · B8 | gpio | GPIO_B0_10 | D6, interrupt, PWM (FlexPWM2 Module2), OUT1D, GPIO2.IO[10] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 7 | header_bottom · B9 | gpio | GPIO_B1_01 | D7, interrupt, PWM (FlexPWM1 Module3), RX2, OUT1A, GPIO2.IO[17] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 8 | header_bottom · B10 | gpio | GPIO_B1_00 | D8, interrupt, PWM (FlexPWM1 Module3), TX2, IN1, GPIO2.IO[16] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 9 | header_bottom · B11 | gpio | GPIO_B0_11 | D9, interrupt, PWM (FlexPWM2 Module2), OUT1C, GPIO2.IO[11] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 10 | header_bottom · B12 | gpio | GPIO_B0_00 | D10, interrupt, PWM (QuadTimer1 Module0), CS, MQSR, GPIO2.IO[0] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 11 | header_bottom · B13 | gpio | GPIO_B0_02 | D11, interrupt, PWM (QuadTimer1 Module2), MOSI, CTX1, GPIO2.IO[2] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 12 | header_bottom · B14 | gpio | GPIO_B0_01 | D12, interrupt, PWM (QuadTimer1 Module1), MISO, MQSL, GPIO2.IO[1] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 24 | bottom_smt_pads · BP1 | analog | GPIO_AD_B0_12 | D24, interrupt, A10 (12-bit ADC, 0–3.3 V), PWM (FlexPWM1 Module2), TX6, SCL2, GPIO1.IO[12] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 25 | bottom_smt_pads · BP2 | analog | GPIO_AD_B0_13 | D25, interrupt, A11 (12-bit ADC, 0–3.3 V), PWM (FlexPWM1 Module3), RX6, SDA2, GPIO1.IO[13] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 26 | bottom_smt_pads · BP3 | analog | GPIO_AD_B1_14 | D26, interrupt, A12 (12-bit ADC, 0–3.3 V), MOSI1, GPIO1.IO[30] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 27 | bottom_smt_pads · BP4 | analog | GPIO_AD_B1_15 | D27, interrupt, A13 (12-bit ADC, 0–3.3 V), SCK1, GPIO1.IO[31] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 28 | bottom_smt_pads · BP5 | gpio | GPIO_EMC_32 | D28, interrupt, PWM (FlexPWM3 Module1), RX7, GPIO3.IO[18] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 29 | bottom_smt_pads · BP6 | gpio | GPIO_EMC_31 | D29, interrupt, PWM (FlexPWM3 Module1), TX7, GPIO4.IO[31] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 30 | bottom_smt_pads · BP7 | gpio | GPIO_EMC_37 | D30, interrupt, CRX3, CAN3 (CAN FD), GPIO3.IO[23] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 31 | bottom_smt_pads · BP8 | gpio | GPIO_EMC_36 | D31, interrupt, CTX3, CAN3 (CAN FD), GPIO3.IO[22] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 32 | bottom_smt_pads · BP9 | gpio | GPIO_B0_12 | D32, interrupt, OUT1B, GPIO2.IO[12] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 33 | bottom_smt_pads · BP10 | gpio | GPIO_EMC_07 | D33, interrupt, PWM (FlexPWM2 Module0), MCLK2, GPIO4.IO[7] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 34 | sd_smt_pads · SD1 | gpio | GPIO_SD_B0_03 | D34, interrupt, PWM (FlexPWM1 Module1), DAT1, MISO2, GPIO3.IO[15] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 35 | sd_smt_pads · SD2 | gpio | GPIO_SD_B0_02 | D35, interrupt, PWM (FlexPWM1 Module1), DAT0, MOSI2, GPIO3.IO[14] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 36 | sd_smt_pads · SD3 | gpio | GPIO_SD_B0_01 | D36, interrupt, PWM (FlexPWM1 Module0), CLK, CS2, GPIO3.IO[13] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 37 | sd_smt_pads · SD4 | gpio | GPIO_SD_B0_00 | D37, interrupt, PWM (FlexPWM1 Module0), CMD, SCK2, GPIO3.IO[12] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 38 | sd_smt_pads · SD5 | gpio | GPIO_SD_B0_05 | D38, interrupt, PWM (FlexPWM1 Module2), DAT3, RX5, GPIO3.IO[17] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| 39 | sd_smt_pads · SD6 | gpio | GPIO_SD_B0_04 | D39, interrupt, PWM (FlexPWM1 Module2), DAT2, TX5, GPIO3.IO[16] | 2.31–3.3 V | 0–0.99 V | ≥ 3.15 V | ≤ 0.15 V | ≤ 4 mA | 4 mA typ | no |
| On/Off | end_row · ONOFF | control | ONOFF | On/Off pushbutton (hold 4 s = off, 0.5 s = on), ONOFF | — | — | — | — | — | — | — |
| Program | end_row · PROGRAM | control | — | Program (bootloader) button input | — | — | — | — | — | — | — |
| GND | end_row · GND_E | ground | — | ground | — | — | — | — | — | — | — |
| 3.3V | end_row · 3V3_E | power out | — | power_out | — | — | — | — | — | — | — |
| VBAT | end_row · VBAT | power in | — | power_in | — | — | — | — | — | — | — |
| GND | sd_smt_pads · SD_GND | ground | — | ground | — | — | — | — | — | — | — |
| 3.3V | sd_smt_pads · SD_3V3 | power out | — | power_out | — | — | — | — | — | — | — |
| USB Host D− | usb_host_pads · UH_DM | usb | — | USB host D− | — | — | — | — | — | — | — |
| USB Host D+ | usb_host_pads · UH_DP | usb | — | USB host D+ | — | — | — | — | — | — | — |
| VUSB | bottom_pads · VUSB | power in | — | power_in | — | — | — | — | — | — | — |

## Where to buy

| Supplier | Price | Stock | Checked | URL |
| --- | --- | --- | --- | --- |
| www.sparkfun.com | 23.8 USD | unknown | 2026-09-24 | https://www.sparkfun.com/teensy-4-0.html |
| www.adafruit.com | 19.95 USD | out_of_stock | 2026-09-24 | https://www.adafruit.com/product/4323 |

## FAQ

**What microcontroller does the Teensy 4.0 use?**

The Teensy 4.0 is built around the MIMXRT1062DVL6B, alongside W25Q16JV-DTR (2 MB), GD32E230F8 (after June 2022), AP7366 (after March 2022).

**How many GPIO pins does the Teensy 4.0 have?**

40 GPIO pins are exposed. Xirkit documents 54 board pins, 40 of them with pin-level electrical limits.

**Are the Teensy 4.0 I/O pins 5 V tolerant?**

No. The I/O pins are not 5 V tolerant — they run at 3.3 V logic; use a level shifter for 5 V signals. Input-high threshold: 2.31–3.3 V.

**How much current can a Teensy 4.0 GPIO pin source?**

Documented output-high current per pin: ≤ 4 mA. Values are traced to the chip datasheet; see the pinout table for per-pin limits and conditions.

**What voltage powers the Teensy 4.0?**

Supply range 3–5.5 V. Power inputs: VIN (3.6–5.5 V), VBAT, VUSB.

**How much does the Teensy 4.0 cost?**

From $19.95 at www.adafruit.com (2 supplier offers tracked). Prices are observed unit prices before tax and shipping.

**What are the Teensy 4.0 dimensions?**

35.56 × 17.78 × 1.57 mm. A STEP model is available for enclosure fit checks.

**Which interfaces does the Teensy 4.0 support?**

gpio, interrupt, adc, pwm, can, i2s, uart, i2c, audio, spi, led, sdio, control, usb.

**How do I program the Teensy 4.0?**

Supported frameworks: Arduino (Teensyduino), Makefile / command line.

**Where does this Teensy 4.0 data come from?**

Every value in this record is traced to a source — 3 documents including the board and chip datasheets — with the page and table cited per value. Unknowns are left explicit, never guessed.

## Sources

- [Teensy 4.0 datasheet](https://www.pjrc.com/store/teensy40.html)
- [www.sparkfun.com listing](https://www.sparkfun.com/teensy-4-0.html)
- [www.adafruit.com listing](https://www.adafruit.com/product/4323)

## Part graph

### Built from

- [MIMXRT1062DVL6B](https://www.xirkit.io/products/category/dev-boards/mimxrt1062dvl6b) — main processor on the Teensy 4.0
- W25Q16JV-DTR (2 MB) — flash memory on the Teensy 4.0
- GD32E230F8 (after June 2022) — bootloader chip on the Teensy 4.0
- AP7366 (after March 2022) — ldo regulator on the Teensy 4.0

### Alternatives (by use case)

- [Arduino UNO R4 WiFi](https://www.xirkit.io/products/arduino-uno-r4-wifi-d7ab) — Both serve robotics and motor control — check the trade-offs; $19.95 vs $27.5
- [STM32 Nucleo-64 NUCLEO-F446RE (MB1136)](https://www.xirkit.io/products/stmicroelectronics-stm32-nucleo-64-nucleo-f446re-mb1136-2179) — Both serve robotics and motor control — check the trade-offs; $19.95 vs $18.66
- [Arduino UNO R4 Minima](https://www.xirkit.io/products/arduino-uno-r4-minima-4540) — Both serve robotics and motor control — check the trade-offs; $19.95 vs $20
- [Seeed Studio XIAO nRF52840 Sense](https://www.xirkit.io/products/seeed-studio-xiao-nrf52840-sense-a973) — Both serve custom usb devices (hid, midi, serial) — check the trade-offs; $19.95 vs $15.9
- [ESP32-S3-DevKitC-1 (N8R8)](https://www.xirkit.io/products/espressif-esp32-s3-devkitc-1-n8r8-e95f) — Both serve custom usb devices (hid, midi, serial) — check the trade-offs; $19.95 vs $19.95
- [Arduino Nano 33 BLE Sense Rev2](https://www.xirkit.io/products/arduino-nano-33-ble-sense-rev2-ae8c) — Both serve custom usb devices (hid, midi, serial) — check the trade-offs; $19.95 vs $38.7
- [Arduino Nano ESP32](https://www.xirkit.io/products/arduino-nano-esp32-d5fc) — Both serve custom usb devices (hid, midi, serial) — check the trade-offs; $19.95 vs $19.3
- [Adafruit ESP32-S3 Feather (8 MB flash, no PSRAM)](https://www.xirkit.io/products/adafruit-esp32-s3-feather-8-mb-flash-no-psram-a873) — Both serve custom usb devices (hid, midi, serial) — check the trade-offs; $19.95 vs $17.5

### Variants

- [Teensy 4.1](https://www.xirkit.io/products/pjrc-teensy-4-1-988c) — Same generation as the Teensy 4.1, differing by an option
