Merge branch 'master' of github.com:m5stack/m5-docs

This commit is contained in:
Sean
2019-11-22 16:41:24 +08:00
13 changed files with 131 additions and 132 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

+11 -61
View File
@@ -1,85 +1,35 @@
# 18650 HAT {docsify-ignore-all}
<img src="assets\img\product_pics\hat\18650_hat\18650_hat_01.jpg" width="30%"><img src="assets\img\product_pics\hat\18650_hat\18650_hat_02.jpg" width="30%"><img src="assets\img\product_pics\hat\18650_hat\18650_hat_03.jpg" width="30%">
<img src="assets\img\product_pics\hat\18650C_hat\18650C_01.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_02.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_03.webp" width="30%">
***
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[Schematic](#Schematic)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://m5stack.com/products/m5stickc-tof-hatvl53l0x)**&nbsp;&nbsp;&nbsp;<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo_min.png">**[EasyLoader](#EasyLoader)**
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://m5stack.com/products/m5stickc-hat-18650Chat)**&nbsp;&nbsp;&nbsp;:clapper:**[Related Video](#Related-Video)**
## Description
**ToF HAT** is a high precision laser-ranging sensor specifically designed for M5StickC. Integrated with **VL53L0X** and **940nm VCSEL** emitter. It can provide high precision and low latency performance on object distance detection.
The VL53L0X is a new generation Time-of-Flight (ToF) laser-ranging module housed in the smallest package on the market today, providing accurate distance measurement whatever the target reflectances, unlike conventional technologies. It can measure absolute distances up to 2m, setting a new benchmark in ranging performance levels, opening the door to various new applications. The VL53L0X integrates a leading-edge SPAD array (Single Photon Avalanche Diodes) and embeds STs second generation FlightSenseTM patented technology. The VL53L0Xs 940 nm VCSEL emitter (Vertical-Cavity Surface-Emitting Laser), is invisible to the human eye, coupled with internal physical infrared filters, it enables longer ranging distances, higher immunity to ambient light, and better robustness to cover glass optical crosstalk.
**18650C HAT** is a rechargeable battery base designed for M5SticKC with built-in 18650 large capacity rechargeable lithium battery.It can provide long-term endurance for the equipment. The base is designed with the plug-in structure of the HAT series, which can be used to maintain reliable connection with the M5StickC. The bottom is equipped with a USB interface charging interface, which is convenient and quick for the battery. The USB port of the battery base is only used as a charging interface, and does not have UART function.There are many types of mounting holes on the back of the base,which can be easily installed by the user into all types of planes.
Communication Info: I2C, **0x29**, GPIO0/26.
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_04.jpg" width="30%">
<img src="assets\img\product_pics\hat\18650C_hat\18650C_04.webp" width="30%">
## Product Features
- High precision
- Maximum measuring distance 2m
- 940nm laser VCSEL
- Development platform: Arduino, UIFlow(Blockly, Python)
- Security:
     - Class 1 laser equipment meeting the latest standards
     - Standard IEC 60825-1: 2014 - 3rd edition
- Chargable
- Battery replaceable
## Weight & Dimension
- Dimension24mm x 20.3mm x 13.8mm
- Weight3g
- Dimension150mm x 25mm x 25mm
- Weight277g
## Include
- 1x ToF HAT
- 1x 18650 HAT
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_06.jpg" width="30%">
## Application
- Obstacle recognition
- Gesture Recognition
- Laser Ranging
- 3D structured light imaging (3D sensing)
- Camera assist (super fast auto focus and depth of field map)
## Links
- **[VL53L0X Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/VL53L0X_en.pdf)**
## Schematic
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_07.jpg" width="50%">
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo.png" width="100px" style="margin-top:20px">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/HAT/ToF/EasyLoader_ToF_HAT.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
>1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(**Currently EasyLoader is only available for Windows OS**)
>2. After downloading the software, double-click to run the application, connect the M5 device to the computer through the data cable, select the port parameters, click **"Burn"** to start burning. (**For M5StickC burning, please Set the baud rate to 750000 or 115200**)
## Example
- **[Arduino](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/tof-hat/Arduino/ToF_Count)**
### Pin Map
<table>
<tr><td>M5StickC</td><td>GPIO0</td><td>GPIO26</td><td>3.3V</td><td>GND</td></tr>
<tr><td>ToF HAT</td><td>SDA</td><td>SCL</td><td>3.3V</td><td>GND</td></tr>
</table>
## Video
## Related Video
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/ToF_HAT.mp4" type="video/mp4">
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/18650C_HAT.mp4" type="video/mp4">
</video>
+53 -3
View File
@@ -98,7 +98,7 @@ Get the Angular velocity z position
><img src="/image/Hardwares/IMU_user.gif" width="50%">
# POWER
# POWER (M5Stack)
__________________________
#### Feature introduction
@@ -106,7 +106,7 @@ __________________________
>Set power management charge or get power.
><img src="/image/Hardwares/POWER.png" width="30%">
><img src="/image/Hardwares/Power5306.png" width="30%">
* __isCharging__
Return whether it is charging
@@ -125,4 +125,54 @@ Return battery level
>If the charge RGB is RED else BLACK
><img src="/image/Hardwares/Power_user.gif" width="50%">
><img src="/image/Hardwares/Power_user.gif" width="50%">
# POWER (M5StickC)
__________________________
#### Feature introduction
>Set axp192 related parameters.
><img src="/image/Hardwares/PowerAXP.png" width="30%">
* __Get charge state__
Return to charging state
* __Get battery voltage__
Return battery voltage
* __Get battery current__
Return battery voltage
* __Get Vin voltage__
Return VIN input voltage
* __Get Vin current__
Return VIN input current
* __Get VBus voltage__
Return VBUS voltage
* __Get VBus current__
Return VBUS current
* __Get AXP192 temperature__
Return AXP temperature
* __Power off__
Shutdown
* __Set battery charge current to__
Set charging current
* __Set LCD voltage to__
Set screen voltage
#### USAGE
>Display the battery voltage and charging current, and shut down after full charge
><img src="/image/Hardwares/PowerAXP_user.gif" width="50%">

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 KiB

+2 -1
View File
@@ -214,7 +214,8 @@
{a:"/#/en/hat/hat-bugc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/bugc_hat_01.jpg", p:"BugC"},
{a:"/#/en/hat/hat-cardkb", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/cardkb_hat_01.jpg", p:"CardKB"},
{a:"/#/en/hat/hat-roverc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/roverc_hat_01.jpg", p:"RoverC"},
{a:"/#/en/hat/hat-joyc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/JoyC_01.jpg", p:"JoyC"}
{a:"/#/en/hat/hat-joyc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/JoyC_01.jpg", p:"JoyC"},
{a:"/#/en/hat/hat-18650", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/18650C_01.webp", p:"18650C"}
];
+2
View File
@@ -215,6 +215,8 @@
{a:"/#/zh_CN/hat/hat-cardkb", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/cardkb_hat_01.jpg", p:"CardKB"},
{a:"/#/zh_CN/hat/hat-roverc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/roverc_hat_01.jpg", p:"RoverC"},
{a:"/#/zh_CN/hat/hat-joyc", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/JoyC_01.jpg", p:"JoyC"},
{a:"/#/zh_CN/hat/hat-18650", img:"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/18650C_01.webp", p:"18650C"},
];
+10 -64
View File
@@ -1,90 +1,36 @@
# 18650 HAT {docsify-ignore-all}
<img src="assets\img\product_pics\hat\18650_hat\18650_hat_01.jpg" width="30%"><img src="assets\img\product_pics\hat\18650_hat\18650_hat_02.jpg" width="30%"><img src="assets\img\product_pics\hat\18650_hat\18650_hat_03.jpg" width="30%">
<img src="assets\img\product_pics\hat\18650C_hat\18650C_01.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_02.webp" width="30%"><img src="assets\img\product_pics\hat\18650C_hat\18650C_03.webp" width="30%">
***
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:electric_plug:**[原理图](#原理图)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://m5stack.com/products/m5stickc-tof-hatvl53l0x)**&nbsp;&nbsp;&nbsp;<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo_min.png">**[EasyLoader](#EasyLoader)**
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://m5stack.com/products/m5stickc-hat-18650hat)**&nbsp;&nbsp;&nbsp;:clapper:**[相关视频](#相关视频)**
## 描述
**ToF HAT**是一款专为M5SticKC设计的高精度激光测距传感器,内部集成ST激光测距芯片**VL53L0X**、**940nm VCSEL**发射器,通过测量激光信号到被测物体的往返时间,能够在不到30ms的时间内测量2m范围内的绝对距离.与传统测距不同的地方在于,无论检测目标的的反射率如何,它都能提供精确的距离测量数据.在一些对数据精度有一定要求的距离测量、障碍物识别项目中,**ToF HAT**能够有不错的表现.
**18650 HAT**是一款专为M5SticKC设计的可充电电池底座,内置18650大容量可充电锂电池,能够为设备提供较长时间的续航能力,底座沿用HAT系列的插接式结构设计,使用时能够与M5StickC保持可靠连接.底部配有USB接口充电接口,能够方便快捷的为电池充电。底座的USB接口仅作为充电接口使用,不具备串口通信功能。底座背面提供了多种类型的安装孔,用户可以非常轻易的将其安装到各类平面。
通信协议:I2C、地址为**0x29**.(GOIO 0/26)
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_04.jpg" width="30%">
<img src="assets\img\product_pics\hat\18650C_hat\18650C_04.webp" width="30%">
## 产品特性
- 高精度
- 最大测量距离 2m
- 940nm 激光 VCSEL
- 开发平台: Arduino, UIFlow(Blockly, Python)
- 安全方面:
- 符合最新标准的1级激光设备
- 标准IEC 60825-1:2014-第3版
- 充电式设计
- 电池可更换
## 重量尺寸
- 单品尺寸:24mm x 20.3mm x 13.8mm
- 单品重量:3g
- 单品尺寸:150mm x 25mm x 25mm
- 单品重量:277g
## 包含
- 1x ToF HAT
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_06.jpg" width="30%">
## 应用
- 障碍物识别
- 手势识别
- 激光测距
- 3D结构光成像(3D感应)
- 摄像机辅助(超快速自动对焦和景深图)
## 相关链接
- **[VL53L0X Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/VL53L0X_en.pdf)**
## 原理图
<img src="assets\img\product_pics\hat\tof_hat\tof_hat_07.jpg" width="50%">
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo.png" width="100px" style="margin-top:20px">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/HAT/ToF/EasyLoader_ToF_HAT.exe"><button type="button" class="btn btn-primary">点击下载EasyLoader</button></a>
>1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序,通过简单步骤将其烧录至主控,能够进行一系列的功能验证.**(目前EasyLoader仅适用于Windows操作系统)**
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录.(**为M5StickC烧录时,请将波特率设置在750000或115200**)
## 例程
- **[Arduino](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/tof-hat/Arduino/ToF_Count)**
### 管脚映射
<table>
<tr><td>M5StickC</td><td>GPIO0</td><td>GPIO26</td><td>3.3V</td><td>GND</td></tr>
<tr><td>ToF HAT</td><td>SDA</td><td>SCL</td><td>3.3V</td><td>GND</td></tr>
</table>
- 1x 18650 HAT
## 相关视频
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/ToF_HAT.mp4" type="video/mp4">
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/18650C_HAT.mp4" type="video/mp4">
</video>
+53 -3
View File
@@ -96,7 +96,7 @@ __________________________
><img src="/image/Hardwares/IMU_user.gif" width="50%">
# 电源管理
# 电源管理(M5Stack)
__________________________
#### 功能说明
@@ -104,7 +104,7 @@ __________________________
>设置充电或者获取电量.
><img src="/image/Hardwares/POWER.png" width="30%">
><img src="/image/Hardwares/Power5306.png" width="30%">
* __isCharging__
返回充电状态
@@ -123,4 +123,54 @@ __________________________
>如果在充电RGB亮红灯
><img src="/image/Hardwares/Power_user.gif" width="50%">
><img src="/image/Hardwares/Power_user.gif" width="50%">
# 电源管理(M5StickC)
__________________________
#### 功能说明
>设置AXP192相关参数.
><img src="/image/Hardwares/POWERAXP.png" width="30%">
* __Get charge state__
返回充电状态
* __Get battery voltage__
返回电池电压
* __Get battery current__
返回电池电压
* __Get Vin voltage__
返回Vin输入电压
* __Get Vin current__
返回Vin输入电流
* __Get VBus voltage__
返回VBus电压
* __Get VBus current__
返回VBus电流
* __Get AXP192 temperature__
返回AXP温度
* __Power off__
关机
* __Set battery charge current to__
设置充电电流
* __Set LCD voltage to__
设置屏幕电压
#### 使用方法
>显示电池电压和充电电流,充满电后关机
><img src="/image/Hardwares/PowerAXP_user.gif" width="50%">