Sie verfolgen jetzt diese Einreichung
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
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
Zitieren als
Eric Prandovszky (2026). SGP30 eCO2 & TVOC sensor (https://de.mathworks.com/matlabcentral/fileexchange/155192-sgp30-eco2-tvoc-sensor), MATLAB Central File Exchange. Abgerufen .
Quellenangaben
Inspiriert von: MATLAB Support Package for Arduino Hardware
Allgemeine Informationen
- Version 0.8.2 (9,09 KB)
Kompatibilität der MATLAB-Version
- Kompatibel mit R2022b und späteren Versionen
Plattform-Kompatibilität
- Windows
- macOS
- Linux
| Version | Veröffentlicht | Versionshinweise | Action |
|---|---|---|---|
| 0.8.2 | Implemented an attempts loop to re-attempt a command up to four times if a crcError occurs. |
||
| 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 |
