> For the complete documentation index, see [llms.txt](https://wiki.openelab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openelab.io/aiot/m5stack/m5stack-keyboard-programmable-unit-v1.1-mega8a.md). Agents can also search and read this documentation through its [MCP server](https://wiki.openelab.io/~gitbook/mcp).

# M5Stack Keyboard Programmable Unit V1.1 (MEGA8A)

{% hint style="info" %}
[**View M5Stack CardKB v1.1 I2C Mini Keyboard Unit (ATMega8A) on OpenELAB**](https://openelab.io/products/m5stack-cardkb-keyboard)

**Store SKU / option:** `M5-U035-B`. Match the purchased model and revision to the official reference below.
{% endhint %}

### M5Stack Keyboard Programmable Unit V1.1 (MEGA8A)

***

### Product Link

{% embed url="<https://openelab.io/products/m5stack-cardkb-keyboard>" %}

### Introduction

**CardKB v1.1** is a card-size '50 key' QWERTY keyboard. Adpots `ATMega8A` as the MCU, communication port `I2C`, and one 'RGB-LED' indicator.

<figure><img src="https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2F09innk8agkWv2zD6cvBv%2Fimage.png?alt=media&amp;token=307cbfbb-3ae5-42ca-aee1-114474a525df" alt=""><figcaption></figcaption></figure>

### Features

* Full-function keyboard, multi-key combination
* GROVE interface, support [UIFlow ](http://flow.m5stack.com/)and [Arduino](http://www.arduino.cc/)
* Two Lego compatible holes

### Specifications

| Resources            | Parameter |
| -------------------- | --------- |
| MCU                  | ATMega8A  |
| Number of keys       | 50        |
| RGB LED              | 1 piece   |
| Communication method | I2C       |
| Net weight           | 17g       |
| Gross weight         | 18g       |

### Pinout

**ATMega8A ISP**Download interface Pin foot definition

<figure><img src="https://static-cdn.m5stack.com/resource/docs/products/hat/hat-cardkb/mega328_isp_sch_01.webp" alt="" width="375"><figcaption></figcaption></figure>

| M5Core(GROVE A) | GPIO22 | GPIO21 | 5V | GND |
| --------------- | ------ | ------ | -- | --- |
| CardKB          | SCL    | SDA    | 5V | GND |

### Dimensions

| Product Size | 88\*54\*5mm  |
| ------------ | ------------ |
| Package Size | 136\*92\*5mm |

### How to Use

#### Arduino <a href="#arduino" id="arduino"></a>

To get the code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/CardKB)

<figure><img src="https://static-cdn.m5stack.com/resource/docs/products/unit/cardkb/cardkb_arduino_01.webp" alt="" width="563"><figcaption></figcaption></figure>

#### UIFlow <a href="#uiflow" id="uiflow"></a>

**Feature Introduction**

Enter information via the keyboard

* **Get key** Return ASIIC value
* **Get string** Return character
* **Get pressed** Detect button, press to return true

**Usage**

To get the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/UIFlow)

<figure><img src="https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FrnL1e88MYHWJKHva3cU2%2Fimage.png?alt=media&amp;token=433e8f9e-fce7-4875-aed7-87f81ee9fc47" alt="" width="563"><figcaption></figcaption></figure>

## Official documentation and development resources

Use [Unit CardKB v1.1](https://docs.m5stack.com/en/unit/Unit_CardKB_v1.1) for the manufacturer's complete model reference, diagrams and maintained examples. The official product code is **`U035-B`**; match the board/Unit label before choosing a firmware or host example. The references below complement this guide's local instructions.

| Development need        | Model-specific reference                                                                            |
| ----------------------- | --------------------------------------------------------------------------------------------------- |
| Example source: M5Stack | [Read example source: m5stack](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/CardKB) |

Keep the example's host model, interface pins and dependency versions together when reproducing a result. A schematic or SDK link does not establish that another revision uses the same wiring. Official model pages and accessible tutorial links reviewed **23 November 2026**. Other downloads above are manufacturer-listed resources; listing a file is not a test of its contents. Compilation, firmware flashing and hardware operation were **not performed** in this review.
