pdf-icon

Unit CardKB

SKU:U035

Description

CardKB is a unit with an implemented full-featured QWERTY keyboard. Consider that you want make some cool stuff that require keyboard typing and interaction, but M5 core by itself only has 3 buttons, what can you do? introducing CardKB, the flexible and powerful keyboard unit.

CardKB also can achieve button combination (Sym+Key, Shift+Key, Fn+Key) and output richer key value. This unit communicates with M5Core through GROVE A port (I2C interface). The default Address is 0x5F.

Product Features

  • Full-function keyboard, multi-key combination
  • GROVE interface, support UIFlow and Arduino
  • Two Lego compatible holes

Include

  • 1x CardKB unit
  • 1x GROVE Cable

Applications

  • Keyboard peripherals for M5Stack Core

Specification

Resources Parameter
Number of keys 50
RGBLED x1
Communication method I2C
Net weight 17g
Gross weight 18g
Product Size 88*54*5mm
Package Size 136*92*5mm

1. Button combination description:

  • Single button pressed, keyboard will output the first key value (the letter button will output in a lower case form). E.g if "Q" was pressed, keyboard will output "q" (lower cased).

  • Sym+key, keyboard will output the second key value. E.g if "Sym" was pressed and then "Q" was pressed, the keyboard will output "{". If "Sym" was double pressed, then the keyboard will lock this function, all key pressed will output it's second key value.

  • Shift+key, if a letter button was pressed, it'll output upper case form. E.g if "Shift" was pressed and then "Q" was pressed, the keyboard will output "Q". If "Shift" was double pressed, then the keyboard will lock this function, all letter key pressed will output it's upper case form.

  • Fn+key(custom function key combination), keyboard will output the third key value. You can customize what function the key presses corresponds to.

EasyLoader

download EasyLoader

What is EasyLoader?
1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed. .
  1. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click "Burn" to start burning. (For M5StickC burning, please Set the baud rate to 750000 or 115200)

PinMap

Mega328 ISPDownload interface Pin foot definition

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

Protocol

  • Protocol type I2C
  • I2C Address: 0x5F
/*--------------------------------------------------------------------------------------------------*/
| KEYBOARD REG       | 0x5F
| ------------------------------------------------------------------------------------------------
| keyboard_value_reg[0] 0x5F        |  R |  KEYBOARD VALUE
/*----------------------------------------------------------------------------------------------------

Example

Arduino

To get the code, please click here

UIFlow

How to use Blockly cardkb on the UIFlow 1.0 graphical programming platform and related API instructions
How to use Unit cardkb and related API instructions in the UIFlow2.0