M5Stack TVOC
| Sensors | SGP30: TVOC and eCO2 |
|---|---|
| Connection | GROVE I2C (0x58) |
Template
Section titled “Template”First set up the I2C pins: apply your board's template from its board page(the Atom S3 Lite and NanoC6 templates make the GROVE port I2C bus 1), or set I2C bus 1's SDA and SCL pins on the node's Hardware page. Then paste this into the Board Template box on the node's Templates page, Preview and Apply. It sets only this add-on's settings and works on any chip. See Add-on templates.
{"settings":{"SGP30_I2c_Bus":1,"SGP30_I2c":"0x58"}}- Plug it into the GROVE port. The Atom S3 Lite and NanoC6 board templates set GROVE as I2C bus 1. On another board, set I2C bus 1’s SDA and SCL pins on the Hardware page first.
- Applying the template needs firmware v5.0.0b3 or newer (ESPresense#2555). Older firmware asks for a
"chip"; set the values on the Hardware page instead. - Publishes
tvoc(ppb) andco2(ppm). The CO2 value is an estimate from the VOC reading, not a measurement; for real CO2 use an SCD4x such as the M5Stack CO2 Unit. Both publish toco2, so use one or the other. - The SGP30 needs a few minutes after power-up before its readings settle.