mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
1.6 KiB
1.6 KiB
Unit ENV
📝Description|:octocat:Example| 🔌Schematic | 🛒Purchase
Description
ENV is a environment sensor for M5GO that can easily detect temperature, humidity and air pressure with M5GO Core, including temperature and humidity sensor and absolute barometric pressure sensor. Connect to GRVE A of M5Core.
Features
- Temperature:
- measuring range: 20 ~ 60℃
- resolution: ±0.2℃
- Humidity:
- measuring range: 20 ~ 95℃
- resolution: 0.1%
- Air pressure
- measuring range: 300 ~ 1100hPa
- resolution: ±1hPa
- GROVE interface, support UiFlow and Arduino
- Two Lego installation holes
Example
DHT12 dht12; //new a object
Adafruit_BMP280 bme;
float tmp = dht12.readTemperature();//temperature
float hum = dht12.readHumidity();//humidity
float pressure = bme.readPressure();//pressure
Click here for Specific example.
Schematic
PinMap
| M5Core(GROVE A) | GPIO22 | GPIO21 |
| ENV Unit | SCL | SDA |