Files

152 lines
5.4 KiB
Markdown
Raw Permalink Normal View History

2020-03-19 21:06:45 +08:00
# ENV
2018-12-25 16:04:58 +08:00
<el-tag effect="plain">SKU:U001</el-tag>
2020-03-19 14:40:22 +08:00
2020-10-28 19:06:02 +08:00
<div class="product_pic"><img src="assets/img/product_pics/unit/env/unit_env_01.webp"></div>
2019-09-05 21:04:47 +08:00
2018-12-25 16:04:58 +08:00
## Description
2020-12-11 16:09:47 +08:00
**ENV** is a environmental sensor, can be used for temperature, humidity, and atmospheric pressure measurement.
The ENV sensor integrates DHT12 and BMP280 sensors.
DHT12 is an upgraded version of DHT11 humidity temperature sensor: complete downward compatibility, higher precision and added I2C interface.
2019-05-05 11:28:54 +08:00
BMP280 is an absolute barometric pressure sensor especially designed for mobile applications, offers highest flexibility to optimize the device regarding power consumption, resolution and filter performance.
2018-12-25 16:04:58 +08:00
2019-09-05 21:04:47 +08:00
**I2C address:DHT12(0x5C)、BMP280(0x76)**
2020-04-21 17:43:30 +08:00
## Product Features
2018-12-25 16:04:58 +08:00
2019-02-28 13:43:11 +08:00
- GROVE interface, support [UIFlow](http://flow.m5stack.com) and [Arduino](http://www.arduino.cc)
2018-12-25 16:04:58 +08:00
- Two Lego installation holes
2019-04-17 20:04:52 +08:00
## Include
- 1x ENV Unit
- 1x Grove Cable
2020-05-29 16:36:24 +08:00
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
<td>Temperature measuring range/resolution</td>
<td>-20 ~ 60 ℃ / ±0.2℃</td>
</tr>
<tr>
<td>Humidity measuring range/resolution</td>
<td>20 ~ 95 %RH / ±0.1%</td>
</tr>
<tr>
2020-06-24 18:20:49 +08:00
<td>Air pressure measuring range/resolution</td>
2020-05-29 16:36:24 +08:00
<td>300 ~ 1100hPa / ±1hPa</td>
</tr>
<tr>
<td>communication protocol</td>
<td>I2CDHT12(0x5C),BMP280(0x76)</td>
</tr>
<tr>
<td>Operating temperature</td>
<td>32°F to 104°F ( 0°C to 40°C )</td>
</tr>
<tr>
2020-11-18 19:00:45 +08:00
<td>Net weight</td>
2020-05-29 16:36:24 +08:00
<td>4g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>17g</td>
</tr>
<tr>
<td>Product Size</td>
<td>24.2*32.2*8.1mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>67*53*12mm</td>
</tr>
<tr>
<td>Material</td>
<td>Plastic(PC)</td>
</tr>
</table>
2020-12-11 16:09:47 +08:00
## Related Links
2018-12-25 16:04:58 +08:00
2019-10-22 20:47:41 +08:00
- **[BMP280 library](https://github.com/adafruit/Adafruit_BMP280_Library)**
2018-12-25 16:04:58 +08:00
2019-10-22 20:47:41 +08:00
- **[BMP280 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/BMP280-DS001-11_en.pdf)**
- **[DHT12 Datasheet](https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/hat/DHT12_en.pdf)**
2018-12-25 16:04:58 +08:00
2019-06-11 19:20:48 +08:00
## EasyLoader
2019-06-06 20:01:45 +08:00
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial](en/arduino/arduino_development), M5StickC/V/T/ATOM series can be used without driver)
2019-06-13 18:06:23 +08:00
<div class="easyloader-box">
<div style="background-color:white;">
2020-04-08 14:09:44 +08:00
<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_ENV_UNIT_With_M5Core.exe">Windows</a>
2020-04-14 17:55:39 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_ENV_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/ENV_UNIT.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>Description:</p>
<p>Display temperature, humidity and atmospheric pressure data.</p>
</div>
</div>
</div>
2019-06-13 18:06:23 +08:00
2020-04-24 21:10:31 +08:00
## Schematic
<img src="assets/img/product_pics/unit/env_sch.JPG">
2020-06-18 09:30:41 +08:00
## PinMap
2020-04-24 21:10:31 +08:00
<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>
2019-06-11 19:20:48 +08:00
## Example
2019-06-06 20:01:45 +08:00
2021-02-05 16:54:45 +08:00
### 1. Arduino
2018-12-29 14:46:55 +08:00
2020-12-11 16:09:47 +08:00
This is a ENV example, implemented with reading temperature, humidity and atmospheric pressure functionalities.
1. Before compiling, please install `Adafruit BMP280 Library`
2. copy `Adafruit_Sensor.h` to `C:\Users\<user_name>\Documents\Arduino\libraries\Adafruit_BMP280_Library`
2019-01-18 11:16:03 +08:00
2020-04-30 14:13:25 +08:00
The code below is incomplete. To get the complete code, please click [here](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/ENV_DHT12_BMP280)
2018-12-25 16:04:58 +08:00
2018-12-29 14:46:55 +08:00
### 2. UIFlow
2021-02-05 16:54:45 +08:00
- [Click here to download the UIFlow example](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ENV/UIFlow)
2018-12-29 14:46:55 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/unit_example/ENV/example_unit_env_05.webp" width="60%">
2018-12-25 16:04:58 +08:00
2020-12-11 16:09:47 +08:00
<el-divider content-position="right">Last updated: 2020-12-11</el-divider>
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/mini-env-sensor-unit';
anchor_search(purchase_link);
scrollFunc();
2020-12-11 16:09:47 +08:00
</script>