Files

397 lines
13 KiB
Markdown
Raw Permalink Normal View History

2019-04-16 16:18:13 +08:00
# GRAY {docsify-ignore-all}
2018-12-25 16:04:58 +08:00
<el-tag effect="plain">SKU:K002</el-tag>
2020-03-18 20:16:20 +08:00
2020-04-08 14:09:44 +08:00
<div class="product_pic"><img src="assets/img/product_pics/core/gray/gray_01.webp"><img src="assets/img/product_pics/core/gray/gray_02.webp"></div>
2018-12-25 16:04:58 +08:00
2020-11-04 19:11:58 +08:00
## 教程&快速上手
选择你想使用的开发平台,查看对应的教程&快速上手。
<a href="/#/zh_CN/quick_start/m5core/m5stack_core_get_started_MicroPython"><el-tag effect="plain">UIFlow</el-tag></a>
<a href="/#/zh_CN/arduino/arduino_development"><el-tag effect="plain">Arduino</el-tag></a>
2018-12-25 16:04:58 +08:00
## 描述
2020-03-17 14:38:21 +08:00
**M5Stack GRAY Kit** 是M5Stack开发套件系列中的一款,进阶型的开发套件.它作为Basic套件的升级版,在硬件上提供了更大的 Flash 内存,集成IMU传感器 MPU6886+BMM150 .无论是作为入门或是进阶, Gray 套件都是一个非常不错的选择.
我们可以在很多的应用场景中使用IMU姿态传感器用作:检测加速度、角度、轨迹延伸等数据.根据这些去制作出相关的产品,如运动数据采集器,3D远程手势控制器等.
2020-04-02 16:37:38 +08:00
快速成型,超低门槛,直达产品级,M5Stack开发板会是你物联网开发的不二之选.传统开发板只能用作验证和学习,M5的出现赋予了开发板更多的可能性,M5Stack开发板采用了工业级外壳,再加上精致的外观设计,整体性能稳定,除了验证和学习的功能之外,还可以加速开发和产品化的进程.采用**ESP32**物联网芯片.集成Wi-Fi和蓝牙模块,拥有4MB的SPI闪存,双核低功耗的它在多种应用场景中有着非凡表现.由30多个M5Stack 可堆叠模块,40 多个可扩展单元组成的硬件拓展体系,能够快速的帮助你搭建和验证你的物联网产品.
2020-03-17 14:38:21 +08:00
支持的开发平台和程序语言:Arduino,[UIFlow](http://flow.m5stack.com) 的 Blockly 语言,Micropython. 无论你的开发和编程能力处在何种水平,M5Stack 都将协助你,逐步的将想法变为现实.
如果你开发过 ESP8266,你会发现 ESP32 是 ESP8266 的完美升级版.相比之下,ESP32 具有更多 GPIO,更多的模拟输入和两个模拟输出,多个外设接口(如备用UART).官方开发平台 ESP-IDF 已经移植了 FreeRTOS,借助双核与实时操作系统,能使你更加高效的去组织你的程序代码,优化程序的执行效率.
2019-08-08 15:52:08 +08:00
2020-05-25 17:01:34 +08:00
**开关机操作:**
* 开机:单击左侧红色电源键
* 关机:快速双击左侧红色电源键
2019-04-26 18:10:14 +08:00
## 产品特性
- 基于ESP32开发
2020-03-31 13:38:27 +08:00
- 大容量flash
2020-03-31 20:24:29 +08:00
- 集成3轴陀螺仪、3轴加速计与3轴磁力计
2020-03-31 13:38:27 +08:00
- 内置扬声器,按键,LCD屏幕,电源/复位按键
- TF卡插槽(支持最大16GB)
- 内置锂电池
- 背部磁吸设计
2019-04-26 18:10:14 +08:00
- 可拓展的引脚与接口
- M-Bus总线母座 & 引脚
- 开发平台 [UIFlow](http://flow.m5stack.com), [MicroPython](http://micropython.org/), [Arduino](http://www.arduino.cc)
2020-03-31 13:38:27 +08:00
<!-- 尺寸:54.2mm x 54.2mm x 17.9mm
2020-02-19 15:10:51 +08:00
- 包装重量:49.2g
2020-03-31 13:38:27 +08:00
-->
2019-04-26 18:10:14 +08:00
2020-03-26 14:57:52 +08:00
## 包含
- 1x Gray
- 10x 杜邦线
- 1x Type-C USB(20cm)
- 1x 使用手册
- 1x 贴纸
## 应用
- 物联网控制器
- STEM教育
- DIY作品
- 智能家居设备
2020-03-31 13:38:27 +08:00
## 规格参数
<table>
<tr style="font-weight:bold">
<td>主控资源</td>
<td>参数</td>
</tr>
<tr>
<td>ESP32</td>
<td>240MHz 双核, 600 DMIPS, 520KB SRAM, Wi-Fi, 双模蓝牙</td>
</tr>
<tr>
<td>Flash闪存</td>
2020-04-03 14:01:09 +08:00
<td>16MB</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
<td>输入电压</td>
<td>5V @ 500mA</td>
</tr>
<tr>
<td>接口</td>
<td>TypeC x 1, GROVE(I2C+I/0+UART) x 1</td>
</tr>
<tr>
<td>IPS屏幕</td>
2020-04-09 09:26:51 +08:00
<td>2 inch, 320x240 Colorful TFT LCD, ILI9342C,最高亮度853nit</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
2020-03-31 20:24:29 +08:00
<td>扬声器</td>
2020-03-31 13:38:27 +08:00
<td>1W-0928</td>
</tr>
<tr>
<td>Core底座接口</td>
<td>PIN (G1G2G3G16, G17, G18, G19, G21, G22, G23, G25, G26, G35, G36)</td>
</tr>
<tr>
2020-03-31 20:24:29 +08:00
<td>MEMS</td>
2020-03-31 13:38:27 +08:00
<td>MPU6886+BMM150</td>
</tr>
<tr>
<td>按键</td>
2020-03-31 20:24:29 +08:00
<td>自定义按键 x 3</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
<td>电池</td>
<td>110mAh @ 3.7V</td>
</tr>
<tr>
2020-04-09 15:44:13 +08:00
<td>天线</td>
<td>2.4G 3D天线</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
<td>工作温度</td>
<td>32°F to 104°F ( 0°C to 40°C )</td>
</tr>
2020-05-28 14:23:18 +08:00
<tr>
<td>净重</td>
<td>49.2g</td>
</tr>
<tr>
<td>毛重</td>
<td>93g</td>
</tr>
2020-03-31 13:38:27 +08:00
<tr>
<td>主机尺寸</td>
2020-03-31 20:24:29 +08:00
<td>54 x 54 x 18.9 mm</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
2020-05-28 14:23:18 +08:00
<td>包装尺寸</td>
<td>95 x 65 x 25mm</td>
2020-03-31 13:38:27 +08:00
</tr>
<tr>
<td>外壳材质</td>
<td>Plastic ( PC )</td>
</tr>
</table>
2019-06-18 21:16:27 +08:00
## EasyLoader
2020-03-11 14:57:18 +08:00
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
2019-06-18 21:16:27 +08:00
2020-03-11 14:57:18 +08:00
<div class="easyloader-box">
<div style="background-color:white;">
2020-04-08 14:09:44 +08:00
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
2020-03-11 14:57:18 +08:00
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/CORE/EasyLoader_M5Core_FactoryTest.exe">Windows</a>
2020-04-14 17:55:39 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/CORE/EasyLoader_M5Core_FactoryTest.dmg">MacOS</a>
2020-03-11 14:57:18 +08:00
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Core/GRAY.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
<p>案例描述:</p>
2020-11-25 16:54:10 +08:00
<p>该案例将执行喇叭,wifi,按键,加速计,TF-card(microSD),屏幕等硬件运行测试.</p>
2020-03-11 14:57:18 +08:00
</div>
</div>
</div>
2019-06-18 21:16:27 +08:00
2018-12-25 16:04:58 +08:00
## 外设的管脚映射
2019-02-28 13:43:11 +08:00
**LCD 屏幕 & TF 卡**
2018-12-25 16:04:58 +08:00
2020-03-17 10:22:08 +08:00
LCD 像素:320 x 240
2019-02-28 13:43:11 +08:00
2020-03-17 10:22:08 +08:00
TF 卡最大支持 16GB
2018-12-25 16:04:58 +08:00
<table>
<tr><td>ESP32 Chip</td><td>GPIO23</td><td>GPIO19</td><td>GPIO18</td><td>GPIO14</td><td>GPIO27</td><td>GPIO33</td><td>GPIO32</td><td>GPIO4</td></tr>
2019-12-13 19:58:17 +08:00
<tr><td>ILI9342C</td><td>MOSI/MISO</td><td>/</td><td>CLK</td><td>CS</td><td>DC</td><td>RST</td><td>BL</td><td> </td></tr>
2018-12-25 16:04:58 +08:00
<tr><td>TF卡</td><td>MOSI</td><td>MISO</td><td>CLK</td><td> </td><td> </td><td> </td><td> </td><td>CS</td></tr>
2019-03-25 09:49:50 +08:00
</table>
2018-12-25 16:04:58 +08:00
</table>
2019-02-28 13:43:11 +08:00
**按键 & 喇叭**
2018-12-25 16:04:58 +08:00
<table>
<tr><td>ESP32 Chip</td><td>GPIO39</td><td>GPIO38</td><td>GPIO37</td><td>GPIO25</td></tr>
<tr><td>按键引脚</td><td>BUTTON A</td><td>BUTTON B</td><td>BUTTON C</td></tr>
<tr><td>喇叭</td><td> </td><td> </td><td> </td><td>喇叭引脚</td></tr>
</table>
**GROVE 接口 A & IP5306**
2021-02-26 17:27:20 +08:00
电源管理芯片 (IP5306) 是定制 I2C 版本,它的 I2C 地址是 0x75。点击[这里](https://github.com/m5stack/M5-Schematic/blob/master/Core/I2C_IP5306_REG_V1.4.pdf)查看 IP5306 的寄存器手册。
2018-12-25 16:04:58 +08:00
<table>
<tr><td>ESP32 Chip</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>GROVE A</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
<tr><td>IP5306</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
2018-12-25 16:04:58 +08:00
</table>
2019-08-15 16:36:11 +08:00
**IP5306充/放电,电压参数**
2019-08-08 20:10:54 +08:00
<table>
<tr style="font-weight:bold;text-align:center" >
<td>充电</td>
<td><td>
<td>放电</td>
</tr>
<tr>
<td>0.00 ~ 3.40V -> 0%</td>
<td><td>
<td>4.20 ~ 4.07V -> 100%</td>
</tr>
<tr>
<td>3.40 ~ 3.61V -> 25%</td>
<td><td>
<td>4.07 ~ 3.81V -> 75%</td>
</tr>
<tr>
<td>3.61 ~ 3.88V -> 50%</td>
<td><td>
<td>3.81 ~ 3.55V -> 50%</td>
</tr>
<tr>
<td>3.88 ~ 4.12V -> 75%</td>
<td><td>
<td>3.55 ~ 3.33V -> 25%</td>
</tr>
<tr>
<td>4.12 ~ / -> 100%</td>
<td><td>
<td>3.33 ~ 0.00V -> 0%</td>
</tr>
</table>
2019-08-07 17:52:36 +08:00
**6-Axis MotionTracking Sensor MPU6886**
2018-12-25 16:04:58 +08:00
2020-03-17 10:22:08 +08:00
MPU6886 I2C address 0x68
2018-12-25 16:04:58 +08:00
<table>
<tr><td>ESP32 Chip</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
2019-07-10 21:10:21 +08:00
<tr><td>MPU6886</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
</table>
**3轴磁力计 BMM150**
2020-03-17 10:22:08 +08:00
BMM150 I2C 地址为 0x10
2019-07-10 21:10:21 +08:00
<table>
<tr><td>ESP32 Chip</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
<tr><td>BMM150</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
2018-12-25 16:04:58 +08:00
</table>
2020-09-30 18:18:24 +08:00
**充电电流测量值**
<table>
<tr><td>充电电流</td><td>充满后电流(关机)</td><td>充满电(开机)</td></tr>
<tr><td>1.069A</td><td>-</td><td>0.073A</td></tr>
</table>
2020-03-19 20:02:35 +08:00
## M5端口说明
2019-08-15 16:36:11 +08:00
2020-03-19 20:02:35 +08:00
<table>
<thead>
<th>PORT</th>
<th>PIN</th>
<th>备注:</th>
</thead>
<tbody>
<tr>
<td>PORT-A(红色)</td>
<td>G21/22</td>
<td>I2C</td>
</tr>
<tr>
<td>PORT-B(黑色)</td>
<td>G26/36</td>
<td>DAC/ADC</td>
</tr>
<tr>
<td>PORT-C(蓝色)</td>
<td>G16/17</td>
<td>UART</td>
</tr>
</tbody>
</table>
2019-08-15 16:36:11 +08:00
2020-03-31 13:38:27 +08:00
2020-03-19 20:02:35 +08:00
## ESP32 ADC/DAC
<table>
<thead>
<th>ADC1</th>
<th>ADC2</th>
<th>DAC1</th>
<th>DAC2</th>
</thead>
<tbody>
<tr>
<td>8 通道</td>
<td>10 通道</td>
<td>2 通道</td>
<td>2 通道</td>
</tr>
<tr>
<td>G32-39</td>
<td>G0/2/4/12-15/25-27</td>
<td>G25</td>
<td>G26</td>
</tr>
</tbody>
</table>
2021-02-20 12:19:28 +08:00
## M-BUS
<img src="assets/img/product_pics/core/M-BUS.webp" alt="M_BUS" width="60%" height="36%">
2020-03-19 20:02:35 +08:00
有关引脚分配和引脚重新映射的更多信息,请参考[ESP32 datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/esp32_datasheet_cn.pdf)
2019-05-31 09:50:10 +08:00
2018-12-25 16:04:58 +08:00
## 相关链接
2020-03-31 13:38:27 +08:00
- **Datasheet**
2019-07-10 21:10:21 +08:00
- [ESP32](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/esp32_datasheet_cn.pdf)
- [MPU6886](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/MPU-6886-000193%2Bv1.1_GHIC_en.pdf)
- [BMM150](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/BMM150_datasheet_en.pdf)
2021-02-26 17:27:20 +08:00
- [IP5306](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/I2C_IP5306_REG_V1.4_cn.pdf)
2018-12-25 16:04:58 +08:00
2020-11-05 11:39:06 +08:00
- **API**
2020-11-25 16:54:10 +08:00
- [Arduino API](zh_CN/arduino/arduino_home_page?id=m5core_api)
2020-11-05 11:39:06 +08:00
2020-02-12 16:55:19 +08:00
## 原理图
2018-12-25 16:04:58 +08:00
2020-03-17 14:38:21 +08:00
- [原理图](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/M5-Core-Schematic(20171206).pdf)
2020-02-12 16:55:19 +08:00
2019-10-12 11:18:00 +08:00
## 版本变更
<div class="table-wrapper">
<table class="fl-table">
<thead>
<tr>
<th>上市日期</th>
<th>产品变动</th>
</tr>
2020-03-31 13:38:27 +08:00
</thead>
2019-10-12 11:18:00 +08:00
<tbody>
<tr>
<td>2017.9</td>
<td>首次发售</td>
</tr>
<tr>
<td>2017.12</td>
<td>MPU6050+MAG3110变更为MPU9250</td>
</tr>
<tr>
<td>2019.6</td>
<td>MPU9250变更为MPU6886+BMM150</td>
</tr>
<tr>
<td>2019.7</td>
<td>TN屏幕变更为IPS屏幕</td>
</tr>
2020-05-21 17:55:38 +08:00
<tr>
<td>2020.3</td>
<td>电池容量150mAh变更为110mAh</td>
</tr>
2019-10-12 11:18:00 +08:00
<tbody>
</table>
</div>
2020-03-31 13:38:27 +08:00
## 案例程序
2020-03-31 15:07:57 +08:00
2020-04-01 09:11:25 +08:00
### ArduinoIDE
2020-03-31 15:07:57 +08:00
2020-04-01 09:11:25 +08:00
- 点击[这里](https://github.com/m5stack/M5Stack/tree/master/examples/Basics)获得Arduino示例
2020-03-31 13:38:27 +08:00
2018-12-25 16:04:58 +08:00
## 相关视频
2019-01-26 14:30:38 +08:00
**M5Stack的简介**
2018-12-25 16:04:58 +08:00
2019-10-12 15:04:01 +08:00
<video class="video_size" controls>
2019-03-19 14:56:33 +08:00
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/m5stack%E7%AE%80%E4%BB%8B%EF%BC%88%E4%B8%AD%E6%96%87%EF%BC%89.mp4" type="video/mp4">
</video>
2019-01-26 14:30:38 +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-core/products/grey-development-core';
2020-02-11 18:00:45 +08:00
2020-02-12 17:30:08 +08:00
var quickstart_link = 'https://docs.m5stack.com/#/zh_CN/quick_start/m5core/m5stack_core_quick_start';
2020-02-11 18:00:45 +08:00
2020-02-12 17:30:08 +08:00
anchor_search(purchase_link,quickstart_link);
2020-02-11 18:00:45 +08:00
scrollFunc();
</script>