add new prodcut 8servos hat

This commit is contained in:
vany5921
2019-10-11 19:31:18 +08:00
parent 6b00f0a482
commit f112b69653
17 changed files with 343 additions and 2 deletions
Vendored
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+165
View File
@@ -0,0 +1,165 @@
# 8Servos HAT {docsify-ignore-all}
<img src="assets\img\product_pics\hat\8servos_hat\8servos_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\hat\8servos_hat\8servos_02.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\8servos_hat\8servos_04.jpg" width="30%" height="30%">
:memo:**[Description](#Description)**&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo_min.png">**[EasyLoader](#EasyLoader)**&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[Code](#Code)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[Purchase](https://m5stack.com/products/m5stickc-8servoshat)**
## Description
**8Servos HAT** is an 8-way servo control board compatible with M5StickC. The brains of the borad is the STM32F030F4 microcontroller which communicates with M5StickC through I2C. In order to ensure that multiple servos can work at the same time, the HAT is equipped with a separate 16340 battery base for an external and independent power supply. A control switch and an RGB LED are also integrated with the HAT. The SG90 servos are a perfect fit for this HAT.
<img src="assets\img\product_pics\hat\8servos_hat\8servos_03.jpg" width="30%" height="30%">
## Product Features
- 8-way servo control
- onboard RGB LED
- 16340 battery base
- I2C protocol for comunication and control
## Weight and Size
- Size55mm * 25mm * 20mm
## Applications
- Multiple servo control
- Robotic Arm
- Biomimetic Robots
- Smart and cognitive toys
## Package Includes
- 1x 8Servos-HAT
- 1x 16340 battery
## 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/8Servos/EasyLoader_8Servos-HAT.exe"><button type="button" class="btn btn-primary">Download EasyLoader</button></a>
>1. EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. This can be burned to the M5 device through simple steps, and a series of function verifications can be performed.
>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 burn the program (**For M5StickC, set the baud rate to 115200 or 750000**)
## Code
### 1. Arduino IDE
*To get complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/8servos_hat/stickC/8servos_hat)*
## 8Servos HAT Instructions
>1. Function Description
(1)Eight-way servo control
(2)Onboard sk6812 LED control
>2. Communication Method
I2C,bitrate 400HZ,address support self-addition
address0x38
register value description
00H 0X00 CH1 angle out
01H 0X00 CH2 angle out
02H 0X00 CH3 angle out
03H 0X00 CH4 angle out
04H 0X00 CH5 angle out
05H 0X00 CH6 angle out
06H 0X00 CH7 angle out
07H 0X00 CH8 angle out
3. I2C address description
00H(R/W)servo register address
description
1Data can be read and written continuously
2Each register value indicates the degree can be written to 0-180
> 10H(R/W)servo pulse width register
address value description
10H 0X00 CH1_WIDTH[8:15]
11H 0X00 CH1_WIDTH[0:7]
12H 0X00 CH2_WIDTH[8:15]
13H 0X00 CH2_WIDTH[0:7]
14H 0X00 CH3_WIDTH[8:15]
15H 0X00 CH3_WIDTH[0:7]
16H 0X00 CH4_WIDTH[8:15]
17H 0X00 CH4_WIDTH[0:7]
18H 0X00 CH5_WIDTH[8:15]
19H 0X00 CH5_WIDTH[0:7]
1AH 0X00 CH6_WIDTH[8:15]
1BH 0X00 CH6_WIDTH[0:7]
1CH 0X00 CH7_WIDTH[8:15]
1DH 0X00 CH7_WIDTH[0:7]
1EH 0X00 CH8_WIDTH[8:15]
1FH 0X00 CH8_WIDTH[0:7]
description
1Data can be read and written continuously
> 20H(R/W)LED_RGB register
address value description
20H 0X00 G[0:7]
21H 0X00 R[0:7]
22H 0X00 B[0:7]
description:
1Data can be read and written continuously
2RGB888
## Video
<video width="500" height="500" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/8Servos_hat.mp4" type="video/mp4">
</video>
+1 -1
View File
@@ -51,7 +51,7 @@ The Bugc base needs to be used in conjunction with the M5StickC controller. The
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/HAT/BeetleC/EasyLoader_BugC.exe"><button type="button" class="btn btn-primary">click to download EasyLoader</button></a>
>EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. This can be burned to the M5 device through simple steps, and a series of function verifications can be performed.
>1. EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. This can be burned to the M5 device through simple steps, and a series of function verifications can be performed.
>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 burn the program (**For M5StickC, set the baud rate to 115200 or 750000**)
+1
View File
@@ -73,6 +73,7 @@ Register:
`0x03: Save central spot and Maximum Calibration value to flash, and go to Normal Mode after finish.`
> Joystick calibration methodFirst i2c writes register 0x03 and then sends 0x02, the joystick is rotated several times around the top, bottom, left and right, and then 0x03 is saved in register 0x03.
## Schematic
+6
View File
@@ -906,6 +906,12 @@
</a>
</div>
<div class="item">
<a href="/#/en/hat/hat-8servos">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/8servos_01.jpg">
<p class="item-title">8Servos</p>
</a>
</div>
</div>
BIN
View File
Binary file not shown.
+6 -1
View File
@@ -906,7 +906,12 @@
</a>
</div>
<div class="item">
<a href="/#/zh_CN/hat/hat-8servos">
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/8servos_01.jpg">
<p class="item-title">8Servos</p>
</a>
</div>
</div>
BIN
View File
Binary file not shown.
+162
View File
@@ -0,0 +1,162 @@
# 8Servos HAT {docsify-ignore-all}
<img src="assets\img\product_pics\hat\8servos_hat\8servos_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\hat\8servos_hat\8servos_02.jpg" width="30%" height="30%">
<img src="assets\img\product_pics\hat\8servos_hat\8servos_04.jpg" width="30%" height="30%">
:memo:**[描述](#描述)**&nbsp;&nbsp;&nbsp;&nbsp;<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_M5StickC_logo_min.png">**[EasyLoader](#EasyLoader)**&nbsp;&nbsp;&nbsp;&nbsp;:octocat:**[例程](#例程)**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;🛒**[购买链接](https://m5stack.com/products/m5stickc-8servoshat)**
## 描述
**8Servos HAT**是一款兼容M5StickC的8路舵机控制板,主控为STM32F030F4,通过I2C的方式与M5StickC进行通信,为了保证多个舵机同时工作,控制板配备了独立的16340电池底座用来供电,由独立开关进行控制,此外在控制板上集成了一颗RGB指示灯。你可以使用它来控制SG90舵机,完成一些角度的精准操作。
<img src="assets\img\product_pics\hat\8servos_hat\8servos_03.jpg" width="30%" height="30%">
## 产品特性
- 八路舵机控制
- 1xRGB LED
- 16340电池底座
- IIC协议控制
## 外形尺寸
- 尺寸:55mm * 25mm * 20mm
## 应用
- 舵机控制器
- 机器人控制
- 智能玩具
## 包含
- 1x 8Servos-HAT
- 1x 16340电池
## 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/8Servos/EasyLoader_8Servos-HAT.exe"><button type="button" class="btn btn-primary">点击下载EasyLoader</button></a>
>1.EasyLoader是一个简洁快速的程序烧录器,每一个产品页面里的EasyLoader都提供了一个与产品相关的案例程序,通过简单步骤将其烧录至主控,能够进行一系列的功能验证.**(目前EasyLoader仅适用于Windows操作系统)**
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录.(**为M5StickC烧录时,请将波特率设置在750000或115200**)
## 例程
### 1. Arduino IDE
[点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Hat/8serves_hat/stickC/8serves_hat),获取完整程序.
## 舵机控制说明
> 1.功能说明
(1)八路舵机控制
(2)板载sk6812 LED控制
> 2.通讯方式
I2C,速率最大400HZ,地址支持自加
设备地址:0x38
地址 默认值 说明
00H 0X00 CH1角度输出
01H 0X00 CH2角度输出
02H 0X00 CH3角度输出
03H 0X00 CH4角度输出
04H 0X00 CH5角度输出
05H 0X00 CH6角度输出
06H 0X00 CH7角度输出
07H 0X00 CH8角度输出
> 3.I2C地址说明
00H(R/W)舵机角度寄存器
说明:
1)数据可连续读写
(2)每个寄存器值表示度数可写入0-180
> 10H(R/W)舵机脉宽寄存器
地址 默认值 说明
10H 0X00 CH1_WIDTH[8:15]
11H 0X00 CH1_WIDTH[0:7]
12H 0X00 CH2_WIDTH[8:15]
13H 0X00 CH2_WIDTH[0:7]
14H 0X00 CH3_WIDTH[8:15]
15H 0X00 CH3_WIDTH[0:7]
16H 0X00 CH4_WIDTH[8:15]
17H 0X00 CH4_WIDTH[0:7]
18H 0X00 CH5_WIDTH[8:15]
19H 0X00 CH5_WIDTH[0:7]
1AH 0X00 CH6_WIDTH[8:15]
1BH 0X00 CH6_WIDTH[0:7]
1CH 0X00 CH7_WIDTH[8:15]
1DH 0X00 CH7_WIDTH[0:7]
1EH 0X00 CH8_WIDTH[8:15]
1FH 0X00 CH8_WIDTH[0:7]
说明:
1)数据可连续读写
> 20H(R/W)LED_RGB寄存器
地址 默认值 说明
20H 0X00 G[0:7]
21H 0X00 R[0:7]
22H 0X00 B[0:7]
说明:
1)数据可连续读写
2RGB888
## 相关视频
<video width="500" height="500" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/8Serves_hat.mp4" type="video/mp4">
</video>
+2
View File
@@ -73,6 +73,8 @@
`0x03: 保存中心点及最大值数据至flash, 保存后恢复至普通模式 `
> 摇杆校准方法:先i2c写寄存器0x03 然后发送 0x02,摇杆绕上下左右反复转圈几次,然后寄存器0x03写0x03保存.
## 原理图
<img src="assets\img\product_pics\hat\joystick_hat\joystick_hat_07.jpg" width="60%">