mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
211 lines
6.6 KiB
Markdown
211 lines
6.6 KiB
Markdown
# ENV II
|
||
|
||
<el-tag effect="plain">SKU:U001-B</el-tag>
|
||
|
||
<div class="product_pic"><img src="assets/img/product_pics/unit/envII/envII_01.webp"></div>
|
||
|
||
|
||
## 描述
|
||
|
||
|
||
**ENV II** 是一款环境传感器,内部集成SHT30和BMP280,用于检测温度、湿度、大气压值数据.SHT30是高精度低功耗的数字温湿度传感器,并支持I2C接口(SHT30:0x44, BMP280:0x76).BMP280是一款专为移动应用而设计的绝对气压传感器,具有较高的精准度.适合应用在一些小型低功耗终端上.对于需要对环境数据进行快速采集检测的项目来说, ENV Unit是一个兼顾性能与性价比的不错选择.
|
||
|
||
## 产品特性
|
||
|
||
- 简单易用
|
||
- 较高精准度
|
||
- 支持IIC
|
||
- HY2.0-4P 接口, 支持平台 [UIFlow](http://flow.m5stack.com) 、 [Arduino](http://www.arduino.cc).
|
||
- 2x LEGO 兼容孔
|
||
|
||
## 包含
|
||
|
||
- 1x ENV-II Unit
|
||
- 1x HY2.0-4P线缆
|
||
|
||
## 应用
|
||
|
||
- 气象站
|
||
- 储谷仓环境监控
|
||
|
||
## 规格参数
|
||
|
||
<table class="table-1">
|
||
<thead>
|
||
<tr>
|
||
<th>规格</th>
|
||
<th>参数</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>最大温度测量范围</td>
|
||
<td>-40 ~ 120 ℃</td>
|
||
</tr>
|
||
<tr>
|
||
<td>最高测量精度</td>
|
||
<td>0 ~ 60 ℃/±0.2℃</td>
|
||
</tr>
|
||
<tr>
|
||
<td>湿度测量范围/误差</td>
|
||
<td>10 ~ 90 %RH / ±2%</td>
|
||
</tr>
|
||
<tr>
|
||
<td>大气压测量范围/误差</td>
|
||
<td>300 ~ 1100hPa / ±1hPa</td>
|
||
</tr>
|
||
<tr>
|
||
<td>通信协议</td>
|
||
<td>I2C:SHT30(0x44),BMP280(0x76)</td>
|
||
</tr>
|
||
<tr>
|
||
<td>工作温度</td>
|
||
<td>32°F to 104°F ( 0°C to 40°C )</td>
|
||
</tr>
|
||
<tr>
|
||
<td>净重</td>
|
||
<td>5g</td>
|
||
</tr>
|
||
<tr>
|
||
<td>毛重</td>
|
||
<td>17g</td>
|
||
</tr>
|
||
<tr>
|
||
<td>产品尺寸</td>
|
||
<td>24.2*32.2*8.1mm</td>
|
||
</tr>
|
||
<tr>
|
||
<td>包装尺寸</td>
|
||
<td>67*53*12mm</td>
|
||
</tr>
|
||
<tr>
|
||
<td>外壳材质</td>
|
||
<td>Plastic ( PC )</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
## SHT30与DHT12对比
|
||
|
||
<table class="table-1">
|
||
<thead>
|
||
<tr>
|
||
<th>/</th>
|
||
<th>SHT30</th>
|
||
<th>DHT12</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td>最大温度测量范围</td>
|
||
<td>-40 ~ 120 ℃</td>
|
||
<td>-20 ~ 60 ℃</td>
|
||
</tr>
|
||
<tr>
|
||
<td>温度测量误差</td>
|
||
<td>0 ~ 60 ℃/±0.2℃</td>
|
||
<td>±0.2℃</td>
|
||
</tr>
|
||
<tr>
|
||
<td>湿度测量范围/误差</td>
|
||
<td>10 ~ 90 %RH / ±2%</td>
|
||
<td>20 ~ 95 %RH/0.1%</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
## EasyLoader
|
||
|
||
>EasyLoader是一个简洁快速的程序烧录器,其内置了一个产品相关的案例程序,通过简单步骤将其烧录至主控,即可进行一系列的功能验证.**(程序烧录前,请根据设备类型安装相应驱动程序. M5Core型主机[请点击此处查看CP210X驱动安装教程](zh_CN/arduino/arduino_development?id=安装串口驱动),M5StickC/V/T/ATOM系列可免驱动使用)**
|
||
|
||
<div class="easyloader-box">
|
||
<div style="background-color:white;">
|
||
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
|
||
<div class="easyloader-btn">
|
||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_ENV2_UNIT_With_M5Core.exe">Windows</a>
|
||
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_ENV2_UNIT_With_M5Core.dmg">MacOS</a>
|
||
<!-- <a>Linux</a>
|
||
<a>MacOS</a> -->
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<video id="example_video" controls>
|
||
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/ENVII.mp4" type="video/mp4">
|
||
</video>
|
||
<div class="easyloader-mask">
|
||
<a>
|
||
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff"></path></svg></a>
|
||
<p>案例描述:</p>
|
||
<p>显示温湿度与大气压数据.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
### 管脚映射
|
||
|
||
<table>
|
||
<tr><td>M5Core(PORT A)</td><td>GPIO22</td><td>GPIO21</td><td>5V</td><td>GND</td></tr>
|
||
<tr><td>ENV II Unit</td><td>SCL</td><td>SDA</td><td>5V</td><td>GND</td></tr>
|
||
</table>
|
||
|
||
## 原理图
|
||
|
||
<img src="assets/img/product_pics/unit/envII_sch.webp">
|
||
|
||
|
||
## 相关链接
|
||
|
||
- **Datasheet**
|
||
- [BMP280](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/BMP280-DS001-11_en.pdf)
|
||
|
||
- [SHT30](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/SHT3x_Datasheet_digital.pdf)
|
||
|
||
|
||
## 案例程序
|
||
|
||
|
||
?>该案例使用ENVII Unit,实现温度、湿度、大气压数据的读取。 请据你所使用的设备选择下方对应的案例程序。
|
||
|
||
<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/M5Stack/tree/master/examples/Unit/ENVII_SHT30_BMP280'><el-tag>BASIC/M5GO/FIRE</el-tag></a>
|
||
</div>
|
||
<div class="box-card-item">
|
||
<a href='https://github.com/m5stack/M5Core2/tree/master/examples/Unit/ENVII_SHT30_BMP280'><el-tag>Core2</el-tag></a>
|
||
</div>
|
||
</el-card>
|
||
|
||
>注意: 1, 在进行程序编译前,请安装[Adafruit BMP280 Library](https://github.com/adafruit/Adafruit_BMP280_Library)
|
||
|
||
```clike
|
||
SHT3X.h - API
|
||
//
|
||
float cTemp=0;
|
||
float fTemp=0;
|
||
float humidity=0
|
||
|
||
Adafruit_BMP280.h - API
|
||
|
||
float readPressure(void);
|
||
|
||
```
|
||
|
||
### 2. UIFlow
|
||
|
||
- [请点击此处获取UIFlow示例](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENVII/UIFlow)
|
||
|
||
<img src="assets/img/product_pics/unit/envII/envII_03.webp" width="60%">
|
||
|
||
<script>
|
||
|
||
var purchase_link = 'https://m5stack.com/collections/all/products/env-ii-unit';
|
||
|
||
anchor_search(purchase_link);
|
||
scrollFunc();
|
||
|
||
</script>
|