update docs format

This commit is contained in:
vany5921
2020-03-18 19:54:24 +08:00
parent 5aa706b967
commit 00b5d3a3bc
42 changed files with 170 additions and 1397 deletions
+2 -10
View File
@@ -1,18 +1,13 @@
# FACES BOTTOM{docsify-ignore-all}
<img src="assets/img/product_pics/module/faces_bottom/face_01.webp" width="30%" height="30%" ><img src="assets/img/product_pics/module/faces_bottom/face_02.jpg" width="30%" height="30%" ><img src="assets/img/product_pics/module/faces_bottom/face_03.jpg" width="30%" height="30%" >
# FACES BOTTOM
<div class="product_pic"><img src="assets/img/product_pics/module/faces_bottom/face_01.webp"><img src="assets/img/product_pics/module/faces_bottom/face_02.jpg"></div>
## 描述
**FACES BOTTOM** 是一款兼容M5Core的多功能面板底座,侧面直接引出M-BUS排针,方便连接各类外设,兼容FACES Kit中的所有功能面板,你可以根据项目需求灵活的更换面板。底座通过M-BUS总线与主机进行连接,使用I2C协议进行通信。底座内置600mAh可充电锂电池并配有电源管理芯片,方便作为手持设备使用。底座背面底部设有Pogo Pin触点,可通过充电底座进行充电,上方有M3螺丝孔和挂孔可以很方便的进行固定。
<img src="assets/img/product_pics/module/faces_bottom/different.jpg" width="30%" height="30%" >
## 产品特性
- 2.54mm排针排母输出
@@ -22,7 +17,6 @@
- 产品尺寸:108.2mm x 54.2mm x 18.7mm
- 产品重量:46g
## 产品清单
- 1x FACES BOTTOM
@@ -37,12 +31,10 @@
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Module/FACES%20BOTTOM.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/all/products/m5-faces-bottom-board';
anchor_search(purchase_link);
scrollFunc();
+2 -4
View File
@@ -1,8 +1,6 @@
# FACES II BOTTOM{docsify-ignore-all}
<img src="assets/img/product_pics/module/facesII_bottom/faceii_01.webp" width="30%" height="30%" ><img src="assets/img/product_pics/module/facesII_bottom/faceii_02.jpg" width="30%" height="30%" ><img src="assets/img/product_pics/module/facesII_bottom/faceii_03.jpg" width="30%" height="30%" >
# FACES II BOTTOM
<div class="product_pic"><img src="assets/img/product_pics/module/facesII_bottom/faceii_01.webp"><img src="assets/img/product_pics/module/facesII_bottom/faceii_02.jpg"></div>
## 描述
+2 -12
View File
@@ -1,7 +1,6 @@
# Module FAN {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_FAN.png" width="30%" height="30%">
# Module FAN
<div class="product_pic"><img src="assets/img/product_pics/module/module_FAN.png"></div>
## 描述
@@ -19,23 +18,14 @@
- 产品尺寸:54.2mm x 54.2mm x 12.8mm
- 产品重量:15.5g
## 包含
- 1x M5Stack FAN 风扇散热模块
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/step-motor-module-adapter-fan-module';
anchor_search(purchase_link);
scrollFunc();
+6 -13
View File
@@ -1,8 +1,6 @@
# 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%">
# Module GoPlus
<div class="product_pic"><img src="assets/img/product_pics/module/goplus/goplus_p1.jpg"> <img src="assets/img/product_pics/module/goplus/goplus_p2.jpg"></div>
<!-- :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)**-->
@@ -12,9 +10,6 @@
配备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.
### 产品特性
@@ -48,38 +43,36 @@
<img src="assets/img/product_pics/module/goplus/goplus_sch.jpg">
## 管脚映射
**Mega328 ISP**下载接口Pin脚定义
<img src="assets\img\product_pics\app\mega328_isp.png" width="30%" height="30%">
## 参考文档
- 协议手册 - **[I2C协议](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/GoPlus_I2C_Protocol%20operation%20instructions.pdf)**
- 数据手册 - **[LV8548MC](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/LV8548MC-D.PDF)**
## 案例程序
### Arduino
- 驱动固件 - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/src)**
- 测试程序 - **[GoPlus](https://github.com/m5stack/GoPlus/tree/master/test)**
### UIFLOW
- [点击此处,获取UIFlow](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GOPLUS/UIFLOW).
<img src="assets/img/product_pics/module/goplus/goplus_p5.jpg">
- [点击此处,获取UIFlow](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GOPLUS/UIFLOW).
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/goplus-module';
anchor_search(purchase_link);
scrollFunc();
+4 -41
View File
@@ -1,8 +1,6 @@
# Module GPS {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_gps_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_gps_02.png" width="30%" height="30%">
# Module GPS
<div class="product_pic"><img src="assets/img/product_pics/module/module_gps_01.png"><img src="assets/img/product_pics/module/module_gps_02.png"></div>
## 描述
@@ -10,9 +8,7 @@
NEO-M8能够做到花费少量的时间,进行高灵敏度采集,并且保持系统低功耗.
NEO-M8N 集成了 72 通道的 [u-blox](https://www.u-blox.com) M8 GNSS 引擎,支持多个 GNSS 系统:北斗, Galileo, GLONASS, GPS / QZSS,允许同时接收 3 个 GNSS 系统的数据
<img src="assets/img/product_pics/module/module_gps_07.png" width="70%" height="70%">
NEO-M8N 集成了 72 通道的 [u-blox](https://www.u-blox.com) M8 GNSS 引擎,支持多个 GNSS 系统:北斗, Galileo, GLONASS, GPS / QZSS,允许同时接收 3 个 GNSS 系统的数据.
M5Core与GPS模块之间使用UART通信协议,通过连接引脚**UART2 (GPIO16, GPIO17)**实现通讯.
@@ -46,7 +42,6 @@ M5Core与GPS模块之间使用UART通信协议,通过连接引脚**UART2 (GPIO
- 1x M5Stack GPS 模块
- 1x 外置天线(长度: 1 m)
## 应用
- 基于 GPS 的物流跟踪管理
@@ -54,10 +49,6 @@ M5Core与GPS模块之间使用UART通信协议,通过连接引脚**UART2 (GPIO
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
- **[GPS Info](https://www.u-blox.com/zh/product/neo-m8-series)** (GPS)
- **[TinyGPS++库官网](http://arduiniana.org/libraries/tinygpsplus/)**
@@ -66,7 +57,6 @@ M5Core与GPS模块之间使用UART通信协议,通过连接引脚**UART2 (GPIO
- **[u-blox Protocol Manual](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/u-blox8-M8_ReceiverDescrProtSpec_en.pdf)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -83,37 +73,10 @@ M5Core与GPS模块之间使用UART通信协议,通过连接引脚**UART2 (GPIO
### Arduino IDE
*具体例程`GPSRaw.ino`请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GPS/Arduino)*
[点击这里下载Arduino示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GPS/Arduino)
**注意: 为了使 GPS 模块获得良好信号,请在使用时将模块放置在室外.**
```arduino
#include <M5Stack.h>
/* By default, GPS is connected with M5Core through UART2 */
HardwareSerial GPSRaw(2);
void setup() {
M5.begin();
GPSRaw.begin(9600);// GPS init
Serial.println("hello");
termInit();
}
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()) {
int ch = Serial.read();
GPSRaw.write(ch);
}
if(GPSRaw.available()) {
int ch = GPSRaw.read();// read GPS information
Serial.write(ch);
termPutchar(ch);
}
}
```
烧录例程`GPSRaw.ino`之后,屏幕和串口显示终端会打印如下类似的信息
<img src="assets/img/product_pics/module/module_example/GPS/example_module_gps_01.png">
+3 -53
View File
@@ -1,7 +1,6 @@
# Module GSM {docsify-ignore-all}
<img src="assets\img\product_pics\module\gsm\gsm_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\module\gsm\gsm_02.jpg" width="30%" height="30%">
# Module GSM
<div class="product_pic"><img src="assets\img\product_pics\module\gsm\gsm_01.jpg"><img src="assets\img\product_pics\module\gsm\gsm_02.jpg"></div>
## 描述
@@ -40,7 +39,6 @@
电源按钮长按8s关机
GPIO26高电平模块复位
<!-- <a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_SIM800L_at.exe"><button type="button" class="btn btn-primary">点击查看全球运营商频段列表</button></a> -->
## 包含
@@ -77,55 +75,7 @@
### 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(2, OUTPUT);
digitalWrite(2, 0);
delay(3000);
digitalWrite(2, 1);
}
void loop() {
if(M5.BtnA.wasReleased()){
M5.Lcd.fillScreen(TFT_BLACK);
M5.Lcd.setCursor(60,80,2);
get_time();
}
M5.update();
}
```
[请点击此处下载Arduino代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/GSM/Arduino)
### 管脚映射
+7 -54
View File
@@ -1,20 +1,17 @@
# Module JOYSTICK {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_joystick_01.png" width="30%" height="30%">
# Module JOYSTICK
<div class="product_pic"><img src="assets/img/product_pics/module/module_joystick_01.png"></div>
## 描述
**JOYSTICK** 是一款兼容 FACE 套件的摇杆控制面板.通过推动面板上的摇杆能够进行角度、方向等数据的输入.使用I2C协议通讯,能够获取摇杆的偏移数据(X,Y坐标),以及中间按钮的状态.在摇杆的周围嵌入了由12个LED组成的LED bar,你可以根据你的需求自定义LED灯的发光形式.
JOYSTICK I2C 地址 0x5E.
<img src="assets/img/product_pics/module/module_joystick_03.png" width="60%" height="60%">
## 产品特性
- 12 RGB Led
- I2C 通讯
- I2C 通讯(0x5E)
- 简洁的API接口
- 产品尺寸:58.2mm x 54.2mm x 10mm
- 产品重量:30g
@@ -90,62 +87,18 @@ void get_joystick_offset(void){
### Arduino IDE
*以下代码仅为片段,如需获取完整代码,[请点击此处. ](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/JOYSTICK/Arduino/faces_joystick)。*
```arduino
/*
* faces_joystick.ino
*/
#include <M5Stack.h>
#define FACE_JOY_ADDR 0X5E
// declaration
uint8_t x_data_L;
uint8_t x_data_H;
uint8_t y_data_L;
uint8_t y_data_H;
uint8_t button_data;
uint16_t x_data;
uint16_t y_data;
// initialization
M5.begin();
Wire.begin();
// get data from ENCONDER
Wire.requestFrom(FACE_JOY_ADDR, 5);
if (Wire.available()) {
y_data_L = Wire.read();
y_data_H = Wire.read();
x_data_L = Wire.read();
x_data_H = Wire.read();
button_data = Wire.read();// Z(0: released 1: pressed)
x_data = x_data_H << 8 |x_data_L;
y_data = y_data_H << 8 |y_data_L;
}
// IIC send data, 4bytes
Wire.beginTransmission(FACE_JOY_ADDR);
Wire.write(indexOfLED);
Wire.write(r);
Wire.write(g);
Wire.write(b);
Wire.endTransmission();
```
[请点击此处下载Arduino完整代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/JOYSTICK/Arduino/faces_joystick)
### UIFLOW
- **[UIFlow示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/JOYSTICK/UIFlow)**
<img src="assets/img/product_pics/base/JOYSTICK.png" >
- **[UIFlow固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/JOYSTICK/UIFlow)**
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/joystick-module';
anchor_search(purchase_link);
scrollFunc();
+6 -19
View File
@@ -1,19 +1,15 @@
# Module LEGO+ {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_lego_plus_01.png" width="30%" height="30%"><img src="assets/img/product_pics/module/module_lego_plus_02.png" width="60%" height="60%">
# Module LEGO+
<div class="product_pic"><img src="assets/img/product_pics/module/module_lego_plus_01.png"><img src="assets/img/product_pics/module/module_lego_plus_02.png"></div>
## 描述
**LEGO+** 是M5Stack堆叠模块系列中的一款,LEGO电机驱动模块.集成MEGA328和L293DD芯片,拥有4个电机驱动通道.采用直流电源输入设计用于功率补充,并通过M-BUS,自动为顶部的M5Core供电.
串行通信协议: I2C (地址:0x56).
使用LEGO+ 模块能够简单快速的驱动 LEGO 电机.LEGO 电机是LEGO科技系列的技术件之一,其目的是为了创造更先进、具有更强大功能的模型.相比普通LEGO简单的砖砌建筑而言, LEGO 电机能够赋予模型更多的生命力.
## 产品特性
- 通信协议: I2C (地址:0x56)
- DC 输入: 6-12V
- DC 连接器类型: XT60 (female)
- 4x LEGO 电机接口
@@ -28,13 +24,9 @@
- 1x 10cm LEGO 电机线
- 1x DC 电源连接器
## 相关链接
- **[LEGO+ 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/firmware_328p)**
- **[LEGO+ 328P固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/firmware_328p)**
<!-- ### 1. Arduino IDE -->
@@ -50,7 +42,6 @@
!>3.EasyLoader烧录前需要安装有CP210XUSB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 管脚映射
**Mega328 ISP**下载接口Pin脚定义
@@ -61,18 +52,14 @@
### 1. Arduino
*获取完整Arduino例程 [点击这里](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/LEGO_PLUS/LEGO_Test).*
[点击这里获取完整Arduino例程](https://github.com/m5stack/M5Stack/tree/master/examples/Modules/LEGO_PLUS/LEGO_Test)
### 2. UIFlow
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/UIFlow)。*
[请点击此处获取UIFlow例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/UIFlow)
<img src="assets/img/product_pics/module/module_example/LEGO_PLUS/example_module_lego_plus_03_zh_CN.png">
### Arduino 328p frimware
*To get the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LEGO_PLUS/firmware_328p)*
## 原理图
<img src="assets/img/product_pics/module/lego_plus_sch.png">
+3 -50
View File
@@ -1,7 +1,6 @@
# Module LoRa (433MHz) {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_lora_01.jpg" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_lora_02.jpg" width="30%" height="30%">
# Module LoRa (433MHz)
<div class="product_pic"><img src="assets/img/product_pics/module/module_lora_01.jpg"> <img src="assets/img/product_pics/module/module_lora_02.jpg"></div>
## 描述
@@ -42,7 +41,6 @@ LoRa和LoRaWAN允许与不同类型的物联网(IoT)设备,进行远程连
- **[LoRaWAN 区域参数](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/lorawantm_regional_parameters_v1.1rb_-_final.pdf)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -67,52 +65,7 @@ LoRa和LoRaWAN允许与不同类型的物联网(IoT)设备,进行远程连
* 红色字符串表示初始化失败.
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA/Arduino)*
```arduino
#include <M5Stack.h>
#include <M5LoRa.h>
//declaration
String outgoing; // outgoing message
byte msgCount = 0; // count of outgoing messages
byte localAddress = 0xBB; // address of this device
byte destination = 0xFF; // destination to send to
//initialization
M5.begin();
LoRa.setPins(); // set CS, reset, IRQ pin
LoRa.begin(433E6); // initialize ratio at 915 MHz
//send message
void sendMessage(String outgoing) {
LoRa.beginPacket(); // start packet
LoRa.write(destination); // add destination address
LoRa.write(localAddress); // add sender address
LoRa.write(msgCount); // add message ID
LoRa.write(outgoing.length()); // add payload length
LoRa.print(outgoing); // add payload
LoRa.endPacket(); // finish packet and send it
msgCount++; // increment message ID
}
//receive message
void onReceive(int packetSize) {
if (packetSize == 0) return; // if there's no packet, return
int recipient = LoRa.read(); // recipient address
byte sender = LoRa.read(); // sender address
byte incomingMsgId = LoRa.read(); // incoming msg ID
byte incomingLength = LoRa.read(); // incoming msg length
String incoming = "";
while (LoRa.available()) {
incoming += (char)LoRa.read();
}
}
onReceive(LoRa.parsePacket());
```
[请点击此处获取Arduino代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA/Arduino)
<img src="assets/img/product_pics/module/module_example/LORA/example_module_lora_02.png">
+6 -51
View File
@@ -1,7 +1,6 @@
# Module LoRa868 {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_lora868_01.jpg" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_lora868_02.jpg" width="30%" height="30%">
# Module LoRa868
<div class="product_pic"><img src="assets/img/product_pics/module/module_lora868_01.jpg"><img src="assets/img/product_pics/module/module_lora868_02.jpg"></div>
## 描述
@@ -42,6 +41,9 @@ LoRa和LoRaWAN允许与不同类型的物联网(IoT)设备,进行远程连
- **[LoRaWAN 区域参数](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/lorawantm_regional_parameters_v1.1rb_-_final.pdf)**
## 原理图
- **原理图** - [Lora Module](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Modules/module_lora_sch.pdf)
## EasyLoader
@@ -67,52 +69,7 @@ LoRa和LoRaWAN允许与不同类型的物联网(IoT)设备,进行远程连
* 红色字符串表示初始化失败.
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA868/Arduino)*
```arduino
#include <M5Stack.h>
#include <M5LoRa.h>
//declaration
String outgoing; // outgoing message
byte msgCount = 0; // count of outgoing messages
byte localAddress = 0xBB; // address of this device
byte destination = 0xFF; // destination to send to
//initialization
M5.begin();
LoRa.setPins(); // set CS, reset, IRQ pin
LoRa.begin(868E6); // initialize ratio at 868 MHz
//send message
void sendMessage(String outgoing) {
LoRa.beginPacket(); // start packet
LoRa.write(destination); // add destination address
LoRa.write(localAddress); // add sender address
LoRa.write(msgCount); // add message ID
LoRa.write(outgoing.length()); // add payload length
LoRa.print(outgoing); // add payload
LoRa.endPacket(); // finish packet and send it
msgCount++; // increment message ID
}
//receive message
void onReceive(int packetSize) {
if (packetSize == 0) return; // if there's no packet, return
int recipient = LoRa.read(); // recipient address
byte sender = LoRa.read(); // sender address
byte incomingMsgId = LoRa.read(); // incoming msg ID
byte incomingLength = LoRa.read(); // incoming msg length
String incoming = "";
while (LoRa.available()) {
incoming += (char)LoRa.read();
}
}
onReceive(LoRa.parsePacket());
```
[请点击此处下载Arduino代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORA868/Arduino)
## 相关视频
@@ -120,12 +77,10 @@ onReceive(LoRa.parsePacket());
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Module/LoRa868.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/lora868-module';
anchor_search(purchase_link);
scrollFunc();
+5 -77
View File
@@ -1,21 +1,15 @@
# Module LoRaWAN {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_lorawan_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_lorawan_02.png" width="30%" height="30%">
# Module LoRaWAN
<div class="product_pic"><img src="assets/img/product_pics/module/module_lorawan_01.png"><img src="assets/img/product_pics/module/module_lorawan_02.png"></div>
## 描述
**LoRaWAN** 是M5Stack堆叠模块系列中的一款,节点通信模块.该模块集成了由Ai-Thinker设计的RHF76-052模组,它是LoRaWAN™UART调制解调器&兼容设备,支持LoRaWAN通信.你可以使用M5Core作为主机MCU,然后通过简单的AT指令或UART去控制这个调制解调器.
LoRaWAN基于LoRa远距离通信网络设计的一套通讯协议和系统架构.如果按协议分层来说LoRaWAN是媒体访问控制(MAC)层,LoRa是物理层.它是由LoRa联盟维护的路由协议,主要用作管理LPWAN网关和端节点设备之间的通信的网络协议.
利用 LoRa / LoRaWAN 远距离低功耗传输的特点,并将其应用到实际项目中去提高设备工作效率.
LoRaWAN默认的串口配置: 波特率为9600,8位数据位,无校验位,1位停止位.
*注意: 位于模块丝印"LoRaWAN"的下方,提供了5个穿孔用作LoRaWAN模块固件升级.*
注意: 位于模块丝印"LoRaWAN"的下方,提供了5个穿孔用作LoRaWAN模块固件升级.
## 产品特性
@@ -36,8 +30,6 @@ LoRaWAN默认的串口配置: 波特率为9600,8位数据位,无校验位,1
- 接口: UART
- 协议:AT命令
- 嵌入式LoRaWAN协议栈
- 频率:868/915 MHz
- TXOP: 20dBm @ 868MHz/915MHz
- 链路估算: 160dB
- 天线: 外部 (通过PCB焊盘)
- 电源电压范围:1.8~3.6V
@@ -77,7 +69,6 @@ LoRaWAN默认的串口配置: 波特率为9600,8位数据位,无校验位,1
- **[LoRaWAN 区域参数](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/lorawantm_regional_parameters_v1.1rb_-_final.pdf)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -94,7 +85,7 @@ LoRaWAN默认的串口配置: 波特率为9600,8位数据位,无校验位,1
### Arduino IDE
本案例将使用两个LoRaWAN模块,实现P2P(点对点)通讯,详情请参考 [LoRaWAN使用手册](http://wiki.ai-thinker.com/_media/lora/docs/rhf76-052_ho_to_use_ai-thinker_s_lorawan_modem.pdf)的3.6.
本案例将使用两个LoRaWAN模块,实现P2P(点对点)通讯,详情请参考 [LoRaWAN使用手册](http://wiki.ai-thinker.com/_media/lora/docs/rhf76-052_ho_to_use_ai-thinker_s_lorawan_modem.pdf)的3.6
**功能:**
按下按键B设置LoRaWAN工作频率为433MHz,并发送字符串"Hello World".
@@ -103,69 +94,7 @@ LoRaWAN默认的串口配置: 波特率为9600,8位数据位,无校验位,1
**注意:** 在编译该程序前,请将 `LoRaWan_for_M5Stack.rar` 解压缩到该路径`C:\Users\<user_name>\Documents\Arduino\libraries`.
*以下代码仅为片段,如需获取完整代码, [请点击此处](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORAWAN/Arduino).*
```arduino
/*
device_A.ino
*/
#include <M5Stack.h>
#include <LoRaWan.h>
#define SerialUSB Serial
// declaration
M5.begin();
SerialUSB.begin(9600);
lora.init();
delay(2000); // must delay for lorawan power on
// 433MHz frequency initialization
lora.initP2PMode(433, SF12, BW500, 8, 8, 20);
// 868MHz frequency initialization
lora.initP2PMode(868, SF12, BW500, 8, 8, 20);
// send string
lora.transferPacketP2PMode("hello world");
// receive data
short length = 0;
short rssi = 0;
memset(buffer, 0, 128);
length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);
```
```arduino
/*
device_B.ino
*/
#include <M5Stack.h>
#include <LoRaWan.h>
#define SerialUSB Serial
// declaration
M5.begin();
SerialUSB.begin(9600);
lora.init();
delay(2000); // must delay for lorawan power on
// 433MHz frequency initialization
lora.initP2PMode(433, SF12, BW500, 8, 8, 20);
// 868MHz frequency initialization
lora.initP2PMode(868, SF12, BW500, 8, 8, 20);
// send string
lora.transferPacketP2PMode("hello world");
// receive data
short length = 0;
short rssi = 0;
memset(buffer, 0, 128);
length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);
```
[请点击此处下载完整代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/LORAWAN/Arduino)
<img src="assets/img/product_pics/module/module_example/LORAWAN/example_module_lorawan_01.png">
@@ -173,7 +102,6 @@ length = lora.receivePacketP2PMode(buffer, 128, &rssi, 1);
<img src="assets/img/product_pics/module/lorawan_sch.png">
<script>
var purchase_link = 'https://item.taobao.com/item.htm?spm=a1z10.5-c.w4002-1172588093.61.6c2275f4nUJEfh&id=580998112819';
+4 -8
View File
@@ -1,7 +1,6 @@
# Module LTE {docsify-ignore-all}
<img src="assets\img\product_pics\module\lte\lte_01.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\module\lte\lte_02.jpg" width="30%" height="30%">
# Module LTE
<div class="product_pic"><img src="assets\img\product_pics\module\lte\lte_01.jpg"> <img src="assets\img\product_pics\module\lte\lte_02.jpg"></div>
## 描述
@@ -62,8 +61,7 @@
## 原理图
- **原理图** - [LTE Module](https://github.com/m5stack/M5-Schematic/blob/master/Modules/module_lte_sch.pdf)
- **原理图** - [LTE Module](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Modules/module_lte_sch.pdf)
## EasyLoader
@@ -81,7 +79,7 @@
### Arduino IDE
*如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5Stack/blob/master/examples/Modules/LTE/LTE.ino).*
[请点击此处下载Arduino代码](https://github.com/m5stack/M5Stack/blob/master/examples/Modules/LTE/LTE.ino)
### 管脚映射
@@ -90,12 +88,10 @@
<tr><td>Module LTE</td><td>RX</td><td>TX</td><td>5V</td><td>GND</td></tr>
</table>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/m5stack-lte-module';
anchor_search(purchase_link);
scrollFunc();
+3 -16
View File
@@ -1,14 +1,11 @@
# Module NB-IoT {docsify-ignore-all}
<img src="assets\img\product_pics\module\nb-iot\nb_iot_01.jpg" width="30%" height="30%">&nbsp;&nbsp;&nbsp;<img src="assets\img\product_pics\module\nb-iot\nb_iot_02.jpg" width="30%" height="30%">
<img src="assets/img/product_pics/module/nb-iot/NanoSIM.jpeg" width="60%" height="60%">
# Module NB-IoT
<div class="product_pic"><img src="assets\img\product_pics\module\nb-iot\nb_iot_01.jpg"><img src="assets\img\product_pics\module\nb-iot\nb_iot_02.jpg">
</div>
## 描述
**NB-IoT** 是M5Stack堆叠模块系列中的一款,NB-IoT通信模块.内部集成高性能 NB-IoT 全网通无线通信模组**M5311**.低功耗设计可以帮助客户获得更长的终端使用寿命.M5311 提供丰富的外部接口和协议栈,支持外接传感器设备,为用户的产品开发提供了极大的便利.同时支持 OneNET 云平台协议,真正实现无缝对接,快速开发.
该模块特别适用于以超低功耗、超小尺寸为核心需求的智能表计、智能穿戴、智能停车、市政管理等loT行业
<img src="assets\img\product_pics\module\nb-iot\nb_iot_03.jpg" width="30%" height="30%"> <img src="assets\img\product_pics\module\nb-iot\nb_iot_04.jpg" width="30%" height="30%">
@@ -21,7 +18,6 @@
- 电源按钮长按8s关机
- GPIO26高电平模块复位
!>**M5Stack Fire** 中的 GPIO 16 / 17 默认与PSRAM连接,这使得NB-IoT模块的TXD / RXDGPIO16GPIO17)与其产生冲突.因此,当你使用 M5Stack Fire 去驱动 NB-IoT 模块时,你需要将 NB-IoT 模块的 TXD 与 RXD 切断,然后通过飞线引至另一组 UART 引脚.
## 产品特性
@@ -60,8 +56,6 @@
- 1x Nano IoT SIM卡
- 1x NB-IoT 模块
## 应用
- 智能表计
@@ -82,8 +76,6 @@
<tr><td>Middle East, North Africa</td><td>B8(900), B20(800)</td></tr>
</table>
<!-- North America: B4 (1700), B12 (700), B66 (1700), B71 (600), B26 (850)
Asia Pacific: B1(2100), B3(1800), B5(850), B8(900), B18(850), B20(800), B26(850)
and B28(700);
@@ -99,15 +91,12 @@ Middle East and North Africa: B8(900) and B20(800); -->
- **AT Command** - [M5311 AT指令表](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/M5311_AT_Command_Interface_Specification_en.pdf)
## 原理图
- **原理图** - [NB-IoT Module](https://github.com/m5stack/M5-Schematic/blob/master/Modules/module_nb_iot_sch.pdf)
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Module/EasyLoader_NBIOT_MODULE.exe"><button type="button" class="btn btn-primary">点击下载EasyLoader</button></a>
@@ -118,7 +107,6 @@ Middle East and North Africa: B8(900) and B20(800); -->
!>3.EasyLoader烧录前需要安装有CP210XUSB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 案例程序
### Arduino IDE
@@ -136,7 +124,6 @@ Middle East and North Africa: B8(900) and B20(800); -->
var purchase_link = 'https://m5stack.com/collections/m5-module/products/m5stack-nb-iot-module';
anchor_search(purchase_link);
scrollFunc();
+4 -14
View File
@@ -1,10 +1,6 @@
# NB-IoT Plus{docsify-ignore-all}
<img src="assets\img\product_pics\module\nb-iot-plus\nb_iot_plus_01.webp" width="30%" height="30%">
<img src="assets\img\product_pics\module\nb-iot-plus\nb_iot_plus_02.webp" width="30%" height="30%">
<img src="assets\img\product_pics\module\nb-iot-plus\nb_iot_plus_03.webp" width="30%" height="30%">
# NB-IoT Plus
<div class="product_pic"><img src="assets\img\product_pics\module\nb-iot-plus\nb_iot_plus_01.webp"><img src="assets\img\product_pics\module\nb-iot-plus\nb_iot_plus_02.webp"></div>
## 描述
@@ -22,7 +18,6 @@
- 电源按钮长按8s关机
- GPIO26高电平模块复位
!>**M5Stack Fire** 中的 GPIO 16 / 17 默认与PSRAM连接,这使得NB-IoT Plus模块的TXD / RXDGPIO16GPIO17)与其产生冲突.因此,当你使用 M5Stack Fire 去驱动 NB-IoT Plus模块时,你需要将 NB-IoT Plus模块的 TXD 与 RXD 切断,然后通过飞线引至另一组 UART 引脚.
## 产品特性
@@ -53,9 +48,6 @@
- 灵敏度:
-114dBm( 无重传 )
-130dBm( 开启重传 )
## 尺寸重量
- 产品尺寸:54mm x 54mm x 13mm
- 产品重量:9g
@@ -98,10 +90,9 @@ Middle East and North Africa: B8(900) and B20(800); -->
- **AT Command** - [M5311 AT指令表](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/M5311_AT_Command_Interface_Specification_en.pdf)
## 原理图
- **原理图** - [NB-IoT Plus Module](https://github.com/m5stack/M5-Schematic/blob/master/Modules/module_nb_iot_sch.pdf)
- **原理图** - [NB-IoT Plus Module](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Modules/module_nb_iot_sch.pdf)
## EasyLoader
@@ -133,7 +124,7 @@ Middle East and North Africa: B8(900) and B20(800); -->
### Arduino IDE
*获取示例代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/NB-IoT_PLUS).*
[请点击此处获取Arduino示例代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/NB-IoT_PLUS)
### 管脚映射
@@ -146,7 +137,6 @@ Middle East and North Africa: B8(900) and B20(800); -->
var purchase_link = 'https://m5stack.com/collections/m5-module/products/m5stack-nb-iot-plus-module-m5311-gb';
anchor_search(purchase_link);
scrollFunc();
+4 -46
View File
@@ -1,8 +1,6 @@
# Module PLUS {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_plus_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_plus_02.png" width="30%" height="30%">
# Module PLUS
<div class="product_pic"><img src="assets/img/product_pics/module/module_plus_01.png"><img src="assets/img/product_pics/module/module_plus_02.png"></div>
## 描述
@@ -30,13 +28,8 @@ PLUS 上的PORT C 和 PORT B 的丝印画反了,使用时请注意。黑色的
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
- **[PLUS 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/firmware_328p)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -49,7 +42,6 @@ PLUS 上的PORT C 和 PORT B 的丝印画反了,使用时请注意。黑色的
!>3.EasyLoader烧录前需要安装有CP210XUSB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 管脚映射
**Mega328 ISP**下载接口Pin脚定义
@@ -60,47 +52,13 @@ PLUS 上的PORT C 和 PORT B 的丝印画反了,使用时请注意。黑色的
### Arduino IDE
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/Arduino).*
```arduino
/*
* 读取齿轮电位器的数据和发送红外光线
*/
#include <Arduino.h>
#include <M5Stack.h>
#define IrPin 13
#define PLUS_ADDR 0x62
// declaration
int32_t number = 0;
uint8_t press = 0;
// initialization
M5.begin(true, false, false);
Wire.begin();
ledcSetup(1, 38000, 10); ledcAttachPin(IrPin, 1);// IR Pin setting
// read data
Wire.requestFrom(PLUS_ADDR, 2);
while(Wire.available()) {
int8_t encode = Wire.read();
uint8_t press_n = Wire.read();
number += encode;
if(press_n == 0xff) {
press = 0;//encoder was pressed
}
else {
press = 1;//encoder was releaed
}
}
```
[请点击此处下载Arduino代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/Arduino)
### UIFLOW
<img src="assets/img/product_pics/module/module_plus_03.jpg">
- [点击此处,获取UIFlow](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/UIFLOW).
- [点击此处,获取UIFlow](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/PLUS/UIFLOW)
## 原理图
+2 -10
View File
@@ -1,8 +1,6 @@
# Module PROTO {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_proto_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_proto_02.png" width="30%" height="30%">
# Module PROTO
<div class="product_pic"><img src="assets/img/product_pics/module/module_proto_01.png"><img src="assets/img/product_pics/module/module_proto_02.png"></div>
## 描述
@@ -40,12 +38,6 @@
- 1x M5Stack PROTO 模块
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/proto-module';
+2 -9
View File
@@ -1,13 +1,11 @@
# Module PROTO-Kit {docsify-ignore-all}
<img src="assets/img/product_pics/module/proto_kit/module_proto_kit_01.jpg" width="30%" height="30%"> <img src="assets/img/product_pics/module/proto_kit/module_proto_kit_02.jpg" width="30%" height="30%">
# Module PROTO-Kit
<div class="product_pic"><img src="assets/img/product_pics/module/proto_kit/module_proto_kit_01.jpg"><img src="assets/img/product_pics/module/proto_kit/module_proto_kit_02.jpg"></div>
## 描述
**PROTO-Kit** 是一款PROTO功能模块套件,除了PROTO板模块,它还配备了DHT12(温度、湿度传感器),M-BUS插座等配件.PROTO模块是一个纯粹的通用型万能板,你可以完全自由的根据自己的需求搭建电路,并通过M-BUS与顶层的M5Core进行交互.
## 产品特性
- 孔尺寸: 0.039" 1mm (CNC钻孔)
@@ -53,11 +51,6 @@
- **[DHT12 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/DHT12_en.pdf)**
- **[官方频道视频](https://www.youtube.com/channel/UCozgFVglWYQXbvTmGyS739w)**
- **[官方论坛](http://forum.m5stack.com/)**
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/experimental-proto-board-set';
+6 -69
View File
@@ -1,14 +1,10 @@
# Module SERVO {docsify-ignore-all}
<img src="assets\img\product_pics\module\servo\servo_01.jpg" width="30%"><img src="assets\img\product_pics\module\servo\servo_02.jpg" width="30%"><img src="assets\img\product_pics\module\servo\servo_03.jpg" width="30%">
# Module SERVO
<div class="product_pic"><img src="assets\img\product_pics\module\servo\servo_01.jpg"><img src="assets\img\product_pics\module\servo\servo_02.jpg"></div>
## 描述
**SERVO** 是M5Stack堆叠模块系列中的一款,舵机驱动模块.拥有12个舵机驱动通道,最大功率14瓦,可同时驱动多个 SERVO 舵机.采用直流电源输入设计用于功率补充,并通过 M-BUS,自动为顶部的 M5Core 供电.将这一种简单快捷的舵机驱动方式应用在你的项目中,将提升你的开发效率.
SERVO 基于 MEGA328 芯片进行 I2C 通信(0x53).
**SERVO** 是M5Stack堆叠模块系列中的一款,舵机驱动模块.拥有12个舵机驱动通道,最大功率14瓦,可同时驱动多个 SERVO 舵机.采用直流电源输入设计用于功率补充,并通过 M-BUS,自动为顶部的 M5Core 供电.将这一种简单快捷的舵机驱动方式应用在你的项目中,将提升你的开发效率.SERVO 基于 MEGA328 芯片进行 I2C 通信(0x53).
## 产品特性
@@ -32,10 +28,6 @@ SERVO 基于 MEGA328 芯片进行 I2C 通信(0x53).
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
- **[SERVO 固件](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/firmware_328p)**
## EasyLoader
@@ -50,71 +42,23 @@ SERVO 基于 MEGA328 芯片进行 I2C 通信(0x53).
!>3.EasyLoader烧录前需要安装有CP210XUSB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 管脚映射
**Mega328 ISP**下载接口Pin脚定义
<img src="assets\img\product_pics\app\mega328_isp.png" width="30%" height="30%">
## 案例程序
### 1. Arduino IDE
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/Arduino).*
```arduino
#include <Arduino.h>
#include <M5Stack.h>
#include <Wire.h>
#define SERVO_ADDR 0x53
void setup() {
M5.begin(true, false, true);
M5.Lcd.setTextFont(4);
M5.Lcd.setCursor(70, 100);
M5.Lcd.print("Servo Example");
Wire.begin(21, 22, 100000);
}
// addr 0x01 means "control the number 1 servo by us"
void Servo_write_us(uint8_t number, uint16_t us) {
Wire.beginTransmission(SERVO_ADDR);
Wire.write(0x00 | number);
Wire.write(us & 0x00ff);
Wire.write(us >> 8 & 0x00ff);
Wire.endTransmission();
}
// addr 0x11 means "control the number 1 servo by angle"
void Servo_write_angle(uint8_t number, uint8_t angle) {
Wire.beginTransmission(SERVO_ADDR);
Wire.write(0x10 | number);
Wire.write(angle);
Wire.endTransmission();
}
void loop() {
for(uint8_t i = 0; i < 12; i++){
Servo_write_us(i, 700);
// Servo_write_angle(i, 0);
}
delay(1000);
for(uint8_t i = 0; i < 12; i++){
Servo_write_us(i, 2300);
// Servo_write_angle(i, 180);
}
delay(1000);
}
```
[请点击此处下载Arduino代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/Arduino)
### 2. UIFlow
想要探索最简单的Servo编程驱动方式吗?快试试Blockly编程平台[UIFlow](http://flow.m5stack.com).
想要探索最简单的Servo编程驱动方式吗?快试试Blockly编程平台[UIFlow](http://flow.m5stack.com)
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/UIFlow).*
[请点击此处下载Arduino示例代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SERVO/UIFlow)
<img src="assets/img/product_pics/module/module_example/SERVO/example_module_servo_01.png">
@@ -130,17 +74,10 @@ void loop() {
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/%E6%95%99%E7%A8%8B/Servo/E4%20-%20Servo%20Demo(UIFlow%20Tutorials%205).mp4" type="video/mp4">
</video>
**SERVO 的案例**
<video class="video_size" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201901/M5stack%20Servo.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/servo-module';
anchor_search(purchase_link);
scrollFunc();
+4 -16
View File
@@ -1,14 +1,11 @@
# Module SIM800L {docsify-ignore-all}
<img src="assets/img/product_pics/module/module_sim800_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_sim800_02.png" width="30%" height="30%">
# Module SIM800L
<div class="product_pic"><img src="assets/img/product_pics/module/module_sim800_01.png"><img src="assets/img/product_pics/module/module_sim800_02.png"></div>
## 描述
**SIM800L** 是M5Stack堆叠模块系列中的一款,GSM/GPRS通信模块.内部集成SIM800L、GSM / GPRS,仅兼容2G网络.如果你想要为你的设计添加蜂窝模块以获得语音,文本和短信功能,SIM800L模块会是一个不错的选择.
通信协议: UART
## 产品特性
- 3.5 mm 音频插孔
@@ -21,7 +18,7 @@
GSM 传输 (平均值): 350 mA
GSM 传输 (峰值): 2000mA
- 模块尺寸:25 x 23 mm
- 接口:UART(最大2.8V)和AT命令
- 通讯接口:UART(最大2.8V)和AT命令
- SIM卡插座类型: microSIM (底部)
- 支持的频率:四频段(850/950/1800 / 1900 MHz
- 天线连接器: IPX
@@ -31,7 +28,6 @@
- 产品尺寸:54.2mm x 54.2mm x 12.8mm
- 产品重量:16.5g
!>**M5Stack Fire** 中的 GPIO 16 / 17 默认与PSRAM连接,这使得SIM800L模块的TXD / RXDGPIO16GPIO17)与其产生冲突.因此,当你使用 M5Stack Fire 去驱动 SIM800L模块时,你需要将 SIM800L 模块的 TXD 与 RXD 切断,然后通过飞线引至另一组 UART 引脚.
## 管脚映射
@@ -56,12 +52,6 @@
- 带短信通知的网页爬虫系统
- 远程抄表系统
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
## EasyLoader
<img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/EasyLoader_logo.png" width="100px" style="margin-top:20px">
@@ -78,7 +68,7 @@
- **Arduino**
*Use with Arduino, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SIM800/Arduino/send_short_message)*
[点击此处下载Arduino示例代码](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/SIM800/Arduino/send_short_message)
## 原理图
@@ -98,12 +88,10 @@
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201901/SMS%20Receive.mp4" type="video/mp4">
</video>
<script>
var purchase_link = 'https://m5stack.com/collections/m5-module/products/gsm-sim800-module';
anchor_search(purchase_link);
scrollFunc();
+4 -46
View File
@@ -1,10 +1,9 @@
# Module STEPMOTOR {docsify-ignore-all}
# Module STEPMOTOR
<img src="assets/img/product_pics/module/module_stepmotor_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_stepmotor_02.png" width="30%" height="30%"> <img src="assets/img/product_pics/module/module_stepmotor_03.png" width="30%" height="30%">
<div class="product_pic"><img src="assets/img/product_pics/module/module_stepmotor_01.png"><img src="assets/img/product_pics/module/module_stepmotor_02.png"></div>
<!-- <img src="assets/img/product_pics/module/module_stepmotor_04.png" width="30%" height="30%"> -->
## 描述
**STEPMOTOR** 是M5Stack堆叠模块系列中的一款,步进电机驱动模块.该模块能够通过 **GRBL** 库同时驱动3个步进电机.因此非常适合应用在运动控制项目.
@@ -33,10 +32,6 @@
## 相关链接
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
- **[官方论坛](http://forum.m5stack.com/)**
- **[STEPMOTOR 固件](https://github.com/m5stack/stepmotor_module/tree/master/Firmware%20for%20stepmotor%20module/GRBL-Arduino-Library)**
- **[DRV8825 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/module/DRV8825_en.pdf)**
@@ -53,59 +48,23 @@
!>3.EasyLoader烧录前需要安装有CP210XUSB驱动程序),[点击此处查看驱动安装教程](zh_CN/related_documents/M5Burner#安装串口驱动)
## 管脚映射
**Mega328 ISP**下载接口Pin脚定义
<img src="assets\img\product_pics\app\mega328_isp.png" width="30%" height="30%">
## 案例程序
### 1. Arduino IDE
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/stepmotor_module/tree/master/Example/Arduino).*
```adrduino
/*
If Button A was pressed,
stepmotor will rotate back and forth at a time
*/
#include <M5Stack.h>
#include <Wire.h>
#define STEPMOTOR_I2C_ADDR 0x70
// initialization
M5.begin();
Wire.begin();
// Controlling Protocol:
// G<n> X<distance>Y<distance>Z<distance> F<speed>
SendCommand(STEPMOTOR_I2C_ADDR, "G1 X20Y20Z20 F500");
SendCommand(STEPMOTOR_I2C_ADDR, "G1 X0Y0Z0 F400");
// Get Data from Module.
Wire.requestFrom(STEPMOTOR_I2C_ADDR, 1);
if (Wire.available() > 0) {
int u = Wire.read();
if (u != 0) Serial.write(u);
}
// Send Data to Module.
while (Serial.available() > 0) {
int inByte = Serial.read();
SendByte(STEPMOTOR_I2C_ADDR, inByte);
}
```
[请点击此处下载Arduino示例代码](https://github.com/m5stack/stepmotor_module/tree/master/Example/Arduino)
### 2. UIFlow
想要探索最简单的 Step motor 编程驱动方式吗?快试试Blockly编程平台[UIFlow](flow.m5stack.com).
*以下代码仅为片段,如需获取完整代码, [请点击此处.](https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Module/STEPMOTOR/UIFlow).*
[请点击此处下载UIFlow示例](https://github.com/m5stack/M5-ProductExampleCodes/blob/master/Module/STEPMOTOR/UIFlow).*
<img src="assets/img/product_pics/module/module_example/STEPMOTOR/example_module_stepmotor_01.png">
@@ -118,7 +77,6 @@ while (Serial.available() > 0) {
var purchase_link = 'https://m5stack.com/collections/m5-module/products/step-motor-module-adapter-fan-module';
anchor_search(purchase_link);
scrollFunc();

Some files were not shown because too many files have changed in this diff Show More