mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
add 6060
This commit is contained in:
@@ -22,8 +22,10 @@ body[data-page="index.md"] article.markdown-section {
|
||||
body[data-page="index.md"] article.markdown-section .item {
|
||||
width: 150px;
|
||||
margin-right: 10px;
|
||||
margin-top: 10px;
|
||||
display: inline-block;
|
||||
position:relative;
|
||||
box-shadow: 5px 5px 5px #888888;
|
||||
}
|
||||
|
||||
body[data-page="index.md"] article.markdown-section p.item-title {
|
||||
@@ -38,12 +40,18 @@ body[data-page="zh_CN/README.md"] article.markdown-section {
|
||||
body[data-page="zh_CN/README.md"] article.markdown-section .item {
|
||||
width: 150px;
|
||||
margin-right: 10px;
|
||||
margin-top: 10px;
|
||||
display: inline-block;
|
||||
position:relative;
|
||||
box-shadow: 5px 5px 5px #888888;
|
||||
}
|
||||
|
||||
body[data-page="zh_CN/README.md"] article.markdown-section p.item-title {
|
||||
text-align: center;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
/* background-color: #007BFF;
|
||||
color: white; */
|
||||
}
|
||||
|
||||
/* ja */
|
||||
|
||||
+124
-129
File diff suppressed because it is too large
Load Diff
+3
-2
@@ -49,9 +49,9 @@
|
||||
<a class="dropdown-item" href="#/en/module/lorawan" >LoRaWAN</a>
|
||||
<a class="dropdown-item" href="#/en/module/sim800" >SIM800L</a>
|
||||
<a class="dropdown-item" href="#/en/module/commu" >COMMU</a>
|
||||
<!-- <a class="dropdown-item" href="#/en/module/lte" >LTE</a>
|
||||
<a class="dropdown-item" href="#/en/module/lte" >LTE</a>
|
||||
<a class="dropdown-item" href="#/en/module/gsm" >GSM</a>
|
||||
<a class="dropdown-item" href="#/en/module/nb-iot" >NB-IoT</a> -->
|
||||
<a class="dropdown-item" href="#/en/module/nb-iot" >NB-IoT</a>
|
||||
<a class="dropdown-item" href="#/en/module/battery" >BATTERY</a>
|
||||
<a class="dropdown-item" href="#/en/module/proto" >PROTO</a>
|
||||
<a class="dropdown-item" href="#/en/module/proto_kit" >PROTO-KIT</a>
|
||||
@@ -263,6 +263,7 @@
|
||||
<a class="dropdown-item" href="#/en/1515/nut" >NUT</a>
|
||||
<a class="dropdown-item" href="#/en/1515/connectors" >Connector</a>
|
||||
<a class="dropdown-item" href="#/en/1515/ap" >Aluminium-Profile</a>
|
||||
<a class="dropdown-item" href="#/en/1515/6060-push" >6060-PUSH</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# 6060-PUSH {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/module/module_servo_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_servo_02.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_servo_03.png" width="30%" height="30%">
|
||||
|
||||
***
|
||||
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://m5stack.com/collections/m5-module/products/servo-module)** :clapper:**[相关视频](#相关视频)** <img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo-min.jpg">**[EasyLoader](#EasyLoader)**
|
||||
|
||||
## 描述
|
||||
|
||||
**6060-PUSH** 是M5Stack结构体系应用中的一款,运动控制模组.内置高精度步进电机,Mega328微处理器,1515铝型材框架.您可以通过编写控制器程序,对步进电机进行控制.二者通过RS485串行总线进行通信交互,能够实现高精度位移.适用与各类运动控制场景,如3D打印,直线运动控制等.
|
||||
|
||||
|
||||
## 产品特性
|
||||
|
||||
- 内置Mega328: GRBL
|
||||
- 可定制: 长度 & 距离
|
||||
- RS485通信
|
||||
- 1515 铝型材框架
|
||||
- 48 步进电机: 两相四线制
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x 6060 PUSH 模组
|
||||
|
||||
## 应用
|
||||
|
||||
- 3D打印
|
||||
- 直线运动控制
|
||||
+155
-131
File diff suppressed because it is too large
Load Diff
@@ -59,4 +59,56 @@
|
||||
|
||||
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录
|
||||
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
|
||||
|
||||
|
||||
## 例程
|
||||
|
||||
### Arduino IDE
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GSM/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
char buf[256] = {0};
|
||||
|
||||
if(cmd == NULL)
|
||||
sprintf(buf,"AT\r\n");
|
||||
else if(date == NULL)
|
||||
sprintf(buf,"AT+%s\r\n",cmd);
|
||||
else
|
||||
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
|
||||
|
||||
Serial2.write(buf);
|
||||
}
|
||||
//AT+CSQ=?
|
||||
void get_time(void){
|
||||
IotWriteCommand("CSQ=?",NULL);
|
||||
while(Serial2.available()){
|
||||
uint8_t ch = Serial2.read();
|
||||
Serial.write(ch);
|
||||
M5.Lcd.write(ch);
|
||||
}
|
||||
}
|
||||
|
||||
void setup() {
|
||||
M5.begin();
|
||||
|
||||
Serial.begin(115200);
|
||||
Serial2.begin(115200, SERIAL_8N1, 16, 17);
|
||||
pinMode(5, OUTPUT);
|
||||
digitalWrite(5, 1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if(M5.BtnA.wasReleased()){
|
||||
M5.Lcd.fillScreen(TFT_BLACK);
|
||||
M5.Lcd.setCursor(60,80,2);
|
||||
get_time();
|
||||
}
|
||||
M5.update();
|
||||
}
|
||||
```
|
||||
@@ -77,4 +77,56 @@
|
||||
|
||||
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录
|
||||
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
|
||||
|
||||
|
||||
## 例程
|
||||
|
||||
### Arduino IDE
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LTE/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
char buf[256] = {0};
|
||||
|
||||
if(cmd == NULL)
|
||||
sprintf(buf,"AT\r\n");
|
||||
else if(date == NULL)
|
||||
sprintf(buf,"AT+%s\r\n",cmd);
|
||||
else
|
||||
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
|
||||
|
||||
Serial2.write(buf);
|
||||
}
|
||||
|
||||
void get_time(void){
|
||||
IotWriteCommand(NULL,NULL);
|
||||
while(Serial2.available()){
|
||||
uint8_t ch = Serial2.read();
|
||||
Serial.write(ch);
|
||||
M5.Lcd.write(ch);
|
||||
}
|
||||
}
|
||||
|
||||
void setup() {
|
||||
M5.begin();
|
||||
|
||||
Serial.begin(115200);
|
||||
Serial2.begin(115200, SERIAL_8N1, 16, 17);
|
||||
pinMode(5, OUTPUT);
|
||||
digitalWrite(5, 1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if(M5.BtnA.wasReleased()){
|
||||
M5.Lcd.fillScreen(TFT_BLACK);
|
||||
M5.Lcd.setCursor(60,80,2);
|
||||
get_time();
|
||||
}
|
||||
M5.update();
|
||||
}
|
||||
```
|
||||
@@ -78,4 +78,57 @@
|
||||
|
||||
>2.下载软件后,双击运行应用程序,将M5设备通过数据线连接至电脑,选择端口参数,点击 **"Burn"** 即可开始烧录
|
||||
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
!>3.EasyLoader烧录前需要安装有CP210X(USB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
|
||||
|
||||
|
||||
|
||||
## 例程
|
||||
|
||||
### Arduino IDE
|
||||
|
||||
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/NB_IOT/Arduino).*
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
|
||||
void IotWriteCommand(char cmd[],char date[]){
|
||||
char buf[256] = {0};
|
||||
|
||||
if(cmd == NULL)
|
||||
sprintf(buf,"AT\r\n");
|
||||
else if(date == NULL)
|
||||
sprintf(buf,"AT+%s\r\n",cmd);
|
||||
else
|
||||
sprintf(buf,"AT+%s=%s\r\n",cmd,date);
|
||||
|
||||
Serial2.write(buf);
|
||||
}
|
||||
|
||||
void get_time(void){
|
||||
IotWriteCommand("CCLK?",NULL);
|
||||
while(Serial2.available()){
|
||||
uint8_t ch = Serial2.read();
|
||||
Serial.write(ch);
|
||||
M5.Lcd.write(ch);
|
||||
}
|
||||
}
|
||||
|
||||
void setup() {
|
||||
M5.begin();
|
||||
|
||||
Serial.begin(115200);
|
||||
Serial2.begin(115200, SERIAL_8N1, 16, 17);
|
||||
pinMode(5, OUTPUT);
|
||||
digitalWrite(5, 1);
|
||||
}
|
||||
|
||||
|
||||
void loop() {
|
||||
if(M5.BtnA.wasReleased()){
|
||||
M5.Lcd.fillScreen(TFT_BLACK);
|
||||
M5.Lcd.setCursor(60,80,2);
|
||||
get_time();
|
||||
}
|
||||
M5.update();
|
||||
}
|
||||
```
|
||||
@@ -39,9 +39,9 @@
|
||||
<a class="dropdown-item" href="#/zh_CN/module/lorawan" >LoRaWAN</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/sim800" >SIM800L</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/commu" >COMMU</a>
|
||||
<!-- <a class="dropdown-item" href="#/zh_CN/module/lte" >LTE</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/lte" >LTE</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/gsm" >GSM</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/nb-iot" >NB-IoT</a> -->
|
||||
<a class="dropdown-item" href="#/zh_CN/module/nb-iot" >NB-IoT</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/battery" >BATTERY</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/proto" >PROTO</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/module/proto_kit" >PROTO-KIT</a>
|
||||
@@ -252,6 +252,7 @@
|
||||
<a class="dropdown-item" href="#/zh_CN/1515/nut" >NUT</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/1515/connectors" >Connector</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/1515/ap" >Aluminium-Profile</a>
|
||||
<a class="dropdown-item" href="#/zh_CN/1515/6060-push" >6060-PUSH</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user