Files

123 lines
4.2 KiB
Markdown
Raw Permalink Normal View History

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