# Adafruit Trinkey QT2040

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/102/891/medium800thumb/sensors_QTT_OLED_cat.jpg?1623865013)

&nbsp;It's half USB Key, half Adafruit QT Py, and a lotta RP2040_..._it's&nbsp; **Trinkey QT2040** , the circuit board with an RP2040 heart and Stemma QT legs. Folks are loving the [QT Py 2040](https://www.adafruit.com/product/4900) we made, but maybe you want something plug-and-play. So we thought, hey what if we made something like that plugs right into your computer's USB port? And this is what we came up with!

The PCB is designed to slip into any USB A port on a computer or laptop. There's an RP2040 microcontroller on board with just enough circuitry to keep it happy. There's an RGB NeoPixel, a reset and bootloader or user button and a STEMMA QT Port on the end. That's it!

With the body of the board being 1.0" x 0.7" and four mounting holes, you can attach just about any of our QT boards right on (some are a little larger, so just check that it has the holes in the same locations). [Use M2.5 sized standoffs and screws](https://www.adafruit.com/product/3658) to do so, you could use 2 diagonal at a minimum. Then use a [shorty QT cable](https://www.adafruit.com/product/4399) and you've got a custom sensor Trinkey for any sensor purpose.

The board comes with 8 MB of QSPI flash memory so you can put _all_ of our CircuitPython drivers on the disk!

![](https://cdn-learn.adafruit.com/assets/assets/000/102/892/medium800/sensors_QTT_top.jpg?1623865033)

## Plug-and-play STEMMA QT

One of the stars of this board&nbsp;is [our favorite connector - the STEMMA QT](http://adafruit.com/stemma), a chainable I2C port that can be used with&nbsp;[any of our STEMMA QT sensors and accessories](https://www.adafruit.com/category/620). Having this connector means you don't need to do any soldering to get started.

What can you pop into the QT port? How about [OLEDs](https://www.adafruit.com/?q=qt+oled&main_page=category&cPath=1005&sort=BestMatch)!&nbsp;[Inertial Measurment Units](https://www.adafruit.com/?q=qt+imu&main_page=category&cPath=1005&sort=BestMatch)!&nbsp;[Sensors a-plenty](https://www.adafruit.com/?q=qt+sensor&main_page=category&cPath=1005&sort=BestMatch). All plug-and-play thanks to the innovative chainable design:&nbsp;[SparkFun Qwiic](https://www.sparkfun.com/qwiic)-compatible&nbsp;[STEMMA QT](https://learn.adafruit.com/introducing-adafruit-stemma-qt)&nbsp;connectors for the I2C bus so you don't even need to solder. Just plug in a compatible cable and attach it to your MCU of choice, and you’re ready to load up some software and measure some light.

Use any&nbsp;[SparkFun Qwiic](http://www.sparkfun.com/qwiic)&nbsp;boards!&nbsp;[Seeed Grove I2C boards](https://www.adafruit.com/product/4528)&nbsp;will also work with [this adapter cable](https://www.adafruit.com/product/4528).

![](https://cdn-learn.adafruit.com/assets/assets/000/102/893/medium800/sensors_QTT_sensor_connected.jpg?1623865044)

- [Main body is same size/mounting holes as most of our Stemma QT boards](https://www.adafruit.com/category/1018) (1.0" x 0.7" with M2.5 holes)
- **USB Type A connector with extra-thick PCB to fit into a USB host port**
- **RP2040 32-bit Cortex M0+** dual-core running at ~125 MHz @ 3.3V logic and power
- 264 KB RAM
- **8 MB SPI FLASH** &nbsp;chip for storing files and CircuitPython/MicroPython code storage. No EEPROM
- Native USB supported by every OS&nbsp;- can be used as USB serial console, MIDI, Keyboard/Mouse HID, even a little disk drive for storing Python scripts.
- Can be used with **MicroPython** or **CircuitPython**
- **Built-in RGB NeoPixel LED**
- **STEMMA QT / Qwiic port for I2C connectivity**
- 3.3V regulator with&nbsp;[**600mA peak output**](https://www.diodes.com/assets/Datasheets/AP2112.pdf)
- 12 MHz crystal
- **Both Reset button and Bootloader select buttons** for quick restarts (no unplugging-replugging to relaunch code)
- **Bootloader button can also be safely used in 'user' code**

![](https://cdn-learn.adafruit.com/assets/assets/000/102/894/medium800/sensors_QTT_back.jpg?1623865058)

## About the RP2040

**Inside the RP2040 is a 'permanent ROM' USB UF2 bootloader**. What that means is when you want to program new firmware, you can hold down the BOOT button while plugging it into USB (or pulling down the RUN/Reset pin to ground) and it will appear as a USB disk drive you can drag the firmware onto. Folks who have been using Adafruit products will find this very familiar - we use the technique on all our native-USB boards. Just note you don't double-click reset, instead hold down the BOOT button during boot to enter the bootloader!

The RP2040 is a powerful chip, which has the clock speed of our M4 (SAMD51), and two cores that are equivalent to our M0 (SAMD21). Since it is an M0 chip, it does not have a floating point unit or DSP hardware support - so if you're doing something with heavy floating point math, it will be done in software and thus not as fast as an M4. For many other computational tasks, you'll get close-to-M4 speeds!

![](https://cdn-learn.adafruit.com/assets/assets/000/102/895/medium800/sensors_QTT_top_angle.jpg?1623865068)

- [Next Page](https://learn.adafruit.com/adafruit-trinkey-qt2040/pinouts.md)

## Primary Products

### Adafruit Trinkey QT2040 - RP2040 USB Key with Stemma QT

[Adafruit Trinkey QT2040 - RP2040 USB Key with Stemma QT](https://www.adafruit.com/product/5056)
It's half USB Key, half Adafruit QT Py, and a lotta&nbsp;RP2040_..._it's&nbsp; **Trinkey QT2040** , the circuit board with an RP2040 heart and Stemma QT legs. Folks are loving the [QT Py 2040](https://www.adafruit.com/product/4900) we made, but maybe you...

In Stock
[Buy Now](https://www.adafruit.com/product/5056)
[Related Guides to the Product](https://learn.adafruit.com/products/5056/guides)

## Featured Products

### Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout

[Adafruit MCP9808 High Accuracy I2C Temperature Sensor Breakout](https://www.adafruit.com/product/5027)
The MCP9808 digital temperature sensor is one of the more accurate/precise we've ever seen, with a typical accuracy of ±0.25°C over the sensor's -40°C to +125°C range and precision of +0.0625°C. They work great with any microcontroller using standard I2C. With...

In Stock
[Buy Now](https://www.adafruit.com/product/5027)
[Related Guides to the Product](https://learn.adafruit.com/products/5027/guides)
### Monochrome 1.3" 128x64 OLED graphic display - STEMMA QT / Qwiic

[Monochrome 1.3" 128x64 OLED graphic display - STEMMA QT / Qwiic](https://www.adafruit.com/product/938)
These displays are small, only about 1.3" diagonal, but very readable due to the high contrast of an OLED display. This display is made of 128x64 individual white OLED pixels, each one is turned on or off by the controller chip. Because the display makes its own light, no backlight is...

Out of Stock
[Buy Now](https://www.adafruit.com/product/938)
[Related Guides to the Product](https://learn.adafruit.com/products/938/guides)
### STEMMA QT / Qwiic JST SH 4-Pin Cable - 50mm Long

[STEMMA QT / Qwiic JST SH 4-Pin Cable - 50mm Long](https://www.adafruit.com/product/4399)
This 4-wire cable is&nbsp;50mm / 1.9" long and fitted with JST SH female 4-pin connectors on both ends. Compared with the chunkier JST PH these are 1mm pitch instead of 2mm, but still have a nice latching feel, while being easy to insert and remove.

<a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/4399)
[Related Guides to the Product](https://learn.adafruit.com/products/4399/guides)
### Grove to STEMMA QT / Qwiic / JST SH Cable

[Grove to STEMMA QT / Qwiic / JST SH Cable](https://www.adafruit.com/product/4528)
Are you a maker in the midst of&nbsp;a [**STEMMA**](https://learn.adafruit.com/introducing-adafruit-stemma-qt/what-is-stemma) dilemma? This 100mm long cable is a fantastic chimera-cable fitted with **STEMMA QT / [Sparkfun...](https://www.sparkfun.com/qwiic)**

Out of Stock
[Buy Now](https://www.adafruit.com/product/4528)
[Related Guides to the Product](https://learn.adafruit.com/products/4528/guides)
### White Nylon Machine Screw and Stand-off Set – M2.5 Thread

[White Nylon Machine Screw and Stand-off Set – M2.5 Thread](https://www.adafruit.com/product/3658)
Totaling 420 pieces, this **White Nylon&nbsp;M2.5 Screw Set** &nbsp;is a must-have smörgåsbord for your workstation.&nbsp;You'll have more than enough screws, nuts, and hex standoffs to construct&nbsp;your maker projects&nbsp;for days on end! M2.5 screws fit nearly...

In Stock
[Buy Now](https://www.adafruit.com/product/3658)
[Related Guides to the Product](https://learn.adafruit.com/products/3658/guides)

## Related Guides

- [Reading QR Codes with the Tiny Code Reader](https://learn.adafruit.com/reading-qr-codes-with-the-tiny-code-reader.md)
- [How to Add a New Sensor or Component to Adafruit IO WipperSnapper](https://learn.adafruit.com/how-to-add-a-new-component-to-adafruit-io-wippersnapper.md)
- [Using the TRRS Trinkey as an Assistive Technology Device](https://learn.adafruit.com/using-the-trrs-trinkey-as-an-assistive-technology-device.md)
- [Monochrome OLED Breakouts](https://learn.adafruit.com/monochrome-oled-breakouts.md)
- [Adafruit OLED Displays for Raspberry Pi](https://learn.adafruit.com/adafruit-oled-displays-for-raspberry-pi.md)
- [I2C Addresses and Troublesome Chips](https://learn.adafruit.com/i2c-addresses.md)
- [Adafruit MCP9808 Precision I2C Temperature Sensor Guide](https://learn.adafruit.com/adafruit-mcp9808-precision-i2c-temperature-sensor-guide.md)
- [CircuitPython Powered Sip & Puff with ST LPS33HW Pressure Sensor](https://learn.adafruit.com/st-lps33-and-circuitpython-sip-and-puff.md)
- [Toddler Timer](https://learn.adafruit.com/toddler-timer.md)
- [Animated Flying Toaster OLED Jewelry](https://learn.adafruit.com/animated-flying-toaster-oled-jewelry.md)
- [Adafruit Feather RP2040 with DVI Output Port](https://learn.adafruit.com/adafruit-feather-rp2040-dvi.md)
- [Arcade Fightstick](https://learn.adafruit.com/arcade-fightstick.md)
- [CircuitPython OLED and Dual Knob Sketcher](https://learn.adafruit.com/circuitpython-oled-knob-sketcher.md)
- [Huzzah Weather Display](https://learn.adafruit.com/huzzah-weather-display.md)
- [Adafruit QT Py ESP32 Pico](https://learn.adafruit.com/adafruit-qt-py-esp32-pico.md)
