Adafruit KB2040 - image 1
1 / 3
Adafruit·Keyboard Pcb

Adafruit KB2040

Arduino Pro Micro-compatible RP2040 keyboard controller with 8 MB flash, 20 GPIO, STEMMA QT, castellated USB pads, NeoPixel, and QMK/KMK/CircuitPython support for custom mechanical keyboards.

Starting from

$8.95

Use Cases

Specifications

ArchitectureARM Cortex-M0+
CPU Cores2
Clock Speed125 MHz
Flash8MB SiP
GPIO Level3.3V
Power Input5V
Storagenone
Dimensions35 × 17.8 × 4.9 mm
Weight2.8 g

Components

MCUMCUDatasheet

Raspberry Pi RP2040 dual-core ARM Cortex-M0+ at 125 MHz with 264 KB SRAM, PIO state machines, and native USB for HID keyboard emulation.

Addressable RGB LED for status and user feedback.

Bus Interfaces

I2C
SCL: GPIO3SDA: GPIO2
SPI
SCK: GPIO6MISO: GPIO4MOSI: GPIO3
UART
RX: GPIO1TX: GPIO0
USB

GPIO Map

GPIO0
TX — UART
digital-inputdigital-outputpwm
UART
GPIO1
RX — UART
digital-inputdigital-outputpwm
UART
GPIO2
SDA — I2C
digital-inputdigital-outputpwm
I2C
GPIO3
SCL — I2C
digital-inputdigital-outputpwm
I2C
GPIO4
D4 — GPIO
digital-inputdigital-outputpwm
GPIO6
D6 — GPIO
digital-inputdigital-outputpwm
GPIO7
D7 — GPIO
digital-inputdigital-outputpwm
GPIO8
D8 — GPIO
digital-inputdigital-outputpwm
GPIO9
D9 — GPIO
digital-inputdigital-outputpwm
GPIO10
D10 — GPIO
digital-inputdigital-outputpwm
GPIO16
SDA — I2C (STEMMA QT)
digital-inputdigital-outputpwm
I2C
GPIO17
SCL — I2C (STEMMA QT)
digital-inputdigital-outputpwm
I2C
GPIO18
SCK — SPI
digital-inputdigital-outputpwm
SPI
GPIO19
MOSI — SPI
digital-inputdigital-outputpwm
SPI
GPIO20
MISO — SPI
digital-inputdigital-outputpwm
SPI
GPIO26
A0 — ADC0
analog-inputdigital-inputdigital-outputpwm
ADC
GPIO27
A1 — ADC1
analog-inputdigital-inputdigital-outputpwm
ADC
GPIO28
A2 — ADC2
analog-inputdigital-inputdigital-outputpwm
ADC
GPIO29
A3 — ADC3
analog-inputdigital-inputdigital-outputpwm
ADC

Overview

The Adafruit KB2040 — Kee Boar Driver — is a Pro Micro-footprint development board built around the RP2040 and designed specifically for custom mechanical keyboard builds. It combines the best features of three popular keyboard boards: the Qwiic / STEMMA QT connector from SparkFun's Pro Micro RP2040, the castellated USB D+/D- pads from the Elite-C, and Adafruit's own NeoPixel, 8 MB flash, and BOOT button additions.

The board provides 20 GPIO pins (18 on castellated pads plus 2 on the STEMMA QT connector) with four 12-bit ADC channels, two I2C controllers, two SPI controllers, and two hardware UARTs. A 3.3 V regulator rated at 500 mA peak powers the logic, while a jumper-selectable RAW 5 V output with either a 500 mA polyfuse or a 2 A direct connection allows keyboard matrix power.

For firmware, QMK is the most popular choice for traditional keyboard layouts, while KMK (CircuitPython-based) and CircuitPython's built-in keyboard HID library offer more accessible customisation. The RP2040's native USB means the board is a true HID device without any USB bridge chip. An RGB NeoPixel and a BOOT button serve double duty as a user LED and reset-to-bootloader mechanism.

The Pro Micro footprint ensures the KB2040 is a drop-in replacement in the many open-source keyboard PCB designs that target that pinout, greatly expanding its compatibility with community keyboard projects.

Use Cases

1

Resources

Where to Buy

Available Software

3

Explore more of the directory — popular use cases, firmware, and specs to browse next.