updated
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 735 KiB |
|
After Width: | Height: | Size: 575 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 277 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 40 KiB |
@@ -1,5 +1,7 @@
|
||||
# Establish Serial Connection
|
||||
|
||||
**[MacOS](#for-macOS)** **[Windows](#for-windows)**
|
||||
|
||||
**This section provides guidance how to establish serial connection between your board and PC.**
|
||||
|
||||
## For MacOS
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# シリアル接続の確立方法
|
||||
|
||||
|
||||
**[MacOS](#for-macOS)** **[Windows](#for-windows)**
|
||||
|
||||
**このページでは、M5StackとPCとの間でシリアル接続を確立するための方法を説明します。**
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# LidarBot
|
||||
|
||||
<img src="assets/img/product_pics/app/lidarbot_01.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/lidarbot_02.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/lidarbot_03.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/lidarbot_04.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/lidarbot_05.jpg" width="250" height="250">
|
||||
<img src="assets/img/product_pics/app/lidarbot_01.jpg" width="250" height="250"> <img src="assets/img/product_pics/app/lidarbot_03.jpg" width="250" height="250">
|
||||
|
||||
* * *
|
||||
|
||||
@@ -33,23 +33,29 @@
|
||||
## 参数
|
||||
|
||||
- 通信参数
|
||||
- 车体的M5Core主控与激光雷达传感器(RXD <-> GPIO16)
|
||||
- 车体的M5Core主控与激光雷达传感器(雷达TXD <-> U2RXD(GPIO16))
|
||||
串口参数:230400bps,8位数据位,无奇偶校验,1位停止位
|
||||
- 车体的M5Core主控与车轮控制底板(TXD <-> GPIO17)
|
||||
- 车体的M5Core主控与车轮控制底板(底板RXD <-> U2TXD(GPIO17))
|
||||
串口参数:115200bps,8位数据位,无奇偶校验,1位停止位
|
||||
- 接口
|
||||
- 舵机0 <-> A0(MEGA328)
|
||||
- 舵机1 <-> A1(MEGA328)
|
||||
- NeoPixelRGB <-> 11(MEGA328)
|
||||
- RGB灯条 <-> 11(MEGA328)
|
||||
|
||||
<img src="assets/img/product_pics/app/lidarbot_05.jpg" width="300" height="300">
|
||||
|
||||
<img src="assets/img/product_pics/app/lidarbot_04.jpg" width="300" height="300">
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x LidarBot
|
||||
- 1x 雷达车
|
||||
- 1x 远程遥控手柄
|
||||
- 2x 电池(1300mAh @ 11.1V)
|
||||
- 1x 电池充电器
|
||||
- 1x Type-C USB线
|
||||
|
||||
<img src="assets/img/product_pics/app/lidarbot_02.jpg" width="300" height="300">
|
||||
|
||||
## 应用
|
||||
|
||||
- 室内导航
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
<img src="assets/img/product_pics/base/lan_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/base/lan_02.png" width="30%" height="30%"> <img src="assets/img/product_pics/base/lan_03.png" width="30%" height="30%">
|
||||
|
||||
***
|
||||
<!--
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Base/LAN/Arduino)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.6c24425eKdAPr3&id=574863427657)** -->
|
||||
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Base/LAN/Arduino)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.6c24425eKdAPr3&id=574863427657)**
|
||||
|
||||
<!-- :memo:**[描述](#描述)** :octocat:**[例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Base/LAN/Arduino)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.6c24425eKdAPr3&id=574863427657)** -->
|
||||
:memo:**[描述](#描述)** :octocat:**[例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Base/LAN/Arduino)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.6c24425eKdAPr3&id=574863427657)**
|
||||
|
||||
## 描述
|
||||
|
||||
@@ -48,4 +48,6 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
<!-- ## 原理图 -->
|
||||
## 原理图
|
||||
|
||||
<img src="assets/img/product_pics/base/lan_sch.JPG">
|
||||
@@ -0,0 +1,123 @@
|
||||
# RFID底座 - m5go底座升级版
|
||||
|
||||
<img src="assets/img/product_pics/base/rfid_01.png" alt="basic_02" width="250" height="250">
|
||||
|
||||
* * *
|
||||
|
||||
:memo:**[描述](#描述)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.57b2425eKUxTqx&id=584855077636)**
|
||||
|
||||
<!-- :memo:**[描述](#描述)** :octocat:**[例程](#例程)** :electric_plug:**[原理图](#原理图)** 🛒**[购买链接](https://item.taobao.com/item.htm?spm=a1z10.3-c.w4002-1172588106.10.57b2425eKUxTqx&id=584855077636)** -->
|
||||
|
||||
## 描述
|
||||
|
||||
<mark>RFID底座</mark>是[M5GO底座](zh_CN/product_documents/base/m5go_base)是升级版,在M5GO底座的基础上增加了RFID功能。
|
||||
|
||||
RFID底座由**330mAh的电池**、M-Bus总线接口、麦克风、红色的充电指示LED、2条RGB灯条(10颗)、PORT B和PORT C组成。
|
||||
|
||||
M5GO底座在充电过程中,红色LED闪烁,充满了常亮。
|
||||
|
||||
## 管脚映射
|
||||
|
||||
**POGO Pin**
|
||||
|
||||
| POGO Pin | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| SCL | GPIO22 |
|
||||
| SDA | GPIO21 |
|
||||
|
||||
**LED Bar(Neopixel)**
|
||||
|
||||
*有10颗RGB灯,左右各5颗*
|
||||
|
||||
| LED Pin | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| LED Pin | GPIO15 |
|
||||
|
||||
**麦克风MIC**
|
||||
|
||||
| MIC Pin | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| MIC Pin | GPIO34 |
|
||||
|
||||
**GROVE接口**
|
||||
|
||||
| PORT A(I2C) | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| SCL | GPIO22 |
|
||||
| SDA | GPIO21 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
| PORT B(I/O) | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| G36 | GPIO36 |
|
||||
| G26 | GPIO26 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
| PORT C(UART2) | ESP32 Chip |
|
||||
| :----------: |:------------: |
|
||||
| RXD | GPIO16 |
|
||||
| TXD | GPIO17 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
**M-Bus**
|
||||
|
||||
<figure>
|
||||
<img src="assets/img/product_pics/core/M-BUS.jpg" alt="M_BUS" width="500" height="500">
|
||||
</figure>
|
||||
|
||||
## 相关链接
|
||||
|
||||
- **[官方频道视频](https://i.youku.com/i/UNjE1ODA2MzE0OA==?spm=a2hzp.8253869.0.0)**
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
<!-- ## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV)。*
|
||||
|
||||
```arduino
|
||||
/
|
||||
Install Adafruit BMP280 Library first.
|
||||
*/
|
||||
#include <M5Stack.h>
|
||||
#include "DHT12.h"
|
||||
#include <Wire.h> //The DHT12 uses I2C comunication.
|
||||
#include <Adafruit_Sensor.h>
|
||||
#include <Adafruit_BMP280.h>
|
||||
|
||||
// new two objects
|
||||
DHT12 dht12;
|
||||
Adafruit_BMP280 bme;
|
||||
|
||||
// initialization
|
||||
M5.begin();
|
||||
Wire.begin();
|
||||
bme.begin();
|
||||
|
||||
// read data
|
||||
float tmp = dht12.readTemperature();
|
||||
float hum = dht12.readHumidity();
|
||||
float pressure = bme.readPressure();
|
||||
``` -->
|
||||
|
||||
<!-- ### 2. UIFlow
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlow)。*
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/ENV/example_unit_env_01.png" width="30%" height="30%"> <img src="assets/img/product_pics/unit/unit_example/ENV/example_unit_env_02.png" width="55%" height="55%"> -->
|
||||
|
||||
<!-- ## 原理图
|
||||
|
||||
<img src="assets/img/product_pics/unit/env_sch.JPG">
|
||||
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>ENV温湿度和压力传感器Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||||
</table> -->
|
||||
@@ -50,7 +50,9 @@ COMMU模块中的TTL接口,实际上是串口接口,默认连接的是串口
|
||||
|
||||
#### CAN通信
|
||||
|
||||
先将库[MCP_CAN_lib]()放置到Arduino的库管理文件路径中,然后分别打开CAN的发送和接收两个程序,并分别烧录到两个m5core中。
|
||||
这是两个COMMU模块分别堆叠了M5Core之后,相互之间收发数据的例程。
|
||||
|
||||
先将库[MCP_CAN_lib](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMMU/Arduino/DependentLibrary/MCP_CAN_lib)放置到Arduino的库管理文件路径`C:\Users\<user_name>\Documents\Arduino\libraries`中,然后分别打开CAN的发送和接收两个程序,并分别烧录到两个m5core中。
|
||||
|
||||
*具体例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMMU/Arduino/CAN).*
|
||||
|
||||
@@ -105,8 +107,12 @@ pinMode(CAN0_INT, INPUT);// Configuring pin for /INT input
|
||||
CAN0.readMsgBuf(&rxId, &len, rxBuf);
|
||||
```
|
||||
|
||||
<img src="assets/img/product_pics/module/module_example/COMMU/example_module_commu_01.png" width="50%" height="50%">
|
||||
|
||||
#### RS485通信
|
||||
|
||||
*请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMMU/Arduino/RS485)下载完整例程。*
|
||||
这是两个M5Core之间通过RS485相互收发数据的例程。
|
||||
|
||||
分别下载例程到两个m5core之后,按下按键A,然后两个core之间会相互发送数据。
|
||||
分别下载[例程](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Module/COMMU/Arduino/RS485)到两个M5Core之后,按下按键A,然后两个core之间会相互发送数据。
|
||||
|
||||
<img src="assets/img/product_pics/module/module_example/COMMU/example_module_commu_02.png" width="50%" height="50%">
|
||||
@@ -41,6 +41,6 @@
|
||||
|
||||
*具体例程请点击[这里](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_01.png" width="40%" height="40%"> <img src="assets/img/product_pics/module/module_example/LEGO_PLUS/example_module_lego_plus_02.png" width="45%" height="45%">
|
||||
<img src="assets/img/product_pics/module/module_example/LEGO_PLUS/example_module_lego_plus_01.png" width="40%" height="40%"> <img src="assets/img/product_pics/module/module_example/LEGO_PLUS/example_module_lego_plus_02_zh_CN.png" width="45%" height="45%">
|
||||
|
||||
<!-- ## 原理图 -->
|
||||
|
||||
@@ -35,6 +35,51 @@
|
||||
|
||||
## 例程
|
||||
|
||||
*以下仅为用法示意,并不完整。如果需要完整例程请点击[这里](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/JOYSTICK/Arduino)。*
|
||||
|
||||
烧录例程,USB鼠标接入模块之后,按住左键并拖动鼠标描绘白色线条;按住右键,描述绿色线条;按下中间滚轮键,清屏。
|
||||
|
||||
```arduino
|
||||
#include <M5Stack.h>
|
||||
#include <SPI.h>
|
||||
#include <Usb.h>
|
||||
#include <hiduniversal.h>
|
||||
#include <hidboot.h>
|
||||
#include <usbhub.h>
|
||||
#include "M5Mouse.h"
|
||||
|
||||
// new objects
|
||||
USB Usb;
|
||||
USBHub Hub(&Usb);
|
||||
HIDBoot<USB_HID_PROTOCOL_MOUSE> HidMouse(&Usb);
|
||||
MouseRptParser Prs;
|
||||
|
||||
// initialization
|
||||
M5.begin();
|
||||
Usb.Init();
|
||||
HidMouse.SetReportParser(0,(HIDReportParser*)&Prs);
|
||||
|
||||
// handle event coming from usb device
|
||||
Usb.Task();
|
||||
if(Usb.getUsbTaskState() == USB_STATE_RUNNING)
|
||||
{
|
||||
Mouse_Pointer(mou_px, mou_py);
|
||||
mou_px = 0;
|
||||
mou_py = 0;
|
||||
/* left button pressed: draw white point */
|
||||
if (mou_button == 1)
|
||||
M5.Lcd.drawCircle(StaPotX, StaPotY, 1, WHITE);
|
||||
/* right button pressed: draw green point */
|
||||
if (mou_button == 2)
|
||||
M5.Lcd.drawCircle(StaPotX, StaPotY, 1, GREEN);
|
||||
/* middle button pressed: clear screen */
|
||||
if (mou_button == 4)
|
||||
M5.Lcd.fillScreen(BLACK);
|
||||
}
|
||||
```
|
||||
|
||||
<img src="assets/img/product_pics/module/module_example/USB/example_module_usb_01.png">
|
||||
|
||||
## 原理图
|
||||
|
||||
<img src="assets/img/product_pics/module/usb_sch.png">
|
||||
@@ -1,5 +1,7 @@
|
||||
# 如何安装USB驱动并建立与PC的串口通讯
|
||||
|
||||
**[MacOS](#for-macOS)** **[Windows](#for-windows)**
|
||||
|
||||
**这个文档会介绍如何安装USB驱动,并与PC建立串口通信.**
|
||||
|
||||
## For MacOS
|
||||
|
||||