mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
updated
This commit is contained in:
@@ -43,4 +43,4 @@ to lock it, program the Servo Motor to **0 degree**,
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_05.png">
|
||||
|
||||
<img src="assets/img/product_pics/unit/BUTTERFLY/example_unit_butterfly_04.png">
|
||||
<img src="assets/img/product_pics/unit/unit_example/BUTTERFLY/example_unit_butterfly_04.png" width="89%" height="89%">
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/Arduino/ADC_ADS1100).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/Arduino/ADC_ADS1100).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -89,7 +89,7 @@ ads.Measure_Differential();
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/UIFlow).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/ADC/example_unit_adc_01.png">
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ANGLE/Arduino).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ANGLE/Arduino).*
|
||||
|
||||
功能说明:在屏幕上显示, Angle Unit输入电压的映射数值.(范围为0~4095)
|
||||
|
||||
@@ -80,7 +80,7 @@ void loop() {
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ANGLE/UIFlow).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ANGLE/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/ANGLE/example_unit_angle_03.png">
|
||||
|
||||
|
||||
@@ -8,36 +8,38 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>BUTTERFLY</mark>** 是一个由舵机驱动的蝴蝶模型。当控制舵机是 **0 度**时,舵机发射装置上锁;当控制舵机 **30 度**时,发射装置解锁,释放“蝴蝶”。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_06.png" width="70%" height="70%">
|
||||
|
||||
## 装配
|
||||
|
||||
使用前,烧录 BUTTERFLY 的 UIFlow [例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTERFLY/UIFlow) 到 Core,然后通过 GROVE 线和 Grove2Pin转接板,将 Core 和 发射装置连接在一起,使得能够用 Core 上的按键控制舵机转动。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_02.png" width="70%" height="70%">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_04.png" width="70%" height="70%">
|
||||
|
||||
装配“蝴蝶”,控制舵机 **30 度**,将“蝴蝶”通过皮筋绑定发射装置上,并控制舵机为 **0 度**,上锁。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_03.png" width="70%" height="70%">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_05.png" width="70%" height="70%">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/BUTTERFLY/example_unit_butterfly_04.png">
|
||||
|
||||
## 相关视频
|
||||
|
||||
**BUTTERFLY 的组装**
|
||||
**BUTTERFLY** 是一个蝴蝶模型发射器,它能够向空中发射蝴蝶模型.发射器由一个 Servo 舵机和一个亚克力底座构成.蝴蝶模型每一次发射需要提前装配,将蝴蝶模型头部进行旋转,并将橡皮筋的另一端固定在发射器的底部.通过M5Core就能控制发射器的舵机旋转,进而控制蝴蝶的发射.这样一个有着动态效果的模型发射装置,你可以将它用作时装设计的装饰品.
|
||||
|
||||
<video width="500" height="315" controls>
|
||||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201903/butterfly_03.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
**BUTTERFLY 的演示**
|
||||
|
||||
<video width="500" height="315" controls>
|
||||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201903/butterfly_05.mp4" type="video/mp4">
|
||||
</video>
|
||||
</video>
|
||||
|
||||
## 产品特性
|
||||
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
|
||||
## 步骤
|
||||
|
||||
1, 下载这个[应用案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTERFLY/UIFlow) ,并上传到至M5Core.
|
||||
2, M5Core使用GROVE线,经过GROVE2Pin转换器,与发射装置的舵机连接起来.
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_02.png">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_04.png">
|
||||
|
||||
"发射蝴蝶",编程发射装置舵机旋转**30°**
|
||||
|
||||
"锁定蝴蝶",编程发射装置舵机旋转**0°**
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_06.png">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_03.png">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_butterfly_05.png">
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/BUTTERFLY/example_unit_butterfly_04.png" width="89%" height="89%"
|
||||
>
|
||||
|
||||
+11
-11
@@ -8,22 +8,22 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>BUTTON</mark>** 是一个瞬时单按键开关 unit。这个 Unit 内置了一个瞬时按键,这个瞬时按键能够在按压释放时会自动弹回。当按键按下时立即输出一个低电压的逻辑电平,释放时立即输出一个高电压的逻辑平。NC 引脚在该模块没有用到,Btn (GPIO36) 引脚为按钮的信号输出。
|
||||
**BUTTON** 是一个单按键 Unit,通过检测输入引脚高/低电平变化,进而判断按键状态.
|
||||
|
||||
**如图下图所示:**
|
||||
**如下图所示:**
|
||||
|
||||
<img src="assets/img/product_pics/unit/button/unit_button_02.png">
|
||||
|
||||
**按键输出状态示意:**
|
||||
**输出状态:**
|
||||
|
||||
<img src="assets/img/product_pics/unit/button/unit_button_03.png">
|
||||
|
||||
该 Unit 与 M5Core 通过 Grove B 接口通信。
|
||||
该 Unit 通过GROVE B端口与M5Core进行通信.
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTON/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTON/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -64,7 +64,7 @@ M5.update();
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTON/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/BUTTON/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/BUTTON/example_unit_button_03.png">
|
||||
|
||||
@@ -75,6 +75,6 @@ M5.update();
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core (GROVE 接口 B)</td><td>Btn (GPIO36)</td><td>NC (GPIO26)</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>单按键 Unit</td></td><td>按键引脚</td><td> </td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>Btn (GPIO36)</td><td>NC (GPIO26)</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>BUTTON Unit</td><td>BUTTON Pin</td><td>/</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
+14
-16
@@ -8,28 +8,26 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>CardKB</mark>** 是一个实现 QWERTY 全键盘的 Unit。它还可以实现按键组合(Sym+Key, Shift+Key, Fn+Key),输出更丰富的键值。
|
||||
**CardKB** 是一款功能齐全的QWERTY键盘.如果你想要实现一些复杂的键盘输入交互,仅仅依靠N5Core上的3个按键恐怕有些难度.面对这一难题 CardKB ,横空出世.
|
||||
|
||||
该 Unit 与 M5Core 通过 GROVE A 接口 ( IIC ) 通信,其 I2C 地址是 0x5F 。
|
||||
使用 CardKB Unit 不仅能够实现全键盘输入,还支持多种按键组合(Sym + Key,Shift + Key,Fn + Key)输出更丰富的键值.该 Unit 通过GROVE A端口(IIC接口)与M5Core通信. I2C地址为0x5F.
|
||||
|
||||
**1. 键盘组合说明:**
|
||||
**1. 按钮组合说明:**
|
||||
|
||||
* **无按键组合**,键盘输出第一按键值 ( 按下键盘字母键,默认输出小写 )。例如:按下 "Q",会输出小写 "q"。
|
||||
* **按下单个按键**,键盘将输出第一键值(字母键值则输出小写形式). 例如,按下"Q",键盘将输出"q"(小写形式).
|
||||
|
||||
* **Sym + 按键组合**,键盘输出第二按键值。例如:单击 "Sym" 之后,按下 "Q",会输出 "{"。快速双击 "Sym" 后,锁定 Sym 功能,对之后每个按键都生效。
|
||||
* **Sym+key**, 键盘将输出第二键值.例如,单击"Sym"后,按下"Q",键盘将输出"{". 双击"Sym"锁定功能,之后按下的任意按键都将输出第二键值.再次双击"Sym"进行解锁.
|
||||
|
||||
* **Shift + 按键组合**,按下键盘字母键,输出大写。例如:单击 "Shift" 之后,按下 "Q",会输出大写 "Q"。快速双击 "Shift" 后,锁定 Shift 功能,对之后每个按键都生效,每次按下字母按键都会输出大写。
|
||||
* **Shift+key**, 键盘将输出字母的大写形式.例如,单击"Shift"后,按下"Q",键盘将输出"Q"(大写形式).双击"Shift"锁定功能,之后按下的任意按键都将输出大写形式,再次双击"Shift"进行解锁.
|
||||
|
||||
* **Fn+按键组合(自定义功能按键组合)**,按下键盘按键输出第三键值,用户可以自定义键值对应的功能
|
||||
|
||||
**2. 按键组合与键值表**,分别是无按键组合与对应键值、Sym + 按键组合与对应键值、Shift + 按键组合与对应键值和 Fn + 按键按组合与对应键值:
|
||||
* **Fn+key(自定义功能键组合)**, 键盘将输出第三键值.你可以自定义按下的按键其对应的功能.
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_cardkb_04.png">
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- GROVE 接口,IIC 通讯
|
||||
- 全键盘功能,多种按键组合方式
|
||||
- 全键盘输入,多种按键组合.
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc)
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -46,13 +44,13 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[模块内 MEGA328 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/firmware_328p/CardKeyBoard)**
|
||||
- **[CardKB 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/firmware_328p/CardKeyBoard)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/Arduino)。*
|
||||
|
||||
```arduino
|
||||
#include <Wire.h>
|
||||
@@ -94,7 +92,7 @@ void loop()
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CARDKB/UIFlow)。*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/CARDKB/example_unit_cardkb_02.png">
|
||||
|
||||
@@ -115,7 +113,7 @@ void loop()
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core ( GROVE 接口 A )</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CardKB</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
|
||||
+20
-16
@@ -8,12 +8,14 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>CATEAR</mark>** 是猫耳朵形状的 Neopixel 灯条。CATEAR 总共有 118 颗 RGB LED。它可以接 M5Core 的 GROVE A, B, C 接口。
|
||||
**CATEAR** 是由 11s8 Neopixels搭配亚克力结构外形制作的猫耳头带.Neopixels是智能RGB灯带,灯带上的每一个LED灯都可以编程显示任何颜色,并且支持设置亮度,点亮流,闪烁模式.如果你想要在派对或万圣节上吸引眼球,成为焦点.为什么不试试在你的装备上添加一些炫酷的灯光效果呢?
|
||||
|
||||
## 特性
|
||||
它可以使用任何类型的 M5Core 进行编程.并支持任意一个GROVE接口.(A,B,C)
|
||||
|
||||
- RGB LED灯数: 118
|
||||
- GROVE接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
## 产品特性
|
||||
|
||||
- Neopixel 灯珠个数: 118
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -21,9 +23,11 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[FastLED库说明](https://github.com/FastLED/FastLED/wiki/Overview)**
|
||||
Neopixel 的 Arduino 驱动函数库:
|
||||
|
||||
- **[FastLED参考(中文)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
|
||||
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
|
||||
|
||||
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
|
||||
|
||||
## 例程
|
||||
|
||||
@@ -31,31 +35,31 @@
|
||||
|
||||
### UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CATEAR/UIFlow).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/CATEAR/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/CATEAR/example_unit_catear_01.png">
|
||||
|
||||
### 管脚映射
|
||||
|
||||
**如果CATEAR接GROVE A**
|
||||
**CATEAR 连接到 GROVE A**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td>/</td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
**如果CATEAR接GROVE B**
|
||||
**CATEAR 连接到 GROVE B**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td>/</td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
**如果CATEAR接GROVE C**
|
||||
**CATEAR 连接到 GROVE C**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td> </td><td>CATEAR 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>CATEAR Unit</td><td>/</td><td>CATEAR Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>COLOR</mark>** 是一款集成 **TCS3472** 芯片的颜色识别 Unit。
|
||||
**COLOR** 是一款颜色识别 Unit,其内部集成**TCS3472**彩色光数字转换器,能够将其检测到颜色值转换为RGB数据返回给M5Core.
|
||||
|
||||
该 Unit 通过 GROVE A 接口(I2C)与M5Core通信,I2C地址为0x29.
|
||||
|
||||
**识别颜色原理:**
|
||||
|
||||
@@ -33,12 +35,11 @@
|
||||
该 Unit 与 M5Core 通过 GROVE A 接口 ( IIC ) 通信,其 I2C 地址是 0x29 。
|
||||
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
-
|
||||
- 工作温度范围: -40℃~85℃
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc)
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -62,7 +63,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/COLOR/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/COLOR/Arduino).*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -106,8 +107,8 @@ tcs.getRawData(&red, &green, &blue, &clear);
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core ( GROVE 接口 A )</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>颜色传感器 Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>COLOR Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
+13
-11
@@ -8,14 +8,16 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>DAC</mark>** 是一款集成数字信号转模拟信号芯片的Unit,能够实现输出模拟信号,如电压、声音等,内置的DAC芯片型号是**MCP4725**,并且不带EEPROM。(I2C地址为0x60)
|
||||
**DAC**, 是一款高性能的数字/模拟信号转换器,其内置了**MCP4725**.具备低功耗,高精度,单通道,12位缓冲电压输出数模转换器(DAC),非易失性存储器(EEPROM).
|
||||
|
||||
## 特性
|
||||
用户可以使用I2C接口命令将DAC输入和配置烧写到非易失性存储器(EEPROM)中,使得DAC在断电期间仍能保持代码,上电后即可直接使用,I2C地址为0x60.
|
||||
|
||||
- 高达12位的转换精度
|
||||
- 0~3.3V幅度的电压输出
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
## 产品特性
|
||||
|
||||
- 最高12位分辨率
|
||||
- 电压输出范围 0~3.3V
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -24,8 +26,8 @@
|
||||
|
||||
## 应用
|
||||
|
||||
- MP3播放器
|
||||
- mini信号发生器
|
||||
- MP3音频播放器
|
||||
- 迷你示波器
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -39,7 +41,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DAC/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DAC/Arduino).*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -76,6 +78,6 @@ delay(1000);
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>数模转换Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>DAC Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>Dual Button</mark>** 是一个瞬时双按键开关 unit。这个 Unit 内置了两个同类型的瞬时按键,这个瞬时按键能够在按压释放时会自动弹回。当按键按下时立即输出一个低电压的逻辑电平,释放时立即输出一个高电压的逻辑平。GPIO36 引脚输出 Button A (蓝色按键)的电平信号,GPIO26 (红色按键)引脚输出 Button B 的电平信号。
|
||||
**Dual Button**, 是一款双按键 Unit ,提供了两个不同颜色的物理按键供你进行操作.通过检测不同按键输入引脚高/低电平变化,进而判断按键状态.
|
||||
|
||||
该 Unit 通过GROVE B端口与M5Core进行通信.
|
||||
|
||||
<img src="assets/img/product_pics/unit/dual_button/unit_dual_button_05.png" width="50%" height="50%">
|
||||
|
||||
@@ -16,10 +18,10 @@
|
||||
|
||||
<img src="assets/img/product_pics/unit/dual_button/unit_dual_button_08.png">
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -41,7 +43,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DUAL_BUTTON/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DUAL_BUTTON/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -63,7 +65,7 @@ M5.update();
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DUAL_BUTTON/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/DUAL_BUTTON/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/DUAL_BUTTON/example_unit_dual_button_05.png">
|
||||
|
||||
@@ -74,8 +76,8 @@ M5.update();
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core (GROVE 接口 B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>双按键 Unit</td><td>按键 A 引脚</td><td>按键 B 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core (GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>DUAL_BUTTON Unit</td><td>Blue Button Pin</td><td>Red Button Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
+10
-16
@@ -8,22 +8,16 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>EARTH</mark>** 是一款集成**湿度传感器和 10K 的可调电阻**的 Unit。被测物体的含水量不一样时,传感器对应的电阻值也不一样,如果含水量高的时候,传感器导电率变大,电阻值变小,主控采集到传感器的数据就变小,反之变大。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_earth_02.png">
|
||||
|
||||
使用该 Unit 可以测量土壤、水果等物体含水量,或者测量水杯的水位高度等。该 Unit 可以输出 0/1 的数字信号,也可以直接输出被测物体反映的模拟量,可以调节 Unit 上的电位器来改变测量阈值。
|
||||
|
||||
该 Unit 与 M5core 通过 Grove B 接口通信。
|
||||
**EARTH** 是一款土壤湿度传感器,用于采集土壤或是类似材料中的水分.传感器上有两个测量探头,将其插入待测量土壤中,由于水分含量越高,则拥有更好的导电性,通过测量两探头之间的电势差,并进行ADC转换,将检测结果发送给M5Core.Unit上还集成了一个10K可调电阻,用于调节检测门槛值.
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/EARTH/example_unit_earth_03.png" width="50%" height="50%">
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- 可调节测量阈值 (通过改变 Unit 上的 10K 可调电阻)
|
||||
- 数字或模拟信号输出
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- 集成10K可调电阻,用于调节阈值.
|
||||
- 模拟 & 数字 输出
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc)
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -44,7 +38,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EARTH/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EARTH/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -68,7 +62,7 @@ void loop() {
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EARTH/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EARTH/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/EARTH/example_unit_earth_04.png">
|
||||
|
||||
@@ -79,8 +73,8 @@ void loop() {
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td> </tr>
|
||||
<tr><td>土壤湿度 Unit</td><td>模拟值输出引脚</td><td>数字值输出引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>EARTH Unit</td><td>AnalogSignal Pin</td><td>DigitalSignal Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
+20
-20
@@ -8,23 +8,21 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>ENV</mark>** 是一款集成 **DHT12** ( 环境温湿度传感器 ) 和压强传感器 **BMP280** 的 Unit。使用这个 Unit 可以测量空气中的温度、湿度和气压大小。
|
||||
**ENV** 是一款环境传感器,内部集成DHT12和BMP280,用于检测温度、湿度、大气压值数据.DHT12是DHT11湿度温度传感器的升级版本,完全向下兼容,测量数值更精确,并添加了I2C接口.BMP280是一款专为移动应用而设计的绝对气压传感器,具有较高的精准度.适合应用在一些小型低功耗终端上.对于需要对环境数据进行快速采集检测的项目来说, ENV Unit是一个兼顾性能与性价比的不错选择.
|
||||
|
||||
该 Unit 与 M5Core 通过 Grove A 接口通信,DHT12 的 IIC 地址是 **0x5C**, BMP280 的 IIC 地址是 **0x76**。
|
||||
## 产品特性
|
||||
|
||||
## 特性
|
||||
|
||||
- 温度测量
|
||||
- 范围: -20 ~ 60 ℃
|
||||
- 精度: ±0.2 ℃
|
||||
- 湿度测量
|
||||
- 范围: 20 ~ 95 %RH
|
||||
- 精度: 0.1 %
|
||||
- 气压测量
|
||||
- 范围: 300 ~ 1100 hPa
|
||||
- 精度: ±1 hPa
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- 温度:
|
||||
- 测量范围: -20 ~ 60 ℃
|
||||
- 误差: ±0.2℃
|
||||
- 湿度:
|
||||
- 测量范围: 20 ~ 95 %RH
|
||||
- 误差: 0.1%
|
||||
- 大气压:
|
||||
- 测量范围: 300 ~ 1100hPa
|
||||
- 误差: ±1hPa
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -48,9 +46,11 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
这是ENV的例程,能读取温湿度值和气压值。可是在编译程序之前需要先安装库 `Adafruit BMP280 Library`,然后拷贝 `Adafruit_Sensor.h` 到 `Adafruit BMP280 Library` 的安装路径 `C:\Users\<user_name>\Documents\Arduino\libraries\Adafruit_BMP280_Library` 下。
|
||||
该案例将使用 ENV Unit ,实现温度、湿度、大气压数据的读取.
|
||||
1, 在进行程序编译前,请安装`Adafruit BMP280 Library`
|
||||
2, 并将`Adafruit_Sensor.h`复制至`C:\Users\<user_name>\Documents\Arduino\libraries\Adafruit_BMP280_Library`
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV).*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -79,7 +79,7 @@ float pressure = bme.readPressure();
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/ENV/example_unit_env_05.png">
|
||||
|
||||
@@ -90,6 +90,6 @@ float pressure = bme.readPressure();
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core (GROVE 接口 A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>ENV温湿度和压力传感器 Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>ENV Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
+44
-39
@@ -1,4 +1,4 @@
|
||||
# ESP32CAM - 摄像头(无PSRAM) {docsify-ignore-all}
|
||||
# Unit ESP32CAM {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_esp32cam_01.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_esp32cam_02.png" width="65%" height="65%">
|
||||
|
||||
@@ -8,9 +8,22 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>ESP32Cam</mark>** 是一款基于 ESP32 芯片,集成 OV2640 摄像头驱动芯片的摄像头模块,但**不带 including PSRAM,也就是模块的 RAM 只有 520KB**。您可以通过 ESP-IDF 来编程摄像头功能。
|
||||
**ESP32CAM** 是一款图像识别开发板,集成ESP32(4M Flash + 520K RAM)芯片和200万像素的摄像头(OV2640).支持WiFi-图像传输和USB端口调试.
|
||||
|
||||
同时,ESP32CAM Unit 还预留了 9 轴陀螺仪 (MPU6050)、大气压 3 合 1 传感器 (BME280)和**模拟麦克风 (SPQ2410)** 的焊接口,如果您需要这些器件,可以焊接到对应位置上。ESP32CAM Unit 还预留了电池接口,如果您需要做可移动的摄像头,那么可以焊接手头的锂电池到对应位置上。
|
||||
硬件上预装固件,通过ESP-IDF编程开发,运行WiFi-相机应用程序.默认程序输出图像尺寸为**600 * 800**,你可以通过优化程序输出更大尺寸.
|
||||
|
||||
这个程序是如何使用的?
|
||||
- 打开手机Wi-Fi,扫描并连接名称以"m5stack-"开头的AP热点.
|
||||
- 打开手机浏览器,访问192.168.4.1,进入监控页面实时获取拍摄视频.
|
||||
- 视频帧率大约在每秒5-6帧.
|
||||
|
||||
硬件拓展支持(预留以下IC焊接接口)
|
||||
- 6轴陀螺仪(MPU6050)
|
||||
- 压力传感器(BMP280)
|
||||
- **模拟MIC(SPQ2410)**
|
||||
- 电池插座
|
||||
|
||||
**ESP32CAM** 是M5相机系列中一款广受欢迎的模块,不管是从性能或是性价比上都有着出色的表现.M5相机系列还有一些其他的相机产品能够应对项目中的不同需求,如果你需要更多存储空间,请查看M5Camera(Link),如果您需要鱼眼镜头,请查看M5CameraF(Link).
|
||||
|
||||
**注意:选配不同硬件时,ESP32CAM 的命名不一样,遵循以下规则**
|
||||
|
||||
@@ -24,31 +37,32 @@
|
||||
|
||||
因为模块可以生成 WIFI 热点 AP,所以可以用手机、PC 或其他设备通过 WIFI 无线获取摄像头图片,也可以通过模块的GROVE 接口有线获取摄像头图片。
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- ESP32 模组特性
|
||||
+ 集成双核 Tensilica LX6
|
||||
+ 高达 240MHz 的时钟频率
|
||||
+ **520KB RAM**
|
||||
+ **4MB Flash memory**
|
||||
+ 集成 802.11 BGN WiFi 和双模蓝牙(经典蓝牙和 BLE)
|
||||
+ 硬件加密 (AES, SHA2, ECC, RSA-4096)
|
||||
- CP2104 USB 转串口
|
||||
- OV2640 # 摄像头驱动
|
||||
- 输出格式 (8-bit):
|
||||
- ESP32 规格
|
||||
+ 双核Tensilica LX6微处理器
|
||||
+ 高达240MHz的时钟频率
|
||||
+ **内置 520KB RAM**
|
||||
+ **4MB Flash 闪存**
|
||||
+ 集成的802.11 BGN WiFi收发器
|
||||
+ 集成双模蓝牙(经典和BLE)
|
||||
+ 硬件加速加密(AES,SHA2,ECC,RSA-4096)
|
||||
- CP2104 USB TTL
|
||||
- OV2640 传感器
|
||||
- 输出格式(8位):
|
||||
+ YUV(422/420)/YCbCr422
|
||||
+ RGB565/555
|
||||
+ 8-bit compressed data
|
||||
+ 8-/10-bit Raw RGB data
|
||||
- 图片最大传输速率
|
||||
+ 8位压缩数据
|
||||
+ 8- / 10位Raw RGB数据
|
||||
- 最高图像传输速率
|
||||
+ UXGA/SXGA: 15fps
|
||||
+ SVGA: 30fps
|
||||
+ CIF: 60fps
|
||||
- 扫描模式: Progressive
|
||||
- 摄像头特性
|
||||
+ 可视范围: **65 degree**
|
||||
+ 最大像素: 200W(由于本模块内存比较小,所以摄像头能拍摄 200W 像素图像,可是板子无法获取和处理,最大为 800 * 600 的 JPEG 格式图片)
|
||||
- 尺寸:20.5 × 46.5 × 11.5mm
|
||||
- 扫描模式: 渐进式
|
||||
- 相机规格
|
||||
+ 视野 : **65 °**
|
||||
+ 最大像素: 2M
|
||||
- 尺寸: 20.5 × 46.5 × 11.5mm
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -56,9 +70,9 @@
|
||||
|
||||
## 管脚映射
|
||||
|
||||
**摄像头驱动芯片 OV2640 接口**
|
||||
**相机管脚映射**
|
||||
|
||||
| *接口* | *OV2640 引脚*| *ESP32Cam* |
|
||||
| *接口* | *OV2640 Pin*| *ESP32Cam* |
|
||||
| :------------------- | :--------:| :--------: |
|
||||
| SCCB Clock | SIOC | IO23 |
|
||||
| SCCB Data | SIOD | IO25 |
|
||||
@@ -94,7 +108,7 @@
|
||||
| :-----------: | :--------: |
|
||||
| LED_Pin | IO16 |
|
||||
|
||||
**<mark>以下为预留的 IC 接口</mark>**
|
||||
**reserved chip 接口**
|
||||
|
||||
**BME280 接口**
|
||||
|
||||
@@ -121,15 +135,15 @@
|
||||
| :-----------: | :------: |
|
||||
| OUT | IO32 |
|
||||
|
||||
**<mark>注意:</mark>**
|
||||
**注意:**
|
||||
|
||||
1. **Camera Power Down 引脚** 没必要连接到 ESP32 的引脚。
|
||||
1. OV2640 芯片的 **PIN8(PDWN)**引脚为使能引脚,在该主板中通过12KΩ下拉电阻接地使能,进入工作模式.当 PIN8(PDWN)引脚上拉高电平时,将进入**Camera Power Down**模式.
|
||||
|
||||
2. 我们有几个版本的摄像头板子,下图是它们主要区别的比较。
|
||||
2. 以下是M5相机系列几款产品的主要参数区别.
|
||||
|
||||
如果想**查看**详细的资源对比,请点击[这里](https://shimo.im/sheets/gP96C8YTdyjGgKQC/e2041)。
|
||||
**点击** [查看详情](https://shimo.im/sheets/gP96C8YTdyjGgKQC/e2041)。
|
||||
|
||||
如果想**下载**详细的资源对比,请点击[这里](https://github.com/m5stack/M5-Schematic/blob/master/Units/m5camera/M5%20Camera%20Detailed%20Comparison.xlsx)。
|
||||
**点击** [下载表格](https://github.com/m5stack/M5-Schematic/blob/master/Units/m5camera/M5%20Camera%20Detailed%20Comparison.xlsx)。
|
||||
|
||||
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_table/camera_comparison/camera_comparison_zh_CN.png">
|
||||
|
||||
@@ -142,21 +156,12 @@
|
||||
|
||||
- **数据手册** - [ESP32](https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_cn.pdf) - [OV2640](https://www.uctronics.com/download/cam_module/OV2640DS.pdf)
|
||||
|
||||
<!-- - **[ESP32CAM和M5Camera的硬件对比](https://github.com/m5stack/M5-Schematic/blob/master/Units/m5camera/hardware_diff_with_ESP32CAM_M5Camera_zh_CN.md)** -->
|
||||
|
||||
## 代码
|
||||
|
||||
### 固件
|
||||
|
||||
- **[ESP32CAM 固件](https://github.com/m5stack/m5stack-cam-psram/tree/NoPsram)**
|
||||
|
||||
|
||||
<!-- ### 例程
|
||||
|
||||
- **[颜色识别](https://github.com/m5stack/Applications-cam)**
|
||||
|
||||
- **[人脸识别](https://github.com/m5stack/esp-who)** -->
|
||||
|
||||
## 相关视频
|
||||
|
||||
**ESP32CAM case - 01**
|
||||
|
||||
@@ -8,14 +8,15 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>EXT.IO</mark>**是用来拓展IO引脚的Unit,集成了IO拓展芯片PCA9554PW,实现两位的IIC串口引脚控制8位并口状态,实现8位并口的输入或者输出模式。在IO口紧缺的项目中,接上这个Unit可以实现由2个引脚变成8个可以独立控制的引脚。
|
||||
**EXT.IO** 是一款并行端口拓展器.集成了IO拓展芯片PCA9554PW,支持拓展至8个GPIO,能够用于用于2.3~5.5V VCC、开漏、上拉、中断输出操作.通过I2C接口(串行时钟SCL,串行数据SDA)辅助多数的微控制器提供I/0拓展,对于I/O引脚紧缺,又不想浪费资源添加额外控制器的开发者来说,EXT.IO会是一个不错辅助 Unit.
|
||||
|
||||
该Unit连接到M5Core的GRVE A接口,通过IIC通讯(IIC地址是0x27)。
|
||||
IIC 地址: 0x27.
|
||||
|
||||
## 特性
|
||||
### 产品描述
|
||||
|
||||
- 拓展成8个输出/输出的IO引脚
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- 拓展 I/O 个数: 8
|
||||
- GROVE 接口, 支持 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EXTIO/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EXTIO/Arduino)。*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -79,13 +80,13 @@ Serial.println(ioCon1.digitalWritePort0(0x00));
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EXTIO/UIFlow).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/EXTIO/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/EXTIO/example_unit_extio_01.png">
|
||||
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>EXT.IO Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
+17
-19
@@ -1,4 +1,4 @@
|
||||
# FINGER - 指纹识别 {docsify-ignore-all}
|
||||
# Unit FINGER {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_finger_01.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_finger_02.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_finger_grove_c.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,24 +8,22 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>FINGER</mark>** 是一款集成了瑞典 **FPC1020A** 电容式指纹识别模组的 Unit。该 Unit 具有多人指纹录入、图像处理、特征值提取、指纹比对和搜索等的功能。可以使用它做二次开发,实现指纹识别产品研发。
|
||||
**FINGER** 是一款指纹识别传感器. 内部集成 FPC1020A 电容式指纹识别模组,具备多指纹录入、图像处理、特征值提取、指纹比对、搜索等功能.
|
||||
|
||||
该 unit 连 M5Core 的 GROVE C 接口,与 M5Core 之间通过串口 ( UART ) 通信
|
||||
采用UART通信协议、紧凑的外观设计、与低功耗能带给项目可靠的安全级别的同时,提供最佳的用户便利性.如果你想要为你的项目添加生物指纹识别功能,并希望其具备稳定可靠的添加、验证、管理机制.**FINGER Unit** 是一个不错的解决方案.
|
||||
|
||||
串口参数:波特率 ( 默认为 19200bps ), 起始位 ( 1位 ), 停止位 ( 1位 ), 校验位 ( 无 )
|
||||
**使用时,请将该 Unit 连接到 PORT C ,它将通过UART协议与M5Core进行通信**
|
||||
|
||||
## 特性
|
||||
UART 参数设置:
|
||||
- 波特率(**默认: 19200bps**)
|
||||
- 起始位(1 bit)
|
||||
- 停止位(1 bit)
|
||||
- 校验位(无)
|
||||
|
||||
## 产品特性
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_finger_03_zh_CN.png">
|
||||
|
||||
<!-- - 指纹容量: 150枚
|
||||
- 比对模式 1:N 识别/ 1:1 验证
|
||||
- 指纹识别比对等级范围: 0 ~ 9, 默认为5
|
||||
- 安全等级范围: 1 ~ 5, 默认为3
|
||||
- 响应时间 指纹预处理< 0.45 s
|
||||
- 输入电压范围: 3.3 ~ 6V
|
||||
- 工作温湿度范围: -10 ~ 60°, 20% ~ 80% -->
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x FINGER Unit
|
||||
@@ -33,8 +31,8 @@
|
||||
|
||||
## 应用
|
||||
|
||||
- 指纹考勤
|
||||
- 指纹锁
|
||||
- 指纹考勤机
|
||||
- 指纹储物柜
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -42,13 +40,13 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[FINGER 的通信协议](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_zh_CN.DOC)**
|
||||
- **[FINGER 通信协议](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_zh_CN.DOC)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/FINGER/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/FINGER/Arduino).*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -92,8 +90,8 @@ res1 = fpm_deleteAllUser();
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core ( GROVE 接口 C )</td><td>U2RXD</td><td>U2TXD</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>FINGER 指纹识别 Unit</td><td>TXD</td><td>RXD</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE C)</td><td>U2RXD</td><td>U2TXD</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>FINGER Unit</td><td>TXD</td><td>RXD</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
+37
-34
@@ -8,38 +8,43 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>GPS</mark>**是一款集成中科微北斗导航芯片 AT6558 和信号放大芯片 MAX2659 的 Unit。AT6558 是车载设备级别的芯片,性能强悍,支持多种卫星导航系统,以 56 通道接收卫星信号,同时接收六个卫星导航系统的 GNSS 信号,并且实现联合定位、导航和授时,获得准确的全球位置信息。AT6558 能够在城市、峡谷、高架下面等弱信号的地方,以及汽车内部任何位置可以快速、准确地定位。使得模块可广泛用于车载监控、公交车报站、车载导航、船载导航、笔记本导航等产品上。
|
||||
**GPS** 是一款卫星定位 Unit . 内部集成科微北斗导航芯片 AT6558 和信号放大芯片 MAX2659,能够提供优质的卫星定位服务.
|
||||
|
||||
Unit 还内置了信号放大器 **MAX2659**。
|
||||
|
||||
该 Unit 接 M5Core 的 GROVE C(UART) 口之后,M5Core 通过串口与它通讯。
|
||||
**AT6558** 是一款高性能的导航芯片,支持多种卫星导航系统,以 56 通道接收卫星信号,同时接收6个卫星导航系统的 GNSS 信号,并且实现联合定位、导航和授时,获得准确的全球位置信息.AT6558 能够在城市、峡谷、高架下面等弱信号的地方,以及汽车内部任何位置可以快速、准确地定位.此模块可广泛用于车载监控、公交车报站、车载导航、船载导航、笔记本导航等产品上.
|
||||
|
||||
串口参数:波特率 ( 默认为 9600bps ), 起始位 ( 1位 ), 停止位 ( 1位 ), 校验位 ( 无 )
|
||||
**使用时,请将该 Unit 连接到 PORT C ,它将通过UART协议与M5Core进行通信**
|
||||
|
||||
## 特性
|
||||
UART 参数设置:
|
||||
- 波特率(**默认: 9600bps**)
|
||||
- 起始位(1 bit)
|
||||
- 停止位(1 bit)
|
||||
- 校验位(无)
|
||||
|
||||
- 功能规范
|
||||
- 定位精度:2.5米(CEP50,开阔地)
|
||||
- 通道:56
|
||||
- 支持 BDS/GPS/GLONASS 卫星导航系统的单系统定位,或者任意组合的多系统联合定位
|
||||
## 产品特性
|
||||
|
||||
- 功能
|
||||
- 定位精度:2.5米(CEP50,空旷地区)
|
||||
- 通道: 56
|
||||
- 支持BDS / GPS / GLONASS卫星导航系统的单系统定位,或任意组合的多系统联合定位
|
||||
- 支持 D-GNSS 差分定位
|
||||
- 定位更新频率:1-10Hz
|
||||
- 最大高度:1800 米
|
||||
- 最大速度:515 m/s
|
||||
- 最大加速度:<= 4 G
|
||||
- 定位更新频率: 1-10Hz
|
||||
- 最大高度: 1800 m
|
||||
- 最大速度: 515 m/s
|
||||
- 最大加速度: <= 4 G
|
||||
- 低功耗
|
||||
- BDS/GPS 双模连续运行:<23mA(@3.3V)
|
||||
- 待机:<10uA(@3.3V)
|
||||
- BDS/GPS 双模连续操作: <23mA (@3.3V)
|
||||
- 待机: <10uA (@3.3V)
|
||||
- 灵敏度
|
||||
- 跟踪:-162dBm
|
||||
- 捕捉:-148dBm
|
||||
- 冷启动:-146dBm
|
||||
- 跟踪: -162dBm
|
||||
- 捕捉: -148dBm
|
||||
- 冷启动: -146dBm
|
||||
- 启动时间
|
||||
- 冷启动:35 秒
|
||||
- 温启动:32 秒
|
||||
- 热启动:1 秒
|
||||
- 工作温度:-40~85℃
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
- 冷启动: 35 seconds
|
||||
- 温启动: 32 seconds
|
||||
- 热启动: 1 second
|
||||
- 工作温度: -40~85°C
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -49,7 +54,6 @@ Unit 还内置了信号放大器 **MAX2659**。
|
||||
## 应用
|
||||
|
||||
- 车载、船载定位与导航
|
||||
- 高精度授时
|
||||
- 智能执法定位
|
||||
|
||||
## 相关链接
|
||||
@@ -58,21 +62,19 @@ Unit 还内置了信号放大器 **MAX2659**。
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **数据手册** - [AT6558](http://www.icofchina.com/d/file/xiazai/2016-12-05/b1be6f481cdf9d773b963ab30a2d11d8.pdf) - [MAX2659](https://datasheets.maximintegrated.com/en/ds/MAX2659.pdf)
|
||||
- **[数据手册]** - [AT6558](http://www.icofchina.com/d/file/xiazai/2016-12-05/b1be6f481cdf9d773b963ab30a2d11d8.pdf) - [MAX2659](https://datasheets.maximintegrated.com/en/ds/MAX2659.pdf)
|
||||
|
||||
- **[TinyGPS++ 库官网](http://arduiniana.org/libraries/tinygpsplus/)**
|
||||
|
||||
- **[AT6558 的信息](http://www.icofchina.com/pro/dingwei/2016-07-29/5.html)**
|
||||
- **[TinyGPS++ library](http://arduiniana.org/libraries/tinygpsplus/)**
|
||||
|
||||
- **[CASIC 多模卫星导航接收机协议规范](http://www.icofchina.com/d/file/xiazai/2017-05-02/ea0cdd3d81eeebcc657b5dbca80925ee.pdf)**
|
||||
|
||||
- **[上位机软件 GnssToolKit3(Windows版本)](http://www.icofchina.com/d/file/xiazai/2018-05-23/2b29a8da746eec0ef1dcd9deae895298.zip)**
|
||||
- **[上位机软件 GnssToolKit3(Windows Version)](http://www.icofchina.com/d/file/xiazai/2018-05-23/2b29a8da746eec0ef1dcd9deae895298.zip)**
|
||||
|
||||
## 例程
|
||||
|
||||
### Arduino IDE
|
||||
|
||||
*具体例程`GPSRaw.ino`请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/GPS/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/GPS/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -101,7 +103,7 @@ void loop() {
|
||||
}
|
||||
```
|
||||
|
||||
烧录例程 `GPSRaw.ino` 之后,屏幕和串口显示终端会打印如下类似的信息
|
||||
烧录例程 GPSRaw.ino 后,当设备启动时,M5Core屏幕和PC端串口调试工具将会打印显示如下的信息.
|
||||
|
||||
```
|
||||
$GNGGA,063012.000,2234.87140,N,11357.22414,E,1,06,4.2,7.3,M,0.0,M,,*7D
|
||||
@@ -122,7 +124,8 @@ $GPTXT,01,01,01,ANTENNA OPEN*25
|
||||
|
||||
**$GNRMC,063012.000,A,2234.87140,N,11357.22414,E,0.69,171.74,240419,,,A*7A**
|
||||
|
||||
表示定位信息为 UTC 时间为 06 时 30 分 12 秒,北纬 22.58119°,东经 113.95357°,日期为 2019 年 04 月 24 日
|
||||
表示定位信息为:
|
||||
UTC时间是06:30:12,北纬22.58119°,东经113。95357°,2019年4月24日
|
||||
|
||||
<img src="assets/img/product_pics/unit/gps/unit_gps_06.png">
|
||||
|
||||
@@ -136,6 +139,6 @@ $GPTXT,01,01,01,ANTENNA OPEN*25
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core (GROVE 接口 C)</td><td>ESP32 串口 2 接收引脚 U2RXD(GPIO16)</td><td>ESP32 串口 2 发送引脚 U2TXD(GPIO17)</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>北斗导航 Unit</td><td>信号发送引脚 TXD</td><td>信号接收引脚 RXD</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE C)</td><td>U2RXD(GPIO16)</td><td>U2TXD(GPIO17)</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>GPS Unit</td><td>Signal Transmitter (TXD)</td><td>Signal Receiver (RXD)</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
+17
-11
@@ -8,16 +8,22 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>HEART</mark>** 是一款集成 MAX30100 模块,能够非侵入式检测血氧和心率的 Unit。 MAX30110 模块包含两个红外发光二极管和一个光检测器,其检测血氧饱和度的原理是通过红外 led 灯照射,检测携带氧气和非携带氧气的红血球数量比例,从而得到血氧含量。
|
||||
**HEART** 是一款血氧心率传感器.集成**MAX30110**,提供完整的脉搏血氧仪和心率传感器系统解决方案.这是一款非侵入式的血氧心率传感器,集成了两个红外发光二极管和一个光检测器.其检测原理是通过红外 led 灯照射,检测携带氧气和非携带氧气的红血球数量比例,从而得到血氧含量.
|
||||
|
||||
该 unit 接入 M5Core 的 GROVE A 口之后,只需要将手指紧贴在 unit 的 MAX30110 模块上,即可读出生理信息。
|
||||
**测试方式: 程序运行后,将手指放置在检测区域.**
|
||||
|
||||
## 特性
|
||||
**Heart Unit 通过 I2C 协议与 M5Core 进行通信 I2C地址:0x57**
|
||||
|
||||
- 高输入阻抗,低噪声
|
||||
- 工作温度范围:-40°C ~ 85°C
|
||||
<!-- - GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程 -->
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
## 产品特性
|
||||
|
||||
- 可编程采样率和LED电流,以节省功耗
|
||||
- 超低关断电流 (0.7µA, 典型值)
|
||||
- 高测量性能
|
||||
- 高采样率
|
||||
- 快速数据输出
|
||||
- GROVE 接口
|
||||
- 软件开发平台: Arduino
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -32,13 +38,13 @@
|
||||
|
||||
- **数据手册** - [MAX30100](https://datasheets.maximintegrated.com/en/ds/MAX30110.pdf)
|
||||
|
||||
- **[MAX30100lib](https://github.com/oxullo/Arduino-MAX30100)**
|
||||
- **[MAX30100 lib](https://github.com/oxullo/Arduino-MAX30100)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEART/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEART/Arduino).*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -98,6 +104,6 @@ void loop()
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>血氧心率Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEART Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
+24
-20
@@ -1,4 +1,4 @@
|
||||
# HEX - 六边形Neopixel {docsify-ignore-all}
|
||||
# Unit HEX {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_hex_01.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,16 +8,18 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>HEX</mark>**是一个六边形的RGB LED unit。一共有37颗LED,而多个HEX可以通过输入输出口串联一起。
|
||||
**HEX** 是一款六边形Neopixel灯板.一共嵌入37个Neopixel灯珠,提供输入、输出端口,这意味着你可以将多个Neopixel进行串联.
|
||||
|
||||
下图是RGB灯的顺序示意。
|
||||
|
||||
以下为HEX灯板中的LED布局排序方式
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_hex_03.png">
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- RGB LED灯数: 37
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- LED灯总数: 37
|
||||
- 开发平台: Arduino,UIFlow(Blockly & python)
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -30,17 +32,19 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[FastLED库说明](https://github.com/FastLED/FastLED/wiki/Overview)**
|
||||
Neopixel Library on Arduino
|
||||
|
||||
- **[FastLED参考(中文)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
|
||||
- **[FastLED Library](https://github.com/FastLED/FastLED/wiki/Overview)**
|
||||
|
||||
- **[FastLED Reference(中文版本)](http://www.taichi-maker.com/homepage/reference-index/arduino-library-index/fastled-library/)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
这是显示渐变彩虹色的HEX例程。编译程序之前需要先安装FastLED库,并将HEX接在M5Core的GROVE A接口。
|
||||
在Arduino中使用第三库FastLED,能够为你的Neopixel提供出色的灯光特效.在进行程序编译前,需要安装FastLED,并将HEX连接到GROVE A.
|
||||
|
||||
*如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/Arduino)。*
|
||||
|
||||
```arduino
|
||||
/*
|
||||
@@ -82,29 +86,29 @@ void loop(){
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/UIFlow).*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/HEX/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/HEX/example_unit_dual_button_01.png" width="50%" height="50%"> <img src="assets/img/product_pics/unit/unit_example/HEX/example_unit_dual_button_02.png" width="30%" height="30%">
|
||||
|
||||
### 管脚映射
|
||||
|
||||
**如果HEX接GROVE A**
|
||||
**HEX 连接到 GROVE A**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td> </td><td>HEX 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td>/</td><td>HEX Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
**如果HEX接GROVE B**
|
||||
**HEX 连接到 GROVE B**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td> </td><td>HEX 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td>/</td><td>HEX Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
**如果HEX接GROVE C**
|
||||
**HEX 连接到 GROVE C**
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td> </td><td>HEX 引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE C)</td><td>GPIO16</td><td>GPIO17</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>HEX Unit</td><td>/</td><td>HEX Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
@@ -1,4 +1,4 @@
|
||||
# HUB - GROVE接口拓展Unit {docsify-ignore-all}
|
||||
# Unit HUB {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_hub.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,11 +8,15 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>HUB</mark>** 是一款 GROVE 接口的拓展器,目的是通过 HUB 能把 GROVE 接口拓展为3个,这样同时能连接更多的 Unit 传感器。不过如果同时接同样的 2 - 3 个 IIC 接口 (红色接口) Unit 的话,会引起 IIC 地址冲突,这时候,应该使用 IIC HUB Unit 取代 HUB Unit 以避免 IIC 地址冲突。
|
||||
**HUB** 是一款 GROVE 接口的拓展器,其功能是能将 1个 GROVE 接口拓展为3个,使得能够同时连接更多的Unit传感器.
|
||||
|
||||
## 特性
|
||||
**注意:**
|
||||
同时连接 2 - 3 个 IIC 接口 (红色接口) 同样的Unit 的话,将会引起 IIC 地址冲突.使用 IIC HUB Unit 取代 HUB Unit 能够以避免 IIC 地址冲突的发生.
|
||||
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
### 产品描述
|
||||
|
||||
- GROVE 拓展器
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
|
||||
+13
-12
@@ -1,4 +1,4 @@
|
||||
# IR - 红外对管 {docsify-ignore-all}
|
||||
# Unit IR {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_ir.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_ir_grove_b.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,16 +8,17 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>IR</mark>** 是一款红外光电对管 Unit,集成一对红外发送和接收管。与M5Core连接之后,可以通过M5Core来控制是否发出红外光,另外的接收管能检测是否有发自其他设备红外光发送给unit。
|
||||
**IR** 是一款红外光电对管 Unit,集成了红外发射、接收管.通过GROVE接口与M5Core进行连接并控制红外发射、接收.支持红外编码、红外解码.
|
||||
|
||||
因为GROVE接口有两个信号引脚,一个控制红外发送,一个控制红外接收,所以如果要发送红外光则需要OUTPUT管脚(GPIO26)输出高电平。
|
||||
基于它可靠的短距离传输特性,在日常生活中,红外遥控广泛应用家电与消费类电子产品.
|
||||
|
||||
## 特性
|
||||
## 产品特性
|
||||
|
||||
- 内置一对红外发送和接收管
|
||||
- 检测距离: 2 ~ 5cm
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
- 1x 红外发射器
|
||||
- 1x 红外接收器
|
||||
- 距离范围: < 5m
|
||||
- 开发平台: Arduino, UIFlow(Blockly,Python)
|
||||
- 2x LEGO 兼容孔
|
||||
|
||||
## 包含
|
||||
|
||||
@@ -34,7 +35,7 @@
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IR/Arduino)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IR/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
@@ -54,7 +55,7 @@ cur_recv_value = digitalRead(ir_recv_pin);// read the status of receiver
|
||||
|
||||
### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IR/UIFlow)。*
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IR/UIFlow).*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/IR/example_unit_ir_03.png">
|
||||
|
||||
@@ -65,6 +66,6 @@ cur_recv_value = digitalRead(ir_recv_pin);// read the status of receiver
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>红外对管Unit</td><td>红外接收器引脚</td><td>红外发送器引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>IR Unit</td><td>Receiver Pin</td><td>Transmitter Pin</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user