HTLNUZD M5Stack CardKB V1.1 Mini 50-Key QWERTY Keyboard Unit — Accessory Guide | Skills Pool
Skill File
HTLNUZD M5Stack CardKB V1.1 Mini 50-Key QWERTY Keyboard Unit — Accessory Guide
Provides comprehensive reference for using the HTLNUZD M5Stack CardKB V1.1 Mini 50-Key QWERTY Keyboard Unit with microcontrollers. Covers I2C communication, key scanning, key mapping, and keyboard input handling. Includes Arduino and TinyGo setup, wiring, pin usage, and code examples. Use when integrating compact keyboard input for handheld projects, data entry, hotkey configuration, or text input on microcontroller-based systems. Keywords: HTLNUZD, M5Stack, CardKB, keyboard, QWERTY, 50-key, I2C, Grove, key input, text input, hotkeys, keypad, USB-C, compact keyboard.
therebelrobot0 starsApr 15, 2026
Occupation
Categories
Containers
Skill Content
Provides comprehensive reference for using the HTLNUZD M5Stack CardKB V1.1 Mini 50-Key QWERTY Keyboard Unit with microcontrollers.
When to Use
Integrating compact keyboard input for handheld projects
Adding text input capability to microcontroller systems
Implementing hotkey functionality for control applications
Creating data entry interfaces for embedded systems
Looking up CardKB I2C communication details
Writing Arduino/TinyGo firmware for keyboard input
Checking pin usage and I2C address conflicts
When NOT to Use
For other input devices (rotary encoders, buttons) → use corresponding skill
For display output → use corresponding display skill
For standalone microcontroller board pinouts → use the corresponding board skill
The CardKB returns standard ASCII keycodes for alphanumeric keys:
Row 1: 1 2 3 4 5 6 7 8 9 0 - =
Row 2: Q W E R T Y U I O P [ ]
Row 3: A S D F G H J K L ; ' \
Row 4: Z X C V B N M , . / SHIFT
Row 5: FN (space bar) ENTER
Function Key Combinations (FN + Key)
FN + Key
Function
FN + 1
F1
FN + 2
F2
FN + 3
F3
FN + 4
F4
FN + 5
F5
FN + 6
F6
FN + 7
F7
FN + 8
F8
FN + 9
F9
FN + 0
F10
FN + -
F11
FN + =
F12
FN + P
Print Screen
FN + [
Scroll Lock
FN + ]
Pause
FN + A
Home
FN + D
Delete
FN + E
End
FN + G
Page Down
FN + I
Insert
FN + O
Page Up
FN + U
Up Arrow
FN + J
Down Arrow
FN + K
Left Arrow
FN + L
Right Arrow
Arduino Setup & Usage
Required Libraries
# CardKB Library:
# Use M5Stack's CardKB library or generic I2C key scanning
# Available via Arduino Library Manager: search "M5Stack"
# Or use the generic approach with Wire.h
Application: Create a portable data entry device
- Connect CardKB to XIAO ESP32-S3
- Add OLED display for visual feedback
- Implement text input for configuration or commands
2. Hotkey Controller
Application: Control software or hardware with keyboard shortcuts
- Map function keys (F1-F12) to specific actions
- Control robot movements, lighting, or other peripherals
- Create custom keyboard shortcuts for frequently used functions
3. Configuration Interface
Application: Set parameters for embedded systems
- Use number keys for value input
- Use letter keys for menu selection
- Implement ENTER/ESC for confirm/cancel
4. Password or Code Entry
Application: Secure input for access control
- Accept alphanumeric passwords
- Mask display of entered characters
- Debounce and validate input
5. Debug Console Input
Application: Command-line interface for debugging
- Accept text commands via keyboard
- Parse and execute commands
- Display output on connected display