This commit is contained in:
LottesLiu
2019-05-20 21:05:15 +08:00
19 changed files with 444 additions and 13 deletions
+7 -5
View File
@@ -12,7 +12,7 @@
/* en */
body[data-page="index.md"] article.markdown-section {
max-width: 70%;
max-width: 85%;
}
body[data-page="index.md"] article.markdown-section .item {
@@ -27,7 +27,7 @@ body[data-page="index.md"] article.markdown-section p.item-title {
/* zh_CN */
body[data-page="zh_CN/README.md"] article.markdown-section {
max-width: 70%;
max-width: 85%;
}
body[data-page="zh_CN/README.md"] article.markdown-section .item {
@@ -42,7 +42,7 @@ body[data-page="zh_CN/README.md"] article.markdown-section p.item-title {
/* ja */
body[data-page="ja/README.md"] article.markdown-section {
max-width: 70%;
max-width: 85%;
}
body[data-page="ja/README.md"] article.markdown-section .item {
@@ -206,7 +206,8 @@ body[data-page="ja/README.md"] #faces-kit {
#core-bottom,
#m5go-bottom,
#m5go-rfid,
#m5go-charger {
#m5go-charger,
#pm2_5 {
width: 0;
height: 0;
overflow: hidden;
@@ -289,7 +290,8 @@ body[data-page="ja/README.md"] #application {
#m5iotkit,
#lidarbot,
#piano,
#flir {
#flir,
#m5iot-kit {
width: 0;
height: 0;
overflow: hidden;
Binary file not shown.

After

Width:  |  Height:  |  Size: 379 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

+2 -1
View File
@@ -6,6 +6,7 @@
- **Links**
- <a href="https://m5stack.com/"><img src="https://docs.m5stack.com/assets/img/favicon.ico" width=16px/>M5Stack</a>
- [![Github](https://icongram.jgog.in/simple/github.svg?color=808080&size=16)Github](https://github.com/m5stack)
- [![Twitter](https://icongram.jgog.in/simple/twitter.svg?colored&size=16)@M5Stack](http://twitter.com/M5Stack)
- [![Facebook](https://icongram.jgog.in/simple/facebook.svg?colored&size=16)@M5Stack](https://www.facebook.com/M5Stack)
- [![Facebook](https://icongram.jgog.in/simple/facebook.svg?colored&size=16)@M5Stack](https://www.facebook.com/M5Stack)
+51
View File
@@ -143,6 +143,7 @@
## PLUS
## USB
## BUS
## GoPlus
**拓展模块**
@@ -181,6 +182,14 @@
<p class="item-title" style="font-style:italic;">BUS</p>
</div>
<div class="item">
<a href="/#/zh_CN/module/goplus">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/module/module_goplus_p1.png">
</a>
<p class="item-title" style="font-style:italic;">GoPlus</p>
</div>
## STEPMOTOR
## SERVO
## LEGO+
@@ -247,6 +256,7 @@
## Core BOTTOM
## M5GO BOTTOM
<div class="item">
<a href="/#/zh_CN/base/lan_base">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/base/base_lan_01.png">
@@ -291,6 +301,7 @@
## M5GO RFID
## M5GO CHARGER
## pm2_5
<div class="item">
<a href="/#/zh_CN/base/m5go_rfid">
@@ -306,6 +317,13 @@
<p class="item-title" style="font-style:italic;">M5GO CHARGER</p>
</div>
<div class="item">
<a href="/#/zh_CN/base/PM2.5">
<img src="assets/img/product_pics/base/PM2.5/PM2.5-1.jpg">
</a>
<p class="item-title" style="font-style:italic;">PM2.5</p>
</div>
***
# Unit
@@ -495,6 +513,8 @@
## RGB
## RELAY
## HUB
## PaHUB
## PbHUB
## 3.96Port
## PROTO
@@ -526,6 +546,20 @@
<p class="item-title" style="font-style:italic;">HUB</p>
</div>
<div class="item">
<a href="/#/zh_CN/unit/pahub">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/unit/unit_pahub_p1.png">
</a>
<p class="item-title" style="font-style:italic;">PaHUB</p>
</div>
<div class="item">
<a href="/#/zh_CN/unit/pbhub">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/unit/unit_pbhub_p1.png">
</a>
<p class="item-title" style="font-style:italic;">PbHUB</p>
</div>
<div class="item">
<a href="/#/zh_CN/unit/396port">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/unit/unit_396port_01.png">
@@ -647,6 +681,7 @@
## LidarBOT
## PIANO
## FLIR
## M5IoT-kit
<div class="item">
<a href="/#/zh_CN/app/bala">
@@ -676,6 +711,14 @@
<p class="item-title" style="font-style:italic;">FLIR</p>
</div>
<!-- <div class="item">
<a href="/#/zh_CN/app/M5IoT-kit">
<img src="assets/img/product_pics/app/M5IoT-kit/M5IoT-kit-01.jpg">
</a>
<p class="item-title" style="font-style:italic;">M5IoT-kit</p>
</div> -->
***
# Accessory
@@ -687,6 +730,7 @@
## Grove-T
## Grove Cable
## SCREW
## USB Downloader
<div class="item">
@@ -703,6 +747,13 @@
<p class="item-title" style="font-style:italic;">Grove Cable</p>
</div>
<div class="item">
<a href="/#/zh_CN/accessory/screw">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/accessory/screw_p1.png">
</a>
<p class="item-title" style="font-style:italic;">SCREW</p>
</div>
<div class="item">
<a href="/#/zh_CN/tool/usb_downloader">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/tool/usb_downloader_01.png">
+25
View File
@@ -0,0 +1,25 @@
# Accessory SCREW {docsify-ignore-all}
<img src="assets/img/product_pics/accessory/screw/screw_p1.png" width="30%" height="30%">
<img src="assets/img/product_pics/accessory/screw/screw_p2.png" width="30%" height="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-New-8-PCS-M3-12-18-25-32-Screw-With-Allen-Key-For-Arduino/3226069_33006277625.html?spm=2114.12010615.8148356.2.aba627e0xBFVVt)**
## 描述
**SCREW** 是一款M5Stack螺丝工具套件.在实际使用M5Core等硬件的时候,可能会遇到需要拆解、堆叠、拓展等需求.时常还会面临着螺丝丢失、长度不合适、没有合适的拆解工具等尴尬处境.使用SCREW工具套件则能够帮你解决这些问题.套件内配备4种不同长度的M3螺丝,和一个相匹配的内六角扳手,能够应对一般的拆解安装操作.
<img src="assets/img/product_pics/accessory/screw/screw_p3.png" width="30%" height="30%">
### 产品特性
- 规格:
- 2x M3-12
- 2x M3-18
- 2x M3-25
- 2x M3-32
- 1x 内六角扳手
+114
View File
@@ -0,0 +1,114 @@
# M5IoT-kit {docsify-ignore-all}
<img src="assets/img/product_pics/app/M5IoT-kit/M5IoT-kit-01.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/M5IoT-kit/M5IoT-kit-02.jpg" width="250" height="250"><img src="assets/img/product_pics/app/M5IoT-kit/M5IoT-kit-03.jpg" width="250" height="250">
* * *
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;:bulb:**[上手指南](/zh_CN/quick_start/m5core/m5stack_core_quick_start)**&nbsp;&nbsp;&nbsp;:octocat:**[例程](#案例)**&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.13.3b6d425eZah7wG&id=574761698176)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:clapper:**[相关视频](#相关视频)**
## 描述
**M5IoT-kit** 是一款学习开发板.采用M5Core作为控制核心,完全兼容模块堆叠与硬件拓展体系.
配备多组环境检测相关的传感器,提供摇杆、旋转编码、矩阵按键、无线射频识别等多种输入方式.
包含三种电机驱动方式,Neopixel灯板、继电器控制.集成多组ADC、DAC转换电路,支持RS485、RS232总线通信,并为每一个模块提供独立电源开关.
结合自带物联网属性的M5Core用作控制核心,涵盖了"声、光、电、力"学等多个方面,M5IoT-kit开发板会是你学习硬件、编程的一大利器.
## 产品特性
- 兼容Module堆叠、Unit拓展体系
- Proto板、M5-BUS总线拓展
- 各模块带有独立电源开关
- 环境传感器系列(温度、湿度、气压、光线、麦克风)
- 摇杆输入
- 8路继电器输出
- 4路DAC4路ADC
- 4x4按键矩阵
- 8x8 矩阵 Neopixel
- 旋转编码器
- 单路舵机
- 直流电机(带反馈)
- 四相五线制步进电机
- 无线射频识别读卡器
- RS-458RS232通信功能
## 模块参数
| **模块名称** | **工作电压** |**相关参数** |
| :------: | :------: | :------: |
| ADC | 5V | 4通道ADC接口/内置ADS1115 |
| DAC | 5V | 4通道DAC接口/内置DAC6574 |
| Joystick | 3.3V | X/Y轴电位器输入,Z轴按键输入 |
| DHT12 | 3.3V | I2C地址0x5C |
| BMP280 | 3.3V | I2C地址0x76 |
| Light | 3.3V | 支持模拟量/数字量采集/可调节阀值 |
| Microphone| 3.3V | 支持模拟量/数字量采集/可调节阀值 |
| Relay | 5V | 8路控制/3A-220V-AC/3A-30V-DC |
| Neopixel| 5V | 8x8矩阵灯 |
| Servo | 5V | 10KG扭力 |
| DC-Motor | 5V | 带反馈,集成LV8548MC|
| Stepmotor | 5V | 四相五线制 集成LV8548MC|
| RFID | 3.3V | 读写距离: < 8 cm/内置MFRC522 |
| RS485 | 5V | 内置SP485EEN-L/TR |
| RS232| 5V | 内置MAX232ESE |
| Encode | | 旋转编码器/带按键输入|
| Proto | | 板孔数量x170|
| Keyboard| | 4x4按键矩阵 |
## 套件清单
- 1x M5Stack M5IoT-kit
## 参考文档
**数据手册**
- [ADS1115](http://www.ti.com/lit/ds/symlink/ads1115.pdf)
- [DAC6574](http://www.ti.com/cn/lit/ds/symlink/dac6574.pdf)
- [LV8548MC](https://www.onsemi.cn/PowerSolutions/document/ANDLV8548MC-D.PDF)
- [TPS54360](http://www.ti.com/lit/ds/symlink/tps54360.pdf)
- [RC522](https://www.nxp.com/docs/en/data-sheet/MFRC522.pdf)
- [MAX232ESE](https://pdf1.alldatasheet.com/datasheet-pdf/view/73114/MAXIM/MAX232ESE.html)
- [MAX4466](http://pdf-file.ic37.com/pdf1/MAXIM/MAX4466_datasheet_430883/702566/MAX4466_datasheet.pdf)
- [SP485EEN-L/TR](http://pdf-file.ic37.com/pdf4/EXAR/SP485_datasheet_891519/145610/SP485_datasheet.pdf)
- [BMP280](https://www.mouser.cn/pdfDocs/BST-BMP280-DS001.pdf)
**原理图**
- [M5IoT-kit](https://github.com/m5stack/M5-Schematic/tree/master/Applications/M5IoT-kit)
### 案例
#### Arduino IDE
- **Joystick** - [摇杆模块案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/App/M5IoT-kit/joystick)
- **DHT12+BMP280** - [环境传感器模块案例程序](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV)
- **Light** - [光线传感器案例程序](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/Light)
- **Relay** - [继电器模块案例程序](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/Relay)
- **Microphone** - [麦克风案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/App/M5IoT-kit/Microphone)
- **Neopixel** - [矩阵灯案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/NEOPIXEL/Arduino)
- **Servo** - [舵机驱动案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/App/M5IoT-kit/servo)
- **DC-Motor** - [直流电机案例程序](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/App/M5IoT-kit/DC-Motor)
- **RFID** - [无线射频模块案例程序](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/RFID)
+61
View File
@@ -0,0 +1,61 @@
# PM2.5 {docsify-ignore-all}
<img src="assets/img/product_pics/base/PM2.5/PM2.5-3.jpg" width="250" height="250"> <img src="assets/img/product_pics/base/PM2.5/PM2.5-2.jpg" width="250" height="250"><img src="assets/img/product_pics/base/PM2.5/PM2.5-4.jpg" width="250" height="250">
* * *
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;:bulb:**[上手指南](/zh_CN/quick_start/m5core/m5stack_core_quick_start)**&nbsp;&nbsp;&nbsp;:octocat:**[例程](#案例)**&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.78ec1debCSGLNF&ft=t&id=594362860431)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:clapper:**[相关视频](#相关视频)**
## 描述
**PM2.5** 是一款环境温湿度、空气质量检测产品.内置SHT20温湿度传感器、PMSA003数字式通用颗粒物浓度传感器.能够快速检测当前环境的温湿度数据,并采集计算单位体积内空气中不同粒径的悬浮颗粒物个数.能够应用在生活或是工业等场景中,用作环境数据采集,或为空气中悬浮颗粒物浓度相关的仪器仪表或环境改善设备,提供实时准确的浓度数据.
## 产品特性
- 激光散射原理实现精准测量
- 零错误报警率
- 实时响应并支持连续采集
- 最小分辨粒径 0.3μ m
- 六面全方位屏蔽,抗干扰性能更强
- 进出风口方向可选,适用范围广,用户无需再进行风道设计
## 模块参数
| **参数** | **指标** |**单位** |
| :------: | :------: | :------: |
| 颗粒物测量范围 | 0.3-1.0 1.0-2.5 2.5-10 | 微米(μ m|
| 颗粒物计数效率 | 50%@0.3 98%@>=0.5 | 微米(μ m|
| 颗粒物质量浓度有效量程(PM2.5 标准值) | 0-500 | 微克/立方米 |
| 颗粒物质量浓度最大量程(PM2.5 标准值) | ≥1000 | 微克/立方米 |
| 颗粒物质量浓度分辨率 | 1 | 微克/立方米 |
| 颗粒物质量浓度一致性(PM2.5 标准值)| ±10%@100 -500 ;±10@0-100 | 微克/立方米 |
| 称准体积 | 0.1 | 升(L|
| 单次响应时间 | <1 | 秒(s)|
| 综合响应时间 | ≤10 | 秒(s) |
| 直流供电电压 | Typ:5.0 Min:4.5 Max: 5.5 | 伏特(V|
| 工作电流 | ≤100 | 毫安(mA)|
| 待机电流 | ≤200 | 微安(μ A)|
| 数据接口电平 | L <0.8 @3.3 H >2.7 @3.3 | 伏特(V|
| 工作温度范围 | -10 ~ +60 | 摄氏度(℃)|
| 工作湿度范围 | 0-99% | |
| 储存温度范围 | -40 ~ +80 | 摄氏度(℃)|
[点击此处查看配套M5Core参数](/zh_CN/core/basic)
## 套件清单
- 1x BASIC Controller
- 1x PM2.5 sensor
- 1x Type-C USB
- 2x M3x16 螺丝
## 参考文档
**数据手册**
- [SHT20](https://pdf1.alldatasheet.com/datasheet-pdf/view/756285/ETC2/SHT20.html)
- [PMSA003](https://datasheet.lcsc.com/szlcsc/Beijing-Plantower-PMSA003-C_C89095.pdf)
+1 -1
View File
@@ -23,7 +23,7 @@
- 内置DHT12
# 包含
# 套件清单
- Type-C USB
- 2x M3x16螺丝
+2 -6
View File
@@ -28,7 +28,7 @@
- 5V 直流电源
- USB Type-C
- 基于ESP32开发
- 16 MByte PSRAM
- 16 MByte flash
- MPU9250
- 扬声器,按键x3,LCD屏幕(320 * 240),电源/复位按键x1
- 2.4G天线:Proant 440
@@ -105,7 +105,7 @@
</tr>
<tr>
<td>ESP32</td>
<td>240MHz dual core, 600 DMIPS, 520KB SRAM, Wi-Fi, dual mode Bluetooth</td>
<td>240MHz 双核, 600 DMIPS, 520KB SRAM, Wi-Fi, 双模蓝牙</td>
</tr>
<tr>
<td>Flash闪存</td>
@@ -143,10 +143,6 @@
<td>外壳材质</td>
<td>Plastic ( PC )</td>
</tr>
<tr>
<td>重量</td>
<td>120g with bottom, 100g only core</td>
</tr>
</table>
**<mark>注意:</mark>**
+47
View File
@@ -0,0 +1,47 @@
# Module GoPlus {docsify-ignore-all}
<img src="assets/img/product_pics/module/goplus/goplus_p1.jpg" width="30%" height="30%"> <img src="assets/img/product_pics/module/goplus/goplus_p2.jpg" width="30%" height="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-New-Arrival-GOPLUS-Module-with-MEGA328P-IR-Transmitter-and-Receiver-suit-for-ESP32-Kit/3226069_33010785963.html?spm=2114.12010615.8148356.1.a8747842tJJMRu)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Code](#Code)**
<!-- :memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Example](#Example)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/M5Stack-New-Arrival-PLUS-Module-Encoder-Module-with-MEGA328P-500mAh-Battery-ISP-IR-Transmitter-UART-GPIO/3226069_32949278724.html?spm=a2g1x.12024536.productList_5885013.pic_1)**-->
## 描述
**GoPlus** 是M5Stack堆叠模块系列中的一款,功能增强型模块.集成**MEGA328P**与**LV8548MC**电机驱动芯片.整合Module、Units功能(SERVOPbHUBIR.
配备2通道直流电机驱动、4通道舵机驱动接口、红外收发器、3个扩展端口B(GPIO端口).具备多种功能特性,能够帮助你快速搭建功能强大的电机应用.
<img src="assets/img/product_pics/module/goplus/goplus_p3.jpg" width="30%" height="30%"><img src="assets/img/product_pics/module/goplus/goplus_p4.jpg" width="30%" height="30%">
通信协议:IIC0x61.
### 产品特性
- 2x 直流电机驱动通道
- 4x 舵机驱动通道
- IR 发射 & 接收
- 3x 拓展 PORT B
- MEGA328P
- LV8548MC
### 套件清单
- 1x M5Stack GoPlus Module
## 原理图
<img src="assets/img/product_pics/module/goplus/goplus_sch.jpg">
## 参考文档
**- 数据手册 - **[LV8548MC](https://www.onsemi.cn/PowerSolutions/document/ANDLV8548MC-D.PDF)**
### 驱动协议
- 驱动固件 - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/src)**
- 测试程序 - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/test)**
+2
View File
@@ -6,5 +6,7 @@
- **Links**
- <a href="https://m5stack.com/"><img src="https://docs.m5stack.com/assets/img/favicon.ico" width=16px/>M5Stack</a>
- [![Github](https://icongram.jgog.in/simple/github.svg?color=808080&size=16)Github](https://github.com/m5stack)
- [![Twitter](https://icongram.jgog.in/simple/twitter.svg?colored&size=16)@M5Stack](http://twitter.com/M5Stack)
- [![Facebook](https://icongram.jgog.in/simple/facebook.svg?colored&size=16)@M5Stack](https://www.facebook.com/M5Stack)
+52
View File
@@ -0,0 +1,52 @@
# Unit PaHUB {docsify-ignore-all}
<img src="assets/img/product_pics/unit/pahub/pahub_p1.jpg" width="30%" height="30%"><img src="assets/img/product_pics/unit/pahub/pahub_p3.jpg" width="30%" height="30%">
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/New-Arrival-M5Stack-Official-I2C-Hub-1-to-6-Expansion-Grove-I2C-Interface-for-Arduino-Blockly/3226069_32998974179.html?spm=2114.12010615.8148356.1.2bf2a1134Jsams)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Code](#Code)**
## 描述
**PaHUB**, 是一款 I2C GROVE PORTA 扩展器.能够将单路 I2C GROBE 接口拓展至六路,并且允许挂载相同I2C地址的从设备.
内部集成**TCA9548A**-I2C多路复用器,配有8个可通过I2C总线控制的双向转换开关.串行时钟/串行数据(SCL /SDA)上行对可扩展为8个下行对或通道.根据可编程控制寄存器的内容,可选择任一单独SCn /SDn通道或者通道组合.
支持多层 Unit 嵌套,这意味着你可以将PaHUB连接到PaHUB上以获得更多的I2C从设备接口.(例:将7个Unit进行连接,将获得36个**I2C**接口,且在主控仅仅占用了一个GROVE端口)当你的项目需要挂载多个I2C设备或存在I2C地址冲突时,PaHUB Unit 是完美解决方案.
该 Unit 的 I2C 地址为0x77(可通过调整电阻进行更改).
*注意:编程时请注意通道顺序*
<img src="assets/img/product_pics/unit/pahub/pahub_p2.jpg" width="30%" height="30%">
### 产品特性
- I2C GROVE PORTA 拓展
- 2x LEGO 兼容孔
- 允许多个嵌套
- 1-6 拓展
## 原理图
<img src="assets/img/product_pics/unit/pahub/pahub_sch.png">
### 套件清单
- 1x PaHUB Unit
- 1x Grove 线
## 参考文档
- 数据手册 - **[TCA9548A](http://www.ti.com/lit/ds/symlink/tca9548a.pdf)**
## Code
- 通讯类型 - I2C
- 地址 - 0x77
+80
View File
@@ -0,0 +1,80 @@
# Unit PbHUB {docsify-ignore-all}
<img src="assets/img/product_pics/unit/pbhub/pbhub_p1.jpg" width="30%" height="30%"><img src="assets/img/product_pics/unit/pbhub/pbhub_p2.png" width="30%" height="30%">
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://www.aliexpress.com/store/product/New-Arrival-M5Stack-Official-I-O-Hub-1-to-6-Expansion-Grove-I-O-Interface-for/3226069_33006652505.html?spm=2114.12010615.8148356.5.2bf2a113olu0DY)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Code](#Code)**
## 描述
**PbHUB**, 是一款 GPIO GROVE PORTB 扩展器,能够将单路 GPIO GROBE 接口拓展至六路.内部集成MEGA328,且搭载驱动程序.不支持多 Unit 嵌套,这意味着无法像**PaHUB[link]**一样挂载多个相同协议、地址的设备.
Port B 中的两条数据总线与ESP32的**GPIO36**和**GPIO26**连接,可根据需求编程配置多个端口的输入(支持模拟输入)、输出.
对于使用电平控制或是模拟值输入的项目,PbHUB 是一个不错的多设备控制的解决方案.
该 Unit 的 I2C 地址为0x40(可通过调整电阻进行更改).
*注意:编程时请注意通道顺序*
<img src="assets/img/product_pics/unit/pbhub/pbhub_p3.jpg" width="30%" height="30%">
## 产品特性
- GPIO GROVE PORTB 拓展
- 2x LEGO 兼容孔
- 1-6 拓展
### 套件清单
- 1x PbHUB Unit
- 1x Grove 线
## 原理图
<img src="assets/img/product_pics/unit/pbhub/pbhub_sch.jpg">
### 驱动协议
- 驱动固件 - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB/Firmware)**
- 测试程序 - **[PbHUB](https://github.com/m5stack/PbHUB/tree/master/PortB_HUB)**
- 通讯协议 - I2C
- I2C地址 - 0x61
- Set oneLED Color* : LED 地址(2bytes) + RGB 值(3bytes)
- Set moreLED Color* : LED 起始地址(2bytes) + LED 结束地址(2bytes) + RGB 值(3bytes)
<table>
<tr>
<td>state</td><td>IO0 Digital Write</td><td>IO1 Digital Write</td><td>IO0 Analog Write</td><td>IO1 Analog Write</td><td>IO0 Digital Read</td><td>IO1 Digital Read</td><td>IO0 Analog Read</td><td>reserve</td><td>Set Neopixle Num</td><td>Set oneLED Color*</td><td>Set moreLED Color*</td><td>Set Brightness</td>
</tr>
<tr>
<td>r/w</td></td></td><td>w</td><td>w</td><td>w</td><td>w</td><td>r</td><td>r</td><td>r</td><td>r</td><td>w</td><td>w</td><td>w</td><td>w</td></tr>
<tr>
<td>data length (Byte)</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>2</td><td>/</td><td>2</td><td>5</td><td>7</td><td>1</td>
</tr>
<tr>
<td>ch0 cmd</td></td><td>40</td><td>41</td><td>42</td><td>43</td><td>44</td><td>45</td><td>46</td><td>47</td><td>48</td><td>49</td><td>4A</td><td>4B</td>
</tr>
<tr>
<td>ch1 cmd</td></td><td>50</td><td>51</td><td>52</td><td>53</td><td>54</td><td>55</td><td>56</td><td>57</td><td>58</td><td>59</td><td>5A</td><td>5B</td>
</tr>
<tr>
<td>ch2 cmd</td></td><td>60</td><td>61</td><td>62</td><td>63</td><td>64</td><td>65</td><td>46</td><td>67</td><td>68</td><td>69</td><td>6A</td><td>6B</td>
</tr>
<tr>
<td>ch3 cmd</td></td><td>70</td><td>71</td><td>72</td><td>73</td><td>74</td><td>75</td><td>76</td><td>77</td><td>78</td><td>79</td><td>7A</td><td>7B</td>
</tr>
<tr>
<td>ch4 cmd</td></td><td>80</td><td>81</td><td>82</td><td>83</td><td>84</td><td>85</td><td>86</td><td>87</td><td>88</td><td>89</td><td>8A</td><td>8B</td>
</tr>
<tr>
<td>ch5 cmd</td></td><td>A0</td><td>A1</td><td>A2</td><td>A3</td><td>A4</td><td>A5</td><td>A6</td><td>A7</td><td>A8</td><td>A9</td><td>AA</td><td>AB</td>
</tr>
</table>