Adafruit KB2040 – RP2040 Kee Boar Driver Pinout

Adafruit KB2040 – RP2040 Kee Boar Driver pinout for the keyboard controller's edge pins, USB-C contacts and rear pads.

Jump to pin index ↓

Main pinout

Component side, with USB-C at the top and STEMMA QT at the bottom. The outer rows follow the KB2040 silkscreen.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show Alternative Functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

30 visible
PinMCU pinTypesNotes
USBPositive line of data pair USB. Share net with A6 and B6 of X6.
UARTGPIORP2040 GPIO0. Board UART0.
UARTGPIORP2040 GPIO1. Board UART0.
GNDCommon ground for power and signals.
GNDCommon ground for power and signals.
GPIOGPIO2 of RP2040. Digital input/output of the header.
GPIOGPIO3 of RP2040. Digital input/output of the header.
GPIOGPIO4 of RP2040. Digital input/output of the header.
GPIOGPIO5 of RP2040. Digital input/output of the header.
GPIOGPIO6 of RP2040. Digital input/output of the header.
GPIOGPIO7 of RP2040. Digital input/output of the header.
GPIOGPIO8 of RP2040. Digital input/output of the header.
GPIOGPIO9 of RP2040. Digital input/output of the header.
USBNegative line of data pair USB. Share net with A7 and B7 of X6.
PowerUnregulated supply after the 500 mA fuse and protection diode.
GNDCommon ground for power and signals.
ControlActive-low RUN input on the RP2040. Pulling it to GND resets the board.
Power3.3 V regulated output shared with 2 pin of STEMMA QT.
AnalogGPIOGPIO29 of RP2040. Analog input and I/O digital.
AnalogGPIOGPIO28 of RP2040. Analog input and I/O digital.
AnalogGPIOGPIO27 of RP2040. Analog input and I/O digital.
AnalogGPIOGPIO26 of RP2040. Analog input and I/O digital.
SPIGPIORP2040 GPIO18. Board SPI0 bus.
SPIGPIORP2040 GPIO20. Board SPI0 bus.
SPIGPIORP2040 GPIO19. Board SPI0 bus.
GPIOGPIO10 of RP2040. Digital input/output of the header.
GNDCommon ground.
PowerRegulated output of 3.3 V for the accessory.
I2CGPIORP2040 GPIO12. Data line for I²C0.
I2CGPIOGPIO13 of RP2040. I²C0 clock.

Specifications

Microcontroller
Raspberry Pi RP2040 · two Cortex-M0+ to 133 MHz · 264 kB of SRAM
Programme report
8 MB flash QSPI external
Contacts
Two rows of 13 at a 2.54 mm pitch · 18 GPIO lateral and 2 GPIO at STEMMA QT
Signals
Logic of 3.3 V · four ADC 12 bit inputs in A0–A3
Power supply
5 V USB-C · 3.3 V regulator · 500 mA resettable fuse on the USB-to-RAW path
Identification
Adafruit KB2040, PID 5302. Both the CAD and the rear photograph identify revision B.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
KB2040SchematicAdafruitNets and connections to peripherals.Datasheet
KB2040PCBAdafruitPositions and numbers of pads in the design rev. B.Datasheet
KB2040PrettyPinsAdafruitCorrespondence between headers, STEMMA QT and GPIO.Datasheet
KB2040Pin GuideAdafruitPower, buses and controls.Datasheet
RP2040DatasheetRaspberry PiSection 2.19.2, Table 279. Multiplexer of the GPIO.Datasheet
CircuitPythonBoard definitionAdafruitAlias D0–D13, A0–A3, CLK, MISO, MOSI, BUTTON and NEOPIXEL.Datasheet

Board notes

STEMMA QT / Qwiic
1 mm JST-SH. The pins are 1 GND, 2 3.3 V, 3 SDA/GPIO12 and 4 SCL/GPIO13. R10 and R12 are 5.1 kΩ pull-ups to 3.3 V.
USB-C
X6 shares D+ and D− with the two ends of the rows. R3 and R4 (27 Ω) bind them to the transceiver USB. CC1 and CC2 have resistances of 5.1 kΩ to ground.
Control and indicators
RST grounds RUN. BOOT grounds USBBOOT/GPIO11 to select the ROM bootloader at startup. GPIO17 supplies data to the NeoPixel. The green LED indicates power.
Rear
The round TP1 pad shares USBBOOT with the BOOT button. Bridging the two SJ1 pads connects VBUS directly to RAW, bypassing both the fuse and the diode.
Main buses
board.UART() uses TX/GPIO0 and RX/GPIO1. board.SPI() uses CLK/GPIO18, MO/GPIO19 and MI/GPIO20. board.STEMMA_I2C() uses GPIO12 and GPIO13.
Credits
Photographs and design of Adafruit Industries. The anchors have been compared with the schematic, the PCB and the Adafruit pinout.