mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
updated
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
@@ -66,7 +66,7 @@ Disconnect M5Core device and connect it back, to verify which port disappears fr
|
||||
|
||||
<img src="assets/img/getting_started_pics/m5stack_core/get_started_with_arduino_m5core/windows/check_serial_port_01.png">
|
||||
|
||||
## 3. Install ESP32 Boards Manager
|
||||
### 3. Install ESP32 Boards Manager
|
||||
|
||||
#### (1) Open IDE, click `File`->`Peferences`->`Settings`
|
||||
|
||||
@@ -88,7 +88,7 @@ Disconnect M5Core device and connect it back, to verify which port disappears fr
|
||||
|
||||
<img src="assets/img/getting_started_pics/m5stack_core/get_started_with_arduino_m5core/windows/quick_start_arduino_win_05.png">
|
||||
|
||||
## 4. Install M5Stack Library
|
||||
### 4. Install M5Stack Library
|
||||
|
||||
#### (1) Open Arduino IDE, then Select `Sketch`->`Include Library`->`Manage Libraries...`
|
||||
|
||||
@@ -102,13 +102,13 @@ Disconnect M5Core device and connect it back, to verify which port disappears fr
|
||||
|
||||
<img src="assets/img/getting_started_pics/m5stack_core/get_started_with_arduino_m5core/windows/update_m5stack_lib.png"> -->
|
||||
|
||||
## 5. Example
|
||||
### 5. Example
|
||||
|
||||
This section for verifying whether you can program with Arduino or not. Now, The USB cable connects to M5Core, then select your serial port which is connected M5Core.
|
||||
|
||||
Select a demo example, compile and upload
|
||||
|
||||
### 1. Execute a example likes `FactoryTest.ino`
|
||||
#### (1) Execute a example likes `FactoryTest.ino`
|
||||
|
||||
Select your board name, baudrate, the specified serial port: M5Stack-Core-ESP32, 921600, COM26(Now, my serial port which is connected with PC is `COM26`)
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ void loop() {
|
||||
|
||||
**EARTH Tutorial - Monitor vase soil moisture 1**
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/nMpe686jANA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src='https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/(M5stack%20x%20Arduino)%20Do%20plants%20have%20feelings.mp4' frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
**EARTH Case - Monitor vase soil moisture 2**
|
||||
|
||||
|
||||
@@ -84,8 +84,8 @@ Because the module can generate WIFI hotspot AP, So you can use your mobile phon
|
||||
|
||||
| *Grove* | *ESP32Cam* |
|
||||
| :-----------: | :--------: |
|
||||
| SCL | IO13 |
|
||||
| SDA | IO4 |
|
||||
| SCL | IO4 |
|
||||
| SDA | IO13 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
|
||||
+3
-3
@@ -7,11 +7,11 @@
|
||||
<span style="font-size:30px">Core</span>
|
||||
</div>
|
||||
|
||||
*( **[Quick Start](en/qs)** **[Cores comparison](https://github.com/m5stack/M5-Schematic/blob/master/Core/hardware_difference_between_cores.md)** **[IIC Address Table](https://shimo.im/sheets/GWkjHV3XyCCgwDpQ)** )*
|
||||
*( **[Cores comparison](https://github.com/m5stack/M5-Schematic/blob/master/Core/hardware_difference_between_cores.md)** **[IIC Address Table](https://shimo.im/sheets/GWkjHV3XyCCgwDpQ)** )*
|
||||
|
||||
|
||||
|
||||
**M5Core**
|
||||
**M5Core** *( **[Quick Start](en/quick_start/m5core/m5stack_core_quick_start)** )*
|
||||
|
||||
[](en/core/basic) [](en/core/gray) [](en/core/fire)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
|
||||
|
||||
**MiniCore**
|
||||
**MiniCore** *( **[Quick Start](en/quick_start/m5stick/m5stick_quick_start)** )*
|
||||
|
||||
[](en/core/m5stick) [](en/core/m5stickc)
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ void loop() {
|
||||
|
||||
**EARTH デモ - 土壌中の湿度モニタリング 1**
|
||||
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/nMpe686jANA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src='https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/(M5stack%20x%20Arduino)%20Do%20plants%20have%20feelings.mp4' frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
**EARTH デモ - 土壌中の湿度モニタリング 2**
|
||||
|
||||
|
||||
@@ -82,8 +82,8 @@
|
||||
|
||||
| *Grove* | *ESP32Cam* |
|
||||
| :-----------: | :--------: |
|
||||
| SCL | IO13 |
|
||||
| SDA | IO4 |
|
||||
| SCL | IO4 |
|
||||
| SDA | IO13 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
***
|
||||
|
||||
<img src='assets/img/product_pics/icon_core.png'> <img src='assets/img/product_pics/core_zh_CN.png'>
|
||||
<div>
|
||||
<img src="assets/img/product_pics/icon_core.png" style="vertical-align:middle;">
|
||||
<span style="font-size:30px">Core</span>
|
||||
</div>
|
||||
|
||||
*(**[主控之间的对比](https://github.com/m5stack/M5-Schematic/blob/master/Core/hardware_difference_between_cores_zh_CN.md)** **[IIC 地址表](https://shimo.im/sheets/GWkjHV3XyCCgwDpQ)** )*
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
<!-- <img src="assets/img/getting_started_pics/establish_serial_connection/windows_m5stack_in_device_manager.png"> -->
|
||||
|
||||
## 3. 安装 ESP32 的板管理
|
||||
### 3. 安装 ESP32 的板管理
|
||||
|
||||
#### (1) 打开 IDE,选择 `文件`->`首选项`->`设置`
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
#### (4) 在新弹出的对话框中,输入并搜索 `ESP32`,点击`安装`
|
||||
<img src="assets/img/getting_started_pics/m5stack_core/get_started_with_arduino_m5core/windows/quick_start_arduino_win_05_cn.png">
|
||||
|
||||
## 4. 安装 M5Stack 的库
|
||||
### 4. 安装 M5Stack 的库
|
||||
|
||||
#### (1) 打开 Arduino IDE, 然后选择 `项目`->`加载库`->`库管理...`
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
<img src="assets/img/getting_started_pics/m5stack_core/get_started_with_arduino_m5core/windows/update_m5stack_lib.png"> -->
|
||||
|
||||
## 5. 示例
|
||||
### 5. 示例
|
||||
|
||||
这部分是为了验证现在您是否能通过 Arduino IDE 对 M5Core 编程。
|
||||
|
||||
|
||||
+25
-12
@@ -1,4 +1,4 @@
|
||||
# EARTH - 土壤湿度Unit {docsify-ignore-all}
|
||||
# EARTH - 土壤湿度 Unit {docsify-ignore-all}
|
||||
|
||||
<img src="assets/img/product_pics/unit/M5GO_Unit_earth.png" width="30%" height="30%"><img src="assets/img/product_pics/unit/unit_earth_grove_b.png" width="30%" height="30%">
|
||||
|
||||
@@ -8,18 +8,31 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>EARTH</mark>** 是一款用于测量土壤、水果等固态物体含水量的Unit。被测物体不同的含水量(湿度),导致Unit返回的电阻值不同,从而能判断被测物体的含水量。
|
||||
**<mark>EARTH</mark>** 是一款集成**湿度传感器和 10K 的可调电阻**的 Unit。被测物体的含水量不一样时,传感器对应的电阻值也不一样,如果含水量高的时候,传感器导电率变大,电阻值变小,主控采集到传感器的数据就变小,反之变大。
|
||||
|
||||
Unit可以输出0/1的数字信号,也可以直接输出被测物体反映的模拟量,可以调节Unit上的电位器来改变测量阈值。
|
||||
<img src="assets/img/product_pics/unit/unit_earth_02.png">
|
||||
|
||||
使用该 Unit 可以测量土壤、水果等物体含水量,或者测量水杯的水位高度等。该 Unit 可以输出 0/1 的数字信号,也可以直接输出被测物体反映的模拟量,可以调节 Unit 上的电位器来改变测量阈值。
|
||||
|
||||
该 Unit 与 M5core 通过 Grove B 接口通信。
|
||||
|
||||
<img src="assets/img/product_pics/unit/unit_example/EARTH/example_unit_earth_03.png" width="50%" height="50%">
|
||||
|
||||
## 特性
|
||||
|
||||
- 可调节测量阈值(通过改变Unit上的10K可调电阻)
|
||||
- 可调节测量阈值 (通过改变 Unit 上的 10K 可调电阻)
|
||||
- 数字或模拟信号输出
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x EARTH Unit
|
||||
- 1x Grove 线
|
||||
|
||||
## 应用
|
||||
|
||||
- 盆栽土壤湿度监控
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -66,16 +79,16 @@ void loop() {
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>土壤湿度Unit</td><td>模拟值输出引脚</td><td>数字值输出引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td> </tr>
|
||||
<tr><td>土壤湿度 Unit</td><td>模拟值输出引脚</td><td>数字值输出引脚</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
**EARTH 的教程 - 监控花瓶土壤含水量 1**
|
||||
**EARTH 的教程 - 监控花瓶土壤含水量**
|
||||
|
||||
<iframe height=498 width=510 src='https://player.youku.com/embed/XMzg0MjE0MjI0MA==' frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src='https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/(M5stack%20x%20Arduino)%20Do%20plants%20have%20feelings.mp4' frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
**EARTH 的案例 - 监控花瓶土壤含水量 2**
|
||||
**EARTH 的案例 - 监控花瓶土壤含水量**
|
||||
|
||||
<iframe width="560" height="315" src='https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201901/Earth%20Unit.mp4' frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
<iframe width="560" height="315" src='https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Blog/Twitch201901/Earth%20Unit.mp4' frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
||||
|
||||
+23
-9
@@ -8,21 +8,33 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>ENV</mark>**是一款集成DHT12(环境温湿度传感器)和压强传感器BMP280的Unit,这个Unit连接了M5Core之后能很方便的读取环境中的温湿度值和大气压强。接M5Core的GROVE A口。
|
||||
**<mark>ENV</mark>** 是一款集成 **DHT12** ( 环境温湿度传感器 ) 和压强传感器 **BMP280** 的 Unit。使用这个 Unit 可以测量空气中的温度、湿度和气压大小。
|
||||
|
||||
该 Unit 与 M5Core 通过 Grove A 接口通信,DHT12 的 IIC 地址是 **0x5C**, BMP280 的 IIC 地址是 **0x76**。
|
||||
|
||||
## 特性
|
||||
|
||||
- 温度测量
|
||||
- 范围: 20 ~ 60℃
|
||||
- 精度: ±0.2℃
|
||||
- 范围: 20 ~ 60 ℃
|
||||
- 精度: ±0.2 ℃
|
||||
- 湿度测量
|
||||
- 范围: 20 ~ 95℃
|
||||
- 精度: 0.1%
|
||||
- 范围: 20 ~ 95 %RH
|
||||
- 精度: 0.1 %
|
||||
- 气压测量
|
||||
- 范围: 300 ~ 1100hPa
|
||||
- 精度: ±1hPa
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
- 范围: 300 ~ 1100 hPa
|
||||
- 精度: ±1 hPa
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x ENV Unit
|
||||
- 1x Grove 线
|
||||
|
||||
## 应用
|
||||
|
||||
- 气象站
|
||||
- 储谷仓环境监控
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -30,6 +42,8 @@
|
||||
|
||||
- **[官方论坛](http://forum.m5stack.com/)**
|
||||
|
||||
- **[BMP280 的库](https://github.com/adafruit/Adafruit_BMP280_Library)**
|
||||
|
||||
## 例程
|
||||
|
||||
### 1. Arduino IDE
|
||||
|
||||
@@ -83,8 +83,8 @@
|
||||
|
||||
| *Grove* | *ESP32Cam* |
|
||||
| :-----------: | :--------: |
|
||||
| SCL | IO13 |
|
||||
| SDA | IO4 |
|
||||
| SCL | IO4 |
|
||||
| SDA | IO13 |
|
||||
| 5V | 5V |
|
||||
| GND | GND |
|
||||
|
||||
|
||||
@@ -8,16 +8,29 @@
|
||||
|
||||
## 描述
|
||||
|
||||
**<mark>LIGHT</mark>** 是一款光线传感器,内置光敏电阻和 10K 的可调电阻。你可以旋转可调电阻,从而调节光线强度阈值。Unit 的 GRVE 接口可以输出数字信号或者光强对应的模拟信号(电压信号)。
|
||||
**<mark>LIGHT</mark>** 是一款集成**光敏电阻和 10K 的可调电阻**的 Unit。光敏电阻接收到环境中不同强度光线后,电阻率会发生变化。接收的光越强,电阻率越小。反之,越大。你可以旋转可调电阻,改变调节光线强度触发 Unit 输出高或低电平的光强阈值。
|
||||
|
||||
LIGHT 在光照强度弱的时候,数字引脚输出高电平,即数字信号 "1" ,否则输出 "0" 。
|
||||
该 Unit 的 GRVE 接口可以输出数字信号或者光强对应的模拟信号(电压信号)。在光照弱的时候,数字引脚输出高电平,即数字信号 "1" ,否则输出 "0" 。
|
||||
|
||||
该 Unit 与 M5core 通过 Grove B 接口通信。
|
||||
|
||||
## 特性
|
||||
|
||||
- 10K可调电阻
|
||||
- 可调节测量阈值 (通过改变 Unit 上的 10K 可调电阻)
|
||||
- 模拟或数字信号输出
|
||||
- GROVE接口,支持[UIFlow](http://flow.m5stack.com)编程,[Arduino](http://www.arduino.cc)编程
|
||||
- Unit内置两个Lego插件孔,方便与Lego件结合
|
||||
- GROVE 接口,支持 [UIFlow](http://flow.m5stack.com) 编程,[Arduino](http://www.arduino.cc) 编程
|
||||
- Unit 内置两个 Lego 插件孔,方便与 Lego 件结合
|
||||
|
||||
## 包含
|
||||
|
||||
- 1x LIGHT Unit
|
||||
- 1x Grove 线
|
||||
|
||||
## 应用
|
||||
|
||||
- 光控开关
|
||||
- 太阳能庭院灯
|
||||
- 红外监控摄像头
|
||||
|
||||
## 相关链接
|
||||
|
||||
@@ -63,8 +76,8 @@ digitalRead_value = digitalRead(26);
|
||||
### 管脚映射
|
||||
|
||||
<table>
|
||||
<tr><td>M5Core(GROVE接口B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>光线传感Unit</td><td>模拟值输出引脚</td><td>数字值输出引脚</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>M5Core(GROVE接口 B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
|
||||
<tr><td>光线传感 Unit</td><td>模拟值输出引脚</td><td>数字值输出引脚</td><td>5V</td><td>GND</td></tr>
|
||||
</table>
|
||||
|
||||
## 相关视频
|
||||
|
||||
Reference in New Issue
Block a user