mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
123 lines
4.2 KiB
Markdown
123 lines
4.2 KiB
Markdown
# 16-Key Capacitive Touch {docsify-ignore-all}
|
||
|
||
<el-tag effect="plain">SKU:U026</el-tag>
|
||
|
||
<div class="product_pic"><img src="assets/img/product_pics/unit/music/unit_makey_01.webp"></div>
|
||
|
||
## 描述
|
||
|
||
**16-Key Capacitive Touch Unit** 是一款创意键盘 Unit.该 Unit 的灵感来自一个名为Makey Makey的发明套件,它带给用户全新的交互使用概念.将日常物品连接至该 Unit,利用物体的导电性构建一个电路回路,从而模拟键盘输入或是鼠标点击的信号.例如将水果接入回路,当我们触碰水果时,将产生电信号用作控制,基于这样的交互方式能够制作水果钢琴,或是游戏控制器等应用.
|
||
|
||
该 Unit 通过PORT A接口与M5Core进行通信,I2C地址为0x51.
|
||
|
||
**使用方法:**
|
||
|
||
1)驱动 Unit 上的蜂鸣器发出声音:
|
||
|
||
使用杜邦线(公对公),将其一端插入"GND",当另一端短接至 Unit 上的键值的时候,蜂鸣器将发出相应的音调.
|
||
|
||
2)驱动M5Core的扬声器:
|
||
将 MAKEY Unit 连接至 M5Core 的 PORT A.并烧录该[案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/Arduino/Makey_new_version).
|
||
|
||
在 MAKEY Unit 上使用同样的方式进行"GND"短接,将驱动M5Core发出对应的音调.
|
||
|
||
## 产品特性
|
||
|
||
- Arduino Mega328p 控制器
|
||
- 内置蜂鸣器
|
||
- 内置16个音调
|
||
- 开发平台: Arduino, UIFlow(Blockly,Python)
|
||
- 2x LEGO 兼容孔
|
||
|
||
## 包含
|
||
|
||
- 1x MAKEY Unit
|
||
- 1x HY2.0-4P线缆
|
||
|
||
## 规格参数
|
||
|
||
<table>
|
||
<tr style="font-weight:bold">
|
||
<td>规格</td>
|
||
<td>参数</td>
|
||
</tr>
|
||
<tr>
|
||
<td>通讯协议</td>
|
||
<td>I2C:0x51</td>
|
||
</tr>
|
||
<tr>
|
||
<td>净重</td>
|
||
<td>7g</td>
|
||
</tr>
|
||
<tr>
|
||
<td>毛重</td>
|
||
<td>19g</td>
|
||
</tr>
|
||
<tr>
|
||
<td>产品尺寸</td>
|
||
<td>32*24*8mm</td>
|
||
</tr>
|
||
<tr>
|
||
<td>包装尺寸</td>
|
||
<td>67*53*12mm</td>
|
||
</tr>
|
||
</table>
|
||
|
||
## 应用
|
||
|
||
- 水果键盘
|
||
- 触摸传感器
|
||
|
||
<img src="assets/img/product_pics/unit/unit_example/MAKEY/tone_key_pitch_zh_CN.webp">
|
||
|
||
## EasyLoader
|
||
|
||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.webp" width="100px" style="margin-top:20px">
|
||
|
||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Unit/EasyLoader_Makey.exe"><el-button type="primary">点击下载EasyLoader</el-button></a>
|
||
|
||
>1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序,通过简单步骤将其烧录至主控,能够进行一系列的功能验证.
|
||
|
||
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录.(**为M5StickC烧录时,请将波特率设置在750000或115200**)
|
||
|
||
?>3.目前EasyLoader仅适用于Windows操作系统、兼容M5体系采用ESP32作为控制核心的主机.在为M5Core烧录前需要安装CP210X驱动程序(使用M5StickC作为控制器的则无需安装)[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||
|
||
### 管脚映射
|
||
|
||
<table>
|
||
<tr><td>M5Core(PORT A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||
<tr><td>MAKEY Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||
</table>
|
||
|
||
<img src="assets/img/product_pics/unit/M5GO_Unit_makey_03.webp" width="30%" height="30%">
|
||
|
||
## 原理图
|
||
|
||
<img src="assets/img/product_pics/unit/makey_sch.webp">
|
||
|
||
## 相关链接
|
||
|
||
- **[Maykey 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/firmware_328p)**
|
||
|
||
## 案例程序
|
||
|
||
### 1. Arduino
|
||
|
||
- [请点击此处获取Arduino示例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/Arduino/Makey_new_version)
|
||
|
||
|
||
### 2. UIFlow
|
||
|
||
- [请点击此处获取UIFlow示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/Makey_NewVersion/UIFlow)
|
||
|
||
<img src="assets/img/product_pics/unit/unit_example/MAKEY/example_unit_makey_02.webp">
|
||
|
||
|
||
<script>
|
||
|
||
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/makey-unit';
|
||
|
||
anchor_search(purchase_link);
|
||
scrollFunc();
|
||
|
||
</script> |