Files

367 lines
12 KiB
Markdown
Raw Permalink Normal View History

2020-03-16 18:36:03 +08:00
# BASIC
2018-12-25 16:04:58 +08:00
<el-tag effect="plain">SKU:K001</el-tag>
2020-03-18 20:16:20 +08:00
2020-04-30 10:09:54 +08:00
<div class="product_pic"><img class="pic" src="assets/img/product_pics/core/basic/basic_01.webp"><img class="pic" src="assets/img/product_pics/core/basic/basic_03.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 BASIC** 是M5Stack开发套件系列中的一款,拥有超高性价比与丰富案例资源的入门级开发套件.对于开发新手来说, Basic 是不二之选.
2020-06-02 17:39:01 +08:00
快速成型,超低门槛,直达产品级,M5Stack 开发板会是你物联网开发的不二之选.传统开发板只能用作验证和学习,M5的出现赋予了开发板更多的可能性,M5Stack 开发板采用了工业级外壳,再加上精致的外观设计,整体性能稳定,除了验证和学习的功能之外,还可以加速开发和产品化的进程.采用**ESP32**物联网芯片.集成Wi-Fi和蓝牙模块,拥有 16MB 的 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,借助双核与实时操作系统,能使你更加高效的去组织你的程序代码,优化程序的执行效率.
2020-04-02 16:37:38 +08:00
M5Stack Basic 由两个可分离部分堆叠组成. 顶部放置了电路板,芯片,各种电子元器件和一些接口组件.底部放置了锂电池,M-BUS 总线母座和边缘的拓展引脚.
2019-08-08 15:52:08 +08:00
2020-05-25 17:01:34 +08:00
**开关机操作:**
* 开机:单击左侧红色电源键
* 关机:快速双击左侧红色电源键
2019-04-26 18:10:14 +08:00
## 产品特性
2018-12-25 16:04:58 +08:00
2019-04-26 18:10:14 +08:00
- 基于 ESP32 开发
2020-03-31 13:38:27 +08:00
- 内置扬声器,按键,LCD屏幕,电源/复位按键
2020-03-30 09:18:35 +08:00
- TF卡插槽(支持最大16GB)
- 内置锂电池
- 背部磁吸设计
2019-04-26 18:10:14 +08:00
- 可拓展的引脚与接口
2020-03-31 20:24:29 +08:00
- M-Bus总线母座
2019-04-26 18:10:14 +08:00
- 开发平台 [UIFlow](http://flow.m5stack.com), [MicroPython](http://micropython.org/), [Arduino](http://www.arduino.cc)
2020-03-30 09:18:35 +08:00
2019-04-26 18:10:14 +08:00
2020-03-26 14:57:52 +08:00
## 包含
- 1x BASIC
- 10x 杜邦线
- 1x Type-C USB(20cm)
- 1x 使用手册
- 1x 贴纸
2020-03-31 15:07:57 +08:00
2020-03-26 14:57:52 +08:00
## 应用
- 物联网控制器
- STEM教育
- DIY作品
- 智能家居设备
2020-03-30 09:18:35 +08:00
## 规格参数
<table>
<tr style="font-weight:bold">
<td>主控资源</td>
<td>参数</td>
</tr>
<tr>
<td>ESP32-D0WDQ6</td>
<td>240MHz dual core, 600 DMIPS, 520KB SRAM, Wi-Fi, dual mode Bluetooth</td>
</tr>
<tr>
<td>Flash</td>
2020-06-02 17:39:01 +08:00
<td>16MB</td>
2020-03-30 09:18:35 +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>
2020-03-31 13:38:27 +08:00
<td>Core底座接口</td>
<td>PIN (G1G2G3G16, G17, G18, G19, G21, G22, G23, G25, G26, G35, G36)</td>
2020-03-30 09:18:35 +08:00
</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-30 09:18:35 +08:00
</tr>
<tr>
<td>扬声器</td>
<td>1W-0928</td>
</tr>
2020-03-31 13:38:27 +08:00
<tr>
<td>按键</td>
<td>自定义按键 x 3</td>
</tr>
2020-03-30 09:18:35 +08:00
<tr>
<td>锂电池</td>
<td>110mAh @ 3.7V</td>
</tr>
2020-03-31 13:38:27 +08:00
<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>
2020-03-30 09:18:35 +08:00
<tr>
<td>工作温度</td>
<td>32°F to 104°F ( 0°C to 40°C )</td>
</tr>
<tr>
2020-05-28 14:23:18 +08:00
<td>净重</td>
<td>47.2g</td>
<tr>
<td>毛重</td>
<td>93g</td>
2020-03-31 13:38:27 +08:00
</tr>
2020-03-30 09:18:35 +08:00
<tr>
2020-05-28 14:23:18 +08:00
<td>产品尺寸</td>
<td>54 x 54 x 18mm</td>
</tr>
<tr>
<td>包装尺寸</td>
<td>95 x 65 x 25mm</td>
2020-03-30 09:18:35 +08:00
</tr>
<tr>
<td>外壳材质</td>
<td>Plastic ( PC )</td>
</tr>
</table>
2019-06-14 17:49:23 +08:00
## EasyLoader
2020-03-11 11:18:01 +08:00
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动)M5StickC/V/T/ATOM系列可免驱动使用)**
2019-06-14 17:49:23 +08:00
2020-03-06 12:02:10 +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-06 12:02:10 +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-06 12:02:10 +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/BASIC.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-06 12:02:10 +08:00
</div>
</div>
</div>
2019-07-30 11:52:28 +08:00
2020-03-30 09:18:35 +08:00
## 管脚映射
2018-12-25 16:04:58 +08:00
2019-02-26 12:09:29 +08:00
**LCD 屏幕 & TF 卡**
2018-12-25 16:04:58 +08:00
2020-03-30 09:18:35 +08:00
LCD 像素:320x240
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>
</table>
2019-02-26 12:09:29 +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>
2020-03-19 20:02:35 +08:00
<tr><td>按键引脚</td><td>BUTTON A</td><td>BUTTON B</td><td>BUTTON C</td><td> /</td></tr>
2019-08-23 19:20:52 +08:00
<tr><td>喇叭</td><td> </td><td> </td><td> </td><td>DA PIN</td></tr>
2018-12-25 16:04:58 +08:00
</table>
2019-02-26 12:09:29 +08:00
**GROVE 接口 A & IP5306**
2020-03-30 09:18:35 +08:00
电源管理芯片 (IP5306) 是定制 I2C 版本,它的 I2C 地址是 0x75。点击[这里](https://github.com/m5stack/M5-Schematic/blob/master/Core/IIC_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>
2019-02-26 12:09:29 +08:00
<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>
2018-12-25 16:04:58 +08:00
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>
## 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>
2020-09-30 18:18:24 +08:00
**充电电流测量值**
<table>
<tr><td>充电电流</td><td>充满后电流(关机)</td><td>充满电(开机)</td></tr>
<tr><td>0.55A</td><td>-</td><td>0.066A</td></tr>
</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-08-15 16:36:11 +08:00
2019-05-31 09:50:10 +08:00
2018-12-25 16:04:58 +08:00
## 相关链接
2020-03-30 09:18:35 +08:00
- **Datasheet**
- [ESP32](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/esp32_datasheet_cn.pdf)
- [IP5306](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/IIC_IP5306_REG_V1.4_cn.pdf)
2019-04-17 20:04:52 +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
## 原理图
2020-03-17 14:38:21 +08:00
- [原理图](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/M5-Core-Schematic(20171206).pdf)
2019-10-11 21:10:15 +08:00
## 版本变更
2020-05-14 14:02:51 +08:00
<table>
<thead>
<tr>
<th>上市日期</th>
<th>产品变动</th>
<th>备注:</th>
</tr>
</thead>
<tbody>
<tr>
<td>2017.7</td>
<td>首次发售</td>
<td>/</td>
</tr>
<tr>
<td>2019.7</td>
<td>TN屏幕变更为IPS屏幕</td>
<td>请将您的M5Stack库升级到最新版本(v0.2.8以上),以解决屏幕反色问题。</td>
</tr>
<tr>
<td>2020.3</td>
<td>电池容量150mAh变更为110mAh</td>
<td>/</td>
</tr>
2020-06-02 17:39:01 +08:00
<tr>
<td>2020.6</td>
<td>flash大小由4MB变更为16MB</td>
<td>/</td>
</tr>
2020-05-14 14:02:51 +08:00
<tbody>
</table>
2019-10-11 21:10:15 +08:00
2020-03-31 13:38:27 +08:00
## 案例程序
2020-03-31 15:07:57 +08:00
2021-02-19 19:34:06 +08:00
### 1. Arduino
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-17 10:22:08 +08:00
2018-12-25 16:04:58 +08:00
## 相关视频
2019-04-17 20:04:52 +08:00
**M5Stack 的简介**
2018-12-25 16:04:58 +08:00
2019-03-19 14:51:16 +08:00
<video width="500" 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">
2019-03-19 14:51:16 +08:00
</video>
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/basic-core-iot-development-kit';
2020-02-11 18:00:45 +08:00
2020-03-11 11:18:01 +08:00
var quickstart_link = '/#/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>