SGP30 eCO2 & TVOC sensor

MATLAB + Arduino I2C SGP30 sensor support
157 téléchargements
Mise à jour 5 nov. 2024

Afficher la licence

Support for the SGP30 eCO2 and TVOC sensor
Create an arduino object with I2C.
serialDevices = serialportlist;
a = arduino(serialDevices(end),'Nano3','Libraries',{'I2C'});
Connecting to the SGP30
sgp30obj = sgp30(a);
Read the sensor values
SGPeCO2Data = sgp30.readEquivalentCarbondioxide;
SGPTVOCData = sgp30.readTotalVolatileOrganicCompounds

Citation pour cette source

Eric Prandovsky (2024). SGP30 eCO2 & TVOC sensor (https://www.mathworks.com/matlabcentral/fileexchange/155192-sgp30-eco2-tvoc-sensor), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2022b
Compatible avec les versions R2022b et ultérieures
Plateformes compatibles
Windows macOS Linux
Remerciements

Inspiré par : MATLAB Support Package for Arduino Hardware

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
0.8.1

Updated to work with r2024+ where device.read() is no longer visible to the sensor and the SupportedInterfaces property has been added.

0.8