mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
release C BACK DRIVER
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 135 KiB |
@@ -45,7 +45,7 @@ M5.begin(bool LCDEnable = true, bool SDEnable = true, bool SerialEnable = true,
|
||||
|
||||
```
|
||||
|
||||
>**To stack M5Core2 with M5 modules, you need to remove/omit the battery bottom of Core2; If you need to keep I2S Mic, IMU and Battery functions, a [M5GO Bottom2](en/base/m5go_bottom2) is needed.**
|
||||
>**To stack M5Core2 with M5 modules, you need to remove/eliminate the battery bottom of Core2; If you wish to keep I2S Mic, IMU and Battery functions, a [M5GO Bottom2](en/base/m5go_bottom2) is required.**
|
||||
|
||||
|
||||
## Product Features
|
||||
|
||||
@@ -0,0 +1,151 @@
|
||||
# C Back Driver
|
||||
|
||||
<el-tag effect="plain">SKU:A100</el-tag>
|
||||
|
||||
<div class="product_pic"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_01.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_02.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_03.webp"></div>
|
||||
|
||||
## Description
|
||||
|
||||
**C Back Driver** is a steering gear drive board compatible with M5StickC. It adopts STM32F030F4P6 control scheme, uses I2C communication interface to communicate with M5StickC, and provides 4 sets of PWM steering gear drive interfaces (the drive power of the steering gear is directly connected to the M5StickC The internal battery can drive general specifications of the steering gear, such as: SG90, etc.). This module leads the I2C bus at the top of StickC and provides an additional GPIO interface through STM32 expansion. It can be used for general logic level and ADC analog signal input reading. With the LEGO compatible hole design on the back, users can easily integrate this driver board into the LEGO building block structure, which can be used to build controllable structures such as steering gear manipulators.
|
||||
|
||||
## Product Features
|
||||
|
||||
- 4x Servo driver
|
||||
- Compatible with C/C Plus
|
||||
- Interface expansion (GPIO, I2C)
|
||||
|
||||
## Application
|
||||
|
||||
- Servo controller
|
||||
- Robot control
|
||||
|
||||
## Contains
|
||||
|
||||
- 1x C Back Driver
|
||||
- 2× Hexagonal screws M2*5
|
||||
- 1× Allen key
|
||||
|
||||
|
||||
## Specifications
|
||||
|
||||
<table>
|
||||
<tr style="font-weight:bold">
|
||||
<td>Specifications</td>
|
||||
<td>Parameters</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Communication protocol</td>
|
||||
<td>I2C: 0x38</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Working current</td>
|
||||
<td>15mA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Net weight</td>
|
||||
<td>9g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Gross weight</td>
|
||||
<td>13.5g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Product size</td>
|
||||
<td>23.7*49.2*21mm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Package size</td>
|
||||
<td>42*40*30mm</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="product_pic"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_04.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_05.webp"></div>
|
||||
|
||||
## Pin mapping
|
||||
|
||||
<table>
|
||||
<tr><td>M5StickC</td><td>GPIO0</td><td>GPIO26</td><td>3.3V</td><td>GND</td></tr>
|
||||
<tr><td>C Back Driver</td><td>SDA</td><td>SCL</td><td>3.3V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## Schematic
|
||||
|
||||
<img src="assets\img\product_pics\hat\cback_driver\cback_driver_sch.webp">
|
||||
|
||||
## Example
|
||||
|
||||
?>This case uses C BACK DRIVER to realize 4-channel servo control and ADC reading. Please select the corresponding case program below according to the equipment you are using.
|
||||
|
||||
<el-card class="box-card" style="margin-bottom:20px">
|
||||
<div slot="header" class="clearfix">
|
||||
<span style="font-size: 22px; font-weight: bold;">Arduino</span>
|
||||
<i class="el-icon-s-management" style="float: right;"></i>
|
||||
</div>
|
||||
<div class="box-card-item">
|
||||
<a href='https://github.com/m5stack/M5StickC-Plus/tree/master/examples/Hat/C_BACK_DRIVER'><el-tag>StickC Plus</el-tag></a>
|
||||
</div>
|
||||
<div class="box-card-item">
|
||||
<a href='https://github.com/m5stack/M5StickC/tree/master/examples/Hat/CBACK_DRIVER'><el-tag>StickC</el-tag></a>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
## Protocol
|
||||
|
||||
- Protocol type I2C
|
||||
- I2C Address: **0x38**
|
||||
|
||||
```clike
|
||||
/*------------------------------------------------ -------------------------------------------------- */
|
||||
| SERVO_ANGLE_REG | 0x00-0x03
|
||||
| ------------------------------------------------- -----------------------------------------------
|
||||
| servo_1_reg[0] | R/W | SERVO1 Angle value(0~180)
|
||||
| servo_2_reg[1] | R/W | SERVO2 Angle value(0~180)
|
||||
| servo_3_reg[2] | R/W | SERVO3 Angle value(0~180)
|
||||
| servo_4_reg[3] | R/W | SERVO4 Angle value(0~180)
|
||||
/*------------------------------------------------ -------------------------------------------------- -
|
||||
|
||||
/*------------------------------------------------ -------------------------------------------------- */
|
||||
| SERVO_PULSE_REG | 0x10-0x17
|
||||
| ------------------------------------------------- -----------------------------------------------
|
||||
| servo_1_reg[0:1] | R/W | SERVO1 PULSE value(500~2500)
|
||||
| servo_2_reg[2:3] | R/W | SERVO2 PULSE value(500~2500)
|
||||
| servo_3_reg[4:5] | R/W | SERVO3 PULSE value(500~2500)
|
||||
| servo_4_reg[6:7] | R/W | SERVO4 PULSE value(500~2500)
|
||||
/*------------------------------------------------ -------------------------------------------------- -
|
||||
|
||||
/*------------------------------------------------ -------------------------------------------------- */
|
||||
| PPORTB_ADC_REG | 0x20-0x21
|
||||
| ------------------------------------------------- -----------------------------------------------
|
||||
| portb_adc_reg[0:1] | R | PPORTB ADC value(0~4095)
|
||||
/*------------------------------------------------ -------------------------------------------------- -
|
||||
|
||||
/*------------------------------------------------ -------------------------------------------------- */
|
||||
| PPORTB_OUTPUT_REG | 0x30
|
||||
| ------------------------------------------------- -----------------------------------------------
|
||||
| portb_output_reg[0] | R | PPORTB Output Digital value(0/1)
|
||||
/*------------------------------------------------ -------------------------------------------------- -
|
||||
|
||||
/*------------------------------------------------ -------------------------------------------------- */
|
||||
| PPORTB_INPUT_REG | 0x31
|
||||
| ------------------------------------------------- -----------------------------------------------
|
||||
| portb_input_reg[0] | R | PPORTB Input Digital value(0/1)
|
||||
/*------------------------------------------------ -------------------------------------------------- -
|
||||
|
||||
```
|
||||
|
||||
## Video
|
||||
|
||||
>Use C BACK DRIVER to make a four-wheeled car
|
||||
|
||||
<video class="video_size" controls>
|
||||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/C_BACK-DRIVER.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
<script>
|
||||
|
||||
var purchase_link ='https://m5stack-store.myshopify.com/products/c-back-hat-with-servo-driver-stm32f0';
|
||||
|
||||
anchor_search(purchase_link);
|
||||
scrollFunc();
|
||||
|
||||
</script>
|
||||
@@ -94,7 +94,7 @@ Open http://flow.m5stack.com and Load Demo
|
||||
|
||||
## Related Link
|
||||
|
||||
- Protocol **[FINGER series communication protocol](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)**
|
||||
- Protocol **[FINGER series communication protocol](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/biovo_fingerprint_Protocol.pdf)**
|
||||
|
||||
- Datasheet **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)**
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ Communication Protocol: UART.
|
||||
|
||||
## Related Link
|
||||
|
||||
- Protocol **[FINGER series communication protocol](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)**
|
||||
- Protocol **[FINGER series communication protocol](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/biovo_fingerprint_Protocol.pdf)**
|
||||
|
||||
- Datasheet **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)**
|
||||
|
||||
|
||||
@@ -255,12 +255,12 @@ from m5stack_ui import *
|
||||
|
||||
screen = M5Screen()
|
||||
|
||||
/*M5Label(text, x=0, y=0, color=None, font=None)
|
||||
| ------------------------------------------------- --------------------
|
||||
/*M5Label(text, x=0, y=0, color=None, font=None) */
|
||||
| ---------------------------------------------------------------------
|
||||
| font:
|
||||
| FONT_MONT_12/14/16/18/20/22/24/26/28/30/32/34/36/38/40/42/44/46/48
|
||||
| FONT_UNICODE_24 = lv.font_PHT_unicode_24
|
||||
/*------------------------------------------------ ---------------------
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
||||
Label = M5Label("Hello!",20,50,0xff,FONT_MONT_48)
|
||||
|
||||
@@ -349,10 +349,10 @@ Checkbox.set_checked_color(color)
|
||||
Checkbox.set_text_font(font)
|
||||
Checkbox.get_width()
|
||||
|
||||
def Checkbox_checked():
|
||||
def checked_cb():
|
||||
pass
|
||||
|
||||
def Checkbox_unchecked():
|
||||
def unchecked_cb():
|
||||
pass
|
||||
|
||||
Checkbox.checked(checked_cb)
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
{"a":"/#/en/unit/iso485", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/unit/iso485.webp", "p":"ISO485", "sku":"U094" ,"kw":"Isolated RS485"},
|
||||
{"a":"/#/en/unit/uwb", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/unit/uwb_01.webp", "p":"UWB", "sku":"U100" ,"kw":"DW1000"}
|
||||
],
|
||||
"Add-ons": [
|
||||
"HAT": [
|
||||
{"id":"add-ons"},
|
||||
{"a":"/#/en/hat/hat_envII", "img":"https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/m5-docs_homepage/hat/envii.webp", "p":"ENV II", "sku":"U053-B" ,"kw":"BMP280 BMM150 SHT30", "category":"C-HAT"},
|
||||
{"a":"/#/en/hat/hat-spk", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/spk_hat_01.webp", "p":"SPK", "sku":"U055" ,"kw":"MUSIC SPEAKER"},
|
||||
@@ -122,6 +122,7 @@
|
||||
{"a":"/#/en/hat/hat-servo", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/servo_hat_01.webp", "p":"SERVO", "sku":"U075" ,"kw":"180 SERVO"},
|
||||
{"a":"/#/en/hat/hat-puppyc", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/puppyc_01.webp", "p":"PuppyC", "sku":"K035" ,"kw":"SERVO ROBOT"},
|
||||
{"a":"/#/en/hat/hat-8servos", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/8servos_01.webp", "p":"8Servos", "sku":"U076" ,"kw":"180 360 SERVO"},
|
||||
{"a":"/#/en/hat/c_back_driver", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/c_back_driver_01.webp", "p":"C_BACK DRIVER", "sku":"A100" ,"kw":"SERVO"},
|
||||
{"a":"/#/en/hat/hat-bugc", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/bugc_hat_01.webp", "p":"BugC", "sku":"K033" ,"kw":"ROBOT"},
|
||||
{"a":"/#/en/hat/hat-cardkb", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/cardkb_hat_01.webp", "p":"CardKB", "sku":"U077" ,"kw":"CONTROLER KEYBOARD"},
|
||||
{"a":"/#/en/hat/hat-roverc", "img":"https://static-cdn.m5stack.com/image/m5-docs_homepage/hat/roverc_hat_01.webp", "p":"RoverC", "sku":"K036" ,"kw":"ROBOT"},
|
||||
|
||||
@@ -94,7 +94,7 @@ UART settings:
|
||||
|
||||
## Related Link
|
||||
|
||||
- Protocol **[FINGER series communication protocol](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)**
|
||||
- Protocol **[FINGER series communication protocol](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/biovo_fingerprint_Protocol.pdf)**
|
||||
|
||||
- Datasheet **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)**
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Choose the development platform you want to use, view the corresponding tutorial
|
||||
|
||||
In sleep mode, the current consumption of the whole machine is only 2μA. After the scheduled photo taking function(one photo per hour) is turned on, the battery can work continuously for more than one month. The module supports WiFi image transmission and USB port debugging. The bottom HY2.0-4P port output can be connected to other peripherals. In order to facilitate DIY, the battery interface is reserved on the board. Using the M5Burner firmware burning tool, time-cam can be set directly with the Camera-Tool, and TimerCamera data can be processed in UIFlow.
|
||||
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.When using external power supply, the device will remain powered on.
|
||||
|
||||
## Product Features
|
||||
|
||||
@@ -38,6 +38,10 @@ In sleep mode, the current consumption of the whole machine is only 2μA. After
|
||||
- Take pictures regularly
|
||||
- Remote video monitoring
|
||||
|
||||
## USB Drive problems
|
||||
|
||||
>TimerCAM may not work without driver in some systems. Users can manually install [FTDI driver](https://ftdichip.com/drivers/vcp-drivers/) to fix this problem.
|
||||
|
||||
## Specification
|
||||
|
||||
<table>
|
||||
|
||||
@@ -16,7 +16,7 @@ Choose the development platform you want to use, view the corresponding tutorial
|
||||
|
||||
The **Timer Camera F** is a fisheye camera module based on ESP32-D0WDQ6-V3 with 8M PSRAM and 4M Flash on board. 3.0 megapixel camera (OV3660) with DFOV 120° and a maximum resolution of 2048x1536 photos can be captured. The camera features an ultra-low-power design, and the internal integrated RTC (BM8563) draws out the IRQ signal, which can be used for sleep and timer wake-up (sleep current down to 2μA). The built-in 270mAh battery provides more than one month of battery life with timed pictures (one per hour) enabled. The module supports WiFi image transfer and USB port debugging, and the HY2.0-4P output on the bottom can be used to expand other peripherals. The on-board LED status indicator and reset button facilitate program development and debugging. In terms of application, M5Stack provides a number of simple and efficient application development methods and interfaces for the TimerCAM series, making it easy for users to use and develop their applications. (including PC/Mobile photo shooting APP, cloud image HTTP interface for timer shooting, cloud AI recognition interface (not online yet), etc.)
|
||||
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.When using external power supply, the device will remain powered on.
|
||||
|
||||
## Product Features
|
||||
|
||||
@@ -35,6 +35,10 @@ The **Timer Camera F** is a fisheye camera module based on ESP32-D0WDQ6-V3 with
|
||||
- 1x Wall-1515
|
||||
- 1x Type-C USB(20cm)
|
||||
|
||||
## USB Drive problems
|
||||
|
||||
>TimerCAM may not work without driver in some systems. Users can manually install [FTDI driver](https://ftdichip.com/drivers/vcp-drivers/) to fix this problem.
|
||||
|
||||
## Applications
|
||||
|
||||
- Take pictures regularly
|
||||
|
||||
@@ -16,7 +16,7 @@ Choose the development platform you want to use, view the corresponding tutorial
|
||||
|
||||
**Timer Camera X** is a camera module based on ESP32, integrated with ESP32 chip and 8M-PSRAM. The camera (ov3660) with 3 million pixels , DFOV 66.5 ° and shoot 2048x1536 resolution photo, built-in 140mAh battery and LED status indicator, featuring ultra-low power consumption design. There is a reset button under the LED. Through RTC (BM8563), timing sleep and wake-up can be realized. The standby current is only 2μA. After timing photo taking function(one photo per hour) is turned on, the battery can work continuously for more than one month. The module supports WiFi image transmission and USB port debugging. The bottom HY2.0-4P port output can be connected to other peripherals. Through M5Burner burning firmware, Timer Camera X can be set directly with Camera-Tool, and Timer Camera X data can be processed in UIFlow.
|
||||
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.
|
||||
>The low-power power management solution adopted by the Timer Camera series is different from the CORE and StickC devices. When in use, the PWR button is used as a power-on button(long press 2s). If you need to shut down the device, you need to use the software API or press the Reset button on the PCB.When using external power supply, the device will remain powered on.
|
||||
|
||||
## Product Features
|
||||
|
||||
@@ -40,6 +40,10 @@ Choose the development platform you want to use, view the corresponding tutorial
|
||||
- Take pictures regularly
|
||||
- Remote video monitoring
|
||||
|
||||
## USB Drive problems
|
||||
|
||||
>TimerCAM may not work without driver in some systems. Users can manually install [FTDI driver](https://ftdichip.com/drivers/vcp-drivers/) to fix this problem.
|
||||
|
||||
## Specification
|
||||
|
||||
<table>
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
# C Back Driver
|
||||
|
||||
<el-tag effect="plain">SKU:A100</el-tag>
|
||||
|
||||
<div class="product_pic"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_01.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_02.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_03.webp"></div>
|
||||
|
||||
## 描述
|
||||
|
||||
**C Back Driver**是一款兼容M5StickC的舵机驱动板,采用STM32F030F4P6控制方案,采用I2C通信接口与M5StickC进行通信, 提供4组PWM舵机驱动接口(舵机的驱动电源直连M5StickC的内部的电池,能够驱动一般规格的舵机,如:SG90等)。该模块对StickC顶部的I2C总线进行了引出,并通过STM32拓展额外提供一组GPIO接口。能够用于一般逻辑电平与ADC模拟信号输入读取。背部LEGO兼容孔设计,用户能够非常方便的将这个驱动板集成到LEGO积木结构中,可用于构建如舵机机械手等可控结构。
|
||||
|
||||
## 产品特性
|
||||
|
||||
- 4x Servo驱动
|
||||
- 兼容C/C Plus
|
||||
- 接口拓展(GPIO, I2C)
|
||||
|
||||
## 应用
|
||||
|
||||
- 舵机控制器
|
||||
- 机器人控制
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x C Back Driver
|
||||
- 2× 六角螺丝M2*5
|
||||
- 1× 内六角扳手
|
||||
|
||||
|
||||
## 规格参数
|
||||
|
||||
<table>
|
||||
<tr style="font-weight:bold">
|
||||
<td>规格</td>
|
||||
<td>参数</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>通信协议</td>
|
||||
<td>I2C:0x38</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>工作电流</td>
|
||||
<td>15mA</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>净重</td>
|
||||
<td>9g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>毛重</td>
|
||||
<td>13.5g</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>产品尺寸</td>
|
||||
<td>23.7*49.2*21mm</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>包装尺寸</td>
|
||||
<td>42*40*30mm</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="product_pic"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_04.webp"><img src="assets\img\product_pics\hat\cback_driver\cback_driver_05.webp"></div>
|
||||
|
||||
## 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5StickC</td><td>GPIO0</td><td>GPIO26</td><td>3.3V</td><td>GND</td></tr>
|
||||
<tr><td>C Back Driver</td><td>SDA</td><td>SCL</td><td>3.3V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 原理图
|
||||
|
||||
<img src="assets\img\product_pics\hat\cback_driver\cback_driver_sch.webp">
|
||||
|
||||
## 案例程序
|
||||
|
||||
?>该案例使用C BACK DRIVER,实现4通道舵机控制, 与ADC的读取。 请据你所使用的设备选择下方对应的案例程序。
|
||||
|
||||
<el-card class="box-card" style="margin-bottom:20px">
|
||||
<div slot="header" class="clearfix">
|
||||
<span style="font-size: 22px; font-weight: bold;">Arduino</span>
|
||||
<i class="el-icon-s-management" style="float: right;"></i>
|
||||
</div>
|
||||
<div class="box-card-item">
|
||||
<a href='https://github.com/m5stack/M5StickC-Plus/tree/master/examples/Hat/C_BACK_DRIVER'><el-tag>StickC Plus</el-tag></a>
|
||||
</div>
|
||||
<div class="box-card-item">
|
||||
<a href='https://github.com/m5stack/M5StickC/tree/master/examples/Hat/CBACK_DRIVER'><el-tag>StickC</el-tag></a>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
## 通讯协议
|
||||
|
||||
- 协议类型I2C
|
||||
- I2C Address: **0x38**
|
||||
|
||||
```clike
|
||||
/*--------------------------------------------------------------------------------------------------*/
|
||||
| SERVO_ANGLE_REG | 0x00-0x03
|
||||
| ------------------------------------------------------------------------------------------------
|
||||
| servo_1_reg[0] | R/W | SERVO1 Angle value(0~180)
|
||||
| servo_2_reg[1] | R/W | SERVO2 Angle value(0~180)
|
||||
| servo_3_reg[2] | R/W | SERVO3 Angle value(0~180)
|
||||
| servo_4_reg[3] | R/W | SERVO4 Angle value(0~180)
|
||||
/*----------------------------------------------------------------------------------------------------
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------*/
|
||||
| SERVO_PULSE_REG | 0x10-0x17
|
||||
| ------------------------------------------------------------------------------------------------
|
||||
| servo_1_reg[0:1] | R/W | SERVO1 PULSE value(500~2500)
|
||||
| servo_2_reg[2:3] | R/W | SERVO2 PULSE value(500~2500)
|
||||
| servo_3_reg[4:5] | R/W | SERVO3 PULSE value(500~2500)
|
||||
| servo_4_reg[6:7] | R/W | SERVO4 PULSE value(500~2500)
|
||||
/*----------------------------------------------------------------------------------------------------
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------*/
|
||||
| PPORTB_ADC_REG | 0x20-0x21
|
||||
| ------------------------------------------------------------------------------------------------
|
||||
| portb_adc_reg[0:1] | R | PPORTB ADC value(0~4095)
|
||||
/*----------------------------------------------------------------------------------------------------
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------*/
|
||||
| PPORTB_OUTPUT_REG | 0x30
|
||||
| ------------------------------------------------------------------------------------------------
|
||||
| portb_output_reg[0] | R | PPORTB Output Digital value(0/1)
|
||||
/*----------------------------------------------------------------------------------------------------
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------*/
|
||||
| PPORTB_INPUT_REG | 0x31
|
||||
| ------------------------------------------------------------------------------------------------
|
||||
| portb_input_reg[0] | R | PPORTB Input Digital value(0/1)
|
||||
/*----------------------------------------------------------------------------------------------------
|
||||
|
||||
```
|
||||
|
||||
## 相关视频
|
||||
|
||||
>使用C BACK DRIVER制作四轮小车
|
||||
|
||||
<video class="video_size" controls>
|
||||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/HAT/C_BACK-DRIVER.mp4" type="video/mp4">
|
||||
</video>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
var purchase_link = 'https://m5stack-store.myshopify.com/products/c-back-hat-with-servo-driver-stm32f0';
|
||||
|
||||
anchor_search(purchase_link);
|
||||
scrollFunc();
|
||||
|
||||
</script>
|
||||
@@ -94,7 +94,7 @@ UART 参数设置:
|
||||
|
||||
## 相关链接
|
||||
|
||||
- 通信协议 **[FINGER 串口通信协议](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)**
|
||||
- 通信协议 **[FINGER 串口通信协议](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/biovo_fingerprint_Protocol.pdf)**
|
||||
|
||||
- 数据手册 **[FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)**
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
|
||||
- **Datasheet**
|
||||
- [FPC1020A](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/1020A_datasheet_cn.pdf)
|
||||
- [FINGER 串口通信协议](https://github.com/m5stack/M5-Schematic/blob/master/Units/finger/biovo_fingerprint_Protocol_en.DOC)
|
||||
- [FINGER 串口通信协议](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/biovo_fingerprint_Protocol.pdf)
|
||||
|
||||
## 案例程序
|
||||
|
||||
|
||||
@@ -255,12 +255,12 @@ from m5stack_ui import *
|
||||
|
||||
screen = M5Screen()
|
||||
|
||||
/*M5Label(text, x=0, y=0, color=None, font=None)
|
||||
/*M5Label(text, x=0, y=0, color=None, font=None) */
|
||||
| ---------------------------------------------------------------------
|
||||
| font:
|
||||
| FONT_MONT_12/14/16/18/20/22/24/26/28/30/32/34/36/38/40/42/44/46/48
|
||||
| FONT_UNICODE_24 = lv.font_PHT_unicode_24
|
||||
/*---------------------------------------------------------------------
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
||||
Label = M5Label("Hello!",20,50,0xff,FONT_MONT_48)
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user