m5stack / M5Unit-ENV

Contains M5Stack-UNIT ENV series related case programs.ENV is an environmental sensor with integrated SHT30 and QMP6988 internally to detect temperature, humidity, and atmospheric pressure data.
MIT License
34 stars 25 forks source link
m5stack

M5Unit - ENV

Overview

SKU:U001 & U001-B & U001-C & U090 & U053-B & U053-D & U103

Contains M5Stack-UNIT ENV & Hat ENV & UNIT BPS & UNIT CO2 series related case programs.

ENV is an environmental sensor with integrated SHT30 and QMP6988 internally to detect temperature, humidity, and atmospheric pressure data.

BPS is a barometer unit, which integrates the Bosch BMP280 pressure sensor to measure atmospheric pressure and estimate the altitude.

BPS(QMP6988) Unit is a barometer unit that uses QMP6988 barometric pressure sensor to measure atmospheric pressure and altitude estimation

CO2 is a photoacoustic Carbon Dioxide (CO2) Unit that will tell you the CO2 PPM (parts-per-million) composition of ambient air.

Related Link

Required Libraries:

License


M5UnitUnified

Library for Unit ENV using M5UnitUnified.
M5UnitUnified is a library for unified handling of various M5 units products.

M5UnitUnified currently supports the following units SKU:U001-C, SKU:U103, SKU:U169, and SKU:U088.

SKU:U088

TVOC/eCO2 mini Unit is a digital multi-pixel gas sensor unit with integrated SGP30.

It mainly measures various VOC (volatile organic compounds) and H2 in the air. It can be programmed to detect TVOC (total volatile organic compounds) and eCO2 (equivalent carbon dioxide reading)Concentration measurement.

Typical measurement accuracy is 15% within the measurement range, the SGP30 reading is internally calibrated and output, which can maintain long-term stability. SGP30 uses I2C protocol communication with on-chip humidity compensation function, which can be turned on through an external humidity sensor.

If you need to obtain accurate results, you need to calibrate according to a known measurement source. SGP30 has a built-in calibration function. In addition, eCO2 is calculated based on the concentration of H2 and cannot completely replace "true" CO2 sensors for laboratory use.

Related Link

See also examples using conventional methods here.

Include file

#include <M5UnitUnifiedENV.h> // For UnitUnified
//#include <M5UnitENV.h> // When using M5UnitUnified, do not use it at the same time as conventional libraries

Supported units

Supported units will be added in the future.

Required Libraries:

The Bosch library is required by ENVPro to obtain values that cannot be obtained without using the Bosch library.

Examples

See also examples/UnitUnified

Doxygen document

If you want to generate documents on your local machine, execute the following command

bash docs/doxy.sh

It will output it under docs/html
If you want to output Git commit hashes to html, do it for the git cloned folder.

Required